BINKDocs
HelpDashboard

SDKs

/docs/global/developers/sdksGlobal

Every SDK is generated from one source of truth — the platform's OpenAPI 3.0 spec — so the TypeScript client, and any language you generate yourself, always match the live API exactly.

TypeScript / Node

A fully-typed client is generated directly from the spec — every request and response shape matches the API reference with no hand-maintained types to drift out of sync.

typescript
import { BinkPay } from '@binkpay/sdk';

const bink = new BinkPay({ apiKey: process.env.BINKPAY_SECRET_KEY });
const payment = await bink.payments.create({
  amountMinor: '5000',
  currency: 'EGP',
});

Python, PHP, and other languages

The OpenAPI spec is published at https://binkpay.net/api/v1/developer/openapi.json. Feed it into openapi-generator

to produce a client for Python, PHP, Go, Java, C#, or any of its 40+ supported targets:

bash
npx @openapitools/openapi-generator-cli generate \
 -i https://binkpay.net/api/v1/developer/openapi.json \
 -g python \
 -o ./binkpay-python

No hand-maintained SDKs beyond TypeScript today

Only the TypeScript client is built and published directly. Every other language is reproducible on demand from the same spec — the cURL examples throughout these docs work identically regardless of which client you generate.

Was this page helpful?