NyukiAIPayment

Documentation

Take your first payment.

Everything below is the real contract: the routes, the statuses, the failure codes, and the rules a correct integration follows.

Endpoints

What is shipped, and what is specified but not yet built. The second list is here so you can plan against it, not integrate against it.

VerbPathWhat it doesState
POST/v1/payment_intentsCreate a payment. Send an Idempotency-Key.Idempotent
POST/v1/payment_intents/:id/confirmRoute the payment to a provider and start it.
GET/v1/payment_intents/:idRetrieve a payment and every charge attempted against it.
GET/v1/payment_intentsList payments, filtered, searched and paginated.
POST/v1/customersCreate a customer you can reuse across payments.
GET/v1/providersWhich methods will work for a corridor and amount.
POST/v1/payment_linksCreate a hosted checkout and get its URL.Idempotent
GET/v1/payment_links/:idA checkout’s status and the payments made through it.
POST/v1/payment_links/:id/deactivateClose a checkout that has not been paid.
POST/v1/sellersRegister a marketplace seller and open their wallet.Idempotent
GET/v1/sellersList sellers with their balances and sales figures.
GET/v1/sellers/:idA seller, with balances, figures and payout destinations.
PATCH/v1/sellers/:idChange a seller’s details, commission or status.
POST/v1/sellers/:id/payout_destinationsSet the number a seller is paid on.Idempotent
POST/v1/sellers/:id/payoutsPay a seller from their wallet. Idempotency-Key required.Idempotent
GET/v1/sellers/:id/payoutsA seller’s payouts, newest first.
GET/v1/sellers/:id/payouts/:payoutIdOne of a seller’s payouts.
POST/v1/disputesOpen a dispute for a buyer who wrote to you.Idempotent
GET/v1/disputesDisputes, filtered by status, source or seller.
GET/v1/disputes/:idA dispute, with its refund’s status.
POST/v1/disputes/:id/acceptAccept a buyer’s dispute and refund them. Call again after a failed refund.Idempotent
POST/v1/disputes/:id/rejectReject a buyer’s dispute and keep the sale.Idempotent
POST/v1/refundsRefund a captured payment directly, in full or in part.Idempotent
GET/v1/refunds/:idRetrieve a refund and where it stands.
POST/v1/payment_intents/:id/cancelCancel a payment while it is still non-terminal.Not built
POST/v1/disbursementsSend money out to a third party.Not built
GET/v1/wallets/:id/balanceRead a wallet’s pending and available balances.Not built
GET/v1/balance/transactionsThe balance statement, line by line.Not built
POST/v1/payoutsWithdraw to your own destination.Not built

Status codes

The HTTP status and the stable code that arrives with it. Your request log in the dashboard records the same code, so a code you filter by is a code documented here.

HTTPerror.code
400invalid_request
401unauthenticated
403permission_denied
404resource_missing
409resource_conflict
412idempotency_key_reused
422unprocessable_entity
429rate_limit_exceeded
503processor_unavailable
500api_error

Machine-readable

OpenAPI 3.1, generated from the controller’s own decorators and served by the API itself. The Postman collection is generated from that document, and Insomnia imports the same file.