@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
|
export * from './abstractBean';
|
|
224
4
|
export * from './abstractQcountBean';
|
|
@@ -271,6 +51,7 @@ export * from './acceptTermsAndConditionsLocations';
|
|
|
271
51
|
export * from './account';
|
|
272
52
|
export * from './accountAddAccountBody';
|
|
273
53
|
export * from './accountAddAccountParams';
|
|
54
|
+
export * from './accountAddPersonToAccountBody';
|
|
274
55
|
export * from './accountAllOf';
|
|
275
56
|
export * from './accountAllOfBillingAddress';
|
|
276
57
|
export * from './accountAllOfCurrentSubscription';
|
|
@@ -280,23 +61,29 @@ export * from './accountAllOfPaymentInformation';
|
|
|
280
61
|
export * from './accountAllOfPrimaryContact';
|
|
281
62
|
export * from './accountAllOfPrimaryStripeSubscription';
|
|
282
63
|
export * from './accountAllOfPrimarySubscription';
|
|
64
|
+
export * from './accountCancelAccountBody';
|
|
283
65
|
export * from './accountCancelation';
|
|
284
66
|
export * from './accountCancelationAllOf';
|
|
285
67
|
export * from './accountCancelationAllOfAccount';
|
|
286
68
|
export * from './accountCancelationAllOfLastPlan';
|
|
69
|
+
export * from './accountExtendTrialBody';
|
|
287
70
|
export * from './accountGetAllAccountsParams';
|
|
288
71
|
export * from './accountRegistrationMode';
|
|
289
72
|
export * from './accountStage';
|
|
290
73
|
export * from './accountTaxId';
|
|
291
74
|
export * from './accountTaxIdAllOf';
|
|
292
75
|
export * from './accountTaxIdAllOfAccount';
|
|
76
|
+
export * from './accountUpdateAccountBody';
|
|
77
|
+
export * from './accountUpdateMembershipBody';
|
|
293
78
|
export * from './activity';
|
|
79
|
+
export * from './activityAddCustomActivityBody';
|
|
294
80
|
export * from './activityAllOf';
|
|
295
81
|
export * from './activityCRMDealTrigger';
|
|
296
82
|
export * from './activityCRMDealTriggerAllOf';
|
|
297
83
|
export * from './activityCRMDealTriggerAllOfDealPipelineStage';
|
|
298
84
|
export * from './activityCriteria';
|
|
299
85
|
export * from './activityCriteriaActivityType';
|
|
86
|
+
export * from './activityGetAllParams';
|
|
300
87
|
export * from './activityNotification';
|
|
301
88
|
export * from './activityNotificationAllOf';
|
|
302
89
|
export * from './activityType';
|
|
@@ -311,6 +98,7 @@ export * from './apiKeyType';
|
|
|
311
98
|
export * from './article';
|
|
312
99
|
export * from './articleAllOf';
|
|
313
100
|
export * from './articleAllOfCategory';
|
|
101
|
+
export * from './articleGetAllArticlesParams';
|
|
314
102
|
export * from './backGroundTaskType';
|
|
315
103
|
export * from './billSettings';
|
|
316
104
|
export * from './billSettingsAllOf';
|
|
@@ -326,9 +114,15 @@ export * from './broadcastCampaignAllOfCampaign';
|
|
|
326
114
|
export * from './broadcastCampaignAllOfMessage';
|
|
327
115
|
export * from './broadcastCampaignStatus';
|
|
328
116
|
export * from './campaign';
|
|
117
|
+
export * from './campaignAddBroadcastEmailBody';
|
|
329
118
|
export * from './campaignAllOf';
|
|
119
|
+
export * from './campaignSendTestCampaignEmailBody';
|
|
330
120
|
export * from './campaignType';
|
|
121
|
+
export * from './campaignUpdateBroadcastEmailBody';
|
|
122
|
+
export * from './cancelationStatus';
|
|
331
123
|
export * from './case';
|
|
124
|
+
export * from './caseAddCaseBody';
|
|
125
|
+
export * from './caseAddCaseParams';
|
|
332
126
|
export * from './caseAllOf';
|
|
333
127
|
export * from './caseAllOfLastCaseHistory';
|
|
334
128
|
export * from './caseGetAllCasesParams';
|
|
@@ -356,10 +150,12 @@ export * from './database';
|
|
|
356
150
|
export * from './databaseAllOf';
|
|
357
151
|
export * from './databaseType';
|
|
358
152
|
export * from './deal';
|
|
153
|
+
export * from './dealAddDealBody';
|
|
359
154
|
export * from './dealAllOf';
|
|
360
155
|
export * from './dealAllOfAccount';
|
|
361
156
|
export * from './dealAllOfDealPipelineStage';
|
|
362
157
|
export * from './dealAllOfOwner';
|
|
158
|
+
export * from './dealGetAllDealsParams';
|
|
363
159
|
export * from './dealPerson';
|
|
364
160
|
export * from './dealPersonAllOf';
|
|
365
161
|
export * from './dealPersonAllOfDeal';
|
|
@@ -369,6 +165,7 @@ export * from './dealPipelineAllOf';
|
|
|
369
165
|
export * from './dealPipelineStage';
|
|
370
166
|
export * from './dealPipelineStageAllOf';
|
|
371
167
|
export * from './dealPipelineStageAllOfDealPipeline';
|
|
168
|
+
export * from './dealUpdateDealBody';
|
|
372
169
|
export * from './definition';
|
|
373
170
|
export * from './definitionAllOf';
|
|
374
171
|
export * from './deserializationStatus';
|
|
@@ -384,6 +181,7 @@ export * from './discordServerAllOf';
|
|
|
384
181
|
export * from './discordUser';
|
|
385
182
|
export * from './discordUserAllOf';
|
|
386
183
|
export * from './discountCoupon';
|
|
184
|
+
export * from './discountCouponAddDiscountCouponBody';
|
|
387
185
|
export * from './discountCouponAllOf';
|
|
388
186
|
export * from './discountCouponPlan';
|
|
389
187
|
export * from './discountCouponPlanAllOf';
|
|
@@ -404,7 +202,9 @@ export * from './dripCampaignMessageAllOfMessage';
|
|
|
404
202
|
export * from './emailLink';
|
|
405
203
|
export * from './emailLinkAllOf';
|
|
406
204
|
export * from './emailList';
|
|
205
|
+
export * from './emailListAddSubscriptionBody';
|
|
407
206
|
export * from './emailListAllOf';
|
|
207
|
+
export * from './emailListGetAllSubscriptionsParams';
|
|
408
208
|
export * from './emailListPerson';
|
|
409
209
|
export * from './emailListPersonAllOf';
|
|
410
210
|
export * from './emailListPersonAllOfEmailList';
|
|
@@ -413,10 +213,12 @@ export * from './emailListSubscriberStatus';
|
|
|
413
213
|
export * from './emailSubscriptionsPayload';
|
|
414
214
|
export * from './entityType';
|
|
415
215
|
export * from './extendRenewalParams';
|
|
216
|
+
export * from './extendSubscriptionOptions';
|
|
416
217
|
export * from './extendTrialParams';
|
|
417
218
|
export * from './flatfileImportData';
|
|
418
219
|
export * from './flatfileImportDataSchemalessData';
|
|
419
220
|
export * from './invoice';
|
|
221
|
+
export * from './invoiceAddInvoiceBody';
|
|
420
222
|
export * from './invoiceAllOf';
|
|
421
223
|
export * from './invoiceAllOfSubscription';
|
|
422
224
|
export * from './invoiceCreditOptions';
|
|
@@ -446,6 +248,7 @@ export * from './passwordPayload';
|
|
|
446
248
|
export * from './pauseCollectionOptions';
|
|
447
249
|
export * from './paymentInformation';
|
|
448
250
|
export * from './paymentInformationAllOf';
|
|
251
|
+
export * from './paymentInformationSavePaymentInformationBody';
|
|
449
252
|
export * from './paymentsGatewayActivationStatus';
|
|
450
253
|
export * from './paymentsMode';
|
|
451
254
|
export * from './person';
|
|
@@ -453,10 +256,41 @@ export * from './personAccount';
|
|
|
453
256
|
export * from './personAccountAllOf';
|
|
454
257
|
export * from './personAccountAllOfAccount';
|
|
455
258
|
export * from './personAccountAllOfPerson';
|
|
259
|
+
export * from './personAddPersonBody';
|
|
456
260
|
export * from './personAllOf';
|
|
457
261
|
export * from './personAllOfAccount';
|
|
458
262
|
export * from './personAllOfDiscordUser';
|
|
459
263
|
export * from './personAllOfMailingAddress';
|
|
264
|
+
export * from './personForgotPasswordBody';
|
|
265
|
+
export * from './personGetAllPeopleParams';
|
|
266
|
+
export * from './personSegmentAddedActivityData';
|
|
267
|
+
export * from './personSegmentAddedWebhookPayload';
|
|
268
|
+
export * from './personSegmentAddedWebhookPayloadAccount';
|
|
269
|
+
export * from './personSegmentAddedWebhookPayloadAccountAccountStage';
|
|
270
|
+
export * from './personSegmentAddedWebhookPayloadDealPeopleItem';
|
|
271
|
+
export * from './personSegmentAddedWebhookPayloadDiscordUser';
|
|
272
|
+
export * from './personSegmentAddedWebhookPayloadEmailListPersonItem';
|
|
273
|
+
export * from './personSegmentAddedWebhookPayloadEmailListPersonItemEmailListSubscriberStatus';
|
|
274
|
+
export * from './personSegmentAddedWebhookPayloadLeadFormSubmissionsItem';
|
|
275
|
+
export * from './personSegmentAddedWebhookPayloadMailingAddress';
|
|
276
|
+
export * from './personSegmentAddedWebhookPayloadOAuthIntegrationStatus';
|
|
277
|
+
export * from './personSegmentAddedWebhookPayloadPersonAccountItem';
|
|
278
|
+
export * from './personSegmentAddedWebhookPayloadPersonAccountItemAccount';
|
|
279
|
+
export * from './personSegmentRemovedActivityData';
|
|
280
|
+
export * from './personSegmentRemovedWebhookPayload';
|
|
281
|
+
export * from './personSegmentRemovedWebhookPayloadAccount';
|
|
282
|
+
export * from './personSegmentRemovedWebhookPayloadAccountAccountStage';
|
|
283
|
+
export * from './personSegmentRemovedWebhookPayloadDealPeopleItem';
|
|
284
|
+
export * from './personSegmentRemovedWebhookPayloadDiscordUser';
|
|
285
|
+
export * from './personSegmentRemovedWebhookPayloadEmailListPersonItem';
|
|
286
|
+
export * from './personSegmentRemovedWebhookPayloadEmailListPersonItemEmailListSubscriberStatus';
|
|
287
|
+
export * from './personSegmentRemovedWebhookPayloadLeadFormSubmissionsItem';
|
|
288
|
+
export * from './personSegmentRemovedWebhookPayloadMailingAddress';
|
|
289
|
+
export * from './personSegmentRemovedWebhookPayloadOAuthIntegrationStatus';
|
|
290
|
+
export * from './personSegmentRemovedWebhookPayloadPersonAccountItem';
|
|
291
|
+
export * from './personSegmentRemovedWebhookPayloadPersonAccountItemAccount';
|
|
292
|
+
export * from './personSetTemporaryPasswordBody';
|
|
293
|
+
export * from './personUpdatePersonBody';
|
|
460
294
|
export * from './plan';
|
|
461
295
|
export * from './planAddOn';
|
|
462
296
|
export * from './planAddOnAllOf';
|
|
@@ -469,12 +303,12 @@ export * from './planFamilyAllOf';
|
|
|
469
303
|
export * from './processCodePayload';
|
|
470
304
|
export * from './qcount';
|
|
471
305
|
export * from './qcountAllOf';
|
|
472
|
-
export * from './qcountAllOfLogDatabase';
|
|
473
306
|
export * from './qcountConfig';
|
|
474
307
|
export * from './qcountConfigAllOf';
|
|
475
308
|
export * from './qcountConfigSettingType';
|
|
476
309
|
export * from './qcountStatus';
|
|
477
310
|
export * from './registrationField';
|
|
311
|
+
export * from './resendEmailsRequest';
|
|
478
312
|
export * from './segment';
|
|
479
313
|
export * from './segmentAllOf';
|
|
480
314
|
export * from './segmentPerson';
|
|
@@ -588,6 +422,7 @@ export * from './stripeSubscriptionSchedulePhaseItemAllOf';
|
|
|
588
422
|
export * from './stripeSubscriptionSchedulePhaseItemAllOfStripePrice';
|
|
589
423
|
export * from './subscription';
|
|
590
424
|
export * from './subscriptionAddOn';
|
|
425
|
+
export * from './subscriptionAddOnAddSubscriptionAddOnBody';
|
|
591
426
|
export * from './subscriptionAddOnAllOf';
|
|
592
427
|
export * from './subscriptionAddOnAllOfAddOn';
|
|
593
428
|
export * from './subscriptionAddOnAllOfSubscription';
|
|
@@ -595,6 +430,14 @@ export * from './subscriptionAllOf';
|
|
|
595
430
|
export * from './subscriptionAllOfAccount';
|
|
596
431
|
export * from './subscriptionAllOfLatestInvoice';
|
|
597
432
|
export * from './subscriptionAllOfPlan';
|
|
433
|
+
export * from './subscriptionChangeSubscriptionBody';
|
|
434
|
+
export * from './subscriptionChangeSubscriptionParams';
|
|
435
|
+
export * from './subscriptionChangeSubscriptionPreviewBody';
|
|
436
|
+
export * from './subscriptionChangeSubscriptionPreviewParams';
|
|
437
|
+
export * from './subscriptionFirstTimeSubscriptionBody';
|
|
438
|
+
export * from './subscriptionFirstTimeSubscriptionPreviewBody';
|
|
439
|
+
export * from './subscriptionFirstTimeSubscriptionPreviewParams';
|
|
440
|
+
export * from './subscriptionSetSubscriptionUpgradeRequiredBody';
|
|
598
441
|
export * from './supportArticleStatus';
|
|
599
442
|
export * from './supportCaseHistoryType';
|
|
600
443
|
export * from './supportCaseSource';
|
|
@@ -624,9 +467,11 @@ export * from './transaction';
|
|
|
624
467
|
export * from './transactionAllOf';
|
|
625
468
|
export * from './transactionAllOfAccount';
|
|
626
469
|
export * from './transactionAllOfInvoice';
|
|
470
|
+
export * from './transactionsAddPaymentTransactionBody';
|
|
627
471
|
export * from './translation';
|
|
628
472
|
export * from './translationAllOf';
|
|
629
473
|
export * from './usage';
|
|
474
|
+
export * from './usageAddUsageBody';
|
|
630
475
|
export * from './usageAllOf';
|
|
631
476
|
export * from './usageAllOfInvoice';
|
|
632
477
|
export * from './webflowCollection';
|
|
@@ -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 { InvoiceAllOf } from './invoiceAllOf';
|
|
224
4
|
|