Create and complete a checkout session
Create and complete checkout session on all the items in a specific cart, identified by a cartId
. Along with cartId
, the checkout operation includes merchant account ID, amount to be paid, tax to be imposed on cart items, shipping address, and other details.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
Unique request ID
Body
Checkout request body
Unique cart ID
Payment detail list
Estimated taxes for items, shipping and fees
Customer making payment
Additional order information
Response
Checkout response details
Checkout session state.<br />COMPLETED: Checkout is complete<br />PENDING: Checkout is incomplete
COMPLETED
, PENDING
Order ID
Was this page helpful?