SDKs
SDKs and tools
Call the API directly over HTTPS, or generate a typed client from the OpenAPI document.
OpenAPI document
The specification is generated from the running service, so it always matches the endpoints listed in the reference.
https://business.boundlesspay.com/api/public/v1/openapi.jsonGenerate a typed client
npx openapi-typescript https://business.boundlesspay.com/api/public/v1/openapi.json -o boundlesspay.d.ts
Minimal TypeScript client
typescript
const BASE = "https://business.boundlesspay.com/api/public/v1";
export async function boundlesspay<T>(
path: string,
init: RequestInit & { idempotencyKey?: string } = {},
): Promise<T> {
const res = await fetch(BASE + path, {
...init,
headers: {
Authorization: `Bearer ${process.env.BOUNDLESSPAY_API_KEY}`,
"Content-Type": "application/json",
...(init.idempotencyKey ? { "Idempotency-Key": init.idempotencyKey } : {}),
...init.headers,
},
});
const body = await res.json();
if (!res.ok) throw Object.assign(new Error(body.title ?? "Request failed"), body);
return body as T;
}Python
python
import os, requests
BASE = "https://business.boundlesspay.com/api/public/v1"
SESSION = requests.Session()
SESSION.headers.update({
"Authorization": f"Bearer {os.environ['BOUNDLESSPAY_API_KEY']}",
"Content-Type": "application/json",
})
def call(method, path, **kwargs):
res = SESSION.request(method, BASE + path, timeout=30, **kwargs)
body = res.json()
res.raise_for_status()
return bodyBuilding an integration? Start with the quickstart.
