cURL
curl --request GET \ --url https://api-beta.pepay.io/api/commerce/merchant/carts/totals \ --header 'x-commerce-api-key: <api-key>'
{ "success": true, "data": { "subtotal": 123, "shipping": 123, "tax": 123, "fees": { "fixed": 123, "percentage": 123, "percentageAmount": 123, "total": 123 }, "total": 123, "itemCount": 123, "zipCode": "<string>" } }
Get cart subtotal, shipping, tax, fees, and total
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
x-api-key
US zip code for shipping and tax calculation
Cart totals calculated successfully
Show child attributes
Was this page helpful?