Find an endpoint or a guide of the Sovgate API reference and jump straight to it.
Delete a product nothing has used. Archive one that sold.
DELETE /v1/products/{id}| Name | Type | Description |
|---|---|---|
id | string | The product's ID, prod_.... |
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"{ "id": "prod_103fbc184f1d732bf5d1a9f5", "object": "product", "deleted": true}| Code | When |
|---|---|
invalid_state | Something uses the product: archive it instead. |