Create Subscription
You can create a plan by calling the Create Plan endpoint or you can do this directly from the SeerBit Merchant Dashboard
Last updated
You can create a plan by calling the Create Plan endpoint or you can do this directly from the SeerBit Merchant Dashboard
Last updated
curl --location 'https://merchants.seerbitapi.com/api/v1/recurrent/plan/create' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer Token\
--data '{
"productId": "<Plan name>",
"productDescription": "<Description of Plan>",
"amount": "100",
"billingCycle": "HOURLY",
"limit": 5,
"publicKey": "<public key>",
"country": "NG",
"currency": "NGN",
"allowPartialDebit": false
}'{
"payload": {
"country": "NG",
"createdAt": 1715607343498,
"amount": 100,
"productId": "<Plan name>",
"billingCycle": "HOURLY",
"currency": "NGN",
"payUrl": "https://pay.seerbitapi.com/db1ea861993689a57dac",
"details": {
"country": "NG",
"amount": 100,
"productId": "<Plan name>",
"allowPartialDebit": false,
"payLinkUrl": "https://pay.seerbitapi.com/db1ea861993689a57dac",
"publicKey": "<public key>",
"createdAt": 1715607343498,
"trialDuration": 0,
"trialPeriod": false,
"billingCycle": "HOURLY",
"limit": 5,
"planId": "db1ea861993689a57dac",
"currency": "NGN",
"id": 20031,
"productDescription": "<description of plan>",
"updatedAt": null,
"status": "ACTIVE"
},
"publicKey": "<public key>",
"plan": "db1ea861993689a57dac",
"productDescription": "<description of plan>"
},
"message": "Successful",
"status": "SUCCESS",
"responseCode": "00"
}{
"message": "Invalid Authentication Token",
"error": "INPUT"
}{
"message": "Bad Request",
"error": "There has been a problem with reading or understanding the request."
}