Sample Code
TypeScript and JavaScript snippets for the three service namespaces exposed by the mypos-api-gateway SDK.
Available Examples
| Example | Description |
|---|---|
| Setup & authentication | Initialize the gateway, create per-merchant clients, and understand the dual-token lifecycle. |
| Banking | List accounts, query transactions, fetch single and batch transaction details, and generate statements. |
| Ecommerce | Manage payment links, payment buttons, and payment requests — including auto-pagination. |
| ePOS | Create, list, cancel, reverse, and refund ePOS payments; manage terminals and retrieve receipts. |