Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 35.6 KB

File metadata and controls

41 lines (38 loc) · 35.6 KB

CustomerOrder

Fields

Field Type Required Description Example
id str ✔️ The ID of the object.
created_at date ✔️ Creation timestamp of the object.
modified_at date ✔️ Last modification timestamp of the object.
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. 10000
discount_amount int ✔️ Discount amount in cents. 1000
net_amount int ✔️ Amount in cents, after discounts but before taxes. 9000
tax_amount int ✔️ Sales tax amount in cents. 720
total_amount int ✔️ Amount in cents, after discounts and taxes. 9720
applied_balance_amount int ✔️ Customer's balance amount applied to this invoice. Can increase the total amount paid, if the customer has a negative balance, or decrease it, if the customer has a positive balance.Amount in cents. 0
due_amount int ✔️ Amount in cents that is due for this order. 0
refunded_amount int ✔️ Amount refunded in cents. 0
refunded_tax_amount int ✔️ Sales tax refunded in cents. 0
currency str ✔️ N/A usd
billing_reason models.OrderBillingReason ✔️ N/A
billing_name Nullable[str] ✔️ The name of the customer that should appear on the invoice.
billing_address Nullable[models.Address] ✔️ N/A
invoice_number str ✔️ The invoice number associated with this order.
is_invoice_generated bool ✔️ Whether an invoice has been generated for this order.
receipt_number Nullable[str] ✔️ The receipt number for this order. Set once the order is paid for organizations with receipts enabled. When set, a downloadable receipt PDF can be obtained via the receipt endpoint.
seats OptionalNullable[int] Number of seats purchased (for seat-based one-time orders).
customer_id str ✔️ N/A
product_id Nullable[str] ✔️ N/A
discount_id Nullable[str] ✔️ N/A
subscription_id Nullable[str] ✔️ N/A
checkout_id Nullable[str] ✔️ N/A
product Nullable[models.CustomerOrderProduct] ✔️ N/A
subscription Nullable[models.CustomerOrderSubscription] ✔️ N/A
items List[models.OrderItemSchema] ✔️ Line items composing the order.
description str ✔️ A summary description of the order. Pro Plan
next_payment_attempt_at date When the next payment retry is scheduled
refundable_amount int ✔️ Amount in cents that can still be refunded (net, before taxes). Accounts for any applied customer balance and previous refunds. 9000
refundable_tax_amount int ✔️ Sales tax in cents that would be refunded if the full refundable amount is refunded. 720