Skip to main content
DELETE
/
product
/
{id}
Delete Product
curl --request DELETE \
  --url https://api.royalti.io/product/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Product was deleted successfully."
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/product/ Description:
The /product/{id} endpoint allows deleting a specific product identified by its unique ID.
Method:
DELETE
Path Parameter:
ParameterTypeDescription
idstringThe unique identifier of the product.

Code Examples

const response = await fetch('https://api.royalti.io/product/example-id', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Product ID

Response

Success

message
string