Field | Type | Required | Description | Example |
---|---|---|---|---|
created_at |
date | ✔️ | Creation timestamp of the object. | |
modified_at |
date | ✔️ | Last modification timestamp of the object. | |
id |
str | ✔️ | N/A | |
status |
models.OrderStatus | ✔️ | N/A | |
paid |
bool | ✔️ | Whether the order has been paid for. | true |
subtotal_amount |
int | ✔️ | Amount in cents, before discounts and taxes. | |
discount_amount |
int | ✔️ | Discount amount in cents. | |
net_amount |
int | ✔️ | Amount in cents, after discounts but before taxes. | |
amount |
int | ✔️ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. Amount in cents, after discounts but before taxes. |
|
tax_amount |
int | ✔️ | Sales tax amount in cents. | |
total_amount |
int | ✔️ | Amount in cents, after discounts and taxes. | |
refunded_amount |
int | ✔️ | Amount refunded in cents. | |
refunded_tax_amount |
int | ✔️ | Sales tax refunded in cents. | |
currency |
str | ✔️ | N/A | |
customer_id |
str | ✔️ | N/A | |
product_id |
str | ✔️ | N/A | |
product_price_id |
str | ✔️ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | |
subscription_id |
Nullable[str] | ✔️ | N/A | |
user_id |
str | ✔️ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | |
product |
models.CustomerOrderProduct | ✔️ | N/A | |
product_price |
models.CustomerOrderProductPrice | ✔️ | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | |
subscription |
Nullable[models.CustomerOrderSubscription] | ✔️ | N/A | |
items |
List[models.OrderItemSchema] | ✔️ | Line items composing the order. |