payzu-pix
REST API for Pix operations on the PayZu platform, deposits, withdrawals, internal transfers, infractions, reports, and callback inspection. All amounts are in BRL (reais) unless explicitly noted. Authentication uses a Bearer token issued during onboarding.
SDKs oficiais
- Node.js:
npm install payzu-pix - Python:
pip install payzu-pix - PHP:
composer require payzu/pix - Ruby:
gem install payzu-pix - Java:
br.com.payzu:payzu-pix(Maven Central) - Go:
go get github.com/PayZuAI/payzu-sdks/go/v3
Repo: https://github.com/PayZuAI/payzu-sdks
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.8.0
- Package version: 3.0.0
- Generator version: 7.22.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://suporte.payzu.com.br
Requirements.
Python 3.10+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import payzu_pix
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import payzu_pix
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import payzu_pix
from payzu_pix.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.payzu.processamento.com/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = payzu_pix.Configuration(
host = "https://api.payzu.processamento.com/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: BearerAuth
configuration = payzu_pix.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with payzu_pix.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = payzu_pix.AccountApi(api_client)
try:
# Account Info
api_response = api_instance.get_user()
print("The response of AccountApi->get_user:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->get_user: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api.payzu.processamento.com/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountApi | get_user | GET /user | Account Info |
| AccountApi | get_user_balance | GET /user/balance | Account Balance |
| CallbacksApi | create_user_callback_secret | POST /user/callbacks/secret | Create callback secret |
| CallbacksApi | get_user_callback_by_id | GET /user/callbacks/{id} | Get Callback |
| CallbacksApi | get_user_callbacks | GET /user/callbacks | List Callbacks |
| CallbacksApi | resend_user_callback_single | POST /user/callbacks/resend/{transactionId} | Re-send callback (single) |
| CallbacksApi | resend_user_callbacks | POST /user/callbacks/resend | Re-send callbacks (bulk) |
| CallbacksApi | resend_user_callbacks_webhook | POST /user/callbacks/resend/webhook/{webhookId} | Resend callbacks by webhook |
| CallbacksApi | resend_user_callbacks_webhooks | POST /user/callbacks/resend/webhook | Resend webhook callbacks by filters |
| CallbacksApi | rotate_user_callback_secret | PATCH /user/callbacks/secret/rotate | Rotate callback secret |
| InfractionsApi | get_infractions | GET /user/infractions | List Infractions |
| InfractionsApi | get_infractions_by_id | GET /user/infractions/{id} | Get Infraction |
| InfractionsApi | get_infractions_defense_by_id | GET /user/infractions/{infractionId}/defenses/{defenseId} | Get Defense |
| InfractionsApi | get_infractions_defenses | GET /user/infractions/{id}/defenses | List Defenses |
| InfractionsApi | post_infractions_defense | POST /user/infractions/{id}/defenses | Create Defense |
| InternalTransferApi | get_internal_transfer | GET /internal-transfer | Get internal transfer |
| InternalTransferApi | post_internal_transfer | POST /internal-transfer | Create internal transfer |
| KeysAndDICTApi | get_pix_key | GET /pix/key | Pix key lookup (DICT) |
| KeysAndDICTApi | get_user_dict | GET /user/dict | Resolve DICT key |
| KeysAndDICTApi | post_pix_qrcode_read | POST /pix/qrcode/read | Read QR Code |
| PixOperationsApi | get_pix | GET /pix | Retrieve Charge |
| PixOperationsApi | get_pix_qrcode | GET /pix/qr-code/{transactionId} | Render Pix QR code (PNG) |
| PixOperationsApi | get_proof | GET /proof/{id} | Get Transaction Receipt |
| PixOperationsApi | post_pix | POST /pix | Create Charge (Pix deposit) |
| RefundsApi | post_refund | POST /refund/{transactionId} | Refund a Pix |
| ReportsApi | download_user_report | POST /user/report/{id}/download | Download report |
| ReportsApi | get_user_bank_statement | GET /user/bank-statements/{id} | Get bank statement |
| ReportsApi | get_user_bank_statements | GET /user/bank-statements | List bank statements |
| ReportsApi | get_user_deposit_pending | GET /user/deposit-pending | List pending deposits |
| ReportsApi | get_user_deposit_pending_by_id | GET /user/deposit-pending/{id} | Get pending deposit |
| ReportsApi | get_user_report | GET /user/report/{id} | Get report job status |
| ReportsApi | get_user_summary | GET /user/summary | Transaction summary |
| ReportsApi | get_user_transaction_by_id | GET /user/transactions/{id} | List transaction details |
| ReportsApi | get_user_transactions | GET /user/transactions | List Transactions |
| ReportsApi | list_user_reports | GET /user/report | List report jobs |
| ReportsApi | post_user_report | POST /user/report | Generate transactions report |
| WebhooksApi | delete_user_webhook | DELETE /user/webhooks/{id} | Delete webhook |
| WebhooksApi | get_user_webhook | GET /user/webhooks/{id} | Get webhook |
| WebhooksApi | get_user_webhook_sent_detail | GET /user/webhooks/{id}/sent/{callbackId} | Get sent callback detail |
| WebhooksApi | get_user_webhooks | GET /user/webhooks | List webhooks |
| WebhooksApi | get_user_webhooks_sent_quantity | GET /user/webhooks/sent/quantity | Count sent callbacks |
| WebhooksApi | patch_user_webhook | PATCH /user/webhooks/{id} | Update webhook |
| WebhooksApi | post_user_webhook | POST /user/webhooks | Create webhook |
| WebhooksApi | post_user_webhook_rotate_secret | POST /user/webhooks/{id}/rotate-secret | Rotate webhook secret |
| WithdrawalsApi | get_withdraw | GET /withdraw | Retrieve Withdrawal |
| WithdrawalsApi | get_withdraw_proof | GET /withdraw/proof/{id} | Get Withdrawal Receipt |
| WithdrawalsApi | post_withdraw | POST /withdraw | Create Withdrawal (Pix key) |
| WithdrawalsApi | post_withdraw_qrcode | POST /withdraw/qrcode | Create Withdrawal using QR Code |
Documentation For Models
- ApiError
- ApiErrorDetailsInner
- BankStatement
- BankStatementListResponse
- BankStatementListResponsePagination
- CallbackDetail
- CallbackListResponse
- CallbackListResponsePagination
- CallbackSecretResponse
- Defense
- DefenseFilesInner
- DefenseHistoryEntry
- DefenseHistoryEntryFilesInner
- DepositPending
- DepositPendingListResponse
- DictConsultResponse
- DownloadUserReport200Response
- EnqueuedCallback
- EnqueuedCallbackEnqueued
- EnqueuedCallbackItem
- GetUser200Response
- GetUser200ResponseDailyWithdrawLimit
- GetUser200ResponseServiceFee
- GetUserBalance200Response
- GetUserTransactionById200Response
- GetUserTransactionById200ResponseAllOfCallbackLogInner
- GetUserTransactionById200ResponseAllOfInfractionInner
- GetUserTransactions200Response
- InfractionDetail
- InfractionDetailTransaction
- InfractionListResponse
- InfractionListResponsePagination
- ListUserReports200Response
- PixKeyInfo
- PostInternalTransferRequest
- PostPixQrcodeReadRequest
- PostPixRequest
- PostUserReportRequest
- PostWithdrawQrcodeRequest
- PostWithdrawRequest
- ProofResponse
- QRCodeReadResponse
- Refund
- RefundRequest
- ReportJob
- ReportJobAccepted
- ReportJobDetail
- ResendUserCallbackSingle200Response
- ResendUserCallbacks200Response
- ResendUserCallbacksRequest
- ResendWebhookCallbacksRequest
- RotateCallbackSecretResponse
- RotateSecretResponse
- SentWebhookDetail
- SentWebhookDetailResponse
- SentWebhooksQuantity
- Summary
- SummaryBlock
- SummaryBlockGroupedInner
- SummaryBlockStatuses
- SummaryStatus
- Transaction
- TransactionWithRefunds
- Webhook
- WebhookCreateRequest
- WebhookEventType
- WebhookListResponse
- WebhookUpdateRequest
- WebhookWithSecret
Documentation For Authorization
Authentication schemes defined for the API:
BearerAuth
- Type: Bearer authentication
Author
Metadata
Release files for payzu-pix 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| payzu_pix-3.0.0.tar.gz | 82.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| payzu_pix-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 281.1 kB
Release files / payzu_pix-3.0.0.tar.gz
| Download URL | payzu_pix-3.0.0.tar.gz |
|---|---|
| Size | 82.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55a59d95f6535cc6233db36fe64e78e5acf062ac456bb8afc9c23dd8b782371b
|
|
BLAKE2b-256 checksum How to use checksums |
93bfb5a2dae05c1062ca1178779a8e57f0aa3399814bb712dcb214478669a9bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / payzu_pix-3.0.0-py3-none-any.whl
| Download URL | payzu_pix-3.0.0-py3-none-any.whl |
|---|---|
| Size | 198.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75b4610cfd54e4fcbb8b546e15408f82ab86c7690575b4ea82dfd209a3755ea8
|
|
BLAKE2b-256 checksum How to use checksums |
5b5babf1b642a8ad7f76180682f2631f917772438fd2966c36b1dfe4af1a7b13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|