Create a new merchant where the current user is the owner.
POST
/2024-09/merchants
curl \
--request POST 'https://app.merchanthq.com/api/2024-09/merchants' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"ACME Corp"}'
Request examples
{
"name": "ACME Corp"
}
Response examples (201)
{
"data": {
"name": "ACME Corp",
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
}
Response examples (401)
{
"message": "Unauthorized"
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field name field is required."
]
}
}