cURL
curl --request POST \ --url https://sandbox-api.cardcash.com/v3/v3/carts \ --header 'Authorization: Bearer <token>'
Create a new buy cart
curl -X POST https://sandbox-api.cardcash.com/v3/carts \ -H "x-cc-app: YOUR_APP_ID" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "action": "buy" }'
action
"buy"
{ "cartId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "cards": [], "couponData": null }
cartId