Create a merchant
post
https://<PayEngine-host>
/api/merchant
Create merchant
Raw Body
Node.js
{
"name": "PayEngine",
"email": "[email protected]",
"external_id": ""
}
var axios = require('axios');
var data = JSON.stringify({"name": "PayEngine", "email": "[email protected]"});
​
var config = {
method: 'post',
url: 'https://<PayEngine-host>/api/merchant',
headers: {
'accept': 'application/json',
'Authorization': 'Basic {{YOUR_API_SECRET}}',
'Content-Type': 'application/json'
},
data : data
};
​
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
​
Webhook event: MERCHANT_CREATED

Webhook Payload Example

{
event_uid: '220489c0dfa263d19ee1796973cdc9f6',
event: 'MERCHANT_CREATED',
data: {
id: 'c404d923-226f-4aae-92da-22c1ef370434',
account_id: 'e90c1de6-4e87-4c9e-bcbc-c535d6e349ec',
merchant_id: 'c404d923-226f-4aae-92da-22c1ef370434'
}
}
​

See also

​
Copy link
On this page
post
Create merchant
See also