Apply Customer to Cart
This API lets you apply customer information to the cart. The primary purpose of the customer data is to provide the merchant with enough information to communicate with the customer once the order has been submitted.
POST /checkout/cart/{cart_id}/customer
Apply customer details to a given cart. API Reference: Apply Guest Customer to Cart
Request
the ID of the cart you would like to add this SKU to.
Required Body Parameters:
the first name of the customer.
the last name of the customer.
the email address of the customer.
Optional Query Parameters:
the shipping address of the customer.
the billing address of the customer.
use same address for both.
If only one one address is applied and the same_address property is not set to true only one address will be applied to the cart. The remaining address will still need to be applied before the cart can be completed.
Response
Was this page helpful?