Developers
Build payments into your product.
One REST API for checkout, virtual accounts, cards, payouts, invoices and wallets. Authenticate with a single header, test in the sandbox, verify every webhook.
What you can build
Every card opens the exact page in the docs.
Environments
Sandbox first. Then one switch.
Sandbox and live keys are separate: a sandbox key doesn't work on live, and a live key doesn't work on the sandbox. Swap the base URL to switch.
| Sandbox | Live | |
|---|---|---|
| Base URL | https://sandbox.api.platnova.co | https://api.platnova.com |
| Money | Test only | Real |
| Keys | Sandbox keys, from support | Live keys, from your dashboard once your business is live |
| Webhooks | Both send webhooks. Register a separate endpoint, with its own secret, for each. | |
Authentication
One header. Kept on your server.
Every server-to-server call carries your API key in X-API-Key. Create keys under Settings → Developers in your dashboard.
AuthenticationWebhooks
Prove every call came from Platnova.
Signed endpoints get X-Platnova-Signature: sha256= plus the HMAC-SHA256 of the raw body, keyed with your endpoint secret. Try it below with the docs' own test values.
- Read the raw request body as bytes, before any JSON parsing.
- Compute sha256= + hex(HMAC-SHA256(secret, raw body)), lowercase.
- Compare it with X-Platnova-Signature in constant time, never with ==.
- Match: accept and answer 2xx within 25 seconds. No match: answer non-2xx, such as 401.
Retries
Retry safely with an Idempotency-Key.
Send an Idempotency-Key on every request that creates or moves money. A retry after a timeout then never creates a second checkout or payment. Use one key per order attempt.
Errors and retrying safelyGoing live
Your go-live checklist.
Until your business is live, routes that collect or move money answer 403 entity_not_active, with data.missing listing what's left.
Going livePlugins and quickstarts
Start from working code.
Create a checkout, verify the webhook, confirm and refund, in plain PHP 7.4+ with cURL. Adapts directly to a WooCommerce payment gateway.
plugins/php-quickstart
Python The same flow in Python 3.9+ with requests and Flask.
plugins/python-quickstart
Pay with Platnova button A branded button on your site that opens Platnova's hosted checkout.
checkout/pay-with-platnova-button
OpenAPI and Postman Download the OpenAPI 3 spec and a Postman collection. Set baseUrl and apiKey and go.
api-reference/openapi.json
Versioning Every endpoint lives under /v1. Breaking changes are announced to your developers by email first.
versioning
Partner API Payouts, itemised checkout, travel, eSIM and experiences for platforms that move money for their own customers.
/v1/partner/*
