Charge Subscription
The code snippet below shows an example request for charging a customer with an authorizationCode
Last updated
The code snippet below shows an example request for charging a customer with an authorizationCode
Last updated
curl --location 'https://seerbitapi.com/api/v2/recurring/charge' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data-raw '{
"amount":"200",
"publicKey":"YOUR_PUBLIC_KEY",
"email":"[email protected]",
"allowPartialDebit":"true",
"authorizationCode":"1234567898765325",
"paymentReference":"2938765582R37065687631",
"currency":"NGN"
}'{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"code": "00",
"message": "Successful",
"paymentReference": "2938765582R37065687631",
"publicKey": "SBTEST**************************viTF",
"amount": "200",
"currency": "NGN",
"country": "NG",
"email": "[email protected]",
"productDescription": "Authorised charge"
},
"message": "Successful"
}
}{
"message": "Invalid Authentication Token",
"error": "INPUT"
}{
"message": "Bad Request",
"error": "There has been a problem with reading or understanding the request."
}