curl --request POST \
--url https://seerbitapi.com/api/v2/payments/authorise \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentReference": "PREAUTH124456789798765k3K1CB0",
"publicKey": "SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu",
"cardNumber": "5123450000000008",
"cvv": "100",
"expiryMonth": "05",
"expiryYear": "21",
"currency": "NGN",
"country": "NG",
"productDescription": "preauth test capture",
"amount": "100.00",
"email": "johndoe@gmail.com",
"fullName": "john doe"
}
'{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"paymentReference": "PREAUTH1244567890987654321CB0",
"linkingReference": "F938003831601492624719",
"status": "AUTHORIZED",
"card": {
"bin": "512345",
"last4": "0008",
"token": "tk_40a0503d-4586-4220-a69e-c69cc9293016"
}
},
"message": "APPROVED"
}
}AUTHORISE
Authorise
In SeerBit API, the term “authorisation” indicates, that payment is authorised but not captured. This allows a merchant to cancel transaction at their discretion, typically based but not limited to fraud-related activities. This authorisation state is valid for a limited period of time, which provides a window to cancel the transaction.
POST
/
payments
/
authorise
curl --request POST \
--url https://seerbitapi.com/api/v2/payments/authorise \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"paymentReference": "PREAUTH124456789798765k3K1CB0",
"publicKey": "SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu",
"cardNumber": "5123450000000008",
"cvv": "100",
"expiryMonth": "05",
"expiryYear": "21",
"currency": "NGN",
"country": "NG",
"productDescription": "preauth test capture",
"amount": "100.00",
"email": "johndoe@gmail.com",
"fullName": "john doe"
}
'{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"paymentReference": "PREAUTH1244567890987654321CB0",
"linkingReference": "F938003831601492624719",
"status": "AUTHORIZED",
"card": {
"bin": "512345",
"last4": "0008",
"token": "tk_40a0503d-4586-4220-a69e-c69cc9293016"
}
},
"message": "APPROVED"
}
}