Introduction
We provide API client libraries to simplify integration with our product
Installation
To install Client Library use package manager for your language
npm install --save-dev @simplepay-ai/api-clientAPI Client
Initialization
To make API requests you should create instance of API Client
import { Client } from '@simplepay-ai/api-client';
const api = new Client({
apiKey: '<place your API key here>'
});We recommend to create a single instance of Client and then reuse it in different parts of your application
Calling API methods
To get usage examples, see specific API sections:
WebSocket Client
Initialization
To subscribe to updates about invoice status changes you should create instance of WebSocket Client
Subscribing to events
To get usage examples, see specific API sections:
Last updated