openapi: 3.0.3 info: title: Billsby API description: >- Billsby is a feature-rich "Saas" recurring payment platform, ranked as the leading subscription billing software by G2. Billsby is designed to ensure customers can go live quickly, often within 1-2 hours. To help facilitate this process we have a team of friendly knowledgeable advisors ready to help your business go live. Billsby specializes in providing great customer service at an affordable price point - our technology is rated No 1 on G2 by our customers. If you are a developer creating a solution for your customer, Billsby has a friendly well-documented API. The Billsby team are here to provide support to developers in order to ensure a smooth migration or new system build. Why not book a call, talk through your Billing requirements and we can let you know how we can help you transform your business.. version: 1.3.5 x-konfig-ignore: object-with-no-properties: true potential-incorrect-type: true servers: - url: https://public.billsby.com/api/v1/rest/core tags: - name: Customer - name: Subscription - name: Invoice - name: Product - name: CustomField - name: Addon - name: Allowance - name: Creditnote paths: /{companyDomain}/customers: get: tags: - Customer summary: List customers operationId: Customer_listCustomers description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The page of customers you would like to view name: page in: query required: true schema: type: integer format: int32 - description: The number of records to return per page (max 100) name: pageSize in: query required: true schema: type: integer format: int32 - description: Filter customers by name (this can be a partial name) name: search in: query schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "customerUniqueId": "string", "firstName": "mary", "lastName": "quinn", "email": "mary.quinn@mistimail.com", "createdOn": "2020-04-29T10:08:39.320Z", "status": "active" "phoneNumber": null, "phoneNumberDialCode": null, "phoneNumberDialCodeCountry": null, "billingAddress": { "addressLine1": "23 Turnabout Road", "addressLine2": "Sevenoaks", "city": "Surrey", "country": "USA", "state": "Kent", "postCode": "KN2 6WH" } } ] } schema: $ref: '#/components/schemas/CustomerListCustomersResponse' deprecated: false post: tags: - Customer summary: Create without subscription operationId: Customer_createWithoutSubscription description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomerCreateWithoutSubscriptionRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- { "customerUniqueId": "string" } schema: $ref: '#/components/schemas/CustomerCreateWithoutSubscriptionResponse' deprecated: false x-readme: code-samples: - language: text code: |- { "addressLine1": "23 Turnabout Road", "addressLine2": "Woodingdean", "city": "Brighton", "state": "East Sussex", "country": "GBR", "postCode": "BN3 4WH", "firstName": "Robert", "lastName": "Dowling", "email": "robert.dowling@mistimail.com", "cardDetails": { "fullname": "Robert Dowling" "paymentCardToken": "string", "expiryMonth": 05, "expiryYear": 2020, "cardType": "1", "last4Digits": "1547" } } samples-languages: - text /{companyDomain}/customers/{customerUniqueId}: get: tags: - Customer summary: Customer details operationId: Customer_getDetails description: >- This query gets individual customer details using the unique identifier provided in the Billsby platform parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "companyCurrency": "string", "totalAmountPaid": "440", "averageAmountPerMonth": "20", "cardStatus": "active", "customerUniqueId": "6ZY37ULDEF", "firstName": "Mary", "lastName": "quinn", "billingAddress": { "addressLine1": "20 Woodfood Road", "addressLine2": "Saltdean", "state": "Brighton", "city": "Brighton", "country": "England", "postCode": "BN3 4GH" }, "email": "mary.quinn@mistimail.com", "additionalEmail": "marymay@mistimail.com", "phoneNumberDialCountry": "england", "phoneNumberDialCode": "+1", "phoneNumber": "07822839281", "isMarketingConsentGiven": true, "createdOn": "2020-04-29T10:16:25.474Z", "status": "active" } schema: $ref: '#/components/schemas/CustomerGetDetailsResponse' deprecated: false put: tags: - Customer summary: Update customer operationId: Customer_updateDetails description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomerUpdateDetailsRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- { "customerId": "6DK82SKD", "firstName": "mary", "lastName": "quinn", "billingAddress": { "addressLine1": "32 woodford road", "addressLine2": "saltdean", "state": "brighton", "city": "brighton", "country": "USA", "postCode": "BN3 6HE" }, "email": "mary.quinn@mistmail.com", "additionalEmail": "marymay@mistimail.com", "phoneNumberDialCountry": "USA", "phoneNumberDialCode": "+1", "phoneNumber": "07283928192", "isMarketingConsentGiven": true, "createdOn": "2019-09-03T13:31:55.138Z", "uniqueId": "AHD12QR4" } schema: $ref: '#/components/schemas/CustomerUpdateDetailsResponse' deprecated: false x-readme: code-samples: - language: text code: |- { "firstName": "David", "lastName": "Smith", "email": "david.smith@mistimail.com", "phoneNumberDialCountry": "UK", "phoneNumberDialCode": "1", "phoneNumber": "2015552810", "billingAddress": { "addressLine1": "23 Turnabout Road", "addressLine2": "Sevenoaks", "state": "Kent", "city": "Surrey", "country": "USA", "postCode": "KN2 6WH" } } samples-languages: - text delete: tags: - Customer summary: Delete a customer operationId: Customer_deleteById description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: Success schema: $ref: '#/components/schemas/CustomerDeleteByIdResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/subscriptions: get: tags: - Customer summary: Customer subscriptions operationId: Customer_getSubscriptionsByUniqueId description: >- This query gets individual customer's subscriptions using the unique identifier provided in the Billsby platform parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "subscriptionId": "string", "productId": 0, "productName": "string", "planId": 0, "planName": "string", "status": "string", "currency": "string", "revenue": "string", "nextBilling": "2020-04-29T10:46:39.498Z", "createdOn": "2020-04-29T10:46:39.498Z", "units": 0 } ] schema: $ref: >- #/components/schemas/CustomerGetSubscriptionsByUniqueIdResponse deprecated: false post: tags: - Customer summary: Add subscription to existing customer operationId: Customer_addSubscriptionToExistingCustomer description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: >- #/components/schemas/CustomerAddSubscriptionToExistingCustomerRequest responses: '200': description: '200' content: application/json: examples: Result: value: |- { "customerUniqueId": "string", "subscriptionUniqueId": "string" } schema: $ref: >- #/components/schemas/CustomerAddSubscriptionToExistingCustomerResponse deprecated: false /{companyDomain}/customers/{customerUniqueId}/subscriptions/featuretags: get: tags: - Customer summary: Customer feature tags operationId: Customer_getFeatureTags description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ "pro-plan" ] schema: $ref: '#/components/schemas/CustomerGetFeatureTagsResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/invoices/{invoiceNumber}/paymentlogs: get: tags: - Invoice summary: Customer payment logs operationId: Invoice_getPaymentLogs description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true - description: The unique identifier of the invoice in the Billsby platform name: invoiceNumber in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "paymentLogId": 0, "createdOn": "2020-04-29T14:02:11.138Z", "gatewayId": 0, "gatewayName": "string", "reference": "string", "paymentMethod": "string", "status": "string" } ] schema: $ref: '#/components/schemas/InvoiceGetPaymentLogsResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/paymentdetailsrequest: get: tags: - Customer summary: Request to update payment details operationId: Customer_updatePaymentDetailsRequest description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: | Success schema: $ref: >- #/components/schemas/CustomerUpdatePaymentDetailsRequestResponse deprecated: false /{companyDomain}/customers/{customerUniqueId}/paymentCard: put: tags: - Customer summary: Update payment card token operationId: Customer_updatePaymentCardToken description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomerUpdatePaymentCardTokenRequest' responses: '200': description: '200' content: application/json: examples: Result: value: Success schema: $ref: '#/components/schemas/CustomerUpdatePaymentCardTokenResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/invoices: post: tags: - Invoice summary: Create a one-time charge operationId: Invoice_createOneTimeCharge description: This query creates a one-time charge for an individual customer parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/InvoiceCreateOneTimeChargeRequest' responses: '200': description: '200' content: text/plain: examples: Result: value: 'true' schema: $ref: '#/components/schemas/InvoiceCreateOneTimeChargeResponse' deprecated: false get: tags: - Invoice summary: Customer invoices operationId: Invoice_getCustomerInvoices description: This query gets individual customer's invoices parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "invoiceId": 0, "createdOn": "2020-04-30T10:47:05.886Z", "invoiceNumber": "string", "amount": 0, "refundableAmount": 0, "formattedAmount": "£0", "formattedAmount": "string", "currency": "string", "linkedTransactionsCount": 0, "status": "string" } ] schema: $ref: '#/components/schemas/InvoiceGetCustomerInvoicesResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/gdprcleanup: put: tags: - Customer summary: Clear customer data (GDPR) operationId: Customer_clearGdprData description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "companyCurrency": "string", "totalAmountPaid": "string", "averageAmountPerMonth": "string", "cardStatus": "string", "customerTaxRegNumber": "", "customerUniqueId": "VL9GGID9ZE," "firstName": "string", "lastName": "string", "billingAddress": { "addressLine1": "string", "addressLine2": "string", "state": "string", "city": "string", "country": "string", "postCode": "string" }, "email": "string", "additionalEmail": "string", "phoneNumberDialCountry": "string", "phoneNumberDialCode": "string", "phoneNumber": "string", "isMarketingConsentGiven": true, "createdOn": "2019-11-08T14:27:51.469Z", "uniqueId": "string", "status": "string" } schema: $ref: '#/components/schemas/CustomerClearGdprDataResponse' deprecated: false /{companyDomain}/subscriptions: get: tags: - Subscription summary: List subscriptions operationId: Subscription_listSubscriptions description: >- This query gets a list of all of the subscriptions in your account with their subscription IDs so that you can later lookup individual subscriptions parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The page of customers you would like to view name: page in: query required: true schema: type: integer format: int32 - description: The number of records to return per page name: pageSize in: query required: true schema: type: integer format: int32 - description: >- You can order the subscriptions by any of the subscription object properties (e.g. CreatedOn to sort by date of creation) name: orderBy in: query schema: type: string - description: >- The ordering direction of the previously set property (e.g. Descending in CreatedOn will sort from newest to oldest, non-descending from oldest to newest) name: orderByDescending in: query schema: type: string - description: Will show only the subscriptions that are active name: isActive in: query schema: type: boolean - description: Will show only the subscriptions that are in free trial name: isInFreeTrial in: query schema: type: boolean - description: >- Will show only the subscriptions that has products whose names matches the value provided here name: productName in: query schema: type: string - description: >- Will show only the subscriptions that has plans whose names matches the value provided here name: planName in: query schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "subscriptionId": 10, "subscriptionUniqueID": "GAFD660", "customerId": 10, "customerUniqueId": "VKQRJFLZNV", "customerEmail": "maryf@mistimail.com", "customerFullname": "Mary", "planId": "82", "planName": "Premium", "productId": "44", "productName": "Plus", "createdOn": "2019-08-29T09:40:27.590Z", "status": "Active", "isInFreeTrial": false } ] } schema: $ref: '#/components/schemas/SubscriptionListSubscriptionsResponse' deprecated: false post: tags: - Customer summary: Create new customer and subscription operationId: Customer_createNewCustomerAndSubscription description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: >- #/components/schemas/CustomerCreateNewCustomerAndSubscriptionRequest responses: '200': description: '200' content: application/json: examples: Result: value: |- { "customerUniqueId": "string", "subscriptionUniqueId": "string" } schema: $ref: >- #/components/schemas/CustomerCreateNewCustomerAndSubscriptionResponse deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}: get: tags: - Subscription summary: Subscription details operationId: Subscription_getDetails description: >- This query gets individual subscription details using the unique identifier provided in the Billsby platform parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: "{\n companyCurrency: \"USD\",\n contractMinimumTermEnd: null,\n createdOn: \"2020-12-21T15:59:19.095789\",\n currency: \"USD\",\n customerEmail: \"mary.smith@mistimail.com\",\n customerFullname: \"Mary Smith\",\n customerId: 243,\n customerUniqueId: \"8WER0F4J1R\",\n cycleId: 28,\n cycleIdNext: null,\n isBillingAddressValidationRequired: false,\n isShippingAddressRequired: false,\n isShippingAddressValidationRequired: false,\n nextBillingAmount: 4000,\n nextBillingAmountFormatted: \"$40\",\n nextBillingDate: \"2021-01-01T15:59:19.095789\",\n nextCycleRecurringBillingAmount: \"$40\",\n nextPlanPricingModel: null,\n planId: 26,\n planIdNext: null,\n planName: \"First Plan\",\n planPricingModel: {\n \tbillingDateType: \"FixedDayEachMonth\",\n contractTerm: null,\n contractTermFrequencyType: \"Unassigned\",\n fixedBillingDateDay: 1,\n fixedBillingDateMonth: null,\n freeQuantity: 0,\n freeTrial: null,\n freeTrialFrequencyType: \"Unassigned\",\n frequency: 1,\n frequencyType: \"Monthly\",\n pricingModelId: 129,\n proRateOption: \"ProRateBasedOnDaysRemaining\",\n setupFeePrice: null,\n setupFeePriceFormatted: null,\n tiers: []\n },\n productId: 5,\n productName: \"First product\",\n productVisibility: \"Public\",\n status: \"Active\",\n subscriptionId: 114,\n subscriptionUniqueId: \"Y7MX4G314L\",\n totalRevenue: 1446,\n totalRevenueFormatted: \"$14.46\",\n units: 1,\n unitsNext: null,\n visibility: \"Public\"\n}" schema: $ref: '#/components/schemas/SubscriptionGetDetailsResponse' deprecated: false delete: tags: - Subscription summary: Cancel a subscription operationId: Subscription_cancelSubscription description: >- Cancel an individual subscription using the unique identifier of the subscription in the Billsby platform parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: query required: true schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/SubscriptionCancelSubscriptionResponse' deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}/shippingAddress: get: tags: - Subscription summary: Shipping address operationId: Subscription_getShippingAddress description: >- This query gets individual subscription details using the unique identifier provided in the Billsby platform parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "addressLine1": "20 Woodfoord Road", "addressLine2": "Saltdean", "state": "Brighton", "city": "Brighton", "country": "England", "postCode": "BN3 4GH" } schema: $ref: '#/components/schemas/SubscriptionGetShippingAddressResponse' deprecated: false put: tags: - Subscription summary: Update subscription shipping address operationId: Subscription_updateShippingAddress description: Update the shipping address for a subscription parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/SubscriptionUpdateShippingAddressRequest' responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/SubscriptionUpdateShippingAddressResponse' deprecated: false x-readme: code-samples: - language: text code: |- { "addressLine1": "string", "addressLine2": "string", "state": "string", "city": "string", "country": "string", "postCode": "string" } samples-languages: - text /{companyDomain}/subscriptions/{subscriptionUniqueId}/tags: get: tags: - Subscription summary: Feature tags by Subscription operationId: Subscription_listTagsBySubscription description: This query returns a list of feature tags in a subscription parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ "pro-plan" ] schema: $ref: >- #/components/schemas/SubscriptionListTagsBySubscriptionResponse deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}/tags/split: get: tags: - Subscription summary: Feature tags by plan and custom tags operationId: Subscription_featureTagsSplit description: >- Returns a list of feature tags in a subscription split by plan tags and custom tags parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "planFeatureTags": [ "string" ], "subscriptionFeatureTags": [ "string" ] } schema: $ref: '#/components/schemas/SubscriptionFeatureTagsSplitResponse' deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}/logs: get: tags: - Subscription summary: Event logs operationId: Subscription_getEventLogs description: This query returns the event logs of a subscription parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true - description: The page of customers you would like to view name: page in: query required: true schema: type: integer format: int32 - description: The number of records to return per page (max 100) name: pageSize in: query required: true schema: type: integer format: int32 responses: '200': description: '200' content: application/json: examples: Result: value: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "subscriptionEventLogId": 0, "type": "string", "createdOn": "2019-09-10T10:37:24.680Z", "eventData": {} } ] } schema: $ref: '#/components/schemas/SubscriptionGetEventLogsResponse' deprecated: false /{companyDomain}/subscriptions/tags: post: tags: - Subscription summary: Add feature tags operationId: Subscription_addFeatureTags description: >- You can add feature tags to existing subscriptions using the unique subscription IDs parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/SubscriptionAddFeatureTagsRequest' responses: '200': description: '200' content: application/json: examples: Result: value: | Success schema: $ref: '#/components/schemas/SubscriptionAddFeatureTagsResponse' deprecated: false x-readme: code-samples: - language: text code: |- { "subscriptionUniqueIds": [ "string" ], "tagNames": [ "string" ] } samples-languages: - text /{companyDomain}/subscriptions/{subscriptionUniqueId}/plan: put: tags: - Subscription summary: Change plan operationId: Subscription_changePlan description: Change the plan that a subscription sits on parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/SubscriptionChangePlanRequest' examples: Request Example: value: planId: 10 cycleId: 10 customerUniqueId: A1B2C3D4 planChangeType: 1 units: 0 addOns: - addOnId: 1 quantity: 3 - addOnId: 2 quantity: 5 allowances: - 1 - 22 - 402 issueRefund: false responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/SubscriptionChangePlanResponse' deprecated: false /{companyDomain}/subscriptions/tags/{tagname}: delete: tags: - Subscription summary: Delete feature tag operationId: Subscription_removeFeatureTag description: Delete a custom feature tag from a list of subscriptions parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The name of the custom feature tag you would like to delete name: tagname in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subsId in: query schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: | Success schema: $ref: '#/components/schemas/SubscriptionRemoveFeatureTagResponse' deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}/renewaldate: put: tags: - Subscription summary: Update next renewal date operationId: Subscription_updateRenewalDate description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/SubscriptionUpdateRenewalDateRequest' responses: '200': description: '200' content: application/json: examples: Result: value: '{}' schema: $ref: '#/components/schemas/SubscriptionUpdateRenewalDateResponse' '400': description: '400' content: application/json: examples: Result: value: '{}' schema: $ref: '#/components/schemas/SubscriptionUpdateRenewalDate400Response' deprecated: false x-readme: code-samples: - language: text code: |- { "pauseSubscription": true, "newRenewalDate": "2019-09-10T10:37:24.680Z", } samples-languages: - text /invoices/{invoiceNumber}: get: tags: - Invoice summary: Individual invoices operationId: Invoice_details description: '' parameters: - description: The invoice number for the invoice you'd like to retrieve name: invoiceNumber in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Success: value: |- { "invoiceId":"0", "customerEmail": "mary.rose@msn.com", "customerFirstName": "Mary", "customerLastName": "Rose", "customerUniqueId": "8MJ7XU07D9", "addressLine1": "31 Long Avenue", "addressLine2": "Rickmansworth", "addressPostCode": "HA94WD", "addressCity": "Buckinghamshire", "addressState": "Buckinghamshire", "addressCountry": "United Kingdom", "addressCountryCode": "GBR", "invoiceNumber": "0WX1VTRPWY-1", "createdOn": "2020-04-29T00:14:57.297Z", "formattedAmount": "9", "amount": "10", "currency": "gbp", "status": "active", "subTotal": "400", "taxTotal": "200", "prorationAdjustment": "£0", "prorationFactor": null, "taxes": [], "invoiceType": "renewal", "subscriptions": [ { "subscriptionUniqueId": "Y4EDK80W71", "planName": "premium", "billingPeriodStart": "2020-04-29T00:14:57.297Z", "billingPeriodEnd": "2020-04-29T00:14:57.297Z", "subscriptionItems": [ { "description": "test", "units": "3", "unitPrice": "2", "discounts": "1", "amount": "7" } ] } ], "companyName": "flowers", "companyEmail": "flowers@flowers.com", "companyTaxNumber": "12345678", "companyDomain": "flowers", "companyPhoneNumberDialCountry": "0044", "companyPhoneNumberDialCode": "0044", "companyPhoneNumber": "02088671028", "companyAddressLine1": "wework, 1 fore street", "companyAddressLine2": "moorgate", "companyCity": "london", "companyState": "london", "companyPostCode": "ec2y9dt", "companyCountry": "united kingdom", "brandingLogo": "logo.jpg", "brandingLogoBackgroundColor": "black", "brandingHighlightColor": "pink", "supportUrl": "support@flowers.co.uk", "cardType": "mastercard", "cardLast4Digits": "8972", "cardExpiryMonth": "07", "cardExpiryYear": "23", "refundableAmount": "10", "footerCompanyName": "flowers", "footerAddressLine1": "wework, 1 fore street", "footerAddressLine2": "moorgate", "footerAddressState": "moorgate", "footerAddressCity": "london", "footerAddressPostCode": "ec2y9dt", "footerAddressCountryISO3": "united kingdom", "footerEmailAddress": "flowers@flowers.com", "footerPhoneNumberDialCountry": "0044", "footerPhoneNumberDialCode": "0044", "footerPhoneNumber": "02088671028", "supportContactHeading": "support", "supportContactContent": "mary rose", "supportContactSupportUrl": "support@flowers.com", "supportContactSupportUrlButtonText": "support", "isAdvertEnabled": "true", "advertImageUrl": "advert.com", "advertLinkToUrl": "advert.com" } schema: $ref: '#/components/schemas/InvoiceDetailsResponse' '400': description: '400' content: application/json: examples: Result: value: '{}' schema: $ref: '#/components/schemas/InvoiceDetails400Response' deprecated: false /{companyDomain}/companies/invoices: get: tags: - Invoice summary: Company invoices operationId: Invoice_listCompanyInvoices description: Get a list of your company's invoices parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The page of invoices you would like to view name: page in: query required: true schema: type: integer format: int32 - description: The number of records to return per page (max 100) name: pageSize in: query required: true schema: type: integer format: int32 - description: Add search terms here to filter results name: query in: query schema: type: string - description: Sort the results by particular properties name: orderBy in: query schema: type: string - description: Sort the results by particular properties in descending order name: orderByDescending in: query schema: type: string - description: >- Do you want to show invoices with the status 'pending'; true or false name: isPending in: query schema: type: boolean - description: Do you want to show invoices with the status 'paid'; true or false name: isPaid in: query schema: type: boolean - description: Do you want to show invoices with the status 'unpaid'; true or false name: isUnpaid in: query schema: type: string - description: >- Do you want to show invoices with the status 'paid offline'; true or false name: isPaidOffline in: query schema: type: boolean - description: >- Do you want to show invoices with the status 'written off'; true or false name: isWrittenOff in: query schema: type: boolean responses: '200': description: '200' content: application/json: examples: Result: value: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "invoiceId": 0, "invoiceNumber": "string", "customerId": 0, "customerUniqueId": "string", "customerFirstName": "string", "customerLastName": "string", "customerFullName": "string", "createdOn": "2020-02-04T10:23:23.341Z", "amount": 1000, "formattedAmount": "$10" "status": "string", "currency": "string" } ] } schema: $ref: '#/components/schemas/InvoiceListCompanyInvoicesResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/refunds: post: tags: - Invoice summary: Refund an invoice operationId: Invoice_createRefund description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/InvoiceCreateRefundRequest' responses: '200': description: '200' content: text/plain: examples: Result: value: |- { "invoiceNumber": "string", "amount": 12 } schema: $ref: '#/components/schemas/InvoiceCreateRefundResponse' deprecated: false /{companyDomain}/invoices/{invoiceNumber}/Payment: put: tags: - Invoice summary: Reattempt invoice payment operationId: Invoice_reattemptPayment description: '' parameters: - description: The unique identifier of the invoice in the Billsby platform name: invoiceNumber in: path schema: type: string required: true - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/InvoiceReattemptPaymentResponse' deprecated: false /{companyDomain}/invoices/{invoiceNumber}/PaidOffline: put: tags: - Invoice summary: Invoice paid offline operationId: Invoice_markAsPaidOffline description: Mark an invoice as paid offline parameters: - description: The unique identifier of the invoice in the Billsby platform name: invoiceNumber in: path schema: type: string required: true - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/InvoiceMarkAsPaidOfflineResponse' '400': description: '400' content: application/json: examples: Result: value: '{}' schema: $ref: '#/components/schemas/InvoiceMarkAsPaidOffline400Response' deprecated: false /{companyDomain}/invoices/{invoiceNumber}/WrittenOff: put: tags: - Invoice summary: Invoice written off operationId: Invoice_markWrittenOff description: Mark an invoice as written off parameters: - description: The unique identifier of the invoice in the Billsby platform name: invoiceNumber in: path schema: type: string required: true - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/InvoiceMarkWrittenOffResponse' deprecated: false /{companyDomain}/companies/creditnotes: get: tags: - Creditnote summary: Company credit notes operationId: Creditnote_list description: Get a list of all your company's credit notes parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The page of credit notes you would like to view name: page in: query required: true schema: type: integer format: int32 - description: The number of records to return per page (max 100) name: pageSize in: query required: true schema: type: integer format: int32 - description: Add search terms here to filter results name: query in: query schema: type: string - description: Sort the results by particular properties name: orderBy in: query schema: type: string - description: Sort the results by particular properties in descending order name: orderByDescending in: query schema: type: string - description: >- Do you want to show credit notes with the status 'pending'; true or false name: isPending in: query schema: type: boolean - description: >- Do you want to show credit notes with the status 'paid'; true or false name: isPaid in: query schema: type: boolean - description: >- Do you want to show credit notes with the status 'failed'; true or false name: isFailed in: query schema: type: boolean responses: '200': description: '200' content: application/json: examples: Result: value: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "creditNoteId": 0, "creditNoteUniqueId": "string", "customerId": 0, "customerUniqueId": "string", "customerFirstName": "string", "customerLastName": "string", "customerFullName": "string", "createdOn": "2020-04-30T10:22:14.547Z", "amount": "string", "status": "string", "currency": "string" } ] } schema: $ref: '#/components/schemas/CreditnoteListResponse' deprecated: false /{companyDomain}/customers/{customerUniqueId}/creditNotes: get: tags: - Customer summary: Customer credit notes operationId: Customer_getCreditNotes description: This query gets individual customer's credit notes parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "invoiceId": 0, "createdOn": "2020-04-30T11:21:42.155Z", "invoiceNumber": "string", "amount": "string", "currency": "string", "linkedTransactionsCount": 0, "status": "string", "paymentGatewayDisplayName": "string" } ] schema: $ref: '#/components/schemas/CustomerGetCreditNotesResponse' deprecated: false /{companyDomain} /creditNotes /{creditNoteNumber} /Payment: put: tags: - Creditnote summary: Reattempt credit note payment operationId: Creditnote_reattemptPayment description: '' parameters: - description: The unique identifier of the credit note in the Billsby platform name: creditNoteNumber in: path schema: type: string required: true - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/CreditnoteReattemptPaymentResponse' deprecated: false /{companyDomain}/products/{productId}: get: tags: - Product summary: Product details operationId: Product_getDetails description: Get the details of a specific product parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: path schema: type: integer format: int32 required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "productCountryLimitation": { "isAnyCountryAllowed": true, "countrySettings": [ { "countryIso3": "string", "addressPermission": 1 } ] }, "productId": 0, "name": "string", "visibility": 0, "billingCurrency": "string", "billingCurrencyTemplate": "string", "displayName": "string", "description": "string", "typeOfProduct": 1, "hasPlans": true, "isShippingAddressRequired": true, "isShippingAddressValidationRequired": true, "isBillingAddressValidationRequired": true, "isAdditionalEmailRequired": true, "isPhoneNumberRequired": true, "isMarketingConsentRequired": true, "numberOfPlans": 0, "alertEmail": "string" } schema: $ref: '#/components/schemas/ProductGetDetailsResponse' deprecated: false put: tags: - Product summary: Update a product operationId: Product_updateProduct description: Update product for your company parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productID in: path schema: type: integer format: int32 required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductUpdateProductRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- { "productCountryLimitation": { "isAnyCountryAllowed": true, "countrySettings": [ { "countryIso3": "string", "addressPermission": 1 } ] }, "productId": 0, "name": "string", "visibility": 0, "billingCurrency": "string", "billingCurrencyTemplate": "string", "displayName": "string", "description": "string", "typeOfProduct": 1, "hasPlans": true, "isShippingAddressRequired": true, "isShippingAddressValidationRequired": true, "isBillingAddressValidationRequired": true, "isAdditionalEmailRequired": true, "isPhoneNumberRequired": true, "isMarketingConsentRequired": true, "numberOfPlans": 0, "alertEmail": "string" } schema: $ref: '#/components/schemas/ProductUpdateProductResponse' deprecated: false /{companyDomain}/products: get: tags: - Product summary: List products operationId: Product_listProducts description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The number of the page you would like to return name: page in: query required: true schema: type: integer format: int32 - description: The number of entries per page you would like to return name: pageSize in: query required: true schema: type: integer format: int32 - description: Filter products by name (this can be a partial name) name: search in: query schema: type: string - description: >- The type of visibility of each product; public, hidden and on-sale. Available values: 0, 1, 2, 3 (Public=0, Hidden=1, Internal=2, OffSale=3) name: visibilityType in: query schema: type: integer format: int32 responses: '200': description: '200' content: application/json: examples: Result: value: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "productId": 0, "name": "Product Name", "visibility": 0, "billingCurrency": "USD", "billingCurrencyTemplate": "$X.XX", "displayName": "Product Name", "description": "A description of the product", "typeOfProduct": 1, "hasPlans": true, "isShippingAddressRequired": true, "isShippingAddressValidationRequired": true, "isBillingAddressValidationRequired": true, "isAdditionalEmailRequired": true, "isPhoneNumberRequired": true, "isMarketingConsentRequired": true, "numberOfPlans": 0, "alertEmail": "string", "customFields": [ { "customFieldId": 0, "type": 0, "label": "string", "description": "string", "options": "string", "compulsory": true } ], "orderedCustomFields": [ 0 ] } ] } schema: $ref: '#/components/schemas/ProductListProductsResponse' deprecated: false post: tags: - Product summary: Create a product operationId: Product_createNewProduct description: Create a new product for your company parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductCreateNewProductRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- { "productCountryLimitation": { "isAnyCountryAllowed": true, "countrySettings": [ { "countryIso3": "GBR", "addressPermission": 1 } ] }, "productId": 42, "name": "SAAS offering", "visibility": 2, "billingCurrency": "USD", "billingCurrencyTemplate": "string", "displayName": "SAAS offering", "description": "This is our SAAS offering", "typeOfProduct": 1, "hasPlans": true, "isShippingAddressRequired": true, "isShippingAddressValidationRequired": true, "isBillingAddressValidationRequired": true, "isAdditionalEmailRequired": true, "isPhoneNumberRequired": true, "isMarketingConsentRequired": true, "numberOfPlans": 0, "alertEmail": "Accounts@mistimail.com" } schema: $ref: '#/components/schemas/ProductCreateNewProductResponse' deprecated: false /{companyDomain}/products/{productId}/plans: get: tags: - Product summary: List plans operationId: Product_listPlans description: Get a list of plans associated with a specific product parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: path schema: type: integer format: int32 required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "planId": 0, "name": "string", "displayName": "string", "description": "string", "pricingModelType": 1, "productId": 0, "cycles": [ { "cycleId": 0, "planId": 0, "pricingModel": { "pricingModelId": 0, "frequency": 0, "frequencyType": 1, "freeTrial": 0, "freeTrialFrequencyType": 1, "setupFeePrice": 0, "setupFeePriceFormatted": "string", "billingDateType": 1, "fixedBillingDateDay": 0, "proRateOption": 1 }, "visibility": "string" } ], "featureTags": [ "string" ], "visibility": "string", "redirectUrl": "string", "hasActiveSubscription": true, "alertEmail": "string" } ] schema: $ref: '#/components/schemas/ProductListPlansResponse' deprecated: false post: tags: - Product summary: Create a plan operationId: Product_createPlan description: Create a new plan for a specific product parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: path schema: type: integer format: int32 required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductCreatePlanRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- { "planId": 43, "name": "Premium Plan", "displayName": "The Premium Plan", "description": "This plan is our premium experience", "pricingModelType": 1, "productId": 123, "cycles": [ { "cycleId": 2, "planId": 2, "pricingModel": { "pricingModelId": 0, "frequency": 4, "frequencyType": 1, "freeTrial": 0, "freeTrialFrequencyType": 0, "contractTerm": 0, "contractTermFrequencyType": 0, "setupFeePrice": 15, "setupFeePriceFormatted": "string", "freeQuantity": 0, "billingDateType": 1, "fixedBillingDateDay": 0, "proRateOption": 1 }, "visibility": "1" } ], "featureTags": [ "string" ], "visibility": "public", "redirectUrl": "home@mistimail.com", "hasActiveSubscription": true, "alertEmail": "accounts@mistimail.com" } schema: $ref: '#/components/schemas/ProductCreatePlanResponse' deprecated: false /{companyDomain}/products/{productId}/plans/{planId}/cycles: post: tags: - Product summary: Create a cycle operationId: Product_createCycle description: Create a cycle for a specific plan parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: path schema: type: integer format: int32 required: true - description: The unique identifier of the plan in the Billsby platform name: planId in: path schema: type: integer format: int32 required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductCreateCycleRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "cycleId": 123, "planId": 45, "pricingModel": { "pricingModelId": 5, "frequency": 0, "frequencyType": 0, "freeTrial": 0, "freeTrialFrequencyType": 0, "contractTerm": 0, "contractTermFrequencyType": 0, "setupFeePrice": 0, "setupFeePriceFormatted": "string", "freeQuantity": 0, "billingDateType": 1, "fixedBillingDateDay": 0, "proRateOption": 1 } } ] schema: $ref: '#/components/schemas/ProductCreateCycleResponse' deprecated: false /{companyDomain}/products/{productId}/plans/{planId}: put: tags: - Product summary: Update a plan and cycle operationId: Product_updatePlanAndCycle description: Update a plan and cycle for your company parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: path schema: type: integer format: int32 required: true - description: The unique identifier of the plan in the Billsby platform name: planId in: path schema: type: integer format: int32 required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductUpdatePlanAndCycleRequest' responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/ProductUpdatePlanAndCycleResponse' deprecated: false /{companyDomain}/products/{productId}/plans/orders: put: tags: - Product summary: Update plan order operationId: Product_updatePlanOrder description: Change the order in which your plans displayed parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/ProductUpdatePlanOrderRequest' responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/ProductUpdatePlanOrderResponse' deprecated: false /usage/{companyDomain}/subscriptions/{subscriptionUniqueId}/counters/{counterId}: get: tags: - Subscription summary: Counter value operationId: Subscription_getCountersValue description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true - description: The unique identifier of the counter in the Billsby platform name: counterId in: path schema: type: string required: true - description: >- The date you would like the counter value from; format is ISO 8601, e.g. 2020-08-25T18:35:00.000Z name: from in: query schema: type: string format: date - description: >- The date you would like the counter value to; format is ISO 8601, e.g. 2020-08-25T18:35:00.000Z name: to in: query schema: type: string format: date responses: '200': description: '200' content: application/json: examples: Result: value: | { "usage": 2, "timestamp": "2020-05-28T11:05:09.078+00:00" } schema: $ref: '#/components/schemas/SubscriptionGetCountersValueResponse' deprecated: false /operations/{companyDomain}/subscriptions/{subscriptionUniqueId}/counters/{counterId}: post: tags: - Subscription summary: Update counter operationId: Subscription_updateCounter description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true - description: The unique identifier of the counter in the Billsby platform name: counterId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/SubscriptionUpdateCounterRequest' responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/SubscriptionUpdateCounterResponse' deprecated: false /{companyDomain}/addons: get: tags: - Addon summary: Get a list of available add-ons operationId: Addon_listAvailableAddons description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "addonId": 0, "name": "string", "description": "string", "hasActiveLinkedPlans": true } ] schema: $ref: '#/components/schemas/AddonListAvailableAddonsResponse' deprecated: false /{companyDomain}/addons/{addonId}: get: tags: - Addon summary: Get add-on details operationId: Addon_getDetails description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the add-on in the Billsby platform name: addonId in: path schema: type: integer format: int32 required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "addonId": 0, "name": "string", "displayName": "string", "description": "string", "singleUnitName": "string", "pluralUnitName": "string", "pricingModelType": "string", "hasActiveLinkedPlans": true, "featureTags": [ "string" ], "plans": [ { "planId": 0, "planName": "string", "productName": "string", "forceAddon": true, "isActive": true } ], "priceModels": [ { "frequency": 0, "frequencyType": "string", "currency": "string", "flatFeePrice": 0, "flatFeePriceFormatted": "string", "perUnitPrice": 0, "perUnitPriceFormatted": "string", "tiers": [ { "finish": 0, "price": 0, "start": 0, "priceFormatted": "string" } ] } ] } schema: $ref: '#/components/schemas/AddonGetDetailsResponse' deprecated: false /{companyDomain}/allowances: get: tags: - Allowance summary: Get a list of available allowances operationId: Allowance_getList description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |2- { "allowanceId": 0, "name": "string", "description": "string", "hasActiveLinkedPlans": true } ] schema: $ref: '#/components/schemas/AllowanceGetListResponse' deprecated: false /{companyDomain}/allowances/{allowanceId}: get: tags: - Allowance summary: Get allowance details operationId: Allowance_getDetails description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the customer in the Billsby platform name: allowanceId in: path schema: type: integer format: int32 required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "allowanceId": 0, "name": "string", "displayName": "string", "description": "string", "singleUnitName": "string", "pluralUnitName": "string", "pricingModelType": "string", "counter": { "counterId": "string", "counterName": "string" }, "hasActiveLinkedPlans": true, "featureTags": [ "string" ], "plans": [ { "planId": 0, "planName": "string", "productName": "string", "forceAllowance": true, "isActive": true } ], "priceModels": [ { "frequency": 0, "frequencyType": "string", "currency": "string", "includedUnits": 0, "flatFeePrice": 0, "flatFeePriceFormatted": "string", "perUnitPrice": 0, "perUnitPriceFormatted": "string", "tiers": [ { "finish": 0, "price": 0, "start": 0, "priceFormatted": "string" } ] } ] } schema: $ref: '#/components/schemas/AllowanceGetDetailsResponse' deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}/addons: get: tags: - Addon summary: Get add-ons for specific subscription operationId: Addon_getAddonList description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "addons": [ { "id": 0, "name" "string", "isForced": true, "status": "string", "quantity": 0, "quantityNext": 0, "nextUpdate": "2020-07-23T15:58:31.967Z" } ] } schema: $ref: '#/components/schemas/AddonGetAddonListResponse' deprecated: false /{companyDomain}/subscriptions/{subscriptionUniqueId}/allowances: get: tags: - Allowance summary: Get allowances for specific subscription operationId: Allowance_getSpecificSubscriptionAllowances description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the subscription in the Billsby platform name: subscriptionUniqueId in: path schema: type: string required: true responses: '200': description: '200' content: application/json: examples: Result: value: |- { "allowances": [ { "id": 0, "name" "string", "isForced": true, "status": "string", "usage": 0, "includedUnits": 0, } ] } schema: $ref: >- #/components/schemas/AllowanceGetSpecificSubscriptionAllowancesResponse deprecated: false /{companyDomain}/customfields: get: tags: - CustomField summary: Custom fields operationId: CustomField_list description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true responses: '200': description: '200' content: text/plain: examples: Result: value: |- [ { "customFieldId": 0, "type": 0, "label": "string", "description": "string", "options": "string", "compulsory": true } ] schema: $ref: '#/components/schemas/CustomFieldListResponse' deprecated: false post: tags: - CustomField summary: Create custom field operationId: CustomField_createNewField description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomFieldCreateNewFieldRequest' responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/CustomFieldCreateNewFieldResponse' deprecated: false /{companyDomain}/customfields/{customFieldId}: put: tags: - CustomField summary: Update custom field operationId: CustomField_updateField description: Update an existing custom field parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the custom field in the Billsby platform name: customFieldId in: path schema: type: string required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomFieldUpdateFieldRequest' responses: '200': description: '200' content: application/json: examples: Result: value: success schema: $ref: '#/components/schemas/CustomFieldUpdateFieldResponse' deprecated: false /{companyDomain}/customfieldResponses: get: tags: - CustomField summary: Custom fields response operationId: CustomField_getResponse description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: The unique identifier of the product in the Billsby platform name: productId in: query schema: type: integer format: int32 - description: The unique identifier of the customer in the Billsby platform name: customerUniqueId in: query schema: type: string responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "customFieldResponseId": 0, "customField": { "customFieldId": 0, "type": 0, "label": "string", "description": "string", "options": "string", "compulsory": true }, "value": "string" } ] schema: $ref: '#/components/schemas/CustomFieldGetResponseResponse' '400': description: '400' content: application/json: examples: Result: value: '{}' schema: $ref: '#/components/schemas/CustomFieldGetResponse400Response' deprecated: false /{companyDomain}/customfieldResponses/{customFieldResponseId}: put: tags: - Customer summary: Update customer response to custom fields operationId: Customer_updateCustomFieldResponse description: '' parameters: - description: >- Your companies Billsby subdomain - for example, if you login at widgets.billsby.com, your companyDomain is widgets name: companyDomain in: path schema: type: string required: true - description: >- The unique identifier for an individual customers response to a question name: customFieldResponseId in: path schema: type: integer format: int32 required: true requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomerUpdateCustomFieldResponseRequest' responses: '200': description: '200' content: application/json: examples: Result: value: |- [ { "customFieldResponseId": 0, "customField": { "customFieldId": 0, "type": 0, "label": "string", "description": "string", "options": "string", "compulsory": true }, "value": "string" } ] schema: $ref: '#/components/schemas/CustomerUpdateCustomFieldResponseResponse' deprecated: false components: securitySchemes: sec0: type: apiKey in: header name: ApiKey schemas: CustomerCreateWithoutSubscriptionRequest: type: object required: - addressLine1 - city - state - country - postCode - firstName - lastName - email properties: addressLine1: type: string addressLine2: type: string city: type: string state: type: string country: type: string postCode: type: string firstName: type: string lastName: type: string email: type: string cardDetails: type: object properties: fullName: description: The full name of the customer type: string paymentCardToken: description: This can be found in the create token API response type: string expiryMonth: description: Customers two digit expiry month - i.e. "12" type: integer format: int32 expiryYear: description: Customers card expiry year - i.e. "2020" type: integer format: int32 cardType: description: '"visa" "master" "american_express"' type: string last4Digits: description: The last 4 digits of the customers card type: string CustomerUpdateDetailsRequest: type: object required: - firstName - lastName - email - billingAddress properties: firstName: description: The customers first name type: string lastName: description: The customers last name type: string phoneNumberDialCountry: description: The customers phone number dial country (i.e. "UK") type: string phoneNumberDialCode: description: The customer phone number dial code type: string email: description: The email address we have on file for the customer type: string phoneNumber: description: >- The phone number we have on file for the customer. Remove "0" from the start. type: string billingAddress: type: object properties: addressLine1: type: string addressLine2: type: string state: description: For US addresses, this must be the ISO two letter state code type: string city: type: string country: description: The ISO three letter country code type: string postCode: type: string CustomerAddSubscriptionToExistingCustomerRequest: type: object required: - cycleId properties: cycleId: description: The unique identifier of the cycle in the Billsby platform type: integer format: int32 units: description: The number of units for unit based plans type: integer format: int32 address: description: The address of the customer type: object properties: addressLine1: type: string addressLine2: type: string state: type: string city: type: string country: type: string postCode: type: string shippingAddress: description: The shipping address of the customer type: object properties: {} additionalEmail: description: Any additional email addresses given by the customer type: string phoneNumberDialCountry: description: The country associated with the phone number type: string phoneNumberDialCode: description: The country dial code for the customer phone number type: integer format: int32 phoneNumber: description: The customer's phone number type: integer format: int32 marketingConsent: description: 'Gas the customer given marketing consent: true or false' type: boolean taxRegNumber: description: Tax registration number type: string ipAddress: type: string customFieldResponse: description: Any responses to custom fields type: array items: properties: customFieldId: description: The unique ID associated with the customer field in Billsby type: integer format: int32 value: description: The response to the custom field type: string type: object addOns: description: >- Any add-ons to be included in the plan, along with the quantity of each add-on if unit based type: array items: properties: addOnId: description: The unique identifier of the add-ons in the Billsby platform type: integer format: int32 quantity: description: The quantity of the add-on if unit based type: integer format: int32 required: - addOnId type: object allowances: description: Any allowances to be included with the plan type: integer format: int32 couponCodes: description: The coupon code to be used for the plan type: array items: properties: planId: description: The unique identifier of the plan in the Billsby platform type: integer format: int32 couponCode: description: The coupon code to be used for the plan type: string required: - planId type: object CustomerUpdatePaymentCardTokenRequest: type: object properties: fullName: description: The full name of the customer type: string paymentCardtoken: description: The token for the payment card in the Billsby vault type: string expiryMonth: description: The date that the payment card expires type: integer format: int32 expiryYear: description: The year that the payment card expires type: integer format: int32 cardType: description: The type of card (e.g. Visa, Mastercard, AMEX, etc.) type: string last4Digits: description: The last four digits of the long number on the payment card type: string InvoiceCreateOneTimeChargeRequest: type: object required: - currencyCode - amount - description properties: description: description: The description for the one-time charge type: string currencyCode: description: The code for the currency of the one-time charge type: string amount: description: The amount of the one-time charge type: integer format: int32 CustomerCreateNewCustomerAndSubscriptionRequest: type: object required: - firstName - lastName - email - cycleId - Units - address - cardDetails properties: firstName: description: The customer's first name type: string lastName: description: The customer's last name type: string email: description: The customer's email address type: string cycleId: description: The unique identifier of the cycle in Billsby type: integer format: int32 Units: description: The number of units included in the subscription (min. 1) type: integer format: int32 address: description: The customer's address type: object properties: addressLine1: type: string addressLine2: type: string state: description: For US addresses, this must be the ISO two letter state code type: string city: type: string country: description: The ISO three letter country code type: string postCode: type: string shippingAddress: description: >- The customer's shipping address (if different to their billing address) type: object properties: addressLine1: type: string addressLine2: type: string state: description: For US addresses, this must be the ISO two letter state code type: string city: type: string country: description: The ISO three letter country code type: string postCode: type: string additionalEmail: description: Any additional email address provided by the customer type: string phoneNumberDialCountry: description: The country associated with their phone number type: string phoneNumberDialCode: description: The country code associated with their phone number type: integer format: int32 phoneNumber: description: >- The customer's phone number. If phoneNumber is provided, then phoneNumberDialCountry and phoneNumberDialCode are required. type: integer format: int32 marketingConsent: description: Has the customer given marketing consent; true or false type: boolean customFieldResponse: description: >- Response to any custom field questions you want to add to the subscription type: array items: properties: customFieldId: description: The unique ID associated with the customer field in Billsby type: integer format: int32 value: description: The response to the custom field type: string type: object addOns: description: The add-ons that you want to include in the subscription type: array items: properties: addOnId: description: The unique identifier of the add-ons in the Billsby platform type: integer format: int32 quantity: description: The quantity of the add-on if unit based type: integer format: int32 required: - addOnId type: object allowances: description: >- The IDs of any allowances you want to include in the subscription. For multiple allowances you can add the IDs separated by a comma type: array items: type: integer format: int32 couponCodes: description: The codes of any coupons you want to apply to the subscription type: array items: properties: planId: description: The unique identifier of the plan in the Billsby platform type: integer format: int32 couponCode: description: The coupon code to be used for the plan type: string required: - planId type: object cardDetails: description: The payment card details of the customer type: object properties: fullName: description: The full name of the customer type: string paymentCardToken: description: This can be found in the create token API response type: string expiryMonth: description: Customers two digit expiry month - i.e. "12" type: integer format: int32 expiryYear: description: Customers card expiry year - i.e. "2020" type: integer format: int32 cardType: description: '"visa" "master" "american_express"' type: string last4Digits: description: The last 4 digits of the customers card type: string SubscriptionUpdateShippingAddressRequest: type: object properties: addressLine1: description: The first line of the new address that you want to update to type: string addressLine2: description: The second line of the new address that you want to update to type: string state: description: The state of the new address that you want to update to type: string city: description: The city of the new address that you want to update to type: string country: description: The country of the new address that you wish to change to type: string postCode: description: The post code of the new address that you want to update to type: string SubscriptionAddFeatureTagsRequest: type: object properties: subscriptionUniqueIds: description: >- Add subscription IDs of all the subscriptions you want to add the feature tags to. type: array items: type: string tagNames: description: The name of the feature tags you want to add type: array items: type: string SubscriptionChangePlanRequest: type: object required: - planId - cycleId - customerUniqueId properties: planId: description: >- The unique identifier of the plan that you want to change the subscription to in the Billsby platform type: integer format: int32 cycleId: description: >- The unique identifier of the cycle that you want to change the subscription to in the Billsby platform type: integer format: int32 customerUniqueId: description: The unique identifier of the subscription in the Billsby platform type: string planChangeType: description: Immediate = 1 OnRenewal = 2 type: integer default: 1 format: int32 units: description: >- The number of units required (for cycles with mulitple units allowed) type: integer format: int32 addOns: type: array items: properties: addOnId: description: The unique identifier of the add-ons in the Billsby platform type: integer format: int32 quantity: description: The quantity of the add-on if unit based type: integer format: int32 required: - addOnId type: object allowances: type: array items: type: integer format: int32 issueRefund: description: >- In case of immediate change, this will apply a refund into the first invoice of the new plan based on the prorated amount of the current plan type: boolean default: false SubscriptionUpdateRenewalDateRequest: type: object properties: pauseSubscription: description: Set the subscription status to paused until next renewal date. type: boolean newRenewalDate: description: The new next renewal date type: string format: date InvoiceCreateRefundRequest: type: object required: - invoiceNumber - amount properties: invoiceNumber: description: The invoice number associated with the invoice you want to refund type: string amount: description: >- The amount you would like to refund (can be partial). Amounts are unformatted so if you're using a decimal currency, you'll need to put 100 to refund $1, for example. type: integer format: int32 ProductUpdateProductRequest: type: object properties: name: description: The name of the product you want to update type: string visibility: description: >- The type of visibility of each product; public, hidden and on-sale. Available values: 0, 1, 2, 3 (Public=0, Hidden=1, Internal=2, OffSale=3) type: integer format: int32 billingCurrency: description: >- The currency you want to the product to be billed in. This must be an ISO3 currency code with maximum three characters. For example: GBP, USD, etc type: string displayName: description: The display name of the product you want to create type: string decription: description: A short description of the product type: string isShippingAddressRequired: description: >- Do you need to collect a shipping address from your customers for this product; true or false type: boolean isShippingAddressValidationRequired: description: >- Do you want to validate the shipping address using our tool; true or false type: boolean isBillingAddressValidationRequired: description: >- Do you want to validate the billing address using our tool; true or false type: boolean isAdditionalEmailRequired: description: >- Do you want to collect an additional email address from your customers at checkout; true or false type: boolean isPhoneNumberRequired: description: >- Do you need to collect a phone number from your customers at checkout; true or flase type: boolean is MarketingConsentRequired: description: >- Do you need to get marketing consent from your customers at checkout; true or false type: boolean alertEmail: description: Set an email to be alerted when a customer signs up for this product type: string orderedCustomFields: description: >- Add any custom fields you've created to your checkout flow for this product by adding the custom fields IDs type: object properties: customFieldID: description: >- The ID of the custom field you want to add to checkout for this product. You'll find this custom field ID in the Billsby control panel. type: integer format: int32 typeOfProduct: description: The type of product you want to create; 1 is tiered type: integer format: int32 productCountryLimitations: description: Set country limitations for your product type: object properties: isAnyCountryAllowed: description: >- Do you want to allow customers from any country to subscribe; true or false type: boolean countrySettings: type: object properties: {} ProductCreateNewProductRequest: type: object properties: description: description: A short description of the product type: string name: description: The internal name of the product you want to create type: string visibility: description: >- The type of visibility of each product; public, hidden and on-sale. Available values: 0, 1, 2, 3 (Public=0, Hidden=1, Internal=2, OffSale=3) type: integer format: int32 billingCurrency: description: >- The currency you want to the product to be billed in. This must be an ISO3 currency code with maximum three characters. For example: GBP, USD, etc. type: string displayName: description: The display name of the product you want to create type: string isShippingAddressRequired: description: >- Do you need to collect a shipping address from your customers for this product; true or false type: boolean isShippingAddressValidationRequired: description: >- Do you want to validate the shipping address using our tool; true or false type: boolean isBillingAddressValidationRequired: description: >- Do you want to validate the billing address using our tool; true or false type: boolean isAdditionalEmailRequired: description: >- Do you want to collect an additional email address from your customers at checkout; true or false type: boolean isPhoneNumberRequired: description: >- Do you need to collect a phone number from your customers at checkout; true or false type: boolean is MarketingConsentRequired: description: >- Do you need to get marketing consent from your customers at checkout; true or false type: boolean alertEmail: description: Set an email to be alerted when a customer signs up for this product type: string orderedCustomFields: description: >- Add any custom fields you've created to your checkout flow for this product by adding the custom fields IDs type: object properties: customFieldID: description: >- The ID of the custom field you want to add to checkout for this product. You'll find this custom field ID in the Billsby control panel. type: integer format: int32 typeOfProduct: description: The type of product you want to create; 1 is tiered type: integer format: int32 productCountryLimitation: description: Set country limitations for your product type: object properties: isAnyCountryAllowed: description: >- Do you want to allow customers from any country to subscribe; true or false type: boolean countrySettings: type: object properties: {} isAnyCountryAllowed: description: >- Do you want to allow any country allowed access to the product; true or false type: boolean ProductCreatePlanRequest: type: object properties: description: description: The description of the plan type: string name: description: The name of the plan you want to add type: string displayName: description: The display name of the plan type: string pricingModel: description: >- The type of pricing model for the plan; FlatFee = 1, PerUnit = 2, Reserved = 3, Tiered = 4, Volume = 5, Ranged = 6 type: integer format: int32 featureTags: description: Any feature tags you want to add to the plan type: string visibility: description: >- The type of visibility of each plan; public, hidden and on-sale. Available values: 0, 1, 2, 3 (Public=0, Hidden=1, Internal=2, OffSale=3) type: integer format: int32 redirectUrl: description: >- The URL you want to redirect your customers to when they have completed the checkout flow type: string alertEmail: description: >- The email you would like to receive an alert when a customer signs up for this plan type: string ProductCreateCycleRequest: type: object required: - cyclesInputModel - addonPlanInputModels properties: cyclesInputModel: description: Define cycle pricing model type: array items: properties: frequency: description: >- A number with the update frequency (for example: 5 to renew every five of frequencyType) type: integer format: int32 frequencyType: description: Daily = 1, Weekly = 2, Monthly = 3, Yearly = 4 type: integer format: int32 price: description: The price amount of this cycle (unused in tiered based cycles) type: integer format: int32 billingDateType: description: Anniversary = 1, FixedDayEachMonth = 2, FixedDayOfTheWeek = 3 type: integer format: int32 visibility: description: >- The type of visibility of each product; public, hidden and on-sale. Available values: 0, 1, 2, 3 (Public=0, Hidden=1, Internal=2, OffSale=3) type: integer format: int32 freeTrial: description: >- A number with the amount of free trial (for example: 5 for five of frequencyType of free trial) type: integer format: int32 freeTrialFrequencyType: description: Daily = 1, Weekly = 2, Monthly = 3, Yearly = 4 type: integer format: int32 contractTerm: description: >- A number with the amount of minimum contract term (for example: 5 for five of frequencyType of minimum term) type: integer format: int32 contractTermFrequencyType: description: Daily = 1, Weekly = 2, Monthly = 3, Yearly = 4 type: integer format: int32 setupFeePrice: description: >- The price amount of setup fee (charged only on first invoice of new subscriptions) type: integer format: int32 freeQuantity: description: The amount of free units in tiered based cycles type: integer format: int32 fixedBillingDateDay: description: The fixed billing date if there is one (from 1 to 28) type: integer format: int32 fixedBillingDateMonth: description: The fixed billing month if there is one (from 1 to 12) type: integer format: int32 proRateOption: description: >- DoNotProRate = 1, DoNotChargeUntilNextCycle = 2, ProRateBasedOnDaysRemaining = 3 type: integer default: 1 format: int32 tiers: description: Define your tiers type: array items: properties: start: description: Start unit type: integer format: int32 finish: description: >- Ending units (it could be null, which means this tiers goes from start to unlimited) type: integer format: int32 price: description: Unit price type: integer format: int32 type: object required: - frequency - frequencyType - price - billingDateType - visibility type: object addonPlanInputModels: description: Define attached add-ons type: array items: properties: addonId: type: integer format: int32 isForced: type: boolean default: false addonPriceModels: type: array items: properties: currencyIso3Code: description: 'Currency ISO3 Code (for example: USD)' type: string frequency: description: >- A number with the update frequency (for example: 5 to renew every five of frequencyType) type: integer format: int32 frequencyType: description: Daily = 1, Weekly = 2, Monthly = 3, Yearly = 4 type: integer format: int32 flatFeePrice: type: integer format: int32 pricePerUnit: type: integer format: int32 unitTiers: type: array items: properties: start: description: Start unit type: integer format: int32 finish: description: >- Ending units (it could be null, which means this tiers goes from start to unlimited) type: integer format: int32 price: description: Unit price type: integer format: int32 type: object type: object required: - addonId type: object allowancePlanInputModel: description: Define attached allowances type: array items: properties: allowanceId: description: Allowance ID to be attached to the cycle type: integer format: int32 isForced: description: Set mandatory type: boolean default: false allowancePriceModels: description: Define price models type: array items: properties: currencyIso3Code: type: string frequency: type: integer format: int32 frequencyType: type: integer format: int32 includedUnits: type: integer default: 0 format: int32 pricePerUnit: type: integer format: int32 unitTiers: type: array items: properties: start: description: Start unit type: integer format: int32 finish: description: >- Ending units (it could be null, which means this tiers goes from start to unlimited) type: integer format: int32 price: description: Unit price type: integer format: int32 type: object required: - currencyIso3Code - frequency - frequencyType type: object required: - allowanceId type: object ProductUpdatePlanAndCycleRequest: type: object properties: description: description: The description of the plan type: string name: description: The name of the plan you want to update type: string displayName: description: The display name of the plan you want to update type: string featureTags: description: The feature tags associated with the plan type: string visibility: description: The visibility of the plan type: integer format: int32 cycles: description: Define your cycles type: object properties: cycleId: description: The unique identifier of the cycle in the Billsby platform type: integer format: int32 frequency: description: >- A number with the update frequency (for example: 5 to renew every five of frequencyType) type: integer format: int32 frequencyType: description: Daily = 1, Weekly = 2, Monthly = 3, Yearly = 4 type: integer format: int32 price: description: The price amount of this cycle (unused in tiered based cycles) type: integer format: int32 freeTrial: description: >- A number with the amount of free trial (for example: 5 for five of frequencyType of free trial) type: integer format: int32 freeTrialFrequencyType: description: Daily = 1, Weekly = 2, Monthly = 3, Yearly = 4 type: integer format: int32 setupFeePrice: description: >- The price amount of setup fee (charged only on first invoice of new subscriptions) type: integer format: int32 freeQuantity: description: The amount of free units in tiered based cycles type: integer format: int32 billingDateType: description: Anniversary = 1, FixedDayEachMonth = 2, FixedDayOfTheWeek = 3 type: integer format: int32 fixedBillingDateDay: description: The fixed billing date if there is one (from 1 to 28) type: integer format: int32 proRateOption: description: >- DoNotProRate = 1, DoNotChargeUntilNextCycle = 2, ProRateBasedOnDaysRemaining = 3 type: integer format: int32 visibility: description: >- The type of visibility of each product; public, hidden and on-sale. Available values: 0, 1, 2, 3 (Public=0, Hidden=1, Internal=2, OffSale=3) type: integer format: int32 tiers: description: Define your tiers type: object properties: start: description: Start unit type: integer format: int32 finish: description: >- Ending units (it could be null, which means this tiers goes from start to unlimited) type: integer format: int32 price: description: Unit price type: integer format: int32 redirectUrl: description: >- The URL you want your customer to redirected to when they have completed the checkout flow type: string alertEmail: description: >- Set up an email to receive alerts when a customer signs up for the plan type: string ProductUpdatePlanOrderRequest: type: object properties: orderedPlanIds: description: A list of Plan IDs in the desired order to show type: array items: type: integer format: int32 SubscriptionUpdateCounterRequest: type: object required: - operationType - value properties: operationType: description: >- Where operationType can be one of the following: Increment,Decrement or Set type: string value: description: The value by which you want to update the counter type: integer format: int32 CustomFieldCreateNewFieldRequest: type: object required: - type - label - description - compulsory properties: description: description: Description of the custom field type: string type: description: >- The type of custom field; SingleLineTextField = 0, MultiLineTextField = 1, CheckboxField = 2, DatePickerField = 3, NumbersField = 4, DropdownField = 5 type: integer format: int32 label: description: Title of the custom field type: string options: description: A comma separated list of option titles for DropdownField type type: string compulsory: description: Is the custom field compulsory; true or false type: boolean CustomFieldUpdateFieldRequest: type: object properties: description: description: Description of the custom field type: string label: description: Title of the custom field type: string options: description: A comma separated list of option titles for DropdownField type type: string compulsory: description: Is the custom field compulsory; true or false type: boolean CustomerUpdateCustomFieldResponseRequest: type: object required: - value properties: value: description: Input the response that you would like to update to type: string CustomerListCustomersResponse: type: string example: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "customerUniqueId": "string", "firstName": "mary", "lastName": "quinn", "email": "mary.quinn@mistimail.com", "createdOn": "2020-04-29T10:08:39.320Z", "status": "active" "phoneNumber": null, "phoneNumberDialCode": null, "phoneNumberDialCodeCountry": null, "billingAddress": { "addressLine1": "23 Turnabout Road", "addressLine2": "Sevenoaks", "city": "Surrey", "country": "USA", "state": "Kent", "postCode": "KN2 6WH" } } ] } CustomerCreateWithoutSubscriptionResponse: type: object properties: customerUniqueId: type: string example: string CustomerDeleteByIdResponse: type: string example: Success CustomerGetDetailsResponse: type: object properties: companyCurrency: type: string example: string totalAmountPaid: type: string example: '440' averageAmountPerMonth: type: string example: '20' cardStatus: type: string example: active customerUniqueId: type: string example: 6ZY37ULDEF firstName: type: string example: Mary lastName: type: string example: quinn billingAddress: type: object properties: addressLine1: type: string example: 20 Woodfood Road addressLine2: type: string example: Saltdean state: type: string example: Brighton city: type: string example: Brighton country: type: string example: England postCode: type: string example: BN3 4GH email: type: string example: mary.quinn@mistimail.com additionalEmail: type: string example: marymay@mistimail.com phoneNumberDialCountry: type: string example: england phoneNumberDialCode: type: string example: '+1' phoneNumber: type: string example: '07822839281' isMarketingConsentGiven: type: boolean example: true default: true createdOn: type: string example: '2020-04-29T10:16:25.474Z' status: type: string example: active CustomerUpdateDetailsResponse: type: object properties: customerId: type: string example: 6DK82SKD firstName: type: string example: mary lastName: type: string example: quinn billingAddress: type: object properties: addressLine1: type: string example: 32 woodford road addressLine2: type: string example: saltdean state: type: string example: brighton city: type: string example: brighton country: type: string example: USA postCode: type: string example: BN3 6HE email: type: string example: mary.quinn@mistmail.com additionalEmail: type: string example: marymay@mistimail.com phoneNumberDialCountry: type: string example: USA phoneNumberDialCode: type: string example: '+1' phoneNumber: type: string example: '07283928192' isMarketingConsentGiven: type: boolean example: true default: true createdOn: type: string example: '2019-09-03T13:31:55.138Z' uniqueId: type: string example: AHD12QR4 CustomerGetSubscriptionsByUniqueIdResponse: type: array items: type: object properties: subscriptionId: type: string example: string productId: type: integer example: 0 default: 0 productName: type: string example: string planId: type: integer example: 0 default: 0 planName: type: string example: string status: type: string example: string currency: type: string example: string revenue: type: string example: string nextBilling: type: string example: '2020-04-29T10:46:39.498Z' createdOn: type: string example: '2020-04-29T10:46:39.498Z' units: type: integer example: 0 default: 0 CustomerAddSubscriptionToExistingCustomerResponse: type: object properties: customerUniqueId: type: string example: string subscriptionUniqueId: type: string example: string CustomerGetFeatureTagsResponse: type: array items: type: string example: pro-plan InvoiceGetPaymentLogsResponse: type: array items: type: object properties: paymentLogId: type: integer example: 0 default: 0 createdOn: type: string example: '2020-04-29T14:02:11.138Z' gatewayId: type: integer example: 0 default: 0 gatewayName: type: string example: string reference: type: string example: string paymentMethod: type: string example: string status: type: string example: string CustomerUpdatePaymentDetailsRequestResponse: type: string example: | Success CustomerUpdatePaymentCardTokenResponse: type: string example: Success InvoiceGetCustomerInvoicesResponse: type: array items: type: object properties: invoiceId: type: integer example: 0 default: 0 createdOn: type: string example: '2020-04-30T10:47:05.886Z' invoiceNumber: type: string example: string amount: type: integer example: 0 default: 0 refundableAmount: type: integer example: 0 default: 0 formattedAmount: type: string example: string currency: type: string example: string linkedTransactionsCount: type: integer example: 0 default: 0 status: type: string example: string InvoiceCreateOneTimeChargeResponse: type: boolean example: true default: true CustomerClearGdprDataResponse: type: string example: |- { "companyCurrency": "string", "totalAmountPaid": "string", "averageAmountPerMonth": "string", "cardStatus": "string", "customerTaxRegNumber": "", "customerUniqueId": "VL9GGID9ZE," "firstName": "string", "lastName": "string", "billingAddress": { "addressLine1": "string", "addressLine2": "string", "state": "string", "city": "string", "country": "string", "postCode": "string" }, "email": "string", "additionalEmail": "string", "phoneNumberDialCountry": "string", "phoneNumberDialCode": "string", "phoneNumber": "string", "isMarketingConsentGiven": true, "createdOn": "2019-11-08T14:27:51.469Z", "uniqueId": "string", "status": "string" } SubscriptionListSubscriptionsResponse: type: object properties: currentPage: type: integer example: 0 default: 0 pageCount: type: integer example: 0 default: 0 pageSize: type: integer example: 0 default: 0 rowCount: type: integer example: 0 default: 0 results: type: array items: type: object properties: subscriptionId: type: integer example: 10 default: 0 subscriptionUniqueID: type: string example: GAFD660 customerId: type: integer example: 10 default: 0 customerUniqueId: type: string example: VKQRJFLZNV customerEmail: type: string example: maryf@mistimail.com customerFullname: type: string example: Mary planId: type: string example: '82' planName: type: string example: Premium productId: type: string example: '44' productName: type: string example: Plus createdOn: type: string example: '2019-08-29T09:40:27.590Z' status: type: string example: Active isInFreeTrial: type: boolean example: false default: true CustomerCreateNewCustomerAndSubscriptionResponse: type: object properties: customerUniqueId: type: string example: string subscriptionUniqueId: type: string example: string SubscriptionCancelSubscriptionResponse: type: string example: success SubscriptionGetDetailsResponse: type: string example: "{\n companyCurrency: \"USD\",\n contractMinimumTermEnd: null,\n createdOn: \"2020-12-21T15:59:19.095789\",\n currency: \"USD\",\n customerEmail: \"mary.smith@mistimail.com\",\n customerFullname: \"Mary Smith\",\n customerId: 243,\n customerUniqueId: \"8WER0F4J1R\",\n cycleId: 28,\n cycleIdNext: null,\n isBillingAddressValidationRequired: false,\n isShippingAddressRequired: false,\n isShippingAddressValidationRequired: false,\n nextBillingAmount: 4000,\n nextBillingAmountFormatted: \"$40\",\n nextBillingDate: \"2021-01-01T15:59:19.095789\",\n nextCycleRecurringBillingAmount: \"$40\",\n nextPlanPricingModel: null,\n planId: 26,\n planIdNext: null,\n planName: \"First Plan\",\n planPricingModel: {\n \tbillingDateType: \"FixedDayEachMonth\",\n contractTerm: null,\n contractTermFrequencyType: \"Unassigned\",\n fixedBillingDateDay: 1,\n fixedBillingDateMonth: null,\n freeQuantity: 0,\n freeTrial: null,\n freeTrialFrequencyType: \"Unassigned\",\n frequency: 1,\n frequencyType: \"Monthly\",\n pricingModelId: 129,\n proRateOption: \"ProRateBasedOnDaysRemaining\",\n setupFeePrice: null,\n setupFeePriceFormatted: null,\n tiers: []\n },\n productId: 5,\n productName: \"First product\",\n productVisibility: \"Public\",\n status: \"Active\",\n subscriptionId: 114,\n subscriptionUniqueId: \"Y7MX4G314L\",\n totalRevenue: 1446,\n totalRevenueFormatted: \"$14.46\",\n units: 1,\n unitsNext: null,\n visibility: \"Public\"\n}" SubscriptionGetShippingAddressResponse: type: object properties: addressLine1: type: string example: 20 Woodfoord Road addressLine2: type: string example: Saltdean state: type: string example: Brighton city: type: string example: Brighton country: type: string example: England postCode: type: string example: BN3 4GH SubscriptionUpdateShippingAddressResponse: type: string example: success SubscriptionListTagsBySubscriptionResponse: type: array items: type: string example: pro-plan SubscriptionFeatureTagsSplitResponse: type: object properties: planFeatureTags: type: array items: type: string example: string subscriptionFeatureTags: type: array items: type: string example: string SubscriptionGetEventLogsResponse: type: object properties: currentPage: type: integer example: 0 default: 0 pageCount: type: integer example: 0 default: 0 pageSize: type: integer example: 0 default: 0 rowCount: type: integer example: 0 default: 0 results: type: array items: type: object properties: subscriptionEventLogId: type: integer example: 0 default: 0 type: type: string example: string createdOn: type: string example: '2019-09-10T10:37:24.680Z' eventData: type: object properties: {} SubscriptionAddFeatureTagsResponse: type: string example: | Success SubscriptionChangePlanResponse: type: string example: success SubscriptionRemoveFeatureTagResponse: type: string example: | Success SubscriptionUpdateRenewalDateResponse: type: object properties: {} SubscriptionUpdateRenewalDate400Response: type: object properties: {} InvoiceDetailsResponse: type: object properties: invoiceId: type: string example: '0' customerEmail: type: string example: mary.rose@msn.com customerFirstName: type: string example: Mary customerLastName: type: string example: Rose customerUniqueId: type: string example: 8MJ7XU07D9 addressLine1: type: string example: 31 Long Avenue addressLine2: type: string example: Rickmansworth addressPostCode: type: string example: HA94WD addressCity: type: string example: Buckinghamshire addressState: type: string example: Buckinghamshire addressCountry: type: string example: United Kingdom addressCountryCode: type: string example: GBR invoiceNumber: type: string example: 0WX1VTRPWY-1 createdOn: type: string example: '2020-04-29T00:14:57.297Z' formattedAmount: type: string example: '9' amount: type: string example: '10' currency: type: string example: gbp status: type: string example: active subTotal: type: string example: '400' taxTotal: type: string example: '200' prorationAdjustment: type: string example: £0 prorationFactor: {} taxes: type: array items: description: >- WARNING: Missing items property in array schema. Missing items property has been filled with this AnyType schema. invoiceType: type: string example: renewal subscriptions: type: array items: type: object properties: subscriptionUniqueId: type: string example: Y4EDK80W71 planName: type: string example: premium billingPeriodStart: type: string example: '2020-04-29T00:14:57.297Z' billingPeriodEnd: type: string example: '2020-04-29T00:14:57.297Z' subscriptionItems: type: array items: type: object properties: description: type: string example: test units: type: string example: '3' unitPrice: type: string example: '2' discounts: type: string example: '1' amount: type: string example: '7' companyName: type: string example: flowers companyEmail: type: string example: flowers@flowers.com companyTaxNumber: type: string example: '12345678' companyDomain: type: string example: flowers companyPhoneNumberDialCountry: type: string example: '0044' companyPhoneNumberDialCode: type: string example: '0044' companyPhoneNumber: type: string example: '02088671028' companyAddressLine1: type: string example: wework, 1 fore street companyAddressLine2: type: string example: moorgate companyCity: type: string example: london companyState: type: string example: london companyPostCode: type: string example: ec2y9dt companyCountry: type: string example: united kingdom brandingLogo: type: string example: logo.jpg brandingLogoBackgroundColor: type: string example: black brandingHighlightColor: type: string example: pink supportUrl: type: string example: support@flowers.co.uk cardType: type: string example: mastercard cardLast4Digits: type: string example: '8972' cardExpiryMonth: type: string example: '07' cardExpiryYear: type: string example: '23' refundableAmount: type: string example: '10' footerCompanyName: type: string example: flowers footerAddressLine1: type: string example: wework, 1 fore street footerAddressLine2: type: string example: moorgate footerAddressState: type: string example: moorgate footerAddressCity: type: string example: london footerAddressPostCode: type: string example: ec2y9dt footerAddressCountryISO3: type: string example: united kingdom footerEmailAddress: type: string example: flowers@flowers.com footerPhoneNumberDialCountry: type: string example: '0044' footerPhoneNumberDialCode: type: string example: '0044' footerPhoneNumber: type: string example: '02088671028' supportContactHeading: type: string example: support supportContactContent: type: string example: mary rose supportContactSupportUrl: type: string example: support@flowers.com supportContactSupportUrlButtonText: type: string example: support isAdvertEnabled: type: string example: 'true' advertImageUrl: type: string example: advert.com advertLinkToUrl: type: string example: advert.com InvoiceDetails400Response: type: object properties: {} InvoiceListCompanyInvoicesResponse: type: string example: |- { "currentPage": 0, "pageCount": 0, "pageSize": 0, "rowCount": 0, "results": [ { "invoiceId": 0, "invoiceNumber": "string", "customerId": 0, "customerUniqueId": "string", "customerFirstName": "string", "customerLastName": "string", "customerFullName": "string", "createdOn": "2020-02-04T10:23:23.341Z", "amount": 1000, "formattedAmount": "$10" "status": "string", "currency": "string" } ] } InvoiceCreateRefundResponse: type: object properties: invoiceNumber: type: string example: string amount: type: integer example: 12 default: 0 InvoiceReattemptPaymentResponse: type: string example: success InvoiceMarkAsPaidOfflineResponse: type: string example: success InvoiceMarkAsPaidOffline400Response: type: object properties: {} InvoiceMarkWrittenOffResponse: type: string example: success CreditnoteListResponse: type: object properties: currentPage: type: integer example: 0 default: 0 pageCount: type: integer example: 0 default: 0 pageSize: type: integer example: 0 default: 0 rowCount: type: integer example: 0 default: 0 results: type: array items: type: object properties: creditNoteId: type: integer example: 0 default: 0 creditNoteUniqueId: type: string example: string customerId: type: integer example: 0 default: 0 customerUniqueId: type: string example: string customerFirstName: type: string example: string customerLastName: type: string example: string customerFullName: type: string example: string createdOn: type: string example: '2020-04-30T10:22:14.547Z' amount: type: string example: string status: type: string example: string currency: type: string example: string CustomerGetCreditNotesResponse: type: array items: type: object properties: invoiceId: type: integer example: 0 default: 0 createdOn: type: string example: '2020-04-30T11:21:42.155Z' invoiceNumber: type: string example: string amount: type: string example: string currency: type: string example: string linkedTransactionsCount: type: integer example: 0 default: 0 status: type: string example: string paymentGatewayDisplayName: type: string example: string CreditnoteReattemptPaymentResponse: type: string example: success ProductGetDetailsResponse: type: object properties: description: type: string example: string productCountryLimitation: type: object properties: isAnyCountryAllowed: type: boolean example: true default: true countrySettings: type: array items: type: object properties: countryIso3: type: string example: string addressPermission: type: integer example: 1 default: 0 productId: type: integer example: 0 default: 0 name: type: string example: string visibility: type: integer example: 0 default: 0 billingCurrency: type: string example: string billingCurrencyTemplate: type: string example: string displayName: type: string example: string typeOfProduct: type: integer example: 1 default: 0 hasPlans: type: boolean example: true default: true isShippingAddressRequired: type: boolean example: true default: true isShippingAddressValidationRequired: type: boolean example: true default: true isBillingAddressValidationRequired: type: boolean example: true default: true isAdditionalEmailRequired: type: boolean example: true default: true isPhoneNumberRequired: type: boolean example: true default: true isMarketingConsentRequired: type: boolean example: true default: true numberOfPlans: type: integer example: 0 default: 0 alertEmail: type: string example: string ProductUpdateProductResponse: type: object properties: description: type: string example: string productCountryLimitation: type: object properties: isAnyCountryAllowed: type: boolean example: true default: true countrySettings: type: array items: type: object properties: countryIso3: type: string example: string addressPermission: type: integer example: 1 default: 0 productId: type: integer example: 0 default: 0 name: type: string example: string visibility: type: integer example: 0 default: 0 billingCurrency: type: string example: string billingCurrencyTemplate: type: string example: string displayName: type: string example: string typeOfProduct: type: integer example: 1 default: 0 hasPlans: type: boolean example: true default: true isShippingAddressRequired: type: boolean example: true default: true isShippingAddressValidationRequired: type: boolean example: true default: true isBillingAddressValidationRequired: type: boolean example: true default: true isAdditionalEmailRequired: type: boolean example: true default: true isPhoneNumberRequired: type: boolean example: true default: true isMarketingConsentRequired: type: boolean example: true default: true numberOfPlans: type: integer example: 0 default: 0 alertEmail: type: string example: string ProductListProductsResponse: type: object properties: currentPage: type: integer example: 0 default: 0 pageCount: type: integer example: 0 default: 0 pageSize: type: integer example: 0 default: 0 rowCount: type: integer example: 0 default: 0 results: type: array items: type: object properties: description: type: string example: A description of the product productId: type: integer example: 0 default: 0 name: type: string example: Product Name visibility: type: integer example: 0 default: 0 billingCurrency: type: string example: USD billingCurrencyTemplate: type: string example: $X.XX displayName: type: string example: Product Name typeOfProduct: type: integer example: 1 default: 0 hasPlans: type: boolean example: true default: true isShippingAddressRequired: type: boolean example: true default: true isShippingAddressValidationRequired: type: boolean example: true default: true isBillingAddressValidationRequired: type: boolean example: true default: true isAdditionalEmailRequired: type: boolean example: true default: true isPhoneNumberRequired: type: boolean example: true default: true isMarketingConsentRequired: type: boolean example: true default: true numberOfPlans: type: integer example: 0 default: 0 alertEmail: type: string example: string customFields: type: array items: type: object properties: description: type: string example: string customFieldId: type: integer example: 0 default: 0 type: type: integer example: 0 default: 0 label: type: string example: string options: type: string example: string compulsory: type: boolean example: true default: true orderedCustomFields: type: array items: type: integer example: 0 default: 0 ProductCreateNewProductResponse: type: object properties: description: type: string example: This is our SAAS offering productCountryLimitation: type: object properties: isAnyCountryAllowed: type: boolean example: true default: true countrySettings: type: array items: type: object properties: countryIso3: type: string example: GBR addressPermission: type: integer example: 1 default: 0 productId: type: integer example: 42 default: 0 name: type: string example: SAAS offering visibility: type: integer example: 2 default: 0 billingCurrency: type: string example: USD billingCurrencyTemplate: type: string example: string displayName: type: string example: SAAS offering typeOfProduct: type: integer example: 1 default: 0 hasPlans: type: boolean example: true default: true isShippingAddressRequired: type: boolean example: true default: true isShippingAddressValidationRequired: type: boolean example: true default: true isBillingAddressValidationRequired: type: boolean example: true default: true isAdditionalEmailRequired: type: boolean example: true default: true isPhoneNumberRequired: type: boolean example: true default: true isMarketingConsentRequired: type: boolean example: true default: true numberOfPlans: type: integer example: 0 default: 0 alertEmail: type: string example: Accounts@mistimail.com ProductListPlansResponse: type: array items: type: object properties: description: type: string example: string planId: type: integer example: 0 default: 0 name: type: string example: string displayName: type: string example: string pricingModelType: type: integer example: 1 default: 0 productId: type: integer example: 0 default: 0 cycles: type: array items: type: object properties: cycleId: type: integer example: 0 default: 0 planId: type: integer example: 0 default: 0 pricingModel: type: object properties: pricingModelId: type: integer example: 0 default: 0 frequency: type: integer example: 0 default: 0 frequencyType: type: integer example: 1 default: 0 freeTrial: type: integer example: 0 default: 0 freeTrialFrequencyType: type: integer example: 1 default: 0 setupFeePrice: type: integer example: 0 default: 0 setupFeePriceFormatted: type: string example: string billingDateType: type: integer example: 1 default: 0 fixedBillingDateDay: type: integer example: 0 default: 0 proRateOption: type: integer example: 1 default: 0 visibility: type: string example: string featureTags: type: array items: type: string example: string visibility: type: string example: string redirectUrl: type: string example: string hasActiveSubscription: type: boolean example: true default: true alertEmail: type: string example: string ProductCreatePlanResponse: type: object properties: description: type: string example: This plan is our premium experience planId: type: integer example: 43 default: 0 name: type: string example: Premium Plan displayName: type: string example: The Premium Plan pricingModelType: type: integer example: 1 default: 0 productId: type: integer example: 123 default: 0 cycles: type: array items: type: object properties: cycleId: type: integer example: 2 default: 0 planId: type: integer example: 2 default: 0 pricingModel: type: object properties: pricingModelId: type: integer example: 0 default: 0 frequency: type: integer example: 4 default: 0 frequencyType: type: integer example: 1 default: 0 freeTrial: type: integer example: 0 default: 0 freeTrialFrequencyType: type: integer example: 0 default: 0 contractTerm: type: integer example: 0 default: 0 contractTermFrequencyType: type: integer example: 0 default: 0 setupFeePrice: type: integer example: 15 default: 0 setupFeePriceFormatted: type: string example: string freeQuantity: type: integer example: 0 default: 0 billingDateType: type: integer example: 1 default: 0 fixedBillingDateDay: type: integer example: 0 default: 0 proRateOption: type: integer example: 1 default: 0 visibility: type: string example: '1' featureTags: type: array items: type: string example: string visibility: type: string example: public redirectUrl: type: string example: home@mistimail.com hasActiveSubscription: type: boolean example: true default: true alertEmail: type: string example: accounts@mistimail.com ProductCreateCycleResponse: type: array items: type: object properties: cycleId: type: integer example: 123 default: 0 planId: type: integer example: 45 default: 0 pricingModel: type: object properties: pricingModelId: type: integer example: 5 default: 0 frequency: type: integer example: 0 default: 0 frequencyType: type: integer example: 0 default: 0 freeTrial: type: integer example: 0 default: 0 freeTrialFrequencyType: type: integer example: 0 default: 0 contractTerm: type: integer example: 0 default: 0 contractTermFrequencyType: type: integer example: 0 default: 0 setupFeePrice: type: integer example: 0 default: 0 setupFeePriceFormatted: type: string example: string freeQuantity: type: integer example: 0 default: 0 billingDateType: type: integer example: 1 default: 0 fixedBillingDateDay: type: integer example: 0 default: 0 proRateOption: type: integer example: 1 default: 0 ProductUpdatePlanAndCycleResponse: type: string example: success ProductUpdatePlanOrderResponse: type: string example: success SubscriptionGetCountersValueResponse: type: object properties: usage: type: integer example: 2 default: 0 timestamp: type: string example: '2020-05-28T11:05:09.078+00:00' SubscriptionUpdateCounterResponse: type: string example: success AddonListAvailableAddonsResponse: type: array items: type: object properties: description: type: string example: string addonId: type: integer example: 0 default: 0 name: type: string example: string hasActiveLinkedPlans: type: boolean example: true default: true AddonGetDetailsResponse: type: object properties: description: type: string example: string addonId: type: integer example: 0 default: 0 name: type: string example: string displayName: type: string example: string singleUnitName: type: string example: string pluralUnitName: type: string example: string pricingModelType: type: string example: string hasActiveLinkedPlans: type: boolean example: true default: true featureTags: type: array items: type: string example: string plans: type: array items: type: object properties: planId: type: integer example: 0 default: 0 planName: type: string example: string productName: type: string example: string forceAddon: type: boolean example: true default: true isActive: type: boolean example: true default: true priceModels: type: array items: type: object properties: frequency: type: integer example: 0 default: 0 frequencyType: type: string example: string currency: type: string example: string flatFeePrice: type: integer example: 0 default: 0 flatFeePriceFormatted: type: string example: string perUnitPrice: type: integer example: 0 default: 0 perUnitPriceFormatted: type: string example: string tiers: type: array items: type: object properties: finish: type: integer example: 0 default: 0 price: type: integer example: 0 default: 0 start: type: integer example: 0 default: 0 priceFormatted: type: string example: string AllowanceGetListResponse: type: string example: |2- { "allowanceId": 0, "name": "string", "description": "string", "hasActiveLinkedPlans": true } ] AllowanceGetDetailsResponse: type: object properties: description: type: string example: string allowanceId: type: integer example: 0 default: 0 name: type: string example: string displayName: type: string example: string singleUnitName: type: string example: string pluralUnitName: type: string example: string pricingModelType: type: string example: string counter: type: object properties: counterId: type: string example: string counterName: type: string example: string hasActiveLinkedPlans: type: boolean example: true default: true featureTags: type: array items: type: string example: string plans: type: array items: type: object properties: planId: type: integer example: 0 default: 0 planName: type: string example: string productName: type: string example: string forceAllowance: type: boolean example: true default: true isActive: type: boolean example: true default: true priceModels: type: array items: type: object properties: frequency: type: integer example: 0 default: 0 frequencyType: type: string example: string currency: type: string example: string includedUnits: type: integer example: 0 default: 0 flatFeePrice: type: integer example: 0 default: 0 flatFeePriceFormatted: type: string example: string perUnitPrice: type: integer example: 0 default: 0 perUnitPriceFormatted: type: string example: string tiers: type: array items: type: object properties: finish: type: integer example: 0 default: 0 price: type: integer example: 0 default: 0 start: type: integer example: 0 default: 0 priceFormatted: type: string example: string AddonGetAddonListResponse: type: string example: |- { "addons": [ { "id": 0, "name" "string", "isForced": true, "status": "string", "quantity": 0, "quantityNext": 0, "nextUpdate": "2020-07-23T15:58:31.967Z" } ] } AllowanceGetSpecificSubscriptionAllowancesResponse: type: string example: |- { "allowances": [ { "id": 0, "name" "string", "isForced": true, "status": "string", "usage": 0, "includedUnits": 0, } ] } CustomFieldListResponse: type: array items: type: object properties: description: type: string example: string customFieldId: type: integer example: 0 default: 0 type: type: integer example: 0 default: 0 label: type: string example: string options: type: string example: string compulsory: type: boolean example: true default: true CustomFieldCreateNewFieldResponse: type: string example: success CustomFieldUpdateFieldResponse: type: string example: success CustomFieldGetResponseResponse: type: array items: type: object properties: customFieldResponseId: type: integer example: 0 default: 0 customField: type: object properties: description: type: string example: string customFieldId: type: integer example: 0 default: 0 type: type: integer example: 0 default: 0 label: type: string example: string options: type: string example: string compulsory: type: boolean example: true default: true value: type: string example: string CustomFieldGetResponse400Response: type: object properties: {} CustomerUpdateCustomFieldResponseResponse: type: array items: type: object properties: customFieldResponseId: type: integer example: 0 default: 0 customField: type: object properties: description: type: string example: string customFieldId: type: integer example: 0 default: 0 type: type: integer example: 0 default: 0 label: type: string example: string options: type: string example: string compulsory: type: boolean example: true default: true value: type: string example: string security: - sec0: [] x-readme: headers: [] explorer-enabled: true proxy-enabled: true x-readme-fauxas: true _id: 61a8961117799a00238387b3:61a8961117799a002383882f