@outseta/api-client 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -19
- package/package.json +3 -6
- package/src/__tests__/accounts-crud.integration.test.ts +41 -39
- package/src/__tests__/client.test.ts +3 -3
- package/src/__tests__/people.integration.test.ts +28 -32
- package/src/__tests__/setup.ts +5 -6
- package/src/__tests__/support.integration.test.ts +28 -35
- package/src/client.ts +38 -23
- package/src/generated/activity/activity.ts +115 -0
- package/src/generated/billing/billing.ts +786 -0
- package/src/generated/crm/crm.ts +1143 -221
- package/src/generated/email/email.ts +578 -0
- package/src/generated/models/abstractBean.ts +2 -220
- package/src/generated/models/abstractQcountBean.ts +0 -220
- package/src/generated/models/abstractQcountBeanAllOf.ts +0 -220
- package/src/generated/models/abstractQcountBeanAllOfActivityEventData.ts +0 -220
- package/src/generated/models/abstractSchemaLessBean.ts +0 -220
- package/src/generated/models/abstractSchemaLessBeanAllOf.ts +0 -220
- package/src/generated/models/abstractSchemaLessBeanAllOfSchemaLessData.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCharge.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfChargeAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCoupon.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCouponAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCreditNote.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCreditNoteAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCustomer.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfCustomerAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfDiscount.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfDiscountAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfInvoice.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfInvoiceAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfInvoiceLineItem.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfInvoiceLineItemAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfInvoicePayment.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfInvoicePaymentAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfMeter.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfMeterAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfPaymentMethod.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfPaymentMethodAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfPrice.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfPriceAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfProduct.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfProductAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfPromotionCode.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfPromotionCodeAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfRefund.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfRefundAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscription.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionItem.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionItemAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionSchedule.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionScheduleAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionSchedulePhase.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionSchedulePhaseAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionSchedulePhaseItem.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfSubscriptionSchedulePhaseItemAllOf.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfTaxId.ts +0 -220
- package/src/generated/models/abstractStripeBeanOfTaxIdAllOf.ts +0 -220
- package/src/generated/models/acceptTermsAndConditionsLocations.ts +0 -220
- package/src/generated/models/account.ts +0 -220
- package/src/generated/models/accountAddAccountBody.ts +0 -220
- package/src/generated/models/accountAddAccountParams.ts +0 -220
- package/src/generated/models/accountAddPersonToAccountBody.ts +7 -0
- package/src/generated/models/accountAllOf.ts +0 -220
- package/src/generated/models/accountAllOfBillingAddress.ts +0 -220
- package/src/generated/models/accountAllOfCurrentSubscription.ts +0 -220
- package/src/generated/models/accountAllOfLatestSubscription.ts +0 -220
- package/src/generated/models/accountAllOfMailingAddress.ts +0 -220
- package/src/generated/models/accountAllOfPaymentInformation.ts +0 -220
- package/src/generated/models/accountAllOfPrimaryContact.ts +0 -220
- package/src/generated/models/accountAllOfPrimaryStripeSubscription.ts +0 -220
- package/src/generated/models/accountAllOfPrimarySubscription.ts +0 -220
- package/src/generated/models/accountCancelAccountBody.ts +7 -0
- package/src/generated/models/accountCancelation.ts +0 -220
- package/src/generated/models/accountCancelationAllOf.ts +2 -220
- package/src/generated/models/accountCancelationAllOfAccount.ts +0 -220
- package/src/generated/models/accountCancelationAllOfLastPlan.ts +0 -220
- package/src/generated/models/accountExtendTrialBody.ts +7 -0
- package/src/generated/models/accountGetAllAccountsParams.ts +0 -220
- package/src/generated/models/accountRegistrationMode.ts +0 -220
- package/src/generated/models/accountStage.ts +2 -221
- package/src/generated/models/accountTaxId.ts +0 -220
- package/src/generated/models/accountTaxIdAllOf.ts +0 -220
- package/src/generated/models/accountTaxIdAllOfAccount.ts +0 -220
- package/src/generated/models/accountUpdateAccountBody.ts +7 -0
- package/src/generated/models/accountUpdateMembershipBody.ts +7 -0
- package/src/generated/models/activity.ts +0 -220
- package/src/generated/models/activityAddCustomActivityBody.ts +7 -0
- package/src/generated/models/activityAllOf.ts +0 -220
- package/src/generated/models/activityCRMDealTrigger.ts +0 -220
- package/src/generated/models/activityCRMDealTriggerAllOf.ts +0 -220
- package/src/generated/models/activityCRMDealTriggerAllOfDealPipelineStage.ts +0 -220
- package/src/generated/models/activityCriteria.ts +0 -220
- package/src/generated/models/activityCriteriaActivityType.ts +0 -220
- package/src/generated/models/activityGetAllParams.ts +21 -0
- package/src/generated/models/activityNotification.ts +0 -220
- package/src/generated/models/activityNotificationAllOf.ts +0 -220
- package/src/generated/models/activityType.ts +0 -220
- package/src/generated/models/addOn.ts +0 -220
- package/src/generated/models/addOnAllOf.ts +0 -220
- package/src/generated/models/address.ts +0 -220
- package/src/generated/models/addressAllOf.ts +0 -220
- package/src/generated/models/apiKey.ts +0 -220
- package/src/generated/models/apiKeyAllOf.ts +0 -225
- package/src/generated/models/apiKeyAllOfQcount.ts +0 -220
- package/src/generated/models/apiKeyType.ts +0 -220
- package/src/generated/models/article.ts +0 -220
- package/src/generated/models/articleAllOf.ts +0 -220
- package/src/generated/models/articleAllOfCategory.ts +0 -220
- package/src/generated/models/articleGetAllArticlesParams.ts +8 -0
- package/src/generated/models/backGroundTaskType.ts +3 -221
- package/src/generated/models/billSettings.ts +0 -220
- package/src/generated/models/billSettingsAllOf.ts +0 -220
- package/src/generated/models/billingAddOnType.ts +0 -220
- package/src/generated/models/billingDiscountDuration.ts +0 -220
- package/src/generated/models/billingInvoiceStatus.ts +0 -220
- package/src/generated/models/billingRenewalTerm.ts +0 -220
- package/src/generated/models/billingSystem.ts +0 -220
- package/src/generated/models/billingTransactionType.ts +0 -220
- package/src/generated/models/broadcastCampaign.ts +0 -220
- package/src/generated/models/broadcastCampaignAllOf.ts +4 -220
- package/src/generated/models/broadcastCampaignAllOfCampaign.ts +0 -220
- package/src/generated/models/broadcastCampaignAllOfMessage.ts +0 -220
- package/src/generated/models/broadcastCampaignStatus.ts +2 -221
- package/src/generated/models/campaign.ts +0 -220
- package/src/generated/models/campaignAddBroadcastEmailBody.ts +7 -0
- package/src/generated/models/campaignAllOf.ts +0 -220
- package/src/generated/models/campaignSendTestCampaignEmailBody.ts +7 -0
- package/src/generated/models/campaignType.ts +0 -220
- package/src/generated/models/campaignUpdateBroadcastEmailBody.ts +7 -0
- package/src/generated/models/cancelationStatus.ts +16 -0
- package/src/generated/models/case.ts +0 -220
- package/src/generated/models/caseAddCaseBody.ts +7 -0
- package/src/generated/models/caseAddCaseParams.ts +9 -0
- package/src/generated/models/caseAllOf.ts +0 -220
- package/src/generated/models/caseAllOfLastCaseHistory.ts +0 -220
- package/src/generated/models/caseGetAllCasesParams.ts +0 -220
- package/src/generated/models/caseHistory.ts +0 -220
- package/src/generated/models/caseHistoryAllOf.ts +0 -220
- package/src/generated/models/caseTag.ts +0 -220
- package/src/generated/models/caseTagAllOf.ts +0 -220
- package/src/generated/models/caseTagAllOfCase.ts +0 -220
- package/src/generated/models/caseTagAllOfTag.ts +0 -220
- package/src/generated/models/category.ts +0 -220
- package/src/generated/models/categoryAllOf.ts +0 -220
- package/src/generated/models/chatSettings.ts +0 -220
- package/src/generated/models/chatSettingsAllOf.ts +0 -220
- package/src/generated/models/clientApplication.ts +0 -220
- package/src/generated/models/clientApplicationAllOf.ts +0 -220
- package/src/generated/models/contentGroup.ts +0 -220
- package/src/generated/models/contentGroupAllOf.ts +0 -220
- package/src/generated/models/contentGroupItem.ts +0 -220
- package/src/generated/models/contentGroupItemAllOf.ts +0 -220
- package/src/generated/models/contentGroupItemMatchMode.ts +0 -220
- package/src/generated/models/crmSettings.ts +0 -220
- package/src/generated/models/crmSettingsAllOf.ts +2 -220
- package/src/generated/models/crmSettingsAllOfEmailList.ts +0 -220
- package/src/generated/models/database.ts +0 -220
- package/src/generated/models/databaseAllOf.ts +0 -220
- package/src/generated/models/databaseType.ts +0 -220
- package/src/generated/models/deal.ts +0 -220
- package/src/generated/models/dealAddDealBody.ts +7 -0
- package/src/generated/models/dealAllOf.ts +0 -220
- package/src/generated/models/dealAllOfAccount.ts +0 -220
- package/src/generated/models/dealAllOfDealPipelineStage.ts +0 -220
- package/src/generated/models/dealAllOfOwner.ts +0 -220
- package/src/generated/models/dealGetAllDealsParams.ts +14 -0
- package/src/generated/models/dealPerson.ts +0 -220
- package/src/generated/models/dealPersonAllOf.ts +0 -220
- package/src/generated/models/dealPersonAllOfDeal.ts +0 -220
- package/src/generated/models/dealPersonAllOfPerson.ts +0 -220
- package/src/generated/models/dealPipeline.ts +0 -220
- package/src/generated/models/dealPipelineAllOf.ts +0 -220
- package/src/generated/models/dealPipelineStage.ts +0 -220
- package/src/generated/models/dealPipelineStageAllOf.ts +0 -220
- package/src/generated/models/dealPipelineStageAllOfDealPipeline.ts +0 -220
- package/src/generated/models/dealUpdateDealBody.ts +7 -0
- package/src/generated/models/definition.ts +0 -220
- package/src/generated/models/definitionAllOf.ts +0 -220
- package/src/generated/models/deserializationStatus.ts +0 -220
- package/src/generated/models/discordRole.ts +0 -220
- package/src/generated/models/discordRoleAllOf.ts +0 -220
- package/src/generated/models/discordRoleAllOfDiscordServer.ts +0 -220
- package/src/generated/models/discordRolePlan.ts +0 -220
- package/src/generated/models/discordRolePlanAllOf.ts +0 -220
- package/src/generated/models/discordRolePlanAllOfDiscordRole.ts +0 -220
- package/src/generated/models/discordRolePlanAllOfPlan.ts +0 -220
- package/src/generated/models/discordServer.ts +0 -220
- package/src/generated/models/discordServerAllOf.ts +0 -220
- package/src/generated/models/discordUser.ts +0 -220
- package/src/generated/models/discordUserAllOf.ts +0 -220
- package/src/generated/models/discountCoupon.ts +0 -220
- package/src/generated/models/discountCouponAddDiscountCouponBody.ts +7 -0
- package/src/generated/models/discountCouponAllOf.ts +0 -220
- package/src/generated/models/discountCouponPlan.ts +0 -220
- package/src/generated/models/discountCouponPlanAllOf.ts +0 -220
- package/src/generated/models/discountCouponPlanAllOfDiscountCoupon.ts +0 -220
- package/src/generated/models/discountCouponPlanAllOfPlan.ts +0 -220
- package/src/generated/models/discountCouponSubscription.ts +0 -220
- package/src/generated/models/discountCouponSubscriptionAllOf.ts +0 -220
- package/src/generated/models/discountCouponSubscriptionAllOfDiscountCoupon.ts +0 -220
- package/src/generated/models/discountCouponSubscriptionAllOfSubscription.ts +0 -220
- package/src/generated/models/dnsEntry.ts +2 -220
- package/src/generated/models/dripCampaign.ts +0 -220
- package/src/generated/models/dripCampaignAllOf.ts +0 -220
- package/src/generated/models/dripCampaignAllOfCampaign.ts +0 -220
- package/src/generated/models/dripCampaignMessage.ts +0 -220
- package/src/generated/models/dripCampaignMessageAllOf.ts +0 -220
- package/src/generated/models/dripCampaignMessageAllOfDripCampaign.ts +0 -220
- package/src/generated/models/dripCampaignMessageAllOfMessage.ts +0 -220
- package/src/generated/models/emailLink.ts +0 -220
- package/src/generated/models/emailLinkAllOf.ts +0 -220
- package/src/generated/models/emailList.ts +0 -220
- package/src/generated/models/emailListAddSubscriptionBody.ts +7 -0
- package/src/generated/models/emailListAllOf.ts +0 -220
- package/src/generated/models/emailListGetAllSubscriptionsParams.ts +9 -0
- package/src/generated/models/emailListPerson.ts +0 -220
- package/src/generated/models/emailListPersonAllOf.ts +0 -220
- package/src/generated/models/emailListPersonAllOfEmailList.ts +0 -220
- package/src/generated/models/emailListPersonAllOfPerson.ts +0 -220
- package/src/generated/models/emailListSubscriberStatus.ts +0 -220
- package/src/generated/models/emailSubscriptionsPayload.ts +0 -220
- package/src/generated/models/entityType.ts +0 -220
- package/src/generated/models/extendRenewalParams.ts +0 -220
- package/src/generated/models/extendSubscriptionOptions.ts +5 -0
- package/src/generated/models/extendTrialParams.ts +0 -220
- package/src/generated/models/flatfileImportData.ts +0 -220
- package/src/generated/models/flatfileImportDataSchemalessData.ts +0 -220
- package/src/generated/models/index.ts +66 -221
- package/src/generated/models/invoice.ts +0 -220
- package/src/generated/models/invoiceAddInvoiceBody.ts +7 -0
- package/src/generated/models/invoiceAllOf.ts +8 -220
- package/src/generated/models/invoiceAllOfSubscription.ts +0 -220
- package/src/generated/models/invoiceCreditOptions.ts +0 -220
- package/src/generated/models/invoiceLineItem.ts +0 -220
- package/src/generated/models/invoiceLineItemAllOf.ts +0 -220
- package/src/generated/models/invoiceLineItemAllOfInvoice.ts +0 -220
- package/src/generated/models/invoiceLineItemAllOfLineItemType.ts +0 -220
- package/src/generated/models/invoiceStatusChangeOptions.ts +0 -220
- package/src/generated/models/jwtKey.ts +0 -220
- package/src/generated/models/jwtKeyAllOf.ts +0 -225
- package/src/generated/models/jwtKeyAllOfQcount.ts +0 -220
- package/src/generated/models/leadForm.ts +0 -220
- package/src/generated/models/leadFormAllOf.ts +0 -220
- package/src/generated/models/leadFormAllOfDealPipelineStage.ts +0 -220
- package/src/generated/models/leadFormSubmission.ts +0 -220
- package/src/generated/models/leadFormSubmissionAllOf.ts +0 -220
- package/src/generated/models/lineItemType.ts +0 -220
- package/src/generated/models/message.ts +0 -220
- package/src/generated/models/messageAllOf.ts +1 -220
- package/src/generated/models/messageAllOfTemplate.ts +0 -220
- package/src/generated/models/noCodeSettings.ts +0 -220
- package/src/generated/models/noCodeSettingsAllOf.ts +0 -220
- package/src/generated/models/noCodeSettingsAllOfAccount.ts +0 -220
- package/src/generated/models/oAuthService.ts +0 -220
- package/src/generated/models/passwordChangeModel.ts +0 -220
- package/src/generated/models/passwordPayload.ts +0 -220
- package/src/generated/models/pauseCollectionOptions.ts +0 -220
- package/src/generated/models/paymentInformation.ts +0 -220
- package/src/generated/models/paymentInformationAllOf.ts +0 -220
- package/src/generated/models/paymentInformationSavePaymentInformationBody.ts +7 -0
- package/src/generated/models/paymentsGatewayActivationStatus.ts +0 -220
- package/src/generated/models/paymentsMode.ts +0 -220
- package/src/generated/models/person.ts +0 -220
- package/src/generated/models/personAccount.ts +0 -220
- package/src/generated/models/personAccountAllOf.ts +0 -220
- package/src/generated/models/personAccountAllOfAccount.ts +0 -220
- package/src/generated/models/personAccountAllOfPerson.ts +0 -220
- package/src/generated/models/personAddPersonBody.ts +7 -0
- package/src/generated/models/personAllOf.ts +3 -233
- package/src/generated/models/personAllOfAccount.ts +0 -220
- package/src/generated/models/personAllOfDiscordUser.ts +0 -220
- package/src/generated/models/personAllOfMailingAddress.ts +0 -220
- package/src/generated/models/personForgotPasswordBody.ts +7 -0
- package/src/generated/models/personGetAllPeopleParams.ts +9 -0
- package/src/generated/models/personSegmentAddedActivityData.ts +11 -0
- package/src/generated/models/personSegmentAddedWebhookPayload.ts +123 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadAccount.ts +141 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadAccountAccountStage.ts +20 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadDealPeopleItem.ts +15 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadDiscordUser.ts +35 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadEmailListPersonItem.ts +48 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadEmailListPersonItemEmailListSubscriberStatus.ts +15 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadLeadFormSubmissionsItem.ts +21 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadMailingAddress.ts +58 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadOAuthIntegrationStatus.ts +13 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadPersonAccountItem.ts +20 -0
- package/src/generated/models/personSegmentAddedWebhookPayloadPersonAccountItemAccount.ts +14 -0
- package/src/generated/models/personSegmentRemovedActivityData.ts +11 -0
- package/src/generated/models/personSegmentRemovedWebhookPayload.ts +123 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadAccount.ts +141 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadAccountAccountStage.ts +20 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadDealPeopleItem.ts +15 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadDiscordUser.ts +35 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadEmailListPersonItem.ts +48 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadEmailListPersonItemEmailListSubscriberStatus.ts +15 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadLeadFormSubmissionsItem.ts +21 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadMailingAddress.ts +58 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadOAuthIntegrationStatus.ts +13 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadPersonAccountItem.ts +20 -0
- package/src/generated/models/personSegmentRemovedWebhookPayloadPersonAccountItemAccount.ts +14 -0
- package/src/generated/models/personSetTemporaryPasswordBody.ts +7 -0
- package/src/generated/models/personUpdatePersonBody.ts +7 -0
- package/src/generated/models/plan.ts +0 -220
- package/src/generated/models/planAddOn.ts +0 -220
- package/src/generated/models/planAddOnAllOf.ts +0 -220
- package/src/generated/models/planAddOnAllOfAddOn.ts +0 -220
- package/src/generated/models/planAddOnAllOfPlan.ts +0 -220
- package/src/generated/models/planAllOf.ts +0 -220
- package/src/generated/models/planAllOfPlanFamily.ts +0 -220
- package/src/generated/models/planFamily.ts +0 -220
- package/src/generated/models/planFamilyAllOf.ts +0 -220
- package/src/generated/models/processCodePayload.ts +0 -220
- package/src/generated/models/qcount.ts +1 -221
- package/src/generated/models/qcountAllOf.ts +0 -240
- package/src/generated/models/qcountConfig.ts +0 -220
- package/src/generated/models/qcountConfigAllOf.ts +0 -220
- package/src/generated/models/qcountConfigSettingType.ts +2 -234
- package/src/generated/models/qcountStatus.ts +0 -220
- package/src/generated/models/registrationField.ts +0 -220
- package/src/generated/models/resendEmailsRequest.ts +6 -0
- package/src/generated/models/segment.ts +0 -220
- package/src/generated/models/segmentAllOf.ts +0 -220
- package/src/generated/models/segmentPerson.ts +0 -220
- package/src/generated/models/segmentPersonAllOf.ts +0 -220
- package/src/generated/models/segmentPersonAllOfPerson.ts +0 -220
- package/src/generated/models/segmentPersonAllOfSegment.ts +0 -220
- package/src/generated/models/sendGridDomainAuthentication.ts +0 -220
- package/src/generated/models/sendGridDomainAuthenticationAllOf.ts +1 -220
- package/src/generated/models/sendTestEmailRequest.ts +0 -220
- package/src/generated/models/sendTestEmailRequest2.ts +0 -220
- package/src/generated/models/sendTestEmailRequest2BroadcastCampaign.ts +0 -220
- package/src/generated/models/sendTestEmailRequestDripCampaign.ts +0 -220
- package/src/generated/models/sessionFlowDataAfterCompletionHostedConfirmationOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataAfterCompletionOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataAfterCompletionOptionsHostedConfirmation.ts +0 -220
- package/src/generated/models/sessionFlowDataAfterCompletionOptionsRedirect.ts +0 -220
- package/src/generated/models/sessionFlowDataAfterCompletionRedirectOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataOptionsAfterCompletion.ts +0 -220
- package/src/generated/models/sessionFlowDataOptionsSubscriptionCancel.ts +0 -220
- package/src/generated/models/sessionFlowDataOptionsSubscriptionUpdate.ts +0 -220
- package/src/generated/models/sessionFlowDataOptionsSubscriptionUpdateConfirm.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionCancelOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionCancelOptionsRetention.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionCancelRetentionCouponOfferOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionCancelRetentionOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionCancelRetentionOptionsCouponOffer.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionUpdateConfirmDiscountOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionUpdateConfirmItemOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionUpdateConfirmOptions.ts +0 -220
- package/src/generated/models/sessionFlowDataSubscriptionUpdateOptions.ts +0 -220
- package/src/generated/models/setupIntent.ts +2 -220
- package/src/generated/models/setupIntentBillingAddress.ts +0 -220
- package/src/generated/models/slackChannelSetting.ts +0 -220
- package/src/generated/models/spamStatus.ts +0 -220
- package/src/generated/models/stripeBillingSyncParams.ts +0 -220
- package/src/generated/models/stripeCharge.ts +0 -220
- package/src/generated/models/stripeChargeAllOf.ts +0 -220
- package/src/generated/models/stripeChargeAllOfAccount.ts +0 -220
- package/src/generated/models/stripeChargeAllOfStripePaymentMethod.ts +0 -220
- package/src/generated/models/stripeCheckoutParams.ts +0 -220
- package/src/generated/models/stripeCoupon.ts +0 -220
- package/src/generated/models/stripeCouponAllOf.ts +0 -220
- package/src/generated/models/stripeCreditNote.ts +0 -220
- package/src/generated/models/stripeCreditNoteAllOf.ts +9 -220
- package/src/generated/models/stripeDiscount.ts +0 -220
- package/src/generated/models/stripeDiscountAllOf.ts +0 -220
- package/src/generated/models/stripeDiscountAllOfAccount.ts +0 -220
- package/src/generated/models/stripeDiscountAllOfStripeCoupon.ts +0 -220
- package/src/generated/models/stripeDiscountAllOfStripeInvoice.ts +0 -220
- package/src/generated/models/stripeDiscountAllOfStripePromotionCode.ts +0 -220
- package/src/generated/models/stripeDiscountAllOfStripeSubscription.ts +0 -220
- package/src/generated/models/stripeInvoice.ts +0 -220
- package/src/generated/models/stripeInvoiceAllOf.ts +9 -220
- package/src/generated/models/stripeInvoiceAllOfAccount.ts +0 -220
- package/src/generated/models/stripeInvoiceDiscountAmount.ts +0 -220
- package/src/generated/models/stripeInvoiceDiscountAmountAllOf.ts +0 -220
- package/src/generated/models/stripeInvoiceDiscountAmountAllOfStripeDiscount.ts +0 -220
- package/src/generated/models/stripeInvoiceDiscountAmountAllOfStripeInvoice.ts +0 -220
- package/src/generated/models/stripeInvoiceLineItem.ts +0 -220
- package/src/generated/models/stripeInvoiceLineItemAllOf.ts +0 -220
- package/src/generated/models/stripeInvoiceLineItemAllOfStripeInvoice.ts +0 -220
- package/src/generated/models/stripeInvoiceLineItemAllOfStripePrice.ts +0 -220
- package/src/generated/models/stripeInvoicePayment.ts +0 -220
- package/src/generated/models/stripeInvoicePaymentAllOf.ts +0 -220
- package/src/generated/models/stripeInvoicePaymentAllOfStripeInvoice.ts +0 -220
- package/src/generated/models/stripeMeter.ts +0 -220
- package/src/generated/models/stripeMeterAllOf.ts +0 -220
- package/src/generated/models/stripePaymentMethod.ts +0 -220
- package/src/generated/models/stripePaymentMethodAllOf.ts +0 -220
- package/src/generated/models/stripePaymentMethodAllOfAccount.ts +0 -220
- package/src/generated/models/stripePrice.ts +0 -220
- package/src/generated/models/stripePriceAllOf.ts +2 -220
- package/src/generated/models/stripePriceAllOfRecurringStripeMeter.ts +0 -220
- package/src/generated/models/stripePriceAllOfStripeProduct.ts +0 -220
- package/src/generated/models/stripeProduct.ts +0 -220
- package/src/generated/models/stripeProductAllOf.ts +5 -220
- package/src/generated/models/stripeProductAllOfStripeProductFamily.ts +0 -220
- package/src/generated/models/stripeProductCrossSell.ts +0 -220
- package/src/generated/models/stripeProductCrossSellAllOf.ts +0 -220
- package/src/generated/models/stripeProductCrossSellAllOfCrossSellProduct.ts +0 -220
- package/src/generated/models/stripeProductCrossSellAllOfStripeProduct.ts +0 -220
- package/src/generated/models/stripeProductFamily.ts +0 -220
- package/src/generated/models/stripeProductFamilyAllOf.ts +0 -220
- package/src/generated/models/stripePromotionCode.ts +0 -220
- package/src/generated/models/stripePromotionCodeAllOf.ts +0 -220
- package/src/generated/models/stripePromotionCodeAllOfAccount.ts +0 -220
- package/src/generated/models/stripePromotionCodeAllOfStripeCoupon.ts +0 -220
- package/src/generated/models/stripeRefund.ts +0 -220
- package/src/generated/models/stripeRefundAllOf.ts +0 -220
- package/src/generated/models/stripeRefundAllOfStripeCharge.ts +0 -220
- package/src/generated/models/stripeSubscription.ts +0 -220
- package/src/generated/models/stripeSubscriptionAllOf.ts +4 -220
- package/src/generated/models/stripeSubscriptionAllOfAccount.ts +0 -220
- package/src/generated/models/stripeSubscriptionAllOfCurrentStripeSubscriptionSchedule.ts +0 -220
- package/src/generated/models/stripeSubscriptionAllOfStripeSubscriptionCancellation.ts +0 -220
- package/src/generated/models/stripeSubscriptionCancellation.ts +0 -220
- package/src/generated/models/stripeSubscriptionCancellationAllOf.ts +0 -220
- package/src/generated/models/stripeSubscriptionItem.ts +0 -220
- package/src/generated/models/stripeSubscriptionItemAllOf.ts +0 -220
- package/src/generated/models/stripeSubscriptionItemAllOfStripePrice.ts +0 -220
- package/src/generated/models/stripeSubscriptionItemAllOfStripeSubscription.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedule.ts +0 -220
- package/src/generated/models/stripeSubscriptionScheduleAllOf.ts +0 -220
- package/src/generated/models/stripeSubscriptionScheduleAllOfStripeSubscription.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedulePhase.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedulePhaseAllOf.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedulePhaseAllOfStripeSubscriptionSchedule.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedulePhaseItem.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedulePhaseItemAllOf.ts +0 -220
- package/src/generated/models/stripeSubscriptionSchedulePhaseItemAllOfStripePrice.ts +0 -220
- package/src/generated/models/subscription.ts +0 -220
- package/src/generated/models/subscriptionAddOn.ts +0 -220
- package/src/generated/models/subscriptionAddOnAddSubscriptionAddOnBody.ts +7 -0
- package/src/generated/models/subscriptionAddOnAllOf.ts +0 -220
- package/src/generated/models/subscriptionAddOnAllOfAddOn.ts +0 -220
- package/src/generated/models/subscriptionAddOnAllOfSubscription.ts +0 -220
- package/src/generated/models/subscriptionAllOf.ts +0 -220
- package/src/generated/models/subscriptionAllOfAccount.ts +0 -220
- package/src/generated/models/subscriptionAllOfLatestInvoice.ts +0 -220
- package/src/generated/models/subscriptionAllOfPlan.ts +0 -220
- package/src/generated/models/subscriptionChangeSubscriptionBody.ts +7 -0
- package/src/generated/models/subscriptionChangeSubscriptionParams.ts +9 -0
- package/src/generated/models/subscriptionChangeSubscriptionPreviewBody.ts +7 -0
- package/src/generated/models/subscriptionChangeSubscriptionPreviewParams.ts +9 -0
- package/src/generated/models/subscriptionFirstTimeSubscriptionBody.ts +7 -0
- package/src/generated/models/subscriptionFirstTimeSubscriptionPreviewBody.ts +7 -0
- package/src/generated/models/subscriptionFirstTimeSubscriptionPreviewParams.ts +9 -0
- package/src/generated/models/subscriptionSetSubscriptionUpgradeRequiredBody.ts +7 -0
- package/src/generated/models/supportArticleStatus.ts +0 -220
- package/src/generated/models/supportCaseHistoryType.ts +0 -220
- package/src/generated/models/supportCaseSource.ts +0 -220
- package/src/generated/models/supportCaseStatus.ts +0 -220
- package/src/generated/models/supportSettings.ts +0 -220
- package/src/generated/models/supportSettingsAllOf.ts +0 -220
- package/src/generated/models/tag.ts +0 -220
- package/src/generated/models/tagAllOf.ts +0 -220
- package/src/generated/models/tagColor.ts +0 -220
- package/src/generated/models/tagUidList.ts +0 -220
- package/src/generated/models/task.ts +0 -220
- package/src/generated/models/taskAllOf.ts +0 -220
- package/src/generated/models/taskAllOfAccount.ts +0 -220
- package/src/generated/models/taskAllOfAssignee.ts +0 -220
- package/src/generated/models/taskAllOfDeal.ts +0 -220
- package/src/generated/models/taskAllOfPerson.ts +0 -220
- package/src/generated/models/taskAllOfType.ts +0 -220
- package/src/generated/models/taskStatus.ts +0 -220
- package/src/generated/models/taskType.ts +0 -220
- package/src/generated/models/taskTypeAllOf.ts +0 -220
- package/src/generated/models/taxRate.ts +0 -220
- package/src/generated/models/taxRateAllOf.ts +0 -220
- package/src/generated/models/template.ts +0 -220
- package/src/generated/models/templateAllOf.ts +0 -220
- package/src/generated/models/temporaryPasswordModel.ts +0 -220
- package/src/generated/models/transaction.ts +0 -220
- package/src/generated/models/transactionAllOf.ts +0 -220
- package/src/generated/models/transactionAllOfAccount.ts +0 -220
- package/src/generated/models/transactionAllOfInvoice.ts +0 -220
- package/src/generated/models/transactionsAddPaymentTransactionBody.ts +7 -0
- package/src/generated/models/translation.ts +0 -220
- package/src/generated/models/translationAllOf.ts +0 -220
- package/src/generated/models/usage.ts +0 -220
- package/src/generated/models/usageAddUsageBody.ts +7 -0
- package/src/generated/models/usageAllOf.ts +0 -220
- package/src/generated/models/usageAllOfInvoice.ts +0 -220
- package/src/generated/models/webflowCollection.ts +0 -220
- package/src/generated/models/webflowConfiguration.ts +0 -220
- package/src/generated/models/webflowConfigurationSyncConfiguration.ts +0 -220
- package/src/generated/models/webflowField.ts +0 -220
- package/src/generated/models/webflowFieldMapping.ts +0 -220
- package/src/generated/models/webflowFieldMappingWebflowField.ts +0 -220
- package/src/generated/models/webflowSite.ts +0 -220
- package/src/generated/models/webflowSyncConfiguration.ts +0 -220
- package/src/generated/models/webflowSyncConfigurationCollection.ts +0 -220
- package/src/generated/models/webflowSyncConfigurationSite.ts +0 -220
- package/src/generated/models/webflowSyncError.ts +0 -220
- package/src/generated/models/webflowSyncItem.ts +0 -220
- package/src/generated/models/webflowSyncLog.ts +0 -220
- package/src/generated/support/support.ts +341 -221
- package/src/index.ts +2 -0
- package/src/generated/models/qcountAllOfLogDatabase.ts +0 -227
- package/src/generated/zod.ts +0 -191087
|
@@ -1,224 +1,4 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v7.21.0 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Outseta API
|
|
6
|
-
* # Outseta REST API
|
|
7
|
-
|
|
8
|
-
The Outseta REST API enables you to perform a variety of powerful tasks such as creating and updating people, accounts, subscriptions, and invoices. Outseta uses standard HTTP protocols within a compliant architecture that is simple to integrate. You can use the API both on the client or the server side; see the authentication section below for each scenario.
|
|
9
|
-
|
|
10
|
-
**Base URL:** `https://{your-domain}.outseta.com/api/v1/`
|
|
11
|
-
|
|
12
|
-
## API Guidelines
|
|
13
|
-
|
|
14
|
-
1. The API will only respond to secured communication done over **HTTPS**. HTTP requests will be sent a `301` redirect to the corresponding HTTPS resource.
|
|
15
|
-
2. Responses are sent in **JSON** format. In case the API request results in an error, it is represented by an `"error": {}` key in the JSON response.
|
|
16
|
-
3. The request method (verb) determines the nature of the action: **GET** fetches data, **POST** creates new records, **PUT** updates existing records.
|
|
17
|
-
4. The API responds with appropriate **HTTP status codes** for all requests.
|
|
18
|
-
5. Use `donotlog=1` as a query parameter on any API call where you don't want the action to be logged in the activity log.
|
|
19
|
-
|
|
20
|
-
## Authentication
|
|
21
|
-
|
|
22
|
-
All API requests require authentication via one of two methods:
|
|
23
|
-
|
|
24
|
-
### Server-Side (API Keys)
|
|
25
|
-
|
|
26
|
-
Use API keys for server-to-server integrations. Create keys at **Settings > Integrations > API Keys**. Make sure to record the secret key when you create it.
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
Authorization: Outseta {api_key}:{api_secret}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**Example:**
|
|
33
|
-
```
|
|
34
|
-
Authorization: Outseta ce08fd5a-e1ee-4472-9c5f-b7575d8369b2:74fc1d2242a4eb7336d34b0e40cfbc5f
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
> **Warning:** Never expose API keys in client-side code. The API key and secret combined give full access to all data in your account.
|
|
38
|
-
|
|
39
|
-
### Client-Side (Bearer Token)
|
|
40
|
-
|
|
41
|
-
Do **not** use API keys on the client side — they can be easily copied. Instead, obtain a JWT access token by calling the `POST /tokens` endpoint from the server side with your credentials, then use it on the client:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
Authorization: bearer {access_token}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Tokens are JWTs containing claims such as `PersonUid`, `AccountUid`, and subscription details. Tokens expire after approximately one year.
|
|
48
|
-
|
|
49
|
-
Verify tokens server-side using Outseta's [JWKS endpoint](https://{your-domain}.outseta.com/.well-known/jwks.json).
|
|
50
|
-
|
|
51
|
-
## Field Selection
|
|
52
|
-
|
|
53
|
-
When you make an API request, you'll automatically get all the basic information from the main object and its immediate child objects. Referenced objects beyond the first level are returned as `null`.
|
|
54
|
-
|
|
55
|
-
Change this behavior using the `fields` query parameter:
|
|
56
|
-
|
|
57
|
-
- **Go deeper** — Request fields lower down in the object tree: `?fields=CurrentSubscription.Plan.*`
|
|
58
|
-
- **Go lighter** — Request only the essentials for faster performance: `?fields=Uid,Name`
|
|
59
|
-
- **Combination** — `?fields=Uid,Name,CurrentSubscription.Plan.Uid`
|
|
60
|
-
- **Wildcard** — Use `*` to get all fields in an object: `?fields=*` or `?fields=CurrentSubscription.Plan.*`
|
|
61
|
-
|
|
62
|
-
> **Tip:** When expanding nested paths, include `*` and intermediate path segments (e.g., `PersonAccount.*`) to preserve root-level and intermediate fields.
|
|
63
|
-
|
|
64
|
-
**Examples:**
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
# Get the current subscription plan UID for an account
|
|
68
|
-
GET /crm/accounts/{uid}?fields=CurrentSubscription.Plan.Uid
|
|
69
|
-
|
|
70
|
-
# Get the account UID and plan UID for a list of accounts
|
|
71
|
-
GET /crm/accounts?fields=Uid,CurrentSubscription.Plan.Uid
|
|
72
|
-
|
|
73
|
-
# Get the full plan object for an account's current subscription
|
|
74
|
-
GET /crm/accounts/{uid}?fields=CurrentSubscription.Plan.*
|
|
75
|
-
|
|
76
|
-
# Get a person with their account and subscription info
|
|
77
|
-
GET /crm/people/{uid}?fields=Uid,PersonAccount.Account.CurrentSubscription.Plan.Uid
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
If your request includes fields from a child object you will be limited to retrieving **25 items** per page. The maximum for requests not expanding child object fields is **100 items**.
|
|
81
|
-
|
|
82
|
-
## Pagination
|
|
83
|
-
|
|
84
|
-
List endpoints return paginated results with a `metadata` object and an `items` array:
|
|
85
|
-
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"metadata": {
|
|
89
|
-
"limit": 25,
|
|
90
|
-
"offset": 0,
|
|
91
|
-
"total": 142
|
|
92
|
-
},
|
|
93
|
-
"items": [ ... ]
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
| Parameter | Type | Default | Description |
|
|
98
|
-
|-----------|------|---------|-------------|
|
|
99
|
-
| `offset` | integer | `0` | Page number (zero-based) |
|
|
100
|
-
| `limit` | integer | `25` | Maximum number of records per page |
|
|
101
|
-
|
|
102
|
-
**Examples:**
|
|
103
|
-
```
|
|
104
|
-
?offset=0&limit=20 # returns results 1-20
|
|
105
|
-
?offset=1&limit=20 # returns results 21-40
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Sorting
|
|
109
|
-
|
|
110
|
-
Sort results using the `orderBy` parameter with a property name and direction:
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
?orderBy=PropertyName+DESC
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Filtering
|
|
117
|
-
|
|
118
|
-
Filter results by passing entity properties as query parameters.
|
|
119
|
-
|
|
120
|
-
### Basic Filtering
|
|
121
|
-
|
|
122
|
-
Filter on any field using the field name as a query parameter:
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
GET /crm/people?Email=john@example.com
|
|
126
|
-
GET /crm/accounts?AccountStage=2
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Wildcard Matching
|
|
130
|
-
|
|
131
|
-
| Pattern | Match Type | Example |
|
|
132
|
-
|---------|-----------|---------|
|
|
133
|
-
| `*value` | Ends with | `?Email=*@example.com` |
|
|
134
|
-
| `value*` | Starts with | `?Name=Acme*` |
|
|
135
|
-
| `*value*` | Contains | `?Name=*corp*` |
|
|
136
|
-
|
|
137
|
-
### Comparison Operators
|
|
138
|
-
|
|
139
|
-
For advanced filtering, append comparison operators to field names:
|
|
140
|
-
|
|
141
|
-
| Operator | Description | Example |
|
|
142
|
-
|----------|-------------|---------|
|
|
143
|
-
| `__gt` | Greater than | `Created__gt=2024-01-01` |
|
|
144
|
-
| `__gte` | Greater than or equal | `Amount__gte=100` |
|
|
145
|
-
| `__lt` | Less than | `Created__lt=2024-12-31` |
|
|
146
|
-
| `__lte` | Less than or equal | `Amount__lte=500` |
|
|
147
|
-
| `__ne` | Not equal | `Status__ne=Active` |
|
|
148
|
-
| `__isnull` | Is null (true/false) | `ProfileImageS3Url__isnull=true` |
|
|
149
|
-
|
|
150
|
-
**Examples:**
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
# Date filtering
|
|
154
|
-
GET /crm/accounts?Created__gt=2024-01-01
|
|
155
|
-
GET /billing/subscriptions?EndDate__lt=2024-08-01
|
|
156
|
-
|
|
157
|
-
# Numeric filtering
|
|
158
|
-
GET /billing/invoices?Amount__gte=1000
|
|
159
|
-
|
|
160
|
-
# Null value filtering
|
|
161
|
-
GET /crm/people?ProfileImageS3Url__isnull=true
|
|
162
|
-
|
|
163
|
-
# Multiple filters combined with field selection
|
|
164
|
-
GET /billing/subscriptions?StartDate__gte=2024-01-01&Rate__lt=100&DiscountCode__isnull=false&fields=Uid,Amount,StartDate,DiscountCode,Plan.Name
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Account Billing Stages
|
|
168
|
-
|
|
169
|
-
Account stages reflect the financial standing of each account and are not directly editable — they change automatically based on subscription activity.
|
|
170
|
-
|
|
171
|
-
| Value | Stage | Description |
|
|
172
|
-
|-------|-------|-------------|
|
|
173
|
-
| `2` | Trialing | Currently on a free trial or free plan |
|
|
174
|
-
| `3` | Subscribing | Active paid subscription (contributes to MRR) |
|
|
175
|
-
| `4` | Canceling | Customer has indicated intent to cancel |
|
|
176
|
-
| `5` | Expired | Subscription has ended after cancellation |
|
|
177
|
-
| `6` | Trial Expired | Free trial ended without conversion to paid |
|
|
178
|
-
|
|
179
|
-
Filter by stage: `GET /crm/accounts?AccountStage=3` returns all actively subscribing accounts.
|
|
180
|
-
|
|
181
|
-
## Webhooks
|
|
182
|
-
|
|
183
|
-
Use **Activity Notifications** to receive real-time callbacks when events occur in Outseta. Configure webhooks at **Settings > Notifications**.
|
|
184
|
-
|
|
185
|
-
Common events include:
|
|
186
|
-
- `Person Created` / `Person Updated`
|
|
187
|
-
- `Account Created` / `Account Updated`
|
|
188
|
-
- `Subscription Created` / `Subscription Updated`
|
|
189
|
-
|
|
190
|
-
Always verify webhook signatures using the SHA256 secret provided in the Outseta dashboard.
|
|
191
|
-
|
|
192
|
-
## Error Responses
|
|
193
|
-
|
|
194
|
-
| Status Code | Description |
|
|
195
|
-
|-------------|-------------|
|
|
196
|
-
| `200` | Success |
|
|
197
|
-
| `301` | Redirect — HTTP requests are redirected to HTTPS |
|
|
198
|
-
| `400` | Bad request — invalid parameters or Uid format |
|
|
199
|
-
| `401` | Unauthorized — missing or invalid authentication |
|
|
200
|
-
| `404` | Entity not found |
|
|
201
|
-
| `4XX` / `5XX` | Client or server error |
|
|
202
|
-
|
|
203
|
-
Validation errors return a JSON body with `ErrorMessage` and `PropertyName` fields:
|
|
204
|
-
|
|
205
|
-
```json
|
|
206
|
-
{
|
|
207
|
-
"ErrorMessage": "Invalid company email",
|
|
208
|
-
"PropertyName": "Email"
|
|
209
|
-
}
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
## Rate Limits
|
|
213
|
-
|
|
214
|
-
Requests authorized by an API Key should not exceed **4 requests/second**.
|
|
215
|
-
|
|
216
|
-
## Support
|
|
217
|
-
|
|
218
|
-
For help regarding the Outseta API please email [support@outseta.com](mailto:support@outseta.com).
|
|
219
|
-
|
|
220
|
-
* OpenAPI spec version: v1
|
|
221
|
-
*/
|
|
222
2
|
|
|
223
3
|
/**
|
|
224
4
|
* `1` - Equals, `2` - StartsWith
|
|
@@ -1,224 +1,4 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v7.21.0 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Outseta API
|
|
6
|
-
* # Outseta REST API
|
|
7
|
-
|
|
8
|
-
The Outseta REST API enables you to perform a variety of powerful tasks such as creating and updating people, accounts, subscriptions, and invoices. Outseta uses standard HTTP protocols within a compliant architecture that is simple to integrate. You can use the API both on the client or the server side; see the authentication section below for each scenario.
|
|
9
|
-
|
|
10
|
-
**Base URL:** `https://{your-domain}.outseta.com/api/v1/`
|
|
11
|
-
|
|
12
|
-
## API Guidelines
|
|
13
|
-
|
|
14
|
-
1. The API will only respond to secured communication done over **HTTPS**. HTTP requests will be sent a `301` redirect to the corresponding HTTPS resource.
|
|
15
|
-
2. Responses are sent in **JSON** format. In case the API request results in an error, it is represented by an `"error": {}` key in the JSON response.
|
|
16
|
-
3. The request method (verb) determines the nature of the action: **GET** fetches data, **POST** creates new records, **PUT** updates existing records.
|
|
17
|
-
4. The API responds with appropriate **HTTP status codes** for all requests.
|
|
18
|
-
5. Use `donotlog=1` as a query parameter on any API call where you don't want the action to be logged in the activity log.
|
|
19
|
-
|
|
20
|
-
## Authentication
|
|
21
|
-
|
|
22
|
-
All API requests require authentication via one of two methods:
|
|
23
|
-
|
|
24
|
-
### Server-Side (API Keys)
|
|
25
|
-
|
|
26
|
-
Use API keys for server-to-server integrations. Create keys at **Settings > Integrations > API Keys**. Make sure to record the secret key when you create it.
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
Authorization: Outseta {api_key}:{api_secret}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**Example:**
|
|
33
|
-
```
|
|
34
|
-
Authorization: Outseta ce08fd5a-e1ee-4472-9c5f-b7575d8369b2:74fc1d2242a4eb7336d34b0e40cfbc5f
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
> **Warning:** Never expose API keys in client-side code. The API key and secret combined give full access to all data in your account.
|
|
38
|
-
|
|
39
|
-
### Client-Side (Bearer Token)
|
|
40
|
-
|
|
41
|
-
Do **not** use API keys on the client side — they can be easily copied. Instead, obtain a JWT access token by calling the `POST /tokens` endpoint from the server side with your credentials, then use it on the client:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
Authorization: bearer {access_token}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Tokens are JWTs containing claims such as `PersonUid`, `AccountUid`, and subscription details. Tokens expire after approximately one year.
|
|
48
|
-
|
|
49
|
-
Verify tokens server-side using Outseta's [JWKS endpoint](https://{your-domain}.outseta.com/.well-known/jwks.json).
|
|
50
|
-
|
|
51
|
-
## Field Selection
|
|
52
|
-
|
|
53
|
-
When you make an API request, you'll automatically get all the basic information from the main object and its immediate child objects. Referenced objects beyond the first level are returned as `null`.
|
|
54
|
-
|
|
55
|
-
Change this behavior using the `fields` query parameter:
|
|
56
|
-
|
|
57
|
-
- **Go deeper** — Request fields lower down in the object tree: `?fields=CurrentSubscription.Plan.*`
|
|
58
|
-
- **Go lighter** — Request only the essentials for faster performance: `?fields=Uid,Name`
|
|
59
|
-
- **Combination** — `?fields=Uid,Name,CurrentSubscription.Plan.Uid`
|
|
60
|
-
- **Wildcard** — Use `*` to get all fields in an object: `?fields=*` or `?fields=CurrentSubscription.Plan.*`
|
|
61
|
-
|
|
62
|
-
> **Tip:** When expanding nested paths, include `*` and intermediate path segments (e.g., `PersonAccount.*`) to preserve root-level and intermediate fields.
|
|
63
|
-
|
|
64
|
-
**Examples:**
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
# Get the current subscription plan UID for an account
|
|
68
|
-
GET /crm/accounts/{uid}?fields=CurrentSubscription.Plan.Uid
|
|
69
|
-
|
|
70
|
-
# Get the account UID and plan UID for a list of accounts
|
|
71
|
-
GET /crm/accounts?fields=Uid,CurrentSubscription.Plan.Uid
|
|
72
|
-
|
|
73
|
-
# Get the full plan object for an account's current subscription
|
|
74
|
-
GET /crm/accounts/{uid}?fields=CurrentSubscription.Plan.*
|
|
75
|
-
|
|
76
|
-
# Get a person with their account and subscription info
|
|
77
|
-
GET /crm/people/{uid}?fields=Uid,PersonAccount.Account.CurrentSubscription.Plan.Uid
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
If your request includes fields from a child object you will be limited to retrieving **25 items** per page. The maximum for requests not expanding child object fields is **100 items**.
|
|
81
|
-
|
|
82
|
-
## Pagination
|
|
83
|
-
|
|
84
|
-
List endpoints return paginated results with a `metadata` object and an `items` array:
|
|
85
|
-
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"metadata": {
|
|
89
|
-
"limit": 25,
|
|
90
|
-
"offset": 0,
|
|
91
|
-
"total": 142
|
|
92
|
-
},
|
|
93
|
-
"items": [ ... ]
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
| Parameter | Type | Default | Description |
|
|
98
|
-
|-----------|------|---------|-------------|
|
|
99
|
-
| `offset` | integer | `0` | Page number (zero-based) |
|
|
100
|
-
| `limit` | integer | `25` | Maximum number of records per page |
|
|
101
|
-
|
|
102
|
-
**Examples:**
|
|
103
|
-
```
|
|
104
|
-
?offset=0&limit=20 # returns results 1-20
|
|
105
|
-
?offset=1&limit=20 # returns results 21-40
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Sorting
|
|
109
|
-
|
|
110
|
-
Sort results using the `orderBy` parameter with a property name and direction:
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
?orderBy=PropertyName+DESC
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Filtering
|
|
117
|
-
|
|
118
|
-
Filter results by passing entity properties as query parameters.
|
|
119
|
-
|
|
120
|
-
### Basic Filtering
|
|
121
|
-
|
|
122
|
-
Filter on any field using the field name as a query parameter:
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
GET /crm/people?Email=john@example.com
|
|
126
|
-
GET /crm/accounts?AccountStage=2
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Wildcard Matching
|
|
130
|
-
|
|
131
|
-
| Pattern | Match Type | Example |
|
|
132
|
-
|---------|-----------|---------|
|
|
133
|
-
| `*value` | Ends with | `?Email=*@example.com` |
|
|
134
|
-
| `value*` | Starts with | `?Name=Acme*` |
|
|
135
|
-
| `*value*` | Contains | `?Name=*corp*` |
|
|
136
|
-
|
|
137
|
-
### Comparison Operators
|
|
138
|
-
|
|
139
|
-
For advanced filtering, append comparison operators to field names:
|
|
140
|
-
|
|
141
|
-
| Operator | Description | Example |
|
|
142
|
-
|----------|-------------|---------|
|
|
143
|
-
| `__gt` | Greater than | `Created__gt=2024-01-01` |
|
|
144
|
-
| `__gte` | Greater than or equal | `Amount__gte=100` |
|
|
145
|
-
| `__lt` | Less than | `Created__lt=2024-12-31` |
|
|
146
|
-
| `__lte` | Less than or equal | `Amount__lte=500` |
|
|
147
|
-
| `__ne` | Not equal | `Status__ne=Active` |
|
|
148
|
-
| `__isnull` | Is null (true/false) | `ProfileImageS3Url__isnull=true` |
|
|
149
|
-
|
|
150
|
-
**Examples:**
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
# Date filtering
|
|
154
|
-
GET /crm/accounts?Created__gt=2024-01-01
|
|
155
|
-
GET /billing/subscriptions?EndDate__lt=2024-08-01
|
|
156
|
-
|
|
157
|
-
# Numeric filtering
|
|
158
|
-
GET /billing/invoices?Amount__gte=1000
|
|
159
|
-
|
|
160
|
-
# Null value filtering
|
|
161
|
-
GET /crm/people?ProfileImageS3Url__isnull=true
|
|
162
|
-
|
|
163
|
-
# Multiple filters combined with field selection
|
|
164
|
-
GET /billing/subscriptions?StartDate__gte=2024-01-01&Rate__lt=100&DiscountCode__isnull=false&fields=Uid,Amount,StartDate,DiscountCode,Plan.Name
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Account Billing Stages
|
|
168
|
-
|
|
169
|
-
Account stages reflect the financial standing of each account and are not directly editable — they change automatically based on subscription activity.
|
|
170
|
-
|
|
171
|
-
| Value | Stage | Description |
|
|
172
|
-
|-------|-------|-------------|
|
|
173
|
-
| `2` | Trialing | Currently on a free trial or free plan |
|
|
174
|
-
| `3` | Subscribing | Active paid subscription (contributes to MRR) |
|
|
175
|
-
| `4` | Canceling | Customer has indicated intent to cancel |
|
|
176
|
-
| `5` | Expired | Subscription has ended after cancellation |
|
|
177
|
-
| `6` | Trial Expired | Free trial ended without conversion to paid |
|
|
178
|
-
|
|
179
|
-
Filter by stage: `GET /crm/accounts?AccountStage=3` returns all actively subscribing accounts.
|
|
180
|
-
|
|
181
|
-
## Webhooks
|
|
182
|
-
|
|
183
|
-
Use **Activity Notifications** to receive real-time callbacks when events occur in Outseta. Configure webhooks at **Settings > Notifications**.
|
|
184
|
-
|
|
185
|
-
Common events include:
|
|
186
|
-
- `Person Created` / `Person Updated`
|
|
187
|
-
- `Account Created` / `Account Updated`
|
|
188
|
-
- `Subscription Created` / `Subscription Updated`
|
|
189
|
-
|
|
190
|
-
Always verify webhook signatures using the SHA256 secret provided in the Outseta dashboard.
|
|
191
|
-
|
|
192
|
-
## Error Responses
|
|
193
|
-
|
|
194
|
-
| Status Code | Description |
|
|
195
|
-
|-------------|-------------|
|
|
196
|
-
| `200` | Success |
|
|
197
|
-
| `301` | Redirect — HTTP requests are redirected to HTTPS |
|
|
198
|
-
| `400` | Bad request — invalid parameters or Uid format |
|
|
199
|
-
| `401` | Unauthorized — missing or invalid authentication |
|
|
200
|
-
| `404` | Entity not found |
|
|
201
|
-
| `4XX` / `5XX` | Client or server error |
|
|
202
|
-
|
|
203
|
-
Validation errors return a JSON body with `ErrorMessage` and `PropertyName` fields:
|
|
204
|
-
|
|
205
|
-
```json
|
|
206
|
-
{
|
|
207
|
-
"ErrorMessage": "Invalid company email",
|
|
208
|
-
"PropertyName": "Email"
|
|
209
|
-
}
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
## Rate Limits
|
|
213
|
-
|
|
214
|
-
Requests authorized by an API Key should not exceed **4 requests/second**.
|
|
215
|
-
|
|
216
|
-
## Support
|
|
217
|
-
|
|
218
|
-
For help regarding the Outseta API please email [support@outseta.com](mailto:support@outseta.com).
|
|
219
|
-
|
|
220
|
-
* OpenAPI spec version: v1
|
|
221
|
-
*/
|
|
222
2
|
import type { AbstractQcountBean } from './abstractQcountBean';
|
|
223
3
|
import type { CrmSettingsAllOf } from './crmSettingsAllOf';
|
|
224
4
|
|
|
@@ -1,224 +1,4 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v7.21.0 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Outseta API
|
|
6
|
-
* # Outseta REST API
|
|
7
|
-
|
|
8
|
-
The Outseta REST API enables you to perform a variety of powerful tasks such as creating and updating people, accounts, subscriptions, and invoices. Outseta uses standard HTTP protocols within a compliant architecture that is simple to integrate. You can use the API both on the client or the server side; see the authentication section below for each scenario.
|
|
9
|
-
|
|
10
|
-
**Base URL:** `https://{your-domain}.outseta.com/api/v1/`
|
|
11
|
-
|
|
12
|
-
## API Guidelines
|
|
13
|
-
|
|
14
|
-
1. The API will only respond to secured communication done over **HTTPS**. HTTP requests will be sent a `301` redirect to the corresponding HTTPS resource.
|
|
15
|
-
2. Responses are sent in **JSON** format. In case the API request results in an error, it is represented by an `"error": {}` key in the JSON response.
|
|
16
|
-
3. The request method (verb) determines the nature of the action: **GET** fetches data, **POST** creates new records, **PUT** updates existing records.
|
|
17
|
-
4. The API responds with appropriate **HTTP status codes** for all requests.
|
|
18
|
-
5. Use `donotlog=1` as a query parameter on any API call where you don't want the action to be logged in the activity log.
|
|
19
|
-
|
|
20
|
-
## Authentication
|
|
21
|
-
|
|
22
|
-
All API requests require authentication via one of two methods:
|
|
23
|
-
|
|
24
|
-
### Server-Side (API Keys)
|
|
25
|
-
|
|
26
|
-
Use API keys for server-to-server integrations. Create keys at **Settings > Integrations > API Keys**. Make sure to record the secret key when you create it.
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
Authorization: Outseta {api_key}:{api_secret}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**Example:**
|
|
33
|
-
```
|
|
34
|
-
Authorization: Outseta ce08fd5a-e1ee-4472-9c5f-b7575d8369b2:74fc1d2242a4eb7336d34b0e40cfbc5f
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
> **Warning:** Never expose API keys in client-side code. The API key and secret combined give full access to all data in your account.
|
|
38
|
-
|
|
39
|
-
### Client-Side (Bearer Token)
|
|
40
|
-
|
|
41
|
-
Do **not** use API keys on the client side — they can be easily copied. Instead, obtain a JWT access token by calling the `POST /tokens` endpoint from the server side with your credentials, then use it on the client:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
Authorization: bearer {access_token}
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Tokens are JWTs containing claims such as `PersonUid`, `AccountUid`, and subscription details. Tokens expire after approximately one year.
|
|
48
|
-
|
|
49
|
-
Verify tokens server-side using Outseta's [JWKS endpoint](https://{your-domain}.outseta.com/.well-known/jwks.json).
|
|
50
|
-
|
|
51
|
-
## Field Selection
|
|
52
|
-
|
|
53
|
-
When you make an API request, you'll automatically get all the basic information from the main object and its immediate child objects. Referenced objects beyond the first level are returned as `null`.
|
|
54
|
-
|
|
55
|
-
Change this behavior using the `fields` query parameter:
|
|
56
|
-
|
|
57
|
-
- **Go deeper** — Request fields lower down in the object tree: `?fields=CurrentSubscription.Plan.*`
|
|
58
|
-
- **Go lighter** — Request only the essentials for faster performance: `?fields=Uid,Name`
|
|
59
|
-
- **Combination** — `?fields=Uid,Name,CurrentSubscription.Plan.Uid`
|
|
60
|
-
- **Wildcard** — Use `*` to get all fields in an object: `?fields=*` or `?fields=CurrentSubscription.Plan.*`
|
|
61
|
-
|
|
62
|
-
> **Tip:** When expanding nested paths, include `*` and intermediate path segments (e.g., `PersonAccount.*`) to preserve root-level and intermediate fields.
|
|
63
|
-
|
|
64
|
-
**Examples:**
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
# Get the current subscription plan UID for an account
|
|
68
|
-
GET /crm/accounts/{uid}?fields=CurrentSubscription.Plan.Uid
|
|
69
|
-
|
|
70
|
-
# Get the account UID and plan UID for a list of accounts
|
|
71
|
-
GET /crm/accounts?fields=Uid,CurrentSubscription.Plan.Uid
|
|
72
|
-
|
|
73
|
-
# Get the full plan object for an account's current subscription
|
|
74
|
-
GET /crm/accounts/{uid}?fields=CurrentSubscription.Plan.*
|
|
75
|
-
|
|
76
|
-
# Get a person with their account and subscription info
|
|
77
|
-
GET /crm/people/{uid}?fields=Uid,PersonAccount.Account.CurrentSubscription.Plan.Uid
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
If your request includes fields from a child object you will be limited to retrieving **25 items** per page. The maximum for requests not expanding child object fields is **100 items**.
|
|
81
|
-
|
|
82
|
-
## Pagination
|
|
83
|
-
|
|
84
|
-
List endpoints return paginated results with a `metadata` object and an `items` array:
|
|
85
|
-
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"metadata": {
|
|
89
|
-
"limit": 25,
|
|
90
|
-
"offset": 0,
|
|
91
|
-
"total": 142
|
|
92
|
-
},
|
|
93
|
-
"items": [ ... ]
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
| Parameter | Type | Default | Description |
|
|
98
|
-
|-----------|------|---------|-------------|
|
|
99
|
-
| `offset` | integer | `0` | Page number (zero-based) |
|
|
100
|
-
| `limit` | integer | `25` | Maximum number of records per page |
|
|
101
|
-
|
|
102
|
-
**Examples:**
|
|
103
|
-
```
|
|
104
|
-
?offset=0&limit=20 # returns results 1-20
|
|
105
|
-
?offset=1&limit=20 # returns results 21-40
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Sorting
|
|
109
|
-
|
|
110
|
-
Sort results using the `orderBy` parameter with a property name and direction:
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
?orderBy=PropertyName+DESC
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Filtering
|
|
117
|
-
|
|
118
|
-
Filter results by passing entity properties as query parameters.
|
|
119
|
-
|
|
120
|
-
### Basic Filtering
|
|
121
|
-
|
|
122
|
-
Filter on any field using the field name as a query parameter:
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
GET /crm/people?Email=john@example.com
|
|
126
|
-
GET /crm/accounts?AccountStage=2
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Wildcard Matching
|
|
130
|
-
|
|
131
|
-
| Pattern | Match Type | Example |
|
|
132
|
-
|---------|-----------|---------|
|
|
133
|
-
| `*value` | Ends with | `?Email=*@example.com` |
|
|
134
|
-
| `value*` | Starts with | `?Name=Acme*` |
|
|
135
|
-
| `*value*` | Contains | `?Name=*corp*` |
|
|
136
|
-
|
|
137
|
-
### Comparison Operators
|
|
138
|
-
|
|
139
|
-
For advanced filtering, append comparison operators to field names:
|
|
140
|
-
|
|
141
|
-
| Operator | Description | Example |
|
|
142
|
-
|----------|-------------|---------|
|
|
143
|
-
| `__gt` | Greater than | `Created__gt=2024-01-01` |
|
|
144
|
-
| `__gte` | Greater than or equal | `Amount__gte=100` |
|
|
145
|
-
| `__lt` | Less than | `Created__lt=2024-12-31` |
|
|
146
|
-
| `__lte` | Less than or equal | `Amount__lte=500` |
|
|
147
|
-
| `__ne` | Not equal | `Status__ne=Active` |
|
|
148
|
-
| `__isnull` | Is null (true/false) | `ProfileImageS3Url__isnull=true` |
|
|
149
|
-
|
|
150
|
-
**Examples:**
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
# Date filtering
|
|
154
|
-
GET /crm/accounts?Created__gt=2024-01-01
|
|
155
|
-
GET /billing/subscriptions?EndDate__lt=2024-08-01
|
|
156
|
-
|
|
157
|
-
# Numeric filtering
|
|
158
|
-
GET /billing/invoices?Amount__gte=1000
|
|
159
|
-
|
|
160
|
-
# Null value filtering
|
|
161
|
-
GET /crm/people?ProfileImageS3Url__isnull=true
|
|
162
|
-
|
|
163
|
-
# Multiple filters combined with field selection
|
|
164
|
-
GET /billing/subscriptions?StartDate__gte=2024-01-01&Rate__lt=100&DiscountCode__isnull=false&fields=Uid,Amount,StartDate,DiscountCode,Plan.Name
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Account Billing Stages
|
|
168
|
-
|
|
169
|
-
Account stages reflect the financial standing of each account and are not directly editable — they change automatically based on subscription activity.
|
|
170
|
-
|
|
171
|
-
| Value | Stage | Description |
|
|
172
|
-
|-------|-------|-------------|
|
|
173
|
-
| `2` | Trialing | Currently on a free trial or free plan |
|
|
174
|
-
| `3` | Subscribing | Active paid subscription (contributes to MRR) |
|
|
175
|
-
| `4` | Canceling | Customer has indicated intent to cancel |
|
|
176
|
-
| `5` | Expired | Subscription has ended after cancellation |
|
|
177
|
-
| `6` | Trial Expired | Free trial ended without conversion to paid |
|
|
178
|
-
|
|
179
|
-
Filter by stage: `GET /crm/accounts?AccountStage=3` returns all actively subscribing accounts.
|
|
180
|
-
|
|
181
|
-
## Webhooks
|
|
182
|
-
|
|
183
|
-
Use **Activity Notifications** to receive real-time callbacks when events occur in Outseta. Configure webhooks at **Settings > Notifications**.
|
|
184
|
-
|
|
185
|
-
Common events include:
|
|
186
|
-
- `Person Created` / `Person Updated`
|
|
187
|
-
- `Account Created` / `Account Updated`
|
|
188
|
-
- `Subscription Created` / `Subscription Updated`
|
|
189
|
-
|
|
190
|
-
Always verify webhook signatures using the SHA256 secret provided in the Outseta dashboard.
|
|
191
|
-
|
|
192
|
-
## Error Responses
|
|
193
|
-
|
|
194
|
-
| Status Code | Description |
|
|
195
|
-
|-------------|-------------|
|
|
196
|
-
| `200` | Success |
|
|
197
|
-
| `301` | Redirect — HTTP requests are redirected to HTTPS |
|
|
198
|
-
| `400` | Bad request — invalid parameters or Uid format |
|
|
199
|
-
| `401` | Unauthorized — missing or invalid authentication |
|
|
200
|
-
| `404` | Entity not found |
|
|
201
|
-
| `4XX` / `5XX` | Client or server error |
|
|
202
|
-
|
|
203
|
-
Validation errors return a JSON body with `ErrorMessage` and `PropertyName` fields:
|
|
204
|
-
|
|
205
|
-
```json
|
|
206
|
-
{
|
|
207
|
-
"ErrorMessage": "Invalid company email",
|
|
208
|
-
"PropertyName": "Email"
|
|
209
|
-
}
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
## Rate Limits
|
|
213
|
-
|
|
214
|
-
Requests authorized by an API Key should not exceed **4 requests/second**.
|
|
215
|
-
|
|
216
|
-
## Support
|
|
217
|
-
|
|
218
|
-
For help regarding the Outseta API please email [support@outseta.com](mailto:support@outseta.com).
|
|
219
|
-
|
|
220
|
-
* OpenAPI spec version: v1
|
|
221
|
-
*/
|
|
222
2
|
import type { AccountRegistrationMode } from './accountRegistrationMode';
|
|
223
3
|
import type { CrmSettingsAllOfEmailList } from './crmSettingsAllOfEmailList';
|
|
224
4
|
import type { RegistrationField } from './registrationField';
|
|
@@ -281,4 +61,6 @@ export type CrmSettingsAllOf = {
|
|
|
281
61
|
/** @nullable */
|
|
282
62
|
SummaryDisplayFieldConfiguration?: string | null;
|
|
283
63
|
RegistrationConfirmationEmailDelaySeconds?: number;
|
|
64
|
+
/** @nullable */
|
|
65
|
+
RegistrationCallbackUrlLocations?: string | null;
|
|
284
66
|
};
|