Guides
API Pix

Payment split

Split the amount of a cob or cobv between your account and other Efí accounts when it is paid.

The split divides a received Pix between your account and up to 20 other Efí accounts. You create a split configuration, link it to a charge not yet paid and, when the payment comes in, the transfers are made.

1. Create the configuration

bash
curl --request POST \
  --url https://pix.efi.mimicr.dev/v2/gn/split/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "descricao": "Loja e parceiro",
    "lancamento": { "imediato": true },
    "split": {
      "divisaoTarifa": "assumir_total",
      "minhaParte": { "tipo": "porcentagem", "valor": "60.00" },
      "repasses": [
        { "tipo": "porcentagem", "valor": "40.00", "favorecido": { "cpf": "12345678909", "conta": "1234567" } }
      ]
    }
  }'

The response is 201 with the generated id, status: "ATIVA" and revisao: 0. To choose the id, use PUT /v2/gn/split/config/:id; repeating the PUT on the same id creates a new revision.

  • tipo is porcentagem or fixo. Percentages adding up to more than 100% answer 400 SplitConfigOperacaoInvalida.
  • divisaoTarifa: assumir_total (the fee comes out of your share) or proporcional.
  • favorecido is an Efí account: cpf or cnpj and the conta number.
bash
curl --request PUT \
  --url https://pix.efi.mimicr.dev/v2/gn/split/cob/<txid>/vinculo/<splitConfigId> \
  --header 'Authorization: Bearer <token>'

The response is 204. For cobv, the path is /v2/gn/split/cobv/<txid>/vinculo/<splitConfigId>. To unlink before payment, DELETE /v2/gn/split/cob/<txid>/vinculo.

In homologation, a charge up to R$ 10.00 is paid in about 3 s. Create the charge with a higher amount (or turn autoPayCob off) if you need time to link the split before payment.

3. Follow the split

After payment, GET /v2/gn/split/cob/:txid returns the charge with the configuration (config) and the split that was made (split):

json
{
  "txid": "3f3405130dd2416d3664eb290ef509a5",
  "status": "CONCLUIDA",
  "valor": { "original": "3.50" },
  "config": { "id": "f6edb05d64f64a02a9a36eecc7ee868c", "status": "ATIVA", "revisao": 1, "tipo": "COBRANCA_DINAMICA" },
  "split": {
    "minhaParte": { "conta": "3915556", "protocolo": 3400000008, "valor": 175, "valorTarifa": 4, "dataEfetivacao": "2026-10-21T23:40:35.046Z" },
    "repasses": [{ "conta": "1234567", "protocolo": 3400000010, "valor": 175, "valorTarifa": 0, "dataEfetivacao": "2026-10-21T23:40:35.046Z" }]
  }
}

In Mimicr, split.*.valor and valorTarifa come in cents. The received Pix webhook carries gnExtras.split with the configuration's id and revisao, and only your share goes into the balance.

Refund a Pix with split

A received Pix with split cannot be refunded through PUT /v2/pix/:e2eId/devolucao/:id. Use the split route:

bash
curl --request PUT \
  --url https://pix.efi.mimicr.dev/v2/gn/split/pix/<e2eid>/devolucao/D001 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{ "valor": "1.00" }'

The refund follows the same rules and states as regular refunds (see Received Pix and refunds). A Pix without split answers 422 SplitDevolucaoOperacaoInvalida.

Reference: Create a split configuration, Link split to a cob and Get a cob with split.