capabilities.work

Pix Charge Revise

A 4-step recipe with Efí Pay (Gerencianet). We can help you get access.

Recipe · 4 steps

Pix Charge Revise

with Efí Pay (Gerencianet) · Real-Time Payment Management

Create a Pix charge by txid and revise its amount only while it is active.

  1. Exchange the client_id and client_secret for an OAuth2 access token using the client_credentials grant required by the Pix API.
  2. Create an immediate Pix charge under the supplied txid crediting the given Pix key for the original amount.
  3. Read the charge back by txid and branch on its status so only an active charge is revised.
  4. Patch the active charge to the revised amount, leaving the rest of the charge intact.
What you'll need to have ready
  • clientId: The OAuth2 client_id issued for the Efí Pay account.
  • clientSecret: The OAuth2 client_secret issued for the Efí Pay account.
  • txid: The 26-35 char transaction id to register the charge under.
  • amount: The original charge amount in BRL as a decimal string.
  • pixKey: The receiving Pix key (chave) the charge is credited to.
  • revisedAmount: The corrected charge amount in BRL as a decimal string.
For your developer

Arazzo workflow gerencianet:pix-charge-revise, 4 operations: contasAuthorize → pixCreateCharge → pixDetailCharge → pixUpdateCharge. Specs on APIs.io.