PeptidesPayment Docs
Payment ContainerCarts

Create a cart from a WooCommerce cart token

POST/carts/from-woocommerce

Creates a cart from a WooCommerce Store API cart token.

Authorization

ApiKeyAuth
x-api-key<token>

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

x-merchant-id*string

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"}