Retrieves a list of 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.
Expands a request to include embedded objects within the _embedded property of the response. This field accepts a comma-separated list of objects.
For more information, see Embedded resources.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/storefront/orders
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/storefront/orders
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/storefront/orders
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/storefront/orders?filter=string&sort=string&limit=1000&offset=1000&q=string&expand=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'List of orders retrieved.
Specifies the type of order. An order may be a subscription or a one-time purchase.
Billing status of the most recent invoice. This value may help you to determine if you should change the service status of the service, such as suspending the service.
ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID.
ID of the order.
ID of the initial invoice.
ID of the most recently issued invoice. The invoice might not be paid yet.
Details of items in the order.
Date and time when the order is activated.
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.
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.
Shifts issue time and due time of invoices for this subscription.
This setting overrides plan settings. To use plan settings, set this value to null.
To use multiple plans in one subscription, all plans must have the same billing period, this property enables the customer to subscribe to different plans.
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 payment instrument to use for autopay. If this value is not provided, or if the payment instrument is inactive, the customer's default payment instrument is used.
Specifies who initiated the cancellation.
Category of the cancellation.
Description of the cancellation reason in free form.
ID of the billing portal.
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" }
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
Recurring interval to override plan settings. To use plan settings, set this value to null.
To use multiple plans in one subscription, all plans must have the same same recurring period length, this property enables the customer to subscribe to different plans.
Subscription line items which queue until the next renewal (or interim) invoice is issued for the subscription.
- subscription-order
- one-time-order
[ { "id": "sub_01HRF27SATGE4Z6PBJE6PD8328", "orderType": "subscription-order", "billingStatus": "draft", "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG", "orderId": "ord_01HVKA5975PJBSQ1SX72G3MSZC", "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", "poNumber": "PO123456", "shipping": { … }, "notes": "string", "status": "pending", "inTrial": true, "trial": { … }, "isTrialOnly": false, "invoiceTimeShift": { … }, "recurringInterval": null, "autopay": true, "startTime": null, "churnTime": "2019-08-24T14:15:22Z", "renewalTime": "2019-08-24T14:15:22Z", "rebillNumber": 0, "lineItems": [ … ], "lineItemSubtotal": { … }, "paymentInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N", "canceledTime": "2019-08-24T14:15:22Z", "canceledBy": "merchant", "cancelCategory": "billing-failure", "cancelDescription": "string", "billingPortalId": "bill_prt_0YV7K5TYV5D1P9ZNKDT39KZC3C", "customFields": { … }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ … ], "_embedded": { … } } ]