Refund a transaction
curl --request POST \
--url https://api.centsless.org/api/v1/transaction/refund \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"original_transaction_id": "<string>",
"refund_amount": 123,
"void_reason": "<string>",
"voided_by": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
original_transaction_id: '<string>',
refund_amount: 123,
void_reason: '<string>',
voided_by: '<string>'
})
};
fetch('https://api.centsless.org/api/v1/transaction/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/transaction/refund"
payload = {
"original_transaction_id": "<string>",
"refund_amount": 123,
"void_reason": "<string>",
"voided_by": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}Overrides
Refund a transaction
Calculated under the sale’s rule and negated so the delta reverses exactly; Vermont refunds are issued in the exact amount paid. A refund that cannot be made in coin is rejected. Requires transaction:refund.
POST
/
transaction
/
refund
Refund a transaction
curl --request POST \
--url https://api.centsless.org/api/v1/transaction/refund \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"original_transaction_id": "<string>",
"refund_amount": 123,
"void_reason": "<string>",
"voided_by": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
original_transaction_id: '<string>',
refund_amount: 123,
void_reason: '<string>',
voided_by: '<string>'
})
};
fetch('https://api.centsless.org/api/v1/transaction/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/transaction/refund"
payload = {
"original_transaction_id": "<string>",
"refund_amount": 123,
"void_reason": "<string>",
"voided_by": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}{
"error": "INVALID_REQUEST",
"message": "<string>",
"errors": [
"<string>"
]
}
