Delete a Subscription Plan
DELETE
/ps/api/v1/public/plans/{plan_id}Deletes a subscription plan by its plan ID.
Requires
Bearer token. Get token →Path Parameters
| Field | Details |
|---|---|
plan_idstringrequired | Unique identifier for the subscription plan. |
Header Parameters
| Field | Details |
|---|---|
Request-Timestampstringdate-time | ISO 8601 UTC timestamp of the request. Used for idempotency and audit. |
Request-IDstring | Use a global unique identifier [GUID] for the request. Constraints Minimum length: 1 characterMaximum length: 50 characters |
Status Codes
200 | Plan deleted successfully. |
404 | The requested resource does not exist. |
500 | An unexpected error occurred on the server. |
Request
curl --request DELETE \
--url https://pluraluat.v2.pinepg.in/ps/api/v1/public/plans/v1-plan-4405071524-aa-qlAtAf \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Request-ID: a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
--header 'Request-Timestamp: 2024-10-01T10:30:00Z'{
"code": "ORDER_NOT_FOUND",
"message": "Order not found",
"additional_error_details": {
"source": "INTERNAL",
"step": "resource_lookup",
"reason": "resource_does_not_exist"
}
}