RedPay API Documentation

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   │
     │────────────────────────────────▶│                          │◀──────────────────────────│
  1. Create the payment on your server; never in the browser (the Auth-Key is a secret).
  2. Redirect the payer to redirectUrl.
  3. Wait for the webhook (or poll GET /api/payment_intent/{id}); the browser return to confirmUrl is not proof of payment.
  4. Refund or cancel through the API when needed.

Common rules

Guides