Checkout
Once a Cart is ready to checkout, you can easily convert your Cart to an Order. The Cart will remain and can be modified and checked out again if required.
Once a successful Checkout is completed, the response will contain the order.
We'll automatically delete carts 7 days after they were last updated.
There are a number of actions that happen to your inventory when checking out and paying for an order. For more information please be sure to evaluate our detailed article explaining the processes.
With Customer ID
POST
https://api.moltin.com/v2/carts/:reference/checkout
You can checkout a Cart with an existing customer ID
Request Body
Name | Type | Description |
---|---|---|
customer.id | string | The ID of the customer |
billing_address.first_name | string | First name of the billing recipient |
billing_address.last_name | string | Last name of the billing recipient |
billing_address.company_name | string | Company name of the billing recipient |
billing_address.line_1 | string | First line of the billing address |
billing_address.line_2 | string | Second line of the billing address |
billing_address.postcode | string | Postcode of the billing address |
bililng_address.county | string | County / state / region of the billing address |
billing_address.country | string | Country of the billing address |
shipping_address.first_name | string | First name of the shipping recipient |
shipping_address.last_name | string | Last name of the shipping recipient |
shipping_address.phone_number | string | Phone number of the shipping recipient |
shipping_address.company_name | string | Company of the shipping recipient |
shipping_address.line_1 | string | First line of the shipping address |
shipping_address.line_2 | string | Second line of the shipping address |
shipping_address.city | string | City of the shipping address |
shipping_address.postcode | string | Post code of the shipping address |
shipping_address.county | string | County / state/ region of the shipping address |
shipping_address.country | string | Country of the shipping address |
shipping_address.instructions | string | Shipping instructions |
With Customer object
POST
https://api.moltin.com/v2/carts/:reference/checkout
You can checkout a Cart with an associated customer name and email.
Path Parameters
Name | Type | Description |
---|---|---|
reference | string | The reference for the cart to checkout |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
customer.email | string | Customer email address |
customer.name | string | Full name of the customer |
billing_address.first_name | string | First name of the billing recipient |
billing_address.last_name | string | Last name of the billing recipient |
billing_address.company_name | string | Company name of the billing recipient |
billing_address.line_1 | string | First line of the billing address |
billing_address.line_2 | string | Second line of the billing address |
billing_address.city | string | /city of the billing address |
billing_address.postcode | string | Postcode of the billing address |
billing_address.county | string | County / state / region of the shipping address |
billing_address.country | string | Country of the billing address |
shipping_address.first_name | string | First name of the shipping recipient |
shipping_address.last_name | string | Last name of the shipping recipient |
shipping_address.company_name | string | Company name of the shipping recipient |
shipping_address.phone_number | string | Phone number of the shipping recipient |
shipping_address.line_1 | string | First line of the shipping address |
shipping_address.line_2 | string | Second line of the shipping address |
shipping_address.city | string | City of the shipping address |
shipping_address.postcode | string | Postcode of the shipping address |
shipping_address.county | string | County / state / region of the shipping address |
shipping_address.country | string | Country of the shipping address |
shipping_address.instructions | string | Shipping instructions |
Next steps
Once a Cart has been converted to an Order using either of the methods above, you will most likely want to capture payment for order.
pagePaying for an orderLast updated