Webhooks

🇨🇱 payout.done

Actualización de las liquidaciones efectuadas por parte de Toku hacia la organización. Entrega información sobre los pagos, la conciliación de estos y sus Invoices.

{
  "id": "whe_hXPK3YBs4EUfw2KFZlB6R44MiFa07vFU",
  "event_type": "payout.done",
  "payout": {
    "id": "pyt_dsQ5-sNZPwxBYf6hnLsstaqG9JAZK432",
    "event_type": "payout.done",
    "account": "acc_1YPKc-NZPwxBYf6hnLsstaqG9JAZKxX9",
    "payout_amount": 990.0,
    "transaction_amount": 1000.0,
    "fee": 10.0,
    "paid_invoices": ["in_1YPKc-NZPwxBYf6hnLsstaqG9JAZKxX9", "in_1YPKc-NZPwxBYf6hnLsstaqG9JAZKxX9"],
    "refunded_invoices": ["in_8MAPE-SSrWaLap9kkLlatwqq9JAZKx11"],
    "id_account": "acc_1YPKc-NZPwxBYf6hnLsstaqG9JAZKxX9",
  }
}

🇲🇽 payout_mx.success

Actualización de las liquidaciones de México efectuadas por parte de Toku hacia la organización. Entrega información sobre la cuenta, la liquidación y las Transactions involucradas.

{
    "id": "pyt_ZY3MEoRd4Q4KIDqoYnW981YKTBOPO0fm",
    "id_account": "acc_LO53Ak2oa4qNTGrfv0vqJYbMzSVjdsEd",
    "account_number": "638180010185142505",
    "deposit_date": "2024-04-22T14:03:39.410000",
    "status": "success",
    "payout_amount": 1950.0000,
    "transactions_amount": 2000.0000,
    "fees_amount": 50.0000,
    "transactions": {
        "PAYMENT": [
            {
                "id": "trs_GcpTamnd7FBmnQ62u_tG8PJ08fasOeyI",
                "transaction_amount": "5000.0000",
                "transaction_amount_in_payout": "3000.0000",
                "transaction_fee_in_payout": "75.0000",
            },
            {
                "id": "trs_DVI9F0_PdANT0baaxOykTlxb9dwCwsJl",
                "transaction_amount": "2000.0000",
                "transaction_amount_in_payout": "2000.0000",
                "transaction_fee_in_payout": "50.0000",
            },
        ],
        "REVERSED": [
            {
                "id": "trs_oppTamnd7FBmnQ62u_tG8PJ08fasOeyI",
                "transaction_amount": "2000.0000",
                "transaction_amount_in_payout": "2000.0000",
                "transaction_fee_in_payout": "50.0000",
            },
            {
                "id": "trs_dfs9F0_PdANT0baaxOykTlxb9dwCwsJl",
                "transaction_amount": "2000.0000",
                "transaction_amount_in_payout": "1000.0000",
                "transaction_fee_in_payout": "25.0000",
            },
        ],
        "VOID": [],
        "CHARGEBACK": [],
    },
  "voucher": "base64_encoded_string_with_voucher"
}