Create a cart from a WooCommerce cart token
/carts/from-woocommerceCreates a cart from a WooCommerce Store API cart token.
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-woocommerce" \ -H "x-merchant-id: string" \ -H "Content-Type: application/json" \ -d '{}'{ "success": true, "medusa_cart": { "id": "string" }, "source_platform": "woocommerce", "woo_cart_token": "string"}Create a cart from a Shopify cart token POST
Creates 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.
Charge a card for a cart POST
Charges the buyer's card for a cart using a secure card reference collected by the checkout form, together with the billing details and the cart id. PeptidesPayment loads the cart, selects a payment route, and retries automatically on a soft decline. Declined payments (a hard failure, a soft failure, or a pending result) return HTTP 200 with a `status` field describing the outcome. Only validation or configuration errors return a non-2xx response.