The checkout object
A checkout
object is an object that represents checkout information.
The following table lists the attributes of the checkout
object:
Name |
Type |
Description |
---|---|---|
|
float |
Required. Final price paid including tax and other fees. |
|
string |
Required. Website order ID to track the order. |
|
float |
Optional. Subtotal of the products' purchase price excluding tax and shipping cost. |
|
float |
Optional. Tax for the order. |
|
float |
Optional. Shipping cost. Default value: |
|
Optional. User's address information. If this is not provided, defaults to | |
|
Optional. An object that represents the store this product is being shipped or picked up from. Note A store specified in the | |
|
string |
Optional. Used to identify the type of order. For valid values, refer to the following shipping methods. |
Shipping methods
The shipping_method
attribute indicates the type of order.
The following table lists valid values for the shipping_method
attribute:
Method |
Description |
---|---|
|
Buy online, pick up in store. |
|
Buy online, pick up curbside. |
|
Reserve online, pick up in store. |
|
Regular web transaction shipped to home the same day. |
|
Regular web transaction shipped to home in one or two days. |
|
Regular web transaction shipped to a provided address within an unspecified timeline. |
The following is an example of a checkout object:
"checkout": {
"subtotal": 29.98,
"total": 35.97,
"order_id": "1234"
}