Skip to main content
The UQPAY Go SDK provides typed access to the UQPAY API, including automatic OAuth2 authentication, automatic idempotency keys, and thread-safe credential management.

GitHub

github.com/uqpay/uqpay-sdk-go
The SDK requires Go 1.19 or higher. Current version: 1.0.3.

Installation

Quick start

Configuration

Authentication

The SDK handles OAuth2 authentication automatically:
  • Fetches access tokens using client credentials
  • Caches tokens until expiration
  • Automatically refreshes expired tokens
  • Thread-safe token management

Idempotency

Every API request automatically includes a unique idempotency key to ensure safe retries and prevent duplicate operations. You do not need to set this manually.

Error handling

The SDK returns detailed error information including HTTP status codes and API error details:
Example error format:

API coverage

Banking API

Issuing API