Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Delete a product

Delete a product nothing has used. Archive one that sold.

DELETE/v1/products/{id}

Delete a product nothing has used. Archive one that sold.

Endpoint

http
DELETE /v1/products/{id}

Path parameters

NameTypeDescription
idstringThe product's ID, prod_....

Example request

bash
curl -X DELETE https://api.sovgate.com/v1/products/prod_103fbc184f1d732bf5d1a9f5 \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: 8d529395-4b2a-4c1d-9e3f-2af1263977f9"

Example response

json
{  "id": "prod_103fbc184f1d732bf5d1a9f5",  "object": "product",  "deleted": true}

Errors

CodeWhen
invalid_stateSomething uses the product: archive it instead.