Correct a location (re-resolves)
curl --request PATCH \
--url https://api.centsless.org/api/v1/partner/merchants/{merchantId}/locations/{locationId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"address": "<string>",
"zip_code": "<string>",
"time_zone": "<string>",
"mobile": true,
"location_name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
zip_code: '<string>',
time_zone: '<string>',
mobile: true,
location_name: '<string>'
})
};
fetch('https://api.centsless.org/api/v1/partner/merchants/{merchantId}/locations/{locationId}', 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/{merchantId}/locations/{locationId}"
payload = {
"address": "<string>",
"zip_code": "<string>",
"time_zone": "<string>",
"mobile": True,
"location_name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}Locations
Correct a location (re-resolves)
locationId accepts your location_id or the internal UUID. Any change to address or zip re-resolves the location.
PATCH
/
partner
/
merchants
/
{merchantId}
/
locations
/
{locationId}
Correct a location (re-resolves)
curl --request PATCH \
--url https://api.centsless.org/api/v1/partner/merchants/{merchantId}/locations/{locationId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"address": "<string>",
"zip_code": "<string>",
"time_zone": "<string>",
"mobile": true,
"location_name": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
zip_code: '<string>',
time_zone: '<string>',
mobile: true,
location_name: '<string>'
})
};
fetch('https://api.centsless.org/api/v1/partner/merchants/{merchantId}/locations/{locationId}', 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/{merchantId}/locations/{locationId}"
payload = {
"address": "<string>",
"zip_code": "<string>",
"time_zone": "<string>",
"mobile": True,
"location_name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}Authorizations
Body
application/json
Response
The location with its new resolution.

