Payment API
One REST API for the payment lifecycle.
Capabilities
Payments
Refunds
Payouts
Balance
Disputes
Notifications
Authentication
Sandbox
Lifecycle
From request to callback.
Merchant server
Creates the payment with your private key.
POST /api/v1/paymentsRainbow Pay API
Validates the request and returns a payment token.
200 · tokenPayment processing
The customer pays; authentication runs where required.
Result
The payment reaches a final status.
approved | declinedCallback
Status is posted to your callback URL.
POST callbackUrl
Authentication
Every request is made over HTTPS and authenticated with your private API key in an Authorization: Bearer header. Keys are issued per environment — sandbox and production keys are separate — and must only ever be used from your server.
Conventions
Requests and responses are JSON. Amounts are expressed in minor units of the currency. Each payment, refund and payout is identified by a token, and every response states whether the call succeeded and, if not, which error occurred.
Related products
Ready to discuss your payment setup?
Tell us how your business accepts payments today and what you need from your next payment integration.