Create Subscription

You can create a plan by calling the Create Plan endpoint or you can do this directly from the SeerBit Merchant Dashboard

/recurrent/plan/create

POST https://merchants.seerbitapi.com/api/v1/recurrent/plan/create

Headers

Name
Type
Description

Authorization

String

Bearer Token

Request Body

Name
Type
Description

publicKey*

String

This is the merchant public key.

amount*

String

This is the amount to be paid.

email*

String

This is the email of the customer.

country*

String

This is the country from which the transaction is been carried out from

paymentReference*

String

This is the unique identifier for a transaction, to be generated by merchant.

planId

String

the planId represents a product of the merchant that the customer wants to pay for e.g DSTV bouqet.

CardNumber*

String

this is the name of the cardholder

expiryYear*

String

this is the card's expiry year

expiryMonth*

String

this is the card's expiry month

cvv*

String

this is the 3 digit code behind the debit card

productDescription*

String

this is the product description supplied by the merchant

billingCycle*

String

this is the rate of reoccurrence of the charge to the tokenized card

subscriptionAmount*

boolean

this is passed as true if the subscription amount is to be charged at the point of creating subscription. It is passed as false if the default amount of SeerBit is to be charged at the point of creating subscription.

mobileNumber*

String

customer's number

customerId

String

billingPeriod*

String

this is the number of times seerBit will do a recurrent billing

redirectUrl*

String

this is returned when the payment link service is called

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
}'

Last updated