Overview
Orders represent completed purchases. They’re created when customers complete checkout sessions or when subscriptions renew.The Order Object
Unique identifier for the order
Status:
pending, paid, refunded, or failedID of the customer
ID of the product
ID of the price
Associated subscription ID (for recurring orders)
Associated checkout session ID
Total amount in cents
Tax amount in cents
Net amount (after tax) in cents
Three-letter ISO currency code
Order description
Invoice number
Customer’s billing address
Applied discount ID
Custom metadata
Creation timestamp
List Orders
cURL
Query Parameters
Filter by organization
Filter by product
Filter by type:
recurring (subscription renewals) or one_timeFilter by discount
Filter by customer
Filter by external customer ID
Filter by checkout session
Filter by metadata
Get Order
cURL
Path Parameters
Order ID
Update Order
cURL
Path Parameters
Order ID
Request Body
Update metadata
Get Invoice
cURL
Path Parameters
Order ID
Response
URL to download the invoice PDF
Invoice number
Generate Invoice
cURL
Path Parameters
Order ID
Response
Invoice generation started
Errors
Order is not paid or missing billing details
Export Orders
cURL
Query Parameters
Filter by organization
Filter by product