API
  • Introduction
  • Authentication
  • Error Handling
  • API ENDPOINTS
    • Payment
    • Invoices
      • Create Invoice
      • Re-send Invoice
      • Get Invoice - customerEmail
      • Get Invoice - invoiceNo
      • Get Invoice - orderNo
    • Payment Link
      • Create Link
      • Get Link
      • Update Link
      • Delete Link
    • Charge Token
      • Create Token
      • Get Token
      • Charge Token
      • Bulk Charge
      • Query Bulk Charge with BacthId
    • Subscriptions
      • Create Subscription
      • Charge Subscription
      • Get Customer Subscription
      • Update Customer Subscription
      • Get Merchant Subscription
    • Virtual Account
      • Create Virtual Account
      • Get Virtual Account
      • Delete Virtual Account
      • Get Payment
    • Pay with Transfer
    • Pay with USSD
    • Mobile Money Payments
    • Bank Account Payments
    • Card Payment
      • Initializing a Card Payment
      • Scenario 1 (Verve Card Type)
      • Scenario 2 (Master Card and Visa Card Type)
      • Scenario 3
Powered by GitBook
On this page
  1. API ENDPOINTS
  2. Subscriptions

Get Customer Subscription

The code snippet below shows an example response to get customer subscription by customerId

GEThttps://seerbitapi.com/api/v2/recurring/{publicKey}/customerId/{customerId}

{
	"status": "SUCCESS",
	"data": {
    "subscriptions": [
      {
        "publicKey": "SBTEST**************************viTF",
        "amount": "100",
        "country": "NG",
        "customerId": "ba981a0b7ed1c68ad245", 
        "cardName": "Jane Smith",
        "cardNumber": "5123-45xx-xxxx-0008", 
        "plan": "ead5e697f42c1cd60813",
        "status": "ACTIVE",
        "billingId": "PUBK_PjQ5d1578649732262", 
        "authorizationCode": "145a3bb3418824c14d65", 
        "startDate": "2020-10-01 10:47:49", 
        "createdAt": 1578649752000
      }, 
      {
        "publicKey": "SBTEST**************************viTF",
        "amount": "20000",
        "country": "NG",
        "customerId": "ba981a0b7ed1c68ad245", 
        "cardName": "John Smith", 
        "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",
 }
PreviousCharge SubscriptionNextUpdate Customer Subscription

Last updated 8 months ago