Skip to main content
Permanently deletes a pricing plan from the project.
This action is irreversible. The plan and all its feature associations will be permanently removed.

Endpoint

DELETE /api/v1/projects/{slug}/plans/{planId}

Authentication

Authorization
string
required
Bearer token with your API key. Requires read_write permission.

Path Parameters

slug
string
required
The project’s URL-friendly slug identifier.
planId
number
required
The plan’s unique ID.

Response

success
boolean
true if the plan was successfully deleted.

Example

curl -X DELETE https://cuprice.io/api/v1/projects/my-saas-app/plans/201 \
  -H "Authorization: Bearer cpk_your_key_here"
{
  "success": true
}

Errors

StatusDescription
401Invalid or missing API key
403API key does not have read_write permission
404Project or plan not found