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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyxrocketapi-0.2.0.tar.gz.
File metadata
- Download URL: pyxrocketapi-0.2.0.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
647b9ead056acede1208853e05229a11288f657c36d2e736b770058366a94e33
|
|
| MD5 |
7f5c418dabacdd4d38a371084166118c
|
|
| BLAKE2b-256 |
89f754078225ed6c7f3e8bd59053f458f7b6b2d0872058923f5ad8e629a89e91
|
File details
Details for the file pyxrocketapi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyxrocketapi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3853561aea3c4163db6ca39d1d194c57b379fa3c992b13091e3295909a7180fd
|
|
| MD5 |
6e71052cee2d4c6ac62d814068344c67
|
|
| BLAKE2b-256 |
dba875c08ca21b5076185285b01d1778b8bad6c401ac0e91408ace593426473c
|