Skip to main content
DELETE
/
merchant
/
product
/
delete
{
  "success": false,
  "error": {
    "status": 404,
    "code": "PRODUCT_NOT_FOUND",
    "message": "Product not found"
  },
  "data": null
}
Delete a product from the merchant’s catalog.
productId
string
required
Product ID to delete
success
boolean
Indicates if the request was successful
data
object
Deletion result

Example Request

curl -X DELETE https://api.transaction.gg/merchant/product/delete \
  -H "Authorization: Bearer jwt_token" \
  -H "Content-Type: application/json" \
  -d '{
    "productId": "prod_X4dUuzsMaruQ4UsX"
  }'

Example Response

{
  "success": true,
  "data": {
    "deleted": true,
    "productId": "prod_X4dUuzsMaruQ4UsX"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 404,
    "code": "PRODUCT_NOT_FOUND",
    "message": "Product not found"
  },
  "data": null
}