Update a plan
Changed onThe API Endpoint allows integrators to update details of a plan. Any changes actioned on the plan, will only be effective for subscriptions created after the update.
Existing subscriptions will not be affected and remain grandfathered at terms agreed previously when subscribing to the plan.
NOTE: It a good practice to use the "accountingCode" to provide a grouping for the plan. This will automatically appear in the invoice generated by Ezypay based on your frequency settings.
put/billing/plans/{planId}
Request
- Base URLhttps://api-sandbox.ezypay.com/v2
- URLhttps://api-sandbox.ezypay.com/v2/billing/plans/{planId}
- AuthOAuth 2Client credentialsToken URL: https://identity-sandbox.ezypay.com/token
Path parameters
planIdstring required
Identifier of the plan to update.
Headers
merchantstring required
Merchant ID
Request body
Response
200
Example response
{
"id": "d35f6384-e5af-4eaf-b4c9-d08511a21921",
"status": "ACTIVE",
"name": "high_st_monthly_plan",
"accountingCode": "customer_plan",
"amount": {
"currency": "NZD",
"value": 200
},
"intervalUnit": "MONTH",
"interval": 1,
"billingStart": "DAY_OF_MONTH",
"billingStartValue": "1",
"billingEnd": "ONGOING",
"firstBilling": "FULL_AMOUNT",
"failedPaymentHandling": {
"initialAction": "STOP",
"autoRetry": true,
"retryInDays": 3,
"maximumFailedAttempts": 4
},
"createdOn": "2019-04-01T12:55:04.245"
}Changes
- info
endpoint added
- info