Process a payout refund

A refund of a pay-out may be processed by handling a payment_document_refund webhook with the type of settled. You will need to correlate either the external_id or the id from the payment_document to the payload below.

{
    "category": "payment_document_refund",
    "company_id": "0189b5ad-8076-6b61-e299-9920d819a3f8",
    "data": {
        "amount": {
            "amount": 1000,
            "currency": "BRL"
        },
        "bank_account_id": "0189b787-efb6-2650-7baa-00ba98c4daf1",
        "company_id": "0189b5ad-8076-6b61-e299-9920d819a3f8",
        "description": null,
        "end_to_end_id": "D362724652024032114306ykdGdJOriV",
        "entity_id": "0189b5b4-ea58-a3a8-7c40-f0de1d0cb0af",
        "external_id": "dd4e91bf-fef3-4d0e-991a-b7350525d128",
        "id": "018e616b-cb1b-054e-876e-811693013bbf",
        "integration_id": "13890",
        "origin_id": "018c407f-eb08-006e-805f-4a3d504f2ead",
        "origin_type": "api_client",
        "payment_document_id": "018e6140-b194-dbb1-3373-38657add7565",
        "receipt_url": "https://receipt.fitbank.com.br/receiptapi/pdf?filename=2024-03-21/sxdhh22v.pdf",
        "reconciliation_id": "018e616b-e0ad-8834-e620-bc9afad848af",
        "transaction_date": "2024-03-21T14:30:38.107000Z",
        "virtual_account_id": "0189b787-efc8-b0f5-8171-781814fac2a6"
    },
    "ref_id": "018e616b-cb1b-054e-876e-811693013bbf",
    "timestamp": "2024-03-21T14:30:43.968415Z",
    "type": "settled"
}

Also, if you would like to verify the document in our dashboard, you can do so by going to our refund document listing page console.sandbox.trio.com.br/documents/refund?type=out.