Postman, OpenAPI, test vectors
All generated from the same contract as the API itself, and checked in our CI on every change.
| File | What it is |
|---|---|
| openapi.json | The OpenAPI 3.1 document of API version 2026-12-01. Generate a client from it if you like; the money fields are strings. |
| nicepay.ts · nicepay.php | The signing helper the examples on this site use: one file per language, nothing to install. Save it under the name shown. Read it |
| postman_collection.json | Every endpoint, grouped like the reference. A collection-level pre-request script signs each request with NP1 (HMAC). |
| test-vectors/np1.json | Request-signing vectors: inputs, canonical string, signature and headers. |
| test-vectors/webhooks.json | Webhook-signature vectors: a JWKS, signed deliveries that must verify and tampered ones that must not. |
Postman
- Import
postman_collection.json. - In the collection's Variables, set
keyIdandkeySecretto a test key. LeavebaseUrlas it is. - Send Utilities → Check credentials. Then Pay-ins → Create a pay-in: change
merchant_order_idfirst — each order id works once.
The Idempotency-Key header is a fresh random value per send; in your own code use your order or withdrawal id instead. Use test keys only: a tool that holds a live secret is a tool that can move your money.