Official SDKs
Three libraries with the same shape: a client with every service as a property, OAuth helpers with PKCE, and webhook signature checks. Each is generated from the API's definitions, so all 370 methods are there on day one, and none of them needs a dependency.
TypeScript
Typed requests and responses for every method, for Node.js, edge runtimes and the browser.
npm install @lumora/sdkRead the guide Python
Every method as a plain function taking keyword arguments, returning dicts. No dependencies.
pip install lumoraRead the guide PHP
Every method on a typed client, arrays in and out, for Laravel, Symfony or plain PHP.
composer require lumora/lumora-phpRead the guide The same call in every language
Method names follow each language's conventions: listOrders in TypeScript and PHP, list_orders in Python. Request fields can be written either way.
const lumora = new Lumora({ accessToken: process.env.LUMORA_ACCESS_TOKEN! });
// Fully typed: request fields autocomplete, responses are typed.
const { orders, nextPageToken } = await lumora.orders.listOrders({ pageSize: 50 });
for (const order of orders ?? []) {
console.log(order.number, order.totals?.total); // TZS cents
}lumora = Lumora(access_token=os.environ["LUMORA_ACCESS_TOKEN"])
page = lumora.orders.list_orders(page_size=50)
for order in page.get("orders", []):
print(order["number"], order["totals"]["total"]) # TZS cents$lumora = new Client(getenv('LUMORA_ACCESS_TOKEN'));
$page = $lumora->orders->listOrders(['page_size' => 50]);
foreach ($page['orders'] ?? [] as $order) {
echo $order['number'], ' ', $order['totals']['total'], PHP_EOL; // TZS cents
}Not using one of these?
The API is JSON over HTTPS, so any language with an HTTP client works. Making requests covers the format, and the API reference has a cURL sample for every method. Connect and gRPC clients generated from the protobuf definitions work too.