Create Customer Wallet

//A code snippet of how to consume the API

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

var raw = JSON.stringify({
  "first_name": "Azeezat",
  "last_name": "|ST",
  "phone": "09043458321",
  "email": "aze.ezat.2021@gmail.com"
});

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

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

POST {{BaseURL}}/payment/virtual-account/create

Headers

NameTypeDescription

Authorization*

String

{{bearer_token}}

Request Body

NameTypeDescription

first_name*

String

Test

last_name*

String

Test

phone*

String

00000

email*

String

test@example.com

{
    "status": true,
    "message": "Customer account created successfully"
}

Last updated