RedPay API Documentation
RedPay exposes payment APIs. They share one payment engine: a payment created through any of them is the same
payment (RP-...-TR) shown on the same RedPay payment page.
| API | For | Status | Base path | Spec |
|---|---|---|---|---|
| Gate API | Merchants and partners building their own integration | Released, stable, versioned by date (2026-11-01) |
/api/payment_intent, /api/payment_channels, /api/vpos |
gate/openapi.yaml |
| Gate API v1 (legacy) | Existing integrations only | Released, frozen | /api/v1/payment_intent |
gate-v1/openapi.yaml |
Environments
| Environment | API | Payment page | Merchant panel |
|---|---|---|---|
| Production | https://api.redpay.pl |
https://gate.redpay.pl |
https://app.redpay.pl |
| Sandbox | https://api-sand.redpay.pl |
https://gate-sand.redpay.pl |
https://app-sand.redpay.pl |
The sandbox is a separate system with its own data and credentials, for testing an integration before going live.
Credentials
Every merchant API request is authenticated with the credentials of a virtual point of sale (VPos): the
Auth-Token and Auth-Key headers. Create a point of sale and read its credentials in the merchant panel. For the
Gate API, the panel also shows the VPos webhook secret (whsec_...) used to sign webhook events, and lets you
set the default notification URL, return URLs, payer language and accepted currencies of the point of sale.
How a payment works
Your backend RedPay API Payer RedPay payment page
│ POST /api/payment_intent │ │ │
│────────────────────────────────▶│ │ │
│ 201 {id, redirectUrl} │ │ │
│◀────────────────────────────────│ │ │
│ redirect payer to redirectUrl ─────────────────────────────▶──────────────────────────▶│
│ │ │ chooses BLIK / bank / card│
│ │◀──────────────────────────────────────────────────────│
│ webhook payment_intent.succeeded (signed) │ │
│◀────────────────────────────────│ │ │
│ 200 │ │ redirect to confirmUrl │
│────────────────────────────────▶│ │◀──────────────────────────│
- Create the payment on your server; never in the browser (the
Auth-Keyis a secret). - Redirect the payer to
redirectUrl. - Wait for the webhook (or poll
GET /api/payment_intent/{id}); the browser return toconfirmUrlis not proof of payment. - Refund or cancel through the API when needed.
Common rules
- Amounts are decimal numbers in the currency's main unit with at most 2 decimal places (
149.99). - Currencies are ISO 4217 codes. BLIK is PLN only, bank transfer PLN and EUR (SEPA), card every enabled currency.
- Dates are ISO 8601 with offset (
2026-11-19T10:15:30.123+01:00). - Unpaid payments expire after 3 days (
TIMEOUT). - Rate limits (merchant APIs): 1200 reads and 150 writes per minute per
Auth-Token,429+Retry-Afterabove. - Idempotency:
Idempotency-KeyonPOSTrequests of the Gate API and Gate API v1. - Errors are JSON objects with
httpCode,messageand, for validation errors,errors(field → message).