Libraries

Install @teddoh/sdk. Exchange a sandbox key for a token, then open an account.

Install

pnpm add @teddoh/sdk

Token then open

import { TeddohClient } from "@teddoh/sdk";

const client = new TeddohClient({
  baseUrl: "https://sandbox-partner-api.teddoh.com",
  clientId: process.env.TEDDOH_CLIENT_ID,
  clientSecret: process.env.TEDDOH_CLIENT_SECRET,
});

const account = await client.openAccount({
  idempotencyKey: crypto.randomUUID(),
  body: { externalMemberId: "driver_99312", phone: "+2250711223344", firstName: "Awa", lastName: "Kone", currency: "XOF" },
});

The client covers every route this origin answers. There is no escrow method.

API reference

Libraries · Teddoh