Order
Object model reference for Order object
Order
Contract representing the exchange of goods or services
Attributes
Name
Required
Type
Description
number
Yes
String
unique order identifier
buyer
Yes
Object
buyer name, phone, email and IP address
total
-
total amount of money due for payment
created
-
order creation timestamp
billing_address
Yes
address to send order invoice to
shipping_address
Yes
address to ship order purchases to
payments
-
payments made to settle order
shipments
-
shipments created to fulfill order
purchases
-
order line items
adjustments
-
order price adjustments
visible
-
Boolean
order visibility status
viewed
-
Boolean
flag to mark order as viewed by user
cancelled
-
Boolean
flag to mark order as cancelled
confirmed
-
Boolean
flag to mark order as confirmed
payment_method
Yes
String
payment method chosen by shopper
Example
Notes
1. Difference between Order.payment_method
and Payment.method
The field payment_method
in the Order
object contains the payment method chosen at checkout.
Even though this is likely to be the same as the method
field in the order's Payment
object(s), there are some edges cases in which those two fields are different. For example, a shopper may indicate that they wish to pay with a credit card, but then fail to make a credit card payment and pay with cash on delivery instead. In this case, the Order's payment_method
field will be the intended payment method (here credit_card
) while the method
field of the order's child Payment
object is the actual method used to make payment (here cash_ond_delivery
).
In general, payment_method
should be interpreted as the payment method preferred or attempted by the shopper, while the method
field of Payment
objects represent the actual method used to make payment.
2. The payment_method
parameter can take one of the following values:
cash
credit_card
bank_transfer
other
Last updated
Was this helpful?