Initiate POS Transaction
This endpoint allows a user to create and send a transaction to a POS terminal.
curl -X POST 'https://developers.flouci.com/api/transactions/init_pos_transaction' \
-H 'Authorization: Bearer <APP_PUBLIC>:<APP_SECRET>' \
-H 'Content-Type: application/json' \
-d '{
"id_terminal": "terminal",
"serial_number": "SN123456",
"amount_in_millimes": 1000,
"payment_method": "WALLET",
"developer_tracking_id": "dev_track_123"
}'
Body
Unique identifier of the POS terminal.
Serial number of the POS terminal.
Transaction amount in millimes.
Payment method (NFC, CARD, WALLET, CHECK).
An ID for you to track the payment. This is a free field that Flouci doesn’t check against
Webhook URL to notify transaction status.
{
"success": true,
"terminal_id": "testing1234",
"status_code": 201
}
Get POS Transaction Status
This endpoint retrieves the status of a POS transaction.
curl -X GET 'https://developers.flouci.com/api/transactions/get_pos_transaction_status?developer_tracking_id=dev_track_123' \
-H 'Authorization: Bearer <APP_PUBLIC>:<APP_SECRET>'
Query Parameters
Unique transaction ID from Flouci.
An ID for you to track the payment. This is a free field that Flouci doesn’t check against
{
"success": true,
"transactions": [
{
"developer_tracking_id": "7cd66b29-a8b7-4e4c-aedf-0d98eeb92703",
"payment_status": "PS",
"transaction_id": "1b7b29df-6826-4b33-b5a6-fb86fcc15e5c"
}
],
"status_code": 200
}