Withdrawal Callback

Cypto (USDT-TRC20) withdrawal callback example:

{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "0ad841ad-8f43-43e8-a51e-3b76befd2e38",
    "referenceId": null,
    "type": "crypto",
    "status": "created",
    "paid": {
      "amount": "100",
      "fee": "0.147486",
      "netAmount": "100.147486",
      "balanceBefore": "101.58202",
      "balanceAfter": "1.434534",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      },
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      }
    },
    "cryptoAddress": "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU",
    "fiatDescription": null,
    "createdAt": "2024-07-15T07:39:13.692Z",
    "updatedAt": "2024-07-15T07:39:13.692Z"
  }
}
{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "0ad841ad-8f43-43e8-a51e-3b76befd2e38",
    "referenceId": "66f9d45e23fe68fe76801295912a7528a2d594ee4b53c229fed80e7dbb2d06c3",
    "type": "crypto",
    "status": "pending",
    "paid": {
      "amount": "100",
      "fee": "0.147486",
      "netAmount": "100.147486",
      "balanceBefore": "101.58202",
      "balanceAfter": "1.434534",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      },
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      }
    },
    "cryptoAddress": "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU",
    "fiatDescription": null,
    "createdAt": "2024-07-15T07:39:13.692Z",
    "updatedAt": "2024-07-15T07:39:14.000Z",
    "cryptoTransaction": {
      "uuid": "b74664b4-41e3-4714-8a01-f9ebe1879898",
      "type": "out",
      "status": "pending",
      "transactionHash": "66f9d45e23fe68fe76801295912a7528a2d594ee4b53c229fed80e7dbb2d06c3",
      "fromAddresses": [
        "TB8Be2xGqFS3KBAuDqwkLVzDeDvGSnyQGo"
      ],
      "toAddresses": [
        "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU"
      ],
      "amount": "100",
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      },
      "address": {
        "address": "tb1qfp0nttwsm9f4j8agj2w7f0rkx4320q7dzl7fhd",
        "externalId": null
      }
    }
  }
}
{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "0ad841ad-8f43-43e8-a51e-3b76befd2e38",
    "referenceId": "66f9d45e23fe68fe76801295912a7528a2d594ee4b53c229fed80e7dbb2d06c3",
    "type": "crypto",
    "status": "completed",
    "paid": {
      "amount": "100",
      "fee": "0.147486",
      "netAmount": "100.147486",
      "balanceBefore": "101.58202",
      "balanceAfter": "1.434534",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      },
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      }
    },
    "cryptoAddress": "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU",
    "fiatDescription": null,
    "createdAt": "2024-07-15T07:39:13.692Z",
    "updatedAt": "2024-07-15T07:39:21.000Z",
    "cryptoTransaction": {
      "uuid": "b74664b4-41e3-4714-8a01-f9ebe1879898",
      "type": "out",
      "status": "confirmed",
      "transactionHash": "66f9d45e23fe68fe76801295912a7528a2d594ee4b53c229fed80e7dbb2d06c3",
      "fromAddresses": [
        "TB8Be2xGqFS3KBAuDqwkLVzDeDvGSnyQGo"
      ],
      "toAddresses": [
        "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU"
      ],
      "amount": "100",
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      },
      "address": {
        "address": "tb1qfp0nttwsm9f4j8agj2w7f0rkx4320q7dzl7fhd",
        "externalId": null
      }
    }
  }
}

Fiat (EUR) withdrawal callback example:

{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "9552a81b-dea9-4de2-ad29-60c7f1fb18ab",
    "referenceId": null,
    "type": "fiat",
    "status": "created",
    "paid": {
      "amount": "100",
      "fee": "2",
      "netAmount": "102",
      "balanceBefore": "164.770904",
      "balanceAfter": "62.770904",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      },
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    },
    "cryptoAddress": null,
    "fiatDescription": "Bank withdrawal",
    "createdAt": "2024-07-15T10:09:12.426Z",
    "updatedAt": "2024-07-15T10:09:12.426Z"
  }
}
{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "9552a81b-dea9-4de2-ad29-60c7f1fb18ab",
    "referenceId": "9c8735b1-3935-4ba0-85d2-16f53ec3ac88",
    "type": "fiat",
    "status": "pending",
    "paid": {
      "amount": "100",
      "fee": "2",
      "netAmount": "102",
      "balanceBefore": "164.770904",
      "balanceAfter": "62.770904",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      },
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    },
    "cryptoAddress": null,
    "fiatDescription": "Bank withdrawal",
    "createdAt": "2024-07-15T10:09:12.426Z",
    "updatedAt": "2024-07-15T10:09:13.000Z",
    "fiatTransaction": {
      "uuid": "833759eb-0040-4bf3-a46c-a91f14ed8e4a",
      "type": "out",
      "status": "pending",
      "transactionId": "9c8735b1-3935-4ba0-85d2-16f53ec3ac88",
      "amount": "100",
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    }
  }
}
{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "9552a81b-dea9-4de2-ad29-60c7f1fb18ab",
    "referenceId": "9c8735b1-3935-4ba0-85d2-16f53ec3ac88",
    "type": "fiat",
    "status": "completed",
    "paid": {
      "amount": "100",
      "fee": "2",
      "netAmount": "102",
      "balanceBefore": "164.770904",
      "balanceAfter": "62.770904",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      },
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    },
    "cryptoAddress": null,
    "fiatDescription": "Bank withdrawal",
    "createdAt": "2024-07-15T10:09:12.426Z",
    "updatedAt": "2024-07-15T10:10:47.000Z",
    "fiatTransaction": {
      "uuid": "833759eb-0040-4bf3-a46c-a91f14ed8e4a",
      "type": "out",
      "status": "completed",
      "transactionId": "9c8735b1-3935-4ba0-85d2-16f53ec3ac88",
      "amount": "100",
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    }
  }
}
{
  "type": "withdrawal",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "withdrawal": {
    "uuid": "9552a81b-dea9-4de2-ad29-60c7f1fb18ab",
    "referenceId": "9c8735b1-3935-4ba0-85d2-16f53ec3ac88",
    "type": "fiat",
    "status": "returned",
    "paid": {
      "amount": "100",
      "fee": "2",
      "netAmount": "102",
      "balanceBefore": "164.770904",
      "balanceAfter": "62.770904",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "received": {
      "amount": "100",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      },
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    },
    "cryptoAddress": null,
    "fiatDescription": "Bank withdrawal",
    "createdAt": "2024-07-15T10:09:12.426Z",
    "updatedAt": "2024-07-15T10:14:44.000Z",
    "fiatTransaction": {
      "uuid": "833759eb-0040-4bf3-a46c-a91f14ed8e4a",
      "type": "out",
      "status": "returned",
      "transactionId": "9c8735b1-3935-4ba0-85d2-16f53ec3ac88",
      "amount": "100",
      "bankAccount": {
        "uuid": "faca93f6-55cb-4fc4-8da0-65d6a75d93e6",
        "name": "Main",
        "iban": "NL02RABO6495564279"
      }
    }
  }
}