sumsub-node
v1.6.0
Published
### Description https://developers.sumsub.com/api-reference
Downloads
18
Maintainers
Readme
Sumsub Node SDK
Description
https://developers.sumsub.com/api-reference
This SDK wraps the official SumSub API into an easy-to-use, strongly-typed Javascript and Typescript SDK.
Install
npm install sumsub-node-sdk
or
yarn add sumsub-node-sdk
Example setup
import { sdk } from "sumsub-node-sdk";
// Instantiate the SDK
const sumsub = sdk({
baseURL: process.env.SUMSUB_BASE_URL,
secretKey: process.env.SUMSUB_SECRET_KEY,
appToken: process.env.SUMSUB_APP_TOKEN,
});
// Use the methods
const { data } = await sumsub.createApplicant("my-external-user-id", "basic-kyc-level", {
email: "[email protected]",
phone: "+1234567890",
fixedInfo: {
country: "USA",
},
metadata: [
{
key: "foo",
value: "bar",
},
],
});
console.log(data.externalUserId)
// "my-external-user-id"
More examples
Build from source
npm run build
Run tests
npm run test
Links
- https://github.com/agio-digital
- https://www.npmjs.com/package/sumsub-node-sdk
- https://agiodigital.com