Use Paycode
Collect a payment from a customer using a paycode that was created with the Payment API.
To use a paycode:
Create a payment that generates a paycode. See Create Payment.
Get the paycode details See Get Paycode Details.
Use the paycode.
Note
The base URL for the POS production environment is https://pos.rapyd.net. It requires its own access key, which is different from the access key for the Payment API. To obtain an access key for the POS production environment and to set up a sandbox environment for the POS API, contact Rapyd Client Support.
payment
ID of the payment. String starting with payment_.
/v1/pos/paycode/{payment}
Use Paycode
curl -X post https://sandboxpos.rapyd.net/v1/pos/paycode/payment_b4c0f8ce17074fbedb0af9d8d3810806 -H 'access_key: your-access-key-here' -H 'Content-Type: application/json' -H 'idempotency: your-idempotency-parameter-here' -H 'salt: your-random-string-here' -H 'signature: your-calculated-signature-here' -H 'timestamp: your-unix-timestamp-here'
{ "status": { "error_code": "", "status": "SUCCESS", "message": "", "response_code": "", "operation_id": "16395a3a-e072-433a-8b51-7b2ccbc0792c" }, "data": { "id": "payment_b4c0f8ce17074fbedb0af9d8d3810806", "org_id": "", "type": 1, "code": "9600196969569008", "status": "CLO", "amount": 300.6, "currency_code": "EUR", "expired_at": 1664877238, "user_profile_id": "", "phone_number": "+14155558990", "pos_id": "ac3dbdfe-0e14-11e7-8115-0ef1982c1e4a", "used_at": 1663667891, "created_at": 1663658880, "cart": [ { "name": "Jet black shoes", "price": "100.20000", "description": "Shoes", "quantity": 3, "external_id": "A-1139" } ], "description": "", "currency_symbol": "€", "metadata": null } }