Generate new transaction
Creates a new transaction with QR code or barcode for payment processing. The same path with a multipart/form-data body is soundbite recognition (an audio fingerprint), answered only at https://soundbite.payware.eu (sandbox: https://soundbite-sandbox.payware.eu); api.payware.eu and sandbox.payware.eu refuse it with 421 ERR_SOUNDBITE_HOST.
Request
- Base URL: https://api.payware.eu
- URL: https://api.payware.eu/api/transactions
- Auth: HTTP bearer
Headers
Optional: one random UUID per tap, the same on every query of that tap, so its answers keep one id. Ignored when malformed
Optional. A key of your choosing, unique per request (a UUID is typical), 1-255 printable ASCII characters without spaces. A retry with the same key and the same body, within 24 hours, gets the first call's response back with the header Idempotent-Replayed: true instead of creating a second transaction. The same key with a different body answers 422 ERR_IDEMPOTENCY_KEY_REUSED; a retry while the first call is still running answers 409 ERR_IDEMPOTENCY_KEY_IN_PROGRESS. Only successful responses are kept, so a call that failed can be retried with the same key.
Request body
Response
Transaction created successfully. A replay of an earlier call with the same Idempotency-Key carries the header Idempotent-Replayed: true.
Example response
{
"recognition": {
"id": "3f2b8c1e-6a4d-4e2f-9b1a-5c7d8e9f0a1b"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.