Register up to 500 merchants
curl --request POST \
--url https://api.centsless.org/api/v1/partner/merchants/bulk-register \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"merchants": [
{
"merchant_name": "Space Coast Hardware",
"external_id": "SCH-1",
"locations": [
{
"location_id": "L1",
"location_name": "<string>",
"address": "<string>",
"zip_code": "<string>",
"state": "<string>",
"time_zone": "America/Chicago",
"mobile": true
}
],
"contact_email": "jsmith@example.com",
"metadata": {}
}
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
merchants: [
{
merchant_name: 'Space Coast Hardware',
external_id: 'SCH-1',
locations: [
{
location_id: 'L1',
location_name: '<string>',
address: '<string>',
zip_code: '<string>',
state: '<string>',
time_zone: 'America/Chicago',
mobile: true
}
],
contact_email: 'jsmith@example.com',
metadata: {}
}
]
})
};
fetch('https://api.centsless.org/api/v1/partner/merchants/bulk-register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/partner/merchants/bulk-register"
payload = { "merchants": [
{
"merchant_name": "Space Coast Hardware",
"external_id": "SCH-1",
"locations": [
{
"location_id": "L1",
"location_name": "<string>",
"address": "<string>",
"zip_code": "<string>",
"state": "<string>",
"time_zone": "America/Chicago",
"mobile": True
}
],
"contact_email": "jsmith@example.com",
"metadata": {}
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Partner
Register up to 500 merchants
POST
/
partner
/
merchants
/
bulk-register
Register up to 500 merchants
curl --request POST \
--url https://api.centsless.org/api/v1/partner/merchants/bulk-register \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"merchants": [
{
"merchant_name": "Space Coast Hardware",
"external_id": "SCH-1",
"locations": [
{
"location_id": "L1",
"location_name": "<string>",
"address": "<string>",
"zip_code": "<string>",
"state": "<string>",
"time_zone": "America/Chicago",
"mobile": true
}
],
"contact_email": "jsmith@example.com",
"metadata": {}
}
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
merchants: [
{
merchant_name: 'Space Coast Hardware',
external_id: 'SCH-1',
locations: [
{
location_id: 'L1',
location_name: '<string>',
address: '<string>',
zip_code: '<string>',
state: '<string>',
time_zone: 'America/Chicago',
mobile: true
}
],
contact_email: 'jsmith@example.com',
metadata: {}
}
]
})
};
fetch('https://api.centsless.org/api/v1/partner/merchants/bulk-register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/partner/merchants/bulk-register"
payload = { "merchants": [
{
"merchant_name": "Space Coast Hardware",
"external_id": "SCH-1",
"locations": [
{
"location_id": "L1",
"location_name": "<string>",
"address": "<string>",
"zip_code": "<string>",
"state": "<string>",
"time_zone": "America/Chicago",
"mobile": True
}
],
"contact_email": "jsmith@example.com",
"metadata": {}
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
