Authentication
To make API calls on FCMB, you’ll have to pass a Bearer Token To generate a token you simply
Call
https://seerbitapi.com/api/v2/encrypt/keysPass your public key and secret key.
You'll be authenticated and receive a token to process further API calls.
-X POST
https://seerbitapi.com/api/v2/encrypt/keys
-H 'Content-Type: application/json'{
"key": "merchantPrivateKey.merchantPublicKey"
}{
"status": "SUCCESS",
"data": {
"code": "00",
"EncryptedSecKey": {
"encryptedKey": "SNt8kjeVjsdTG4lPlwg6sTvpVAay2RA7hoCEzHPkIQa+MNfDepx4VBr5JMgLb5Q5anq9XoN2pXU850bumqBWFVw1T1ZW5w8N+Sq/"
},
"message": "Successful"
}
}Basic authentication is a simple authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization header that contains the word Basic followed by a space and a base64-encoded string publicKey.privateKey.
The token is gotten like this, base64Encode(publicKey.privateKey);
Last updated
