cURL
curl --request POST \ --url http://127.0.0.1:3000/transaction/confirm \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "transaction_id": "SONECTljeeQWo99a7TxB", "transaction_id_partner": "abcd1234" }'
"<any>"
When a user sends a request and shows the barcode, client will scan it. The barcode is the transaction-id. When the cashier scans the barcode, he/she is confirming the transaction.