Skip to main content
The official synchronous SDK supports Python 3.9 and newer. It covers every operation in the public v1 API and is suited to Odoo modules, POS middleware, scheduled syncs, and backend services.

Install

Install the signed-off, versioned wheel directly from Perkstar:
The wheel has no compiled extensions, so the same file works on Linux, macOS, and Windows.
PyPI publishing requires a one-time registry verification. Until that is completed, the Perkstar-hosted wheel above is the official distribution.

Create a client

Pass oauth_access_token= instead of api_key= when your integration uses OAuth. Pass exactly one credential type.

Post a POS transaction

The SDK generates an idempotency key for a new POST and preserves it across automatic retries. Supply your own stable key when a durable job may restart in a different process.

Pagination

Requests are lazy and follow next_cursor until the API reports no more rows. An empty or repeated cursor stops with an error instead of looping forever.

Typed errors

Network failures, 408, 429, and retryable 5xx responses are retried up to three times by default. The client honours Retry-After and keeps the API error code, HTTP status, request ID, and API version on the raised exception.

Verify webhooks

Pass the exact raw str or bytes body. The helper uses constant-time HMAC comparison and rejects timestamps outside a five-minute replay window.

Verify the download

The source distribution is also available for inspection and local builds.