Checkout with Account Management Authentication Token
POST/v2/carts/:cartID/checkout
When a Cart is ready for checkout, you can convert the cart to an order. The cart remains and can be modified and checked out again if required.
After a successful checkout, a response that contains the order is returned.
- By default, carts are automatically deleted 7 days after the last update. You can change this setting by updating cart settings.
- Your inventory is modified during checkout and payment of an order. For more information about the changes in the inventory, see the Inventory section.
The shopper authenticates with the Implicit Token
and the EP-Account-Management-Authentication-Token
.
Request
Path Parameters
The ID of the cart that you want to checkout.
Header Parameters
An account management authentication token that identifies the authenticated account member.
- application/json
Body
data object
billing_address object
Company name of the billing recipient.
Specifies the country of the billing address.
Specifies the county of the billing address.
First name of the billing recipient.
Last name of the billing recipient.
First line of the billing address.
Second line of the billing address.
Postcode of the billing address.
Specifies state, province, or region of the billing address.
contact object
The email address of the contact.
The name of the contact.
shipping_address object
Company of the shipping recipient.
Specifies the country of the shipping address.
Specifies the county of the shipping address.
First name of the shipping recipient.
Last name of the shipping recipient.
First line of the shipping address.
Second line of the shipping address.
Post code of the shipping address.
Specifies the state, province, or region of the shipping address.
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
Specifies the type of object being returned. You must use order
.
Specifies the unique identifier of the order.
Specifies the status of the order, such as incomplete
, complete
, processing
, or cancelled
.
Specifies the status of the payment, such as unpaid
, authorized
, paid
, or refunded
.
Specifies the status of the shipment, such as fulfilled
or unfulfilled
.
Specifies if the order is anonymized.
meta object
timestamps object
The date this was created.
The date this was last updated.
with_tax object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
without_tax object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
tax object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
discount object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
paid object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
authorized object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
without_discount object
The raw total of this cart.
The currency set for this cart.
The tax inclusive formatted total based on the currency.
billing_address object
Company name of the billing recipient.
Specifies the country of the billing address.
Specifies the county of the billing address.
First name of the billing recipient.
Last name of the billing recipient.
First line of the billing address.
Second line of the billing address.
Postcode of the billing address.
Specifies state, province, or region of the billing address.
contact object
The email address of the contact.
The name of the contact.
shipping_address object
Company of the shipping recipient.
Specifies the country of the shipping address.
Specifies the county of the shipping address.
First name of the shipping recipient.
Last name of the shipping recipient.
First line of the shipping address.
Second line of the shipping address.
Post code of the shipping address.
Specifies the state, province, or region of the shipping address.
{
"data": {
"type": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "string",
"payment": "string",
"shipping": "string",
"anonymized": true,
"meta": {
"timestamps": {
"created_at": "string"
},
"with_tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"without_tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"tax": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"paid": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"authorized": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"without_discount": {
"amount": 0,
"currency": "string",
"formatted": "string"
}
},
"billing_address": {
"company_name": "string",
"country": "string",
"county": "string",
"first_name": "string",
"last_name": "string",
"line_1": "string",
"line_2": "string",
"postcode": "string",
"region": "string"
},
"contact": {
"email": "string",
"name": "string"
},
"shipping_address": {
"company_name": "string",
"country": "string",
"county": "string",
"first_name": "string",
"last_name": "string",
"line_1": "string",
"line_2": "string",
"postcode": "string",
"region": "string"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}