Sample Code

TypeScript and JavaScript snippets for the three service namespaces exposed by the mypos-api-gateway SDK.

Available Examples

ExampleDescription
Setup & authenticationInitialize the gateway, create per-merchant clients, and understand the dual-token lifecycle.
BankingList accounts, query transactions, fetch single and batch transaction details, and generate statements.
EcommerceManage payment links, payment buttons, and payment requests — including auto-pagination.
ePOSCreate, list, cancel, reverse, and refund ePOS payments; manage terminals and retrieve receipts.