Orders

Returns a list of orders for the current account

get/orders

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Query parameters

status, 'succeeded' | 'pending' | 'failed' | 'refunded' | 'partially_refunded'

Filter by order status

contact, string

Filter by contact ID

processor, string

Filter by payment processor

expand, string

Comma-separated relations to expand: contact, line_items

starting_after, string

Cursor for pagination — the ID of the last item in the previous page

created, union
integer

Unix seconds, exact match

OR
string

Unix seconds or an ISO 8601 time, exact match

OR
object

Only return objects created in this window. Pass a Unix timestamp in seconds for an exact match, or bound it with created[gt], created[gte], created[lt] and created[lte], which combine: created[gte]=1735689600&created[lt]=1738368000 is January 2025. ISO 8601 times work too (created[gte]=2025-01-01T00:00:00Z), so a created_at from a response can be passed back as is, and an ISO 8601 date (created[gte]=2025-01-01) is that whole UTC day. Timestamps are in seconds: a value in milliseconds is rejected with 400 parameter_invalid.

limit, integer

Items per page

metadata, object

Filter by caller-owned metadata key/value pairs, e.g. metadata[campaign]=spring. Repeatable (up to 10 keys); all pairs must match.

Response

List of orders

ListResponseOrder required
object, 'list' required
data, Order[] required
has_more, boolean required
url, string required

Changes

    • info

      added the non-success response with the status

    • info

      added the required property data/items/line_items/items/price_variant/oneOf[#/components/schemas/PriceVariant]/cross_sells to the response with the status

    • info

      added the required property data/items/line_items/items/product/oneOf[#/components/schemas/Product]/price_variants/items/cross_sells to the response with the status

    1 more change in this revision