MOD-01
Payments API
One endpoint for every way money moves.
Charges, refunds, payouts and customers behind one clean, versioned REST API. Predictable resources, idempotent writes and first-party SDKs keep your integration boring in the best possible way.
- Median API response
- <120ms
- API uptime target
- 99.99%
- Official SDKs
- 6
curl https://api.nyoripay.com/v1/payments \ -u "$NYORI_SECRET_KEY:" \ -H "Idempotency-Key: order_1042" \ -d amount=4200 \ -d currency=eur \ -d customer=cus_8fK2nQ \ -d payment_method=pm_card_visa \ -d "routing[strategy]=adaptive"MOD-01 / Capabilities
Boring infrastructure, in the best way.
- 01
Idempotent by design
Every write accepts an idempotency key. Retry as often as your network demands and the payment still happens exactly once.
- 02
Versioned, never broken
Pin your integration to a dated API version. New features ship without touching the contract you built on.
- 03
Typed SDKs
Official libraries for Node.js, Python, Go, Ruby, PHP and Java, generated from the same spec as the API itself.
- 04
A sandbox that mirrors live
Test keys hit an isolated environment with production behavior, including declines, disputes and 3DS challenges.
- 05
Expandable objects
Pull related resources into a single response with expand[] and cut round trips to a minimum.
- 06
Built for throughput
Cursor pagination, generous rate limits and regional endpoints keep high-volume workloads fast.
How it works
Three steps to live.
- 01
Grab sandbox keys
Request access and get test keys right away. No card, no contract.
- 02
Create your first payment
One request with an amount, a currency and a payment method. That is the whole integration.
- 03
Flip to live
Swap your test key for a live key. Same code, same responses, real money.
import NyoriPay from '@nyoripay/node'const nyori = new NyoriPay(process.env.NYORI_SECRET_KEY)const payment = await nyori.payments.create({ amount: 4200, currency: 'eur', customer: 'cus_8fK2nQ', payment_method: 'pm_card_visa', routing: { strategy: 'adaptive' }}, { idempotencyKey: 'order_1042'})console.log(payment.status) // 'succeeded'Jack in
Plug in Payments API.
Sandbox keys are free and ready in minutes. Build against the real API today and go live whenever you are ready.