Set early adoption, rounding preference, local adoption
curl --request PUT \
--url https://api.centsless.org/api/v1/merchants/{merchant_id}/early-adoption \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"early_adoption": true,
"local_adoption": true,
"basis": "<string>"
}
'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({early_adoption: true, local_adoption: true, basis: '<string>'})
};
fetch('https://api.centsless.org/api/v1/merchants/{merchant_id}/early-adoption', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/merchants/{merchant_id}/early-adoption"
payload = {
"early_adoption": True,
"local_adoption": True,
"basis": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"merchant": {
"id": "<string>",
"merchant_name": "<string>",
"early_adoption": true,
"early_adoption_set_at": "2023-11-07T05:31:56Z",
"rounding_preference": "<string>",
"local_adoption": true,
"local_adoption_basis": "<string>"
}
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}Merchant settings
Set early adoption, rounding preference, local adoption
A merchant key may set only its own record; an admin key any merchant’s.
PUT
/
merchants
/
{merchant_id}
/
early-adoption
Set early adoption, rounding preference, local adoption
curl --request PUT \
--url https://api.centsless.org/api/v1/merchants/{merchant_id}/early-adoption \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"early_adoption": true,
"local_adoption": true,
"basis": "<string>"
}
'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({early_adoption: true, local_adoption: true, basis: '<string>'})
};
fetch('https://api.centsless.org/api/v1/merchants/{merchant_id}/early-adoption', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/merchants/{merchant_id}/early-adoption"
payload = {
"early_adoption": True,
"local_adoption": True,
"basis": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"merchant": {
"id": "<string>",
"merchant_name": "<string>",
"early_adoption": true,
"early_adoption_set_at": "2023-11-07T05:31:56Z",
"rounding_preference": "<string>",
"local_adoption": true,
"local_adoption_basis": "<string>"
}
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}Authorizations
Body
application/json

