Operation IDs and Movements

Learn which IDs Infinia returns for each operation and how to match an operation to the movement on your account statement.

Infinia uses two kinds of identifier. An operation ID identifies a payin, payout or refund that you create through the API. A movement ID identifies a single credit or debit on an account's statement. The two aren't interchangeable, but a movement always records the operation it belongs to, so you can get from one ID to the other.

This page explains which ID each operation returns, when its movement is created, and which ID to store for reconciliation.

Operation IDs

An operation ID is a UUID that Infinia assigns when you create an operation. It's the id in the create response. Use it to retrieve the operation and to match the callbacks you receive for it.

OperationOperation IDYour own reference
Payinidreference, if you send one
PayoutidoriginId
Deposit refundididempotency_key
Payin refundididempotency_key

Deposits don't have an operation ID. A deposit is initiated externally by the payer, not through the API, so there is no operation to identify. Each deposit does have a movement ID, which is the ID to use for it. See Movement IDs.

Movement IDs

A movement ID is an integer that identifies one credit or debit on an account. It's the id returned by List Account Movements and by the movement webhook.

Every movement includes an operation object that links it to the operation that created it:

{
  "id": "7643810",
  "amount": -5000.0,
  "operation": {
    "type": "PAYOUT",
    "operation_id": "3f2c9a1e-7b4d-4e8a-9c21-5d6f0e8b7a14",
    "product": "PAYOUTS"
  }
}
AttributeDescription
operation.typeThe type of operation that created the movement. See When movements are created.
operation.operation_idThe ID of that operation. Empty for deposits.
operation.productThe product the operation belongs to.

When movements are created

Each type of operation creates its movement at a different point in its lifecycle.

OperationMovementoperation.type
DepositA credit, created when the deposit is credited.CREDIT
PayinA credit, created when the payin reaches COMPLETED.PAYIN
PayoutA debit, created when the payout reaches COMPLETED. If the payout is later returned, a credit returns the funds.PAYOUT, then PAYOUT_REFUND
Deposit refundA debit, created when you create the refund. If the refund fails, a credit returns the funds.CREDIT_REFUND, then CREDIT_REFUND_BOUNCE
Payin refundA debit, created when you create the refund. If the refund fails, a credit returns the funds.PAYIN_REFUND, then PAYIN_REFUND_BOUNCE
📘

Fees and taxes that are charged online are separate movements with their own movement IDs. They don't replace the movement of the operation itself.

Find the movement for an operation

Deposits

The deposit is the movement. You receive its movement ID in the movement webhook when the deposit is credited.

Payins and payouts

Payin and payout objects don't include a movement ID. After the operation reaches COMPLETED, list movements filtered by its operation ID:

curl -u "$API_KEY_USER:$API_KEY_PASSWORD" \
  "https://app2test.infiniaweb.com/infinia_api/v1/accounts/movements/?operation_id=3f2c9a1e-7b4d-4e8a-9c21-5d6f0e8b7a14"
{
  "status": "success",
  "has_more": false,
  "next_cursor": null,
  "data": [
    {
      "id": "7643810",
      "account_id": "189075",
      "amount": -5000.0,
      "currency": "BRL",
      "country": "BR",
      "created_at": "2026-03-05T09:11:06.917875",
      "operation": {
        "type": "PAYOUT",
        "operation_id": "3f2c9a1e-7b4d-4e8a-9c21-5d6f0e8b7a14",
        "product": "PAYOUTS"
      }
    }
  ]
}

You also receive the movement through the movement webhook, with the payin or payout ID in operation.operation_id.

Refunds

Refund objects include the related movement IDs, so you don't need an extra request.

AttributeDescription
movement_idDeposit refunds only. The movement ID of the deposit that was refunded.
payment_idPayin refunds only. The ID of the payin that was refunded. This is an operation ID, not a movement ID.
debit_movement_idThe debit that took the refunded amount out of the account.
bounce_movement_idThe credit that returned the funds after the refund failed. Empty unless the refund failed.

Choose an ID for reconciliation

  • Store the movement ID to reconcile the account statement or balance. Every credit and debit has one, whatever the operation.
  • Store the operation ID to track an operation through its lifecycle, for example a payout that's still IN_PROGRESS. It's available as soon as you create the operation.

If your team works from a single transaction ID column, store the operation ID, the movement ID and operation.type together. Deposits only have a movement ID, while payins, payouts and refunds have an operation ID and, once their movement is created, a movement ID.

Rail references

The payment rail assigns its own reference to each transfer, such as the Pix end-to-end ID. It's neither an operation ID nor a movement ID, and it appears in these attributes:

ObjectAttribute
Payin, payoutvoucherId
Deposit refund, payin refundvoucher_id
Movementthird_party.voucher_id

To find movements by rail reference, use the voucher_id query parameter of List Account Movements.


Did this page help you?