Process POS payment
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/pos/payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "150.00",
"card_serial": "CARD0001",
"currency": "SLE",
"merchant_id": "MERCHANT001",
"processor_id": "proc-uuid-123",
"transaction_ref": "APP-TXN-123"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '150.00',
card_serial: 'CARD0001',
currency: 'SLE',
merchant_id: 'MERCHANT001',
processor_id: 'proc-uuid-123',
transaction_ref: 'APP-TXN-123'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/pos/payment', 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/payment"
payload = {
"amount": "150.00",
"card_serial": "CARD0001",
"currency": "SLE",
"merchant_id": "MERCHANT001",
"processor_id": "proc-uuid-123",
"transaction_ref": "APP-TXN-123"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}POS
Process POS payment
Process NFC card payment at Smart PAY POS terminal
POST
/
pos
/
payment
Process POS payment
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/pos/payment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "150.00",
"card_serial": "CARD0001",
"currency": "SLE",
"merchant_id": "MERCHANT001",
"processor_id": "proc-uuid-123",
"transaction_ref": "APP-TXN-123"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '150.00',
card_serial: 'CARD0001',
currency: 'SLE',
merchant_id: 'MERCHANT001',
processor_id: 'proc-uuid-123',
transaction_ref: 'APP-TXN-123'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/pos/payment', 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/payment"
payload = {
"amount": "150.00",
"card_serial": "CARD0001",
"currency": "SLE",
"merchant_id": "MERCHANT001",
"processor_id": "proc-uuid-123",
"transaction_ref": "APP-TXN-123"
}
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
POS payment details
Accepts decimal format like "150.00" or "150"
Example:
"150.00"
Supports any alphanumeric: CARD0001, 48290173K, etc.
Example:
"CARD0001"
Example:
"SLE"
Example:
"MERCHANT001"
Processor account that receives the funds
Example:
"proc-uuid-123"
Example:
"APP-TXN-123"
Display name for receipts
Example:
"ABC Store"
Response
Payment approved
The response is of type object.
⌘I