Skip to main content
GET
Typescript (SDK)

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Path Parameters

id
string
required

The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")

Query Parameters

expand
string

Comma-separated relations to expand: customer, line_items

Response

Order details

id
string
required
object
string
required
status
enum<string>
required
Available options:
succeeded,
pending,
failed,
refunded,
partially_refunded,
disputed
livemode
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
metadata
object | null
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.

customer
required

ID by default, full object when expanded

checkout
string | null
required

Null for a renewal, which no checkout started.

billing_reason
enum<string> | null
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.

Available options:
subscription_create,
subscription_cycle,
null
subscription
string | null
required

The subscription this order started or renewed.

billing_address
object | null
required
shipping_address
object | null
required
charge
string | null
required
form_submissions
object[]
required

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

line_items
object[]