Orders

Returns a specific order

get/orders/{id}

Request

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

Path parameters

id, string required

The resource's ID, as returned in its id field

Query parameters

expand, string

Comma-separated relations to expand: contact, line_items

Response

Order details

Order required
id, string required
object, string required
status, 'succeeded' | 'pending' | 'failed' | 'refunded' | 'partially_refunded' | 'disputed' required
livemode, boolean required
created_at, string date-time required
updated_at, string date-time required
withdrawal_waiver_at, string nullable required

When the buyer agreed at checkout to immediate access and to losing the EU 14-day withdrawal right. Null when not asked.

metadata, object nullable required
amount, integer required

Amount charged after discounts, in the smallest currency unit (79 = $0.79).

currency, string required
amount_refunded, integer required

Amount refunded so far, in the smallest currency unit.

contact, union required

ID by default, full object when expanded

line_items, OrderItem[]
checkout, string nullable required

Null for a renewal, which no checkout started.

billing_reason, 'subscription_create' | 'subscription_cycle' | 'null' nullable required

As Stripe names the invoice: subscription_create for the purchase that started a subscription, subscription_cycle for each paid renewal after it. Null for a one-time purchase.

subscription, string nullable required

The subscription this order started or renewed.

billing_address, Address nullable required
shipping_address, Address nullable required
charge, string nullable required
application_fee_amount, integer nullable required

Crevio's platform fee on this payment, in the smallest currency unit. Null when the payment carried no fee, such as a test order, or the order has no charge.

form_submissions, FormSubmission[] required

The buyer's answers to the price variant's form at checkout.

Changes

    • info

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

    • info

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

    • info

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