Get Customer Subscription
1
URL: https://seerbitapi.com/api/v2/recurring/{publicKey}/customerId/{customerId}
2
Authorization: Bearer {Token}
3
"Content-Type: application/json"
4
5
{
6
"status": "SUCCESS",
7
"data": {
8
"subscriptions": [
9
{
10
"publicKey": "SBTEST**************************viTF",
11
"amount": "100",
12
"country": "NG",
13
"customerId": "ba981a0b7ed1c68ad245",
14
"cardName": "oginni tosin",
15
"cardNumber": "5123-45xx-xxxx-0008",
16
"plan": "ead5e697f42c1cd60813",
17
"status": "ACTIVE",
18
"billingId": "PUBK_PjQ5d1578649732262",
19
"authorizationCode": "145a3bb3418824c14d65",
20
"startDate": "2020-10-01 10:47:49",
21
"createdAt": 1578649752000
22
},
23
{
24
"publicKey": "SBTEST**************************viTF",
25
"amount": "20000",
26
"country": "NG",
27
"customerId": "ba981a0b7ed1c68ad245",
28
"cardName": "oginni tosin",
29
"cardNumber": "5123-45xx-xxxx-0008",
30
"plan": "80b0854b35a0e279efc3",
31
"status": "INACTIVE",
32
"billingId": "PUBK_PjQ5d1578650322483",
33
"authorizationCode": "ddfce36aa4f3abc7cf72",
34
"startDate": "2020-10-01 10:58:25",
35
"createdAt": 1578650353000
36
},
37
{
38
"publicKey": "SBTEST**************************viTF",
39
"amount": "100",
40
"country": "NG",
41
"customerId": "ba981a0b7ed1c68ad245",
42
"cardName": "oginni tosin",
43
"cardNumber": "5123-45xx-xxxx-0008",
44
"plan": "e99b3398765fecceccc4",
45
"status": "ACTIVE",
46
"billingId": "PUBK_PjQ5d1578650831933",
47
"authorizationCode": "e4260bc97097b30d9d84",
48
"startDate": "2020-10-01 11:06:57",
49
"createdAt": 1578650847000
50
},
51
{
52
"publicKey": "SBTEST**************************viTF",
53
"amount": "100",
54
"country": "NG",
55
"customerId": "ba981a0b7ed1c68ad245",
56
"cardName": "oginni tosin",
57
"cardNumber": "5123-45xx-xxxx-0008",
58
"plan": "ee485235073aa62c1aa9",
59
"status": "ACTIVE",
60
"billingId": "PUBK_PjQ5d1578652892870",
61
"authorizationCode": "d272e1a52de58e8db9bc",
62
"startDate": "2020-10-01 11:41:14",
63
"createdAt": 1578652912000
64
}
65
],
66
"code": "00",
Copied!
Parameter
Description
Type
Http Method
this is the http method that is allowed and expected. This service expects a GET method
string
required
Authorization
as described in the documentation, this service requires an authentication
string
required
code
this is the service response code from seerBit
string
message
this is the service reponse message from seerBit
string
status
this indicates the status of a subscription (active or inactive)
string
required
plan
the plan represents the product the customer is wants to pay for e.g tithes
string
publicKey
this is the merchant public key
string
required
cardNumber
the debit card number
string
required
amount
this is the amount to be paid
string
required
currency
this is the currency the transaction is to be carried out in
string
required
country
this is the country the customer is doing the transaction from
string
required
billingPeriod
the number of times seerBit will do a recurring billing
string
required
startDate
this is the day to commence billing of customers
string
required
cardName
this is the name of the cardholder
strung
optional
type
this is the authentication type (PIN, 3D secure)
string
required
Copy link