Skip to main content

Paymos Python SDK

Official Python 3.10+ client for the Paymos Merchant API. It includes HMAC request signing, invoices, withdrawals, balances, bounded cursor iterators, structured errors, safe retries, and raw-body webhook verification.

pip install paymos-sdk
import os

from paymos import Paymos

paymos = Paymos(
    api_key=os.environ["PAYMOS_API_KEY"],
    api_secret=os.environ["PAYMOS_API_SECRET"],
)
invoice = paymos.invoices.create(
    project_id="prj_...", amount="10.00", currency="USD",
    external_order_id="order_123",
)

Use decimal strings for money. list() returns one cursor page; iterate() follows cursors lazily and stops after 100 pages by default.

for invoice in paymos.invoices.iterate(status=["paid", "paid_over"], max_pages=10):
    print(invoice["invoice_id"])

API failures raise typed subclasses of ApiError and preserve the HTTP status, problem details, field, error code, headers, and Retry-After value.

Verify webhooks against the exact raw request body before parsing it:

from paymos import WebhookVerifier

event = WebhookVerifier(os.environ["PAYMOS_WEBHOOK_SECRET"]).construct_event(
    request.headers["X-Webhook-Signature"], request.get_data()
)

Never use the API secret in browser or mobile code. Full documentation: https://paymos.io/docs/server-sdks

Metadata

Release files for paymos-sdk 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paymos-sdk 1.1.1
File Size Uploaded
paymos_sdk-1.1.1.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paymos-sdk 1.1.1
File Interpreter ABI Platform
paymos_sdk-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / paymos_sdk-1.1.1.tar.gz

Download URL paymos_sdk-1.1.1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a0980bd9fbcbaafd958fcfa64616cb65a97f3010b41aaea2645756f79e1f4047
BLAKE2b-256 checksum
How to use checksums
e52eaecef72d8fafc00da6176fb2e5096c4a2c922ff6a29368962dbad79fea46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release files / paymos_sdk-1.1.1-py3-none-any.whl

Download URL paymos_sdk-1.1.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6f0031404c1e5a8a9ba6c4aaeec373134ba9728b10cc9d96b72f01ca15a54bf
BLAKE2b-256 checksum
How to use checksums
d1affa6439e48edc562d8d6089edc5b11f66905238251cbe610b92b2bd4864af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release history Release notifications | RSS feed

1.4.0

2 release files

This release

1.1.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page