| Send | Permission | Community scope |
|---|---|---|
Authorization: Bearer <apiKey> | store | Community scope is derived from the key; do not send a community identifier. |
{pathParameter} and use the query parameters documented below.meta.code = PRODUCT_DELETED{
"meta": {
"status": "success",
"statusCode": 200,
"code": "PRODUCT_DELETED"
},
"message": "Delete product successfully",
"data": "prd_agent_01"
}meta.code, never message text.| HTTP | Machine code | What the caller should do | Retry? |
|---|---|---|---|
| 400 | VALIDATION_FAILED | Repair the named request field before retrying. | No, fix first |
| 401 | AUTH_API_KEY_REQUIRED | Add the Authorization header. | No, fix first |
| 401 | AUTH_API_KEY_INVALID | Replace or rotate the key. | No, fix first |
| 401 | AUTH_API_KEY_VALIDATION_FAILED | Authentication could not be completed. | Yes, with backoff |
| 403 | AUTH_PERMISSION_REQUIRED | Request the store permission; no resource data is returned. | No, fix first |
| 404 | STORE_RESOURCE_NOT_FOUND | Treat as already absent during cleanup. | After refreshing the ID |
| 409 | STORE_RESOURCE_CONFLICT | Resolve the active order first. | After reconciliation |
| 500 | INTERNAL_ERROR | Retry with exponential backoff and the same request context, then escalate. | Yes, with backoff |
curl --location --request DELETE 'https://api.returning.ai/v1/products/507f1f77bcf86cd799439031' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Delete product success.",
"data": "507f1f77bcf86cd799439031"
}