Page through orders
const url = 'https://digize.com/api/v1/commerce/orders/page';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/commerce/orders/page \ --header 'x-api-key: <x-api-key>'A page of orders, the newest first, with how many match in all. Narrow it by customer (contactId), payment status, fulfillment, when it was placed, or a search for an order number or words in the customer’s name or email. Pass nextCursor back as cursor for the next page; orders placed in between don’t shift the pages.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The nextCursor of the page before. Leave it out for the first page.
The nextCursor of the page before. Leave it out for the first page.
Rows on the page: 50 unless it says, 100 at most.
Rows on the page: 50 unless it says, 100 at most.
Responses
Section titled “Responses”Done
object
object
object
object
What a gift card paid of the total.
The Stripe PaymentIntent, when Stripe was paid.
Something the team needs to look at.
Unreceipted: no sending domain yet, so only Stripe’s receipt went.
Pass it as cursor for the next page; null on the last.
Example
{ "rows": [ { "status": "paid", "fulfillment": "unfulfilled", "channel": "storefront", "receipt": "queued" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}