Create a merchant
post
https://<PayEngine-host>
/api/merchant
Create merchant
Raw Body
Node.js
1
{
2
"name": "PayEngine",
3
"email": "[email protected]",
4
"external_id": ""
5
}
Copied!
1
var axios = require('axios');
2
var data = JSON.stringify({"name": "PayEngine", "email": "[email protected]"});
3
​
4
var config = {
5
method: 'post',
6
url: 'https://<PayEngine-host>/api/merchant',
7
headers: {
8
'accept': 'application/json',
9
'Authorization': 'Basic {{YOUR_API_SECRET}}',
10
'Content-Type': 'application/json'
11
},
12
data : data
13
};
14
​
15
axios(config)
16
.then(function (response) {
17
console.log(JSON.stringify(response.data));
18
})
19
.catch(function (error) {
20
console.log(error);
21
});
22
​
Copied!
Webhook event: MERCHANT_CREATED

Webhook Payload Example

1
{
2
event_uid: '220489c0dfa263d19ee1796973cdc9f6',
3
event: 'MERCHANT_CREATED',
4
data: {
5
id: 'c404d923-226f-4aae-92da-22c1ef370434',
6
account_id: 'e90c1de6-4e87-4c9e-bcbc-c535d6e349ec',
7
merchant_id: 'c404d923-226f-4aae-92da-22c1ef370434'
8
}
9
}
10
​
Copied!

See also

​