The first step to merchant onboarding is creating a merchant. A merchant is also the same as a contact. However, for purposes of organization, we will keep the documentation under the merchant route.
Merchant Approval Required
You cannot create a merchant on production if you are not approved by Carbon. You can test on sandbox however.
Super JWT Required
Create a merchant
POST
let url = `${ROOT}/v1/merchant/create`;
let data = {
emailAddress: "[email protected]",
password: "StrongSecurePassword.12345!*",
firstName: "Satoshi",
lastName: "Nakatomoto",
personalTaxId: "123-12-1234",
companyName: "Cool Store Name, LLC",
companyTaxId: "123-12-1234",
}
axios.post(url, data).then(result => console.log).catch(err => console.log);
{
"message": "successfully created new merchant!",
"details": {
"merchantId": "857b7530-9ab0-4a2d-b786-f525d993a25a"
}
}
// 401
{
"message": "Super JWT Required",
"code": 401
}
// 401
{
"message": "Invalid JWT",
"code": 401
}
Response
Type
Description
merchantId
string
your merchantId is used to keep track of transactions