Withdrawal Example

Withdrawal Events

Event
Description

withdrawal.created

Triggered when a withdrawal is created

withdrawal.available

Triggered when a withdrawal becomes available for transfer.

withdrawal.pending

Triggered when a withdrawal is being processed.

withdrawal.succeeded

Triggered when a withdrawal is successfully completed.

withdrawal.failed

Triggered when a withdrawal fails.

withdrawal.validated

Triggered when a withdrawal is validated.

Event Example

{
    "metadata": null,
    "id": "evt_01mpxru3t9qyl507hazjqdk8nb",
    "type": "withdrawal.available",
    "data": {
        "id": "wth_01mprutjwmlxg47n2ulrx51u8b",
        "status": "AVAILABLE",
        "account": {
            "id": "acc_01q9tupwx3nr6dlvhj7m54r2k8",
            "logo": null,
            "name": "SandBox Credential"
        },
        "metadata": null,
        "vendorId": "",
        "accountId": "acc_01q9tupwx3nr6dlvhj7m54r2k8",
        "createdAt": "2025-11-20T19:13:13.677Z",
        "fsmEvents": {
            "status": [
                {
                    "to": "CREATED",
                    "timestamp": "2025-11-20T19:13:13.679Z",
                    "transition": "create"
                },
                {
                    "to": "VALIDATED",
                    "from": "CREATED",
                    "timestamp": "2025-11-20T19:13:13.822Z",
                    "transition": "validate"
                },
                {
                    "to": "AVAILABLE",
                    "from": "VALIDATED",
                    "timestamp": "2025-11-20T19:13:13.926Z",
                    "transition": "build"
                }
            ]
        },
        "quotation": {
            "id": "mt3rq3t8r03636qm6qtmm53076zq368rq880845z",
            "tax": {
                "iof": {
                    "total": {
                        "value": 0,
                        "divisor": 100,
                        "currency": "BRL",
                        "precision": 2
                    },
                    "percentage": 0
                }
            },
            "total": {
                "withTax": {
                    "value": 1410,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                },
                "withoutTax": {
                    "value": 1363,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                },
                "withFutureTax": {
                    "value": 1416,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                },
                "withoutSpread": {
                    "value": 1363,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                },
                "withTaxesAndFees": {
                    "value": 1416,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                }
            },
            "currency": {
                "code": "USD",
                "fees": [],
                "name": "Dólar Americano",
                "offer": {
                    "value": 224,
                    "divisor": 100,
                    "currency": "USD",
                    "precision": 2
                },
                "price": {
                    "withTax": {
                        "value": 62959,
                        "divisor": 10000,
                        "currency": "BRL",
                        "precision": 4
                    },
                    "withoutTax": {
                        "value": 60830,
                        "divisor": 10000,
                        "currency": "BRL",
                        "precision": 4
                    },
                    "withFutureTax": {
                        "value": 62959,
                        "divisor": 10000,
                        "currency": "BRL",
                        "precision": 4
                    },
                    "withoutSpread": {
                        "value": 60830,
                        "divisor": 10000,
                        "currency": "BRL",
                        "precision": 4
                    },
                    "withTaxesAndFees": {
                        "value": 62959,
                        "divisor": 10000,
                        "currency": "BRL",
                        "precision": 4
                    }
                },
                "spreads": [],
                "offerUSD": {
                    "value": 224,
                    "divisor": 100,
                    "currency": "USD",
                    "precision": 2
                },
                "levelingRate": {
                    "value": 60830,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4
                },
                "countryFlagUrl": "https://flags/united-states.svg",
                "commercialExchangeRate": {
                    "value": 60830,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4,
                    "updatedAt": "2023-08-14T20:08:25.000Z"
                }
            },
            "metadata": {
                "type": "WITHDRAWAL",
                "lastIds": [
                    {
                        "id": "btnx_01q4mtp2xulnnjg58r7v6db9h3",
                        "type": "VENDOR_FEE"
                    }
                ],
                "lastIds.0": {
                    "id": "btnx_01q4mtp2xulnnjg58r7v6db9h3",
                    "type": "VENDOR_FEE"
                },
                "externalId": "vnd_01mpxqutn8zrlhje6dqwa417kv",
                "lastIds.0.id": "btnx_01q4mtp2xulnnjg58r7v6db9h3",
                "lastIds.0.type": "VENDOR_FEE"
            },
            "createdAt": "2025-11-20T19:13:09.880Z",
            "futureTax": {
                "ir": {
                    "total": {
                        "value": 0,
                        "divisor": 100,
                        "currency": "BRL",
                        "precision": 2
                    },
                    "percentage": 0
                }
            },
            "taxesAndCosts": {
                "value": 48,
                "divisor": 100,
                "currency": "BRL",
                "precision": 2
            }
        },
        "updatedAt": "2025-11-20T19:13:13.934Z",
        "sourceAmount": 1416,
        "targetAmount": 224,
        "sourceCurrency": "BRL",
        "targetCurrency": "USD",
        "targetAmountUSD": 224
    },
    "createdAt": "2025-12-02T12:59:02.980Z"
}