Efí Pay (Gerencianet) · Arazzo Workflow

Efí Pix Charge Status and Refund

Version 1.0.0

Detail a Pix charge, branch on its status, and refund the received Pix when paid.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub PaymentsPixBoletoSubscriptionRecurring BillingMarketplaceSplit PaymentsOpen FinanceBanking as a ServiceAccount OpeningBill PaymentsCNABBrazilFintechArazzoWorkflows

Provider

gerencianet

Workflows

pix-charge-status-refund
Check a Pix charge status and refund it via devolution when it is paid.
Authenticates, details the charge by txid, and only when the charge is CONCLUIDA resolves the received Pix e2eId and issues a devolution for the requested refund amount.
3 steps inputs: clientId, clientSecret, refundAmount, refundId, txid outputs: chargeStatus, devolutionId, refundStatus
1
authenticate
Exchange the client_id and client_secret for an OAuth2 access token using the client_credentials grant required by the Pix API.
2
detailCharge
Read the immediate Pix charge by txid and capture its status plus the first received-Pix end-to-end id so a refund can be targeted.
3
refundReceivedPix
Issue a devolution (refund) against the received Pix identified by its end-to-end id for the requested refund amount.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Efí Pix Charge Status and Refund
  summary: Detail a Pix charge, branch on its status, and refund the received Pix when paid.
  description: >-
    A reconciliation-and-refund flow for Efí Pay Pix. The workflow authenticates,
    reads an existing immediate Pix charge by txid, and branches on the charge
    status: when the charge has been settled (CONCLUIDA) it resolves the received
    Pix end-to-end id from the charge, then issues a full or partial devolution
    (refund) against that received Pix. When the charge is not yet paid the flow
    ends without refunding. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: authorizationApi
  url: ../openapi/gerencianet-authorization-api-openapi.yml
  type: openapi
- name: devolutionsApi
  url: ../openapi/gerencianet-devolutions-api-openapi.yml
  type: openapi
- name: immediateChargesApi
  url: ../openapi/gerencianet-immediate-charges-api-openapi.yml
  type: openapi
workflows:
- workflowId: pix-charge-status-refund
  summary: Check a Pix charge status and refund it via devolution when it is paid.
  description: >-
    Authenticates, details the charge by txid, and only when the charge is
    CONCLUIDA resolves the received Pix e2eId and issues a devolution for the
    requested refund amount.
  inputs:
    type: object
    required:
    - clientId
    - clientSecret
    - txid
    - refundId
    - refundAmount
    properties:
      clientId:
        type: string
        description: The OAuth2 client_id issued for the Efí Pay account.
      clientSecret:
        type: string
        description: The OAuth2 client_secret issued for the Efí Pay account.
      txid:
        type: string
        description: The transaction id of the immediate Pix charge to inspect.
      refundId:
        type: string
        description: A client-generated id for the devolution (refund) request.
      refundAmount:
        type: string
        description: The refund amount in BRL as a decimal string (e.g. "50.00").
  steps:
  - stepId: authenticate
    description: >-
      Exchange the client_id and client_secret for an OAuth2 access token using
      the client_credentials grant required by the Pix API.
    operationId: contasAuthorize
    requestBody:
      contentType: application/json
      payload:
        grant_type: client_credentials
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      accessToken: $response.body#/access_token
  - stepId: detailCharge
    description: >-
      Read the immediate Pix charge by txid and capture its status plus the
      first received-Pix end-to-end id so a refund can be targeted.
    operationId: pixDetailCharge
    parameters:
    - name: Authorization
      in: header
      value: Bearer $steps.authenticate.outputs.accessToken
    - name: txid
      in: path
      value: $inputs.txid
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      e2eId: $response.body#/pix/0/endToEndId
    onSuccess:
    - name: chargePaid
      type: goto
      stepId: refundReceivedPix
      criteria:
      - context: $response.body
        condition: $.status == "CONCLUIDA"
        type: jsonpath
    - name: chargeUnpaid
      type: end
      criteria:
      - context: $response.body
        condition: $.status != "CONCLUIDA"
        type: jsonpath
  - stepId: refundReceivedPix
    description: >-
      Issue a devolution (refund) against the received Pix identified by its
      end-to-end id for the requested refund amount.
    operationId: pixDevolution
    parameters:
    - name: Authorization
      in: header
      value: Bearer $steps.authenticate.outputs.accessToken
    - name: e2eId
      in: path
      value: $steps.detailCharge.outputs.e2eId
    - name: id
      in: path
      value: $inputs.refundId
    requestBody:
      contentType: application/json
      payload:
        valor: $inputs.refundAmount
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      devolutionId: $response.body#/id
      refundStatus: $response.body#/status
      rtrId: $response.body#/rtrId
  outputs:
    chargeStatus: $steps.detailCharge.outputs.status
    devolutionId: $steps.refundReceivedPix.outputs.devolutionId
    refundStatus: $steps.refundReceivedPix.outputs.refundStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/gerencianet-pix-charge-status-refund-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.