SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Cart

Clear cart

POST/api/v1/cart/shop/:shopId/clear

Empties the buyer's cart for one shop.

Requires Authorization
Session

Path parameters

shopIdstringrequired
Shop ID.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/cart/shop/:shopId/clear \
  --header 'Authorization: Bearer <access_token>'
200Example response
{
  "success": true,
  "data": {
    "cleared": true
  }
}