Create a cart from a Shopify cart token
/carts/from-shopifyCreates a cart from a Shopify cart token. This is the primary endpoint called on checkout page load, and it skips re-syncing when the cart is unchanged.
Authorization
ApiKeyAuth Your API key, issued by PeptidesPayment. Send it in the x-api-key header. Keep it server-side and never expose it in browser code.
In: header
Header Parameters
Your merchant id, supplied by PeptidesPayment at integration time.
Request Body
application/json
Request body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/carts/from-shopify" \ -H "x-merchant-id: string" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'{ "success": true, "medusa_cart": { "id": "string" }}Create a cart from a custom storefront payload POST
Creates a cart from a fully computed payload for a custom storefront (not Shopify or WooCommerce). All monetary values must be sent as integer minor units (cents for 2-decimal currencies, fils for KWD, BHD, OMR, JOD, and TND). See the Custom store guide for the full field contract.
Create a cart from a WooCommerce cart token POST
Creates a cart from a WooCommerce Store API cart token.