Skip to main content
POST
Discard cart

Authorizations

Authorization
string
header
required

Your brand's secret API key, e.g. Bearer way_sk_live_bhEqcn0i1fRoUEHBPjJkQA. The key names the brand, so a brandId in the path must be your own brand. Older Way-Brand-Id + Way-Secret-Key credentials still work: see Legacy authentication.

Path Parameters

brandId
string
required

The brand's ID. With a brand key this must be your own brand; with an organization key it can be any brand in the organization.

cartId
string
required

The cart's ID, the client-generated UUID used at checkout.

Response

200

Cart discarded.