Update subscription

put
Update Subscription

https://seerbitapi.com/api/v2/recurring/updates
For Credit cards, you can update the previously stored payment details. This may be required, for example when the card expiry date or the billing/delivery address changes. The status here helps to activate and deactivate a subscription
Request
Response
Request
Path Parameters
amount
required
string
This is the amount to be paid
currency
required
string
This is the currency of the transaction
mobileNumber
required
string
This is the mobile number of the customer
country
required
string
This is the country the transaction is to be carried out in
publicKey
required
string
This is the public key of the merchant
status
required
string
This is the status of the subscription (active or inactive)
Response
200: OK
If a recurring payment is successfully authorised, payment details are also updated during this call. In this case the old billingID becomes invalid and a new reference is created
{
"status": "SUCCESS",
"data": {
"subscriptions": {
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"amount": "20000",
"country": "NG",
"customerId": "ba981a0b7ed1c68ad245",
"cardName": "oginni tosin",
"cardNumber": "5123-45xx-xxxx-0008",
"plan": "80b0854b35a0e279efc3",
"status": "INACTIVE",
"billingId": "PUBK_PjQ5d1578650322483",
"authorizationCode": "ddfce36aa4f3abc7cf72",
"startDate": "2020-10-01 10:58:25",
"createdAt": 1578650353000
},
"code": "00",
"message": "Successful"
}
}
URL: https://seerbitapi.com/api/v2/recurring/updates
Authorization: Bearer SECRET_KEY
"Content-Type: application/json"
{
"amount":"20000",
"currency":"NGN",
"country":"NG",
"mobileNumber":"08033456500",
"billingId":"PUBK_PjQ5d1578650322483",
"publicKey":"SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"status":"INACTIVE"
}