Get withdrawal by ID

Get withdrawal by ID

GET {{Environment_URL}}/vendors/v1/withdrawals/:id

Headers

Name
Value

Authorization

Bearer <token>

Path Params

Name
Type
Description
Value

id

string

Withdrawal Identifier

wth_01jz3wj3j2ryxcyeetbj75fgnq

Response

{
    "metadata": null,
    "id": "wth_01jz3wj3j2ryxcyeetbj75fgnq",
    "status": "SUCCEEDED",
    "account": {
        "id": "acc_01jz3kmjc88fmefyqf4jcf8tjf",
        "name": "QA - Admin Automação Root",
        "logo": null
    },
    "quotation": {
        "id": "9ec37619da75379865e682627d300e9d3af56b1c",
        "tax": {
            "iof": {
                "total": {
                    "value": 2,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                },
                "percentage": 0.38
            }
        },
        "total": {
            "withTax": {
                "value": 498,
                "divisor": 100,
                "currency": "BRL",
                "precision": 2
            },
            "withoutTax": {
                "value": 497,
                "divisor": 100,
                "currency": "BRL",
                "precision": 2
            },
            "withFutureTax": {
                "value": 497,
                "divisor": 100,
                "currency": "USD",
                "precision": 2
            },
            "withoutSpread": {
                "value": 497,
                "divisor": 100,
                "currency": "BRL",
                "precision": 2
            },
            "withTaxesAndFees": {
                "value": 497,
                "divisor": 100,
                "currency": "USD",
                "precision": 2
            }
        },
        "currency": {
            "code": "USD",
            "fees": [],
            "name": "Dólar Americano",
            "offer": {
                "value": 100,
                "divisor": 100,
                "currency": "USD",
                "precision": 2
            },
            "price": {
                "withTax": {
                    "value": 49849,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4
                },
                "withoutTax": {
                    "value": 49660,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4
                },
                "withFutureTax": {
                    "value": 49849,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4
                },
                "withoutSpread": {
                    "value": 49660,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4
                },
                "withTaxesAndFees": {
                    "value": 49849,
                    "divisor": 10000,
                    "currency": "BRL",
                    "precision": 4
                }
            },
            "spreads": [],
            "offerUSD": {
                "value": 100,
                "divisor": 100,
                "currency": "USD",
                "precision": 2
            },
            "levelingRate": {
                "value": 49660,
                "divisor": 10000,
                "currency": "BRL",
                "precision": 4
            },
            "countryFlagUrl": "https://s3.amazonaws.com/simple-exchanges-demo/new-flags/united-states.svg",
            "commercialExchangeRate": {
                "value": 49660,
                "divisor": 10000,
                "currency": "BRL",
                "precision": 4,
                "updatedAt": "2023-08-14T20:08:25.000Z"
            }
        },
        "metadata": {
            "type": "WITHDRAWAL",
            "lastIds": [
                {
                    "id": "btnx_01jz3whwrgvd87shxq2yyzhrxb",
                    "type": "VENDOR_FEE"
                }
            ],
            "lastIds.0": {
                "id": "btnx_01jz3whwrgvd87shxq2yyzhrxb",
                "type": "VENDOR_FEE"
            },
            "externalId": "vnd_01jz3jtzwbwfnhmx6dbn8n9ssm",
            "lastIds.0.id": "btnx_01jz3whwrgvd87shxq2yyzhrxb",
            "lastIds.0.type": "VENDOR_FEE"
        },
        "createdAt": "2025-07-01T20:58:50.544Z",
        "futureTax": {
            "ir": {
                "total": {
                    "value": 0,
                    "divisor": 100,
                    "currency": "BRL",
                    "precision": 2
                },
                "percentage": 0
            }
        }
    },
    "vendorId": "vnd_01jz3jtzwbwfnhmx6dbn8n9ssm",
    "accountId": "acc_01jz3kmjc88fmefyqf4jcf8tjf",
    "sourceAmount": 497,
    "sourceCurrency": "USD",
    "targetAmount": 100,
    "targetCurrency": "USD",
    "targetAmountUSD": 100,
    "fsmEvents": {
        "status": [
            {
                "to": "CREATED",
                "timestamp": "2025-07-01T20:58:51.840Z",
                "transition": "create"
            },
            {
                "to": "VALIDATED",
                "from": "CREATED",
                "timestamp": "2025-07-01T20:58:51.931Z",
                "transition": "validate"
            },
            {
                "to": "AVAILABLE",
                "from": "VALIDATED",
                "timestamp": "2025-07-01T20:58:51.993Z",
                "transition": "build"
            },
            {
                "to": "PENDING",
                "from": "AVAILABLE",
                "timestamp": "2025-07-01T21:00:46.657Z",
                "transition": "process"
            },
            {
                "to": "SUCCEEDED",
                "from": "PENDING",
                "timestamp": "2025-07-02T12:55:18.079Z",
                "transition": "success"
            }
        ]
    },
    "createdAt": "2025-07-01T20:58:51.837Z",
    "updatedAt": "2025-07-02T12:55:18.086Z"
}