Create Wallet

//A code snippet of how to consume the API

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

var raw = JSON.stringify({
  "name": "Opeoluwa",
  "wallet_type": "MERCHANT",
  "account_id": "ACC00000",
  "description": "Testing Wallet creation",
  "settlement_bank_id": "SB00000"
});

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

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

POST

Headers

Request Body

{
    // Response
}

Last updated