Create a merchant
post
https://<your_gateway_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({"business_information":{"legal":{"name":"PayFactory"}}});
3
​
4
var config = {
5
method: 'post',
6
url: 'https://{{hostname}}/api/merchant',
7
headers: {
8
'accept': 'application/json',
9
'Authorization': 'Basic {{publiAPIKey}}',
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

See also

​
Last modified 1mo ago