sumsub-node-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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: "user@gmail.com",
  phone: "+1234567890",
  fixedInfo: {
    country: "USA",
  },
  metadata: [
    {
      key: "foo",
      value: "bar",
    },
  ],
});

console.log(data.externalUserId)
// "my-external-user-id"

More examples

/tests/sumsub.spec.ts

Build from source

npm run build

Run tests

npm run test

Links

Contact

dev@agiodigital.com

Package Sidebar

Install

npm i sumsub-node-sdk

Weekly Downloads

289

Version

1.0.5

License

ISC

Unpacked Size

91.2 kB

Total Files

24

Last publish

Collaborators

  • agiodigital-owner