Retrieve a plan
Changed onIntegrators has the flexibility to retrieve a specific plan using the retrieve plan API. The full details of that specific plan will be return using this API endpoint.
get/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 retrieve.
Headers
merchantstring required
Merchant ID
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