RedPay Gate API v1 (legacy) (v1)
Reference for existing integrations of /api/v1/payment_intent.
| Status | Released, frozen: request and response shapes never change |
| New integrations | Use the Gate API (/api/payment_intent, version 2026-11-01) |
| Production | https://api.redpay.pl |
| Sandbox | https://api-sand.redpay.pl |
| Machine-readable spec | GET https://api.redpay.pl/api/openapi/v1.yaml |
| v1 (this API) | Gate API 2026-11-01 | |
|---|---|---|
| Payment id in URLs | numeric paymentId | public id (RP-...-TR) |
| Credentials | headers, or token / key in the body | headers only |
| Card payments | not supported (type: CARD → 422) | supported with cardTokenId |
| Payer IP | ip4Address (IPv4) | ipAddress (IPv4 or IPv6) |
| Refund response | the updated payment | a Refund resource with status |
| Listing, refunds list, events, discovery | no | yes |
| Notifications | legacy result notification (below) | signed webhook events |
Send the credentials of your virtual point of sale (VPos) in the Auth-Token and Auth-Key headers. For compatibility, token and key in the request body are accepted where the request has a body. Missing or wrong credentials → 401; inactive VPos or merchant → 403. A payment of another merchant is answered with 404.
POST requests accept an optional Idempotency-Key header (1-64 characters A-Z a-z 0-9 _ -): a repeat with the same key and request returns the stored response with Idempotent-Replayed: true for 24 hours; the same key with a different request → 422; while the first request runs → 409.
Rate limits per Auth-Token: 1200 reads and 150 writes per minute (429 with Retry-After above); responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
When a payment reaches its result (paid, or failed finally), RedPay POSTs a notification to the payment's asyncAckUrl, or without it to the notification URL of the VPos (no URL → no notification):
{
"orderId": "100045",
"paymentIntentId": 123456,
"transactionId": "RP-W3YWEWH38PZTQW-TR",
"paymentStatus": "SUCCESS",
"paymentType": "BLIK",
"retry": false
}
The header X-Signature-SHA256 carries Base64(HMAC-SHA256(Auth-Key, rawBody)): compute the HMAC over the raw body bytes with your VPos Auth-Key and compare in constant time. retry is true for repeated deliveries.
- Answer
2xxwithin 15 seconds (connection timeout 5 seconds). - Failed deliveries are retried after 1 min, 5 min, 15 min, 1 h, 3 h, 6 h, 12 h and 24 h.
- Redirects are not followed; only public addresses on ports 80 / 443 are called.
- Always confirm the result with
GET /api/v1/payment_intent/{paymentId}/statusbefore shipping.
Errors are Error JSON objects with httpCode, message and, for validation errors, errors. 400 invalid request or unsupported currency, 401/403 credentials, 404 unknown or foreign payment, 409 idempotency key in progress, 422 business rule (not cancelable, not paid, card payment), 429 rate limit, 503 provider temporarily unavailable.