{"library":"mollie-api-typescript","title":"Mollie API TypeScript SDK","description":"This is the official TypeScript SDK for interacting with the Mollie Payments API, providing a type-safe and developer-friendly interface. It is currently at version 1.5.2 and maintains a rapid release cadence, with updates often published multiple times a week. The SDK is automatically generated using the Speakeasy CLI based on the Mollie OpenAPI specification, ensuring it stays up-to-date with the latest API changes. Key differentiators include full TypeScript support for robust development, explicit handling for authentication via API keys, organization access tokens, or OAuth, and built-in features like idempotency keys, custom User-Agent headers, pagination helpers, and automatic retry mechanisms. It supports both CommonJS and ES Modules runtimes for broad compatibility.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install mollie-api-typescript"],"cli":null},"imports":["import { Client } from 'mollie-api-typescript';","import { components } from 'mollie-api-typescript';","import { components } from 'mollie-api-typescript';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { Client } from \"mollie-api-typescript\";\n\nconst client = new Client({\n  testmode: false,\n  security: {\n    organizationAccessToken: process.env[\"CLIENT_ORGANIZATION_ACCESS_TOKEN\"]\n      ?? \"\",\n  },\n});\n\nasync function run() {\n  try {\n    const result = await client.balances.list({\n      currency: \"EUR\",\n      from: \"bal_gVMhHKqSSRYJyPsuoPNFH\",\n      limit: 50,\n      idempotencyKey: \"123e4567-e89b-12d3-a456-426\",\n    });\n\n    for await (const page of result) {\n      console.log(page);\n    }\n  } catch (error) {\n    console.error(\"Error fetching balances:\", error);\n  }\n}\n\nrun();","lang":"typescript","description":"This example initializes the Mollie client with an organization access token and fetches a paginated list of balances in EUR, demonstrating basic client setup and API interaction.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}