Skip to main content

pyXRocketAPI

pyXRocketAPI is a Python client for the xRocket Pay API. It supports application information, balances, invoices, cheques, payouts, withdrawals, currency rates, and health checks.

Installation

pip install pyXRocketAPI

Quick start

from pyXRocketAPI import xRocketPayAPI

client = xRocketPayAPI(token="your-pay-api-token")
invoice = client.create_invoice(price_currency="USDT", price_amount="10.00")
print(invoice.id, invoice.links.web_link)

For integration testing, use the xRocket testnet instead of production:

client = xRocketPayAPI(token="testnet-token", testnet=True)

Safety

The token grants access to the application and must not be committed to source control. Financial POST operations are not retried automatically. Supply and retain the relevant client identifier (client_invoice_id, client_payout_id, client_cheque_id, or client_withdrawal_id) so that a timed-out operation can be reconciled safely.

Errors from the API raise xRocketAPIException; its problem_type, kind, status, and instance attributes expose the RFC 9457 error response.

AI-supported creation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxrocketapi-0.1.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxrocketapi-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file pyxrocketapi-0.1.0.tar.gz.

File metadata

  • Download URL: pyxrocketapi-0.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0

File hashes

Hashes for pyxrocketapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88f13386115104b0b5c6d2d16ce0706fa4af31d2128556c88595fa81ab698ed1
MD5 0bb96b2af7581f116b3c4d0973078ced
BLAKE2b-256 dab275d2337b79824bd5fc411c504f87395b37d47ebfb37d7e58aeb893f9c185

See more details on using hashes here.

File details

Details for the file pyxrocketapi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyxrocketapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0

File hashes

Hashes for pyxrocketapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e0b282803ecb5ee4dbdfd9c6b526c5276968aece4bac321bfd82e649af9602c
MD5 c3c5e9a9d6527b79eefbddcfa9f71686
BLAKE2b-256 dbf2f35e49a4d3d6bedf6ef5f0b6d7ac005ad33638dac149bdc8503fec20b1f1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

This release

0.1.0 This release

2 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