Skip to main content

Installation

Install the swervpay-node SDK in your Node.js application using your preferred package manager.
Shell

Usage

Create the client with your business ID and secret key. Load both values from your server’s environment or secret manager; do not commit them to source control or expose them in browser code.
NodeJS

Create a Payout

Create a new payout
NodeJS

Get payout

Get a payout
NodeJS

Get transactions

Retrieve all transactions
NodeJS

Get transaction

Get a transaction
NodeJS

Create a customer

Create a new customer
NodeJS

Update a customer

Update a customer
NodeJS

Complete customer KYC

Create/Update customer KYC
NodeJS

Get customers

Retrieve all customers
NodeJS

Get customer

Get a customer
NodeJS

Create a card

Create a new card
NodeJS

Get cards

Retrieve all cards
NodeJS

Get card

Get a card
NodeJS

Webhook test

Send a test webhook
NodeJS

Webhook retry

Retry a webhook log
NodeJS

Get banks

Retrieve all banks
NodeJS

Resolve account number

Resolve an account number
NodeJS

FX rate

Get the current exchange rate
NodeJS

FX Exchange

Create a swap transaction
NodeJS

Get wallet

Get a wallet
NodeJS

Get wallets

Retrieve all wallets
NodeJS
See more examples