Plans

deletePlansId

DELETE
/plans/{id}

Delete a Plan that represents a recurring type of payment that charges a certain amount on a weekly, monthly, quarterly, or annual basis, once created, allowing association with a Subscription and user.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this plan.

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Response Body

application/json

application/json

curl -X DELETE "https://example.com/plans/p1_pln_00bdbe193c3abe3b2243695"
{  "response": {    "data": [      {        "id": "p1_pln_00cb491aa15f9b515c3b59b",        "created": "2025-03-07 14:29:30.6772",        "modified": "2025-03-07 14:29:30.6772",        "creator": "p1_log_000444ad99da5eb18e00207",        "modifier": "p1_log_000444ad99da5eb18e00207",        "merchant": "p1_mer_000444add0403c3553f4d20",        "name": "Lind - Wyman Subscription Plan weekly",        "description": "regular plan",        "schedule": 3,        "scheduleFactor": 1,        "amount": 9211,        "inactive": 0,        "frozen": 0,        "maxFailures": 2,        "type": "recurring",        "txnDescription": "plan txn description",        "order": "S1 - 1000 - LAST",        "billing": "p1_bil_00cee36329ead6ae6d31e43",        "um": "actual"      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}