Paycose Docs
Product
DELETE/products/{product_id}

Delete Products

Delete a product. Refused with 409 (E5228 product.in_use) while the product still has prices attached — delete those first.

On success the row is soft-deleted locally and the product is ARCHIVED on the provider (Stripe: active=false), because Stripe rejects a hard delete once prices have existed.

Requires: Bearer token, X-Country header.

Request

Example

curl -X DELETE 'https://api.paycose.com/api/v1/app1/platform/wallet/products/{{product_id}}' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}'

Headers

NameValueDescription
X-Session-Token{{session_token}}
X-Country{{country}}
X-Test-Mode{{x_test_mode}}true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request.

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "deleted": false,
  "id": null
}
400400 Bad Request

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page