Get customer subscriptions

get
Customer Subscription

https://seerbitapi.com/api/v2/recurring/SBTESTPUBK_PjQ5dFOi522L383MlsQYUM Ae6cZYviTF/customerId/ba981a0b7ed1c68ad245
Authorization Required
Request
Response
Request
Path Parameters
HTTP Method
required
string
This is the http method that is allowed and expected. this service expects a GET method
Authorization
required
string
As described above in the documentation, this service requires an authentication
code
optional
string
This is the service response code from seerbit
message
optional
string
This is the service response message from seerbit
publicKey
required
string
This is the merchant public key
amount
required
string
This is the amount to be paid
currency
required
string
This is the currency the transaction is to be carried out in
paymentReference
required
string
This is the unique identifier for a transaction to be generated by merchant
plan
optional
string
The plan represents a product the customer wants to pay for e.g Tithe
cardNumber
required
string
This is the debit card number
customerID
required
string
This is the reference unique to the customer
cardName
optional
string
This is the name on the customers card
startDate
required
string
This is the day to commence billing of customer
status
required
string
This indicates the status of a subscription(active or inactive)
country
required
string
This is the country the customer is doing the transaction from
authorizationCode
required
string
This is returned when subscription is created. it is used by the merchant to pass recurring debits to customer's account
type
required
string
This is the authentication type (PIN, 3d Secure)
billingPeriod
required
string
This is the number of times seerbit will do a recurrent billing
Response
200: OK
Response
URL: https://stg-backend.seerbitapi.com/api/v2/recurring/tNUFstIHrE/customerId/629970421416546394756
Authorization: Bearer SECRET_KEY
"Content-Type: application/json"
{
"status": "SUCCESS",
"data": {
"subscriptions": [
{
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"amount": "100",
"country": "NG",
"customerId": "ba981a0b7ed1c68ad245",
"cardName": "oginni tosin",
"cardNumber": "5123-45xx-xxxx-0008",
"plan": "ead5e697f42c1cd60813",
"status": "ACTIVE",
"billingId": "PUBK_PjQ5d1578649732262",
"authorizationCode": "145a3bb3418824c14d65",
"startDate": "2020-10-01 10:47:49",
"createdAt": 1578649752000
},
{
"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
},
{
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"amount": "100",
"country": "NG",
"customerId": "ba981a0b7ed1c68ad245",
"cardName": "oginni tosin",
"cardNumber": "5123-45xx-xxxx-0008",
"plan": "e99b3398765fecceccc4",
"status": "ACTIVE",
"billingId": "PUBK_PjQ5d1578650831933",
"authorizationCode": "e4260bc97097b30d9d84",
"startDate": "2020-10-01 11:06:57",
"createdAt": 1578650847000
},
{
"publicKey": "SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"amount": "100",
"country": "NG",
"customerId": "ba981a0b7ed1c68ad245",
"cardName": "oginni tosin",
"cardNumber": "5123-45xx-xxxx-0008",
"plan": "ee485235073aa62c1aa9",
"status": "ACTIVE",
"billingId": "PUBK_PjQ5d1578652892870",
"authorizationCode": "d272e1a52de58e8db9bc",
"startDate": "2020-10-01 11:41:14",
"createdAt": 1578652912000
}
],
"code": "00",