RedPay Gate API v1 (legacy) (v1)

Reference for existing integrations of /api/v1/payment_intent.

StatusReleased, frozen: request and response shapes never change
New integrationsUse the Gate API (/api/payment_intent, version 2026-11-01)
Productionhttps://api.redpay.pl
Sandboxhttps://api-sand.redpay.pl
Machine-readable specGET https://api.redpay.pl/api/openapi/v1.yaml

Differences from the Gate API

v1 (this API)Gate API 2026-11-01
Payment id in URLsnumeric paymentIdpublic id (RP-...-TR)
Credentialsheaders, or token / key in the bodyheaders only
Card paymentsnot supported (type: CARD → 422)supported with cardTokenId
Payer IPip4Address (IPv4)ipAddress (IPv4 or IPv6)
Refund responsethe updated paymenta Refund resource with status
Listing, refunds list, events, discoverynoyes
Notificationslegacy result notification (below)signed webhook events

Authentication

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.

Idempotency and rate limits

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.

Result notification

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 2xx within 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}/status before shipping.

Errors

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.

Servers
Production
https://api.redpay.pl
Sandbox
https://api-sand.redpay.pl