Create Settlement Bank

//A code snippet of how to consume the API

var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2RlbW8ubW9uaWNyZWRpdC5jb20vYXBpL3YxL2NvcmUvYXV0aC9sb2dpbiIsImlhdCI6MTY2ODk2NzQ0MywiZXhwIjoxNjY4OTcxMDQzLCJuYmYiOjE2Njg5Njc0NDMsImp0aSI6ImF0UE9GVHE4cU4yN2lBWlciLCJzdWIiOiJVU0FETUlOIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.shrbQUV29vXRF30qMeBN3zxlc5JXd03QyMeD6ekzudU");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "title": "testing",
  "account_no": "3066909043",
  "account_name": "Kodaolu Idris",
  "bank_code": "GBN",
  "bank_slug": "BNG",
  "bank_name": "required",
  "display": "YES",
  "order_no": "3843948",
  "settlement_email": "settlement@gmail.com"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://demo.backend.monicredit.com/api/v1/payment/settlement_bank", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

POST {{BaseURL}}/payment/settlement_bank

Headers

NameTypeDescription

Authorization*

String

{{bearer_token}}

Request Body

NameTypeDescription

title*

String

Test

merchant_id*

String

MC00000

account_no*

String

0000000

account_name*

String

Test Test

bank_code*

String

bank_details['value']

bank_name*

String

bank_details['label']

settlement_email*

String

test@test.ng

{
    "status": true,
    "message": "settlement_bank.created",
    "data": {}
}

Last updated