v1
latestOpenAPI 3.1.02026-07-24120106.5 KBUpdate subscription
Updates an existing subscription for a customer. A subscription can be of Pending, Future or Active status. Please refer to documentation for values and updatable subscription status typePlease refer Integration document for more information : https://developer.ezypay.com/docs/subscription-payment-scenarios
put/billing/subscriptions/{subscriptionId}
Path parameters
subscriptionIdstring required
Id of existing subscription that needs to be updated
Headers
merchantstring required
Merchant ID
Request body
Response
200
Example response
{
"id": "e76fa3bb-8980-478f-bb20-a1992607c4ea",
"customerId": "8369b0a9-1856-4e54-91c8-1630080ae723",
"planId": "516f4f24-d293-4f2a-ba44-e0da87817804",
"name": "Test Plan 1627260763_ES13",
"status": "PAST_DUE",
"startDate": "2021-07-26",
"endDate": "2021-08-04",
"paymentMethodToken": "fa22e0ad-b7cb-4087-a834-de14dee23500",
"accountingCode": "test_accountingcode",
"tax": {
"rate": 50
},
"nextBillingDate": "2021-07-27",
"totalPaid": {
"currency": "AUD"
},
"totalBillingCycles": 1,
"remainingToPay": {
"currency": "NZD",
"value": 1000
},
"endTargetAmount": {
"currency": "NZD",
"value": 1000
},
"totalPastDue": {
"currency": "NZD",
"value": 100
},
"totalDiscounted": {
"currency": "NZD"
},
"createdOn": "2021-07-26T00:52:59.161",
"autoPayment": true
}