Refund POS payment
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/pos/refund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "150.00",
"initiated_by": "admin-user-id",
"original_transaction_id": "txn-uuid",
"reason": "Customer returned goods"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '150.00',
initiated_by: 'admin-user-id',
original_transaction_id: 'txn-uuid',
reason: 'Customer returned goods'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/pos/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/pos/refund"
payload = {
"amount": "150.00",
"initiated_by": "admin-user-id",
"original_transaction_id": "txn-uuid",
"reason": "Customer returned goods"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}POS
Refund POS payment
Refund a previous POS payment transaction
POST
/
pos
/
refund
Refund POS payment
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/pos/refund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "150.00",
"initiated_by": "admin-user-id",
"original_transaction_id": "txn-uuid",
"reason": "Customer returned goods"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '150.00',
initiated_by: 'admin-user-id',
original_transaction_id: 'txn-uuid',
reason: 'Customer returned goods'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/pos/refund', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/pos/refund"
payload = {
"amount": "150.00",
"initiated_by": "admin-user-id",
"original_transaction_id": "txn-uuid",
"reason": "Customer returned goods"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Refund details
Response
Refund processed
The response is of type object.
⌘I