Revoke Product Access
Revokes a customer's access to a one-time product previously granted in your store. Access is revoked by expiring it — the product's access end date is set to the current time. Email notifications are sent, and any configured automations and webhooks are triggered.
This endpoint targets a single product access entry by its UUID. You can obtain this UUID from the Get Customer endpoint with include=products — each entry in the products section is identified by its id.
Revoking only expires access; it does not refund the order, touch Stripe, or delete any data. Subscriptions are not affected by this endpoint.
Request
DELETE /product-access/{id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Product access UUID (the id of a product entry returned by Get Customer with include=products) |
Example Request
curl -X DELETE "https://cart.easy.tools/api/v1/product-access/550e8400-e29b-41d4-a716-446655440020" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Response
Success Response (200)
Returns a success message when product access is revoked.
{
"message": "Product access revoked successfully"
}
This endpoint is idempotent — revoking access that has already expired returns the same success response without sending another notification.
Error Responses
Product Access Not Found (404)
{
"message": "Product access with ID 550e8400-e29b-41d4-a716-446655440020 not found"
}
Invalid ID (400)
{
"message": "Invalid product access ID"
}