The Stark Infra API allows you to create Pix charges using a feature called PixRequest. You can request a payment directly to a Pix key, such as a CPF (individual ID), CNPJ (corporate ID), email, phone, or EVP key (random key).
Creating Pix Transfers
You can create the Pix charge directly via the API or by using one of our SDKs. The route used will be:
/v2/pix-request
The process of creating a Pix payment requires filling out mandatory parameters and additional fields. You can check the complete documentation with all the necessary fields and usage examples at the link below:
After creation, the charge can go through different statuses:
-
Created
The charge was sent and is awaiting a response from the receiver.
-
Processing
The payment is being sent.
-
Success
The amount was transferred successfully.
-
Denied
The transfer was refused.
-
Failed
The payment could not be completed and failed.
You can monitor the status of the Pix via Webhooks and also by performing a GET request on the Pix Request route.
Receiving Pix Transfers
In addition to sending charges, the PixRequest route also allows you to receive Pix transfers.
To do this, you need to register a request URL (requestUrl), which will be responsible for receiving the requests and responding by either authorizing or denying the transaction.
According to BACEN (Central Bank of Brazil) rules, the response time to accept or reject a PixRequest is up to 10 seconds. After this period, the request may be considered expired.
Do you still have questions about the topic covered? Contact our support team!
Comments
0 comments
Article is closed for comments.