Create a plan
Changed onThe create payment plan can be created using the create plan API. A plan Id is mandatory before a customer payment subscription can be created.
A plan can be created with different billing cycles and pricing tiers to accommodate the merchants products and services.
A plan is a template containing a set of payment setting (amount and frequency) which can be standardise to customer payment subscription being created.
post/billing/plans
Request
- Base URLhttps://api-sandbox.ezypay.com/v2
- URLhttps://api-sandbox.ezypay.com/v2/billing/plans
- AuthOAuth 2Client credentialsToken URL: https://identity-sandbox.ezypay.com/token
Headers
merchantstring required
Merchant ID
Request body
Response
200
Example response
{
"id": "8ff2e3ea-aaa9-4978-8e2a-319d67e8f302",
"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-03-11T09:10:53.771"
}Changes
- info
endpoint added
- info