Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.
For more information, see Search filters.
Use these operations to manage customer orders.
This is the legacy order model. If you are new to Rebilly, use these order operations. Organizations that use the current order model cannot create legacy orders. For these organizations, the operations that create a legacy order return a validation error.
For information on the legacy order model, and how to upgrade to the current order model, see Legacy orders model.
An order is a customer's request to purchase items. It can contain subscription and one-time sale items. When an order contains one or more subscription items, it is a subscription order.
An order generates an invoice. A subscription order generates an invoice for each service period. For more information, see Orders.
Criteria for filtering collection items. This field requires a special format. Use , to specify multiple allowed values. Use ; to specify multiple fields.
For more information, see Search filters.
Expand a response to receive a full related object in the _embedded path.
To expand multiple objects, use a comma-separated list. Example: expand=recentInvoice,initialInvoice.
Available arguments are:
customerleadSourcewebsiteshippingRateinitialInvoicerecentInvoiceupcomingInvoicepaymentInstrumentFor more information, see Embedded resources.
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/subscriptions?filter=string&sort=string&limit=0&offset=0&q=string&expand=string' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Total number of items that match the request. The value is independent of limit, including when limit is 0.
Specifies the type of order. An order may be a subscription or a one-time purchase.
Note: The order type cannot be changed after creation.
Unique organization identifier. An organization is an entity that represents a company. For more information, see Obtain an organization ID.
Status of the subscription service. A subscription starts in the pending status, and becomes active when the service period begins.
Details of the trial. To use plan defaults, omit the trial key or set this value to null.
Specifies if a subscription ends after a trial period. If this value is true, recurring settings are ignored.
Specifies if payment attempts are made automatically. If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at paymentInstrumentId, or the default payment instrument on the subscription.
Date and time when the subscription starts. If this value is null, the current time is used. This value cannot be more than one service period in the past.
ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID.
Note: The ID of the website cannot be changed after creation.
ID of the most recently issued invoice. The invoice might not be paid yet.
Date and time when the pending order is automatically abandoned. If this value is not passed during order creation, a pending order TTL setting is used to calculate the value.
Length of time, in ISO-8601 durations format, which is added to the due time of the order when setting the delinquency time for all related invoices. When the delinquency time of an invoice is reached, the order is automatically canceled.
delinquencyPeriod value is null, the order does not change state and remains active. You must explicitly configure the delinquency period to enable automatic cancellation of unpaid orders.delinquencyTime parameter using the upsert an invoice API operation.If this value is not passed during order creation, an order delinquency period setting is used to calculate the value.
Sandbox recurring order retention. In the sandbox environment, a recurring order is canceled 90 days after it is created or on the start date of the policy, whichever is later. The order is not canceled if it is retained or if the organization is excluded from the policy. This property is returned in the sandbox environment only, for recurring orders. In the live environment, if the request includes this property with a value, a validation error is returned. A null value in a request does not update the property.
Category of the cancellation.
The sandbox-retention value is set only in the sandbox environment when a recurring order is canceled 90 days after creation.
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
[ { "id": "sub_01HRF27SATGE4Z6PBJE6PD8328", "orderType": "subscription-order", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "renewalReminderTime": "2019-08-24T14:15:22Z", "renewalReminderNumber": 0, "abandonReminderTime": "2019-08-24T14:15:22Z", "abandonReminderNumber": 0, "organizationId": "org_0YVDM8RC7GDADADSBSMW124JA8", "status": "pending", "inTrial": true, "trial": { … }, "isTrialOnly": false, "trialConversionTime": "2019-08-24T14:15:22Z", "invoiceTimeShift": { … }, "autopay": true, "startTime": null, "churnTime": "2019-08-24T14:15:22Z", "renewalTime": "2019-08-24T14:15:22Z", "currentPeriodStart": "2019-08-24T14:15:22Z", "currentPeriodEnd": "2019-08-24T14:15:22Z", "rebillNumber": 0, "lineItems": [ … ], "lineItemSubtotal": { … }, "mrr": 49.95, "paymentInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N", "billingStatus": "draft", "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG", "currency": "USD", "initialInvoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "recentInvoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "items": [ … ], "deliveryAddress": { … }, "billingAddress": { … }, "activationTime": "2019-08-24T14:15:22Z", "voidTime": "2019-08-24T14:15:22Z", "abandonTime": "2019-08-24T14:15:22Z", "delinquencyPeriod": "P7D", "poNumber": "PO123456", "sandboxRetention": { … }, "shipping": { … }, "notes": "string", "canceledTime": "2019-08-24T14:15:22Z", "canceledBy": "merchant", "cancelCategory": "billing-failure", "cancelDescription": "string", "revision": 0, "riskMetadata": { … }, "billingPortalToken": "string", "customFields": { … }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ], "_embedded": { … } } ]