Deposit Callback

Cypto deposit (BTC) callback example:

{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "9af059ad-a714-427a-8e1e-d949164addf7",
    "referenceId": "7c12086451db3cd563868f9f93fbadedcffcb15726d35ea9a724bdcd301d49bb",
    "externalId": "user-12345",
    "type": "crypto",
    "kind": "payment",
    "status": "pending",
    "paid": {
      "amount": "0.01",
      "currency": {
        "symbol": "BTC",
        "name": "Bitcoin",
        "type": "crypto",
        "decimals": 8
      }
    },
    "received": {
      "rate": null,
      "amount": "0.01",
      "fee": null,
      "netAmount": null,
      "balanceBefore": null,
      "balanceAfter": null,
      "currency": {
        "symbol": "BTC",
        "name": "Bitcoin",
        "type": "crypto",
        "decimals": 8
      }
    },
    "createdAt": "2024-07-15T07:51:29.090Z",
    "updatedAt": "2024-07-15T07:51:29.090Z",
    "cryptoTransaction": {
      "uuid": "1c811355-0292-43af-84cf-69027f0391b0",
      "type": "in",
      "status": "pending",
      "transactionHash": "7c12086451db3cd563868f9f93fbadedcffcb15726d35ea9a724bdcd301d49bb",
      "fromAddresses": [
        "tb1qh59jlscc8zmk6qxmm7h00qsxd6ul7ey3ghsjvz"
      ],
      "toAddresses": [
        "tb1qd9c56r4ptez8dmygedkmyduq0zp8c7e60vlcdw",
        "tb1qpu2zny87x7egtxmvqvn8lelhurtpp2jm3yklst"
      ],
      "amount": "0.01",
      "coin": {
        "code": "BTC",
        "name": "Bitcoin",
        "decimals": 8
      },
      "address": {
        "address": "tb1qd9c56r4ptez8dmygedkmyduq0zp8c7e60vlcdw",
        "externalId": "user-12345"
      }
    }
  }
}
{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "9af059ad-a714-427a-8e1e-d949164addf7",
    "referenceId": "7c12086451db3cd563868f9f93fbadedcffcb15726d35ea9a724bdcd301d49bb",
    "externalId": "user-12345",
    "type": "crypto",
    "kind": "payment",
    "status": "confirmed",
    "paid": {
      "amount": "0.01",
      "currency": {
        "symbol": "BTC",
        "name": "Bitcoin",
        "type": "crypto",
        "decimals": 8
      }
    },
    "received": {
      "rate": null,
      "amount": "0.01",
      "fee": null,
      "netAmount": null,
      "balanceBefore": null,
      "balanceAfter": null,
      "currency": {
        "symbol": "BTC",
        "name": "Bitcoin",
        "type": "crypto",
        "decimals": 8
      }
    },
    "createdAt": "2024-07-15T07:51:29.090Z",
    "updatedAt": "2024-07-15T08:10:56.000Z",
    "cryptoTransaction": {
      "uuid": "1c811355-0292-43af-84cf-69027f0391b0",
      "type": "in",
      "status": "confirmed",
      "transactionHash": "7c12086451db3cd563868f9f93fbadedcffcb15726d35ea9a724bdcd301d49bb",
      "fromAddresses": [
        "tb1qh59jlscc8zmk6qxmm7h00qsxd6ul7ey3ghsjvz"
      ],
      "toAddresses": [
        "tb1qd9c56r4ptez8dmygedkmyduq0zp8c7e60vlcdw",
        "tb1qpu2zny87x7egtxmvqvn8lelhurtpp2jm3yklst"
      ],
      "amount": "0.01",
      "coin": {
        "code": "BTC",
        "name": "Bitcoin",
        "decimals": 8
      },
      "address": {
        "address": "tb1qd9c56r4ptez8dmygedkmyduq0zp8c7e60vlcdw",
        "externalId": "user-12345"
      }
    }
  }
}
{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "9af059ad-a714-427a-8e1e-d949164addf7",
    "referenceId": "7c12086451db3cd563868f9f93fbadedcffcb15726d35ea9a724bdcd301d49bb",
    "externalId": "user-12345",
    "type": "crypto",
    "kind": "payment",
    "status": "completed",
    "paid": {
      "amount": "0.01",
      "currency": {
        "symbol": "BTC",
        "name": "Bitcoin",
        "type": "crypto",
        "decimals": 8
      }
    },
    "received": {
      "rate": null,
      "amount": "0.01",
      "fee": "0.00013475",
      "netAmount": "0.00986525",
      "balanceBefore": "0",
      "balanceAfter": "0.00986525",
      "currency": {
        "symbol": "BTC",
        "name": "Bitcoin",
        "type": "crypto",
        "decimals": 8
      }
    },
    "createdAt": "2024-07-15T07:51:29.090Z",
    "updatedAt": "2024-07-15T08:41:52.000Z",
    "cryptoTransaction": {
      "uuid": "1c811355-0292-43af-84cf-69027f0391b0",
      "type": "in",
      "status": "confirmed",
      "transactionHash": "7c12086451db3cd563868f9f93fbadedcffcb15726d35ea9a724bdcd301d49bb",
      "fromAddresses": [
        "tb1qh59jlscc8zmk6qxmm7h00qsxd6ul7ey3ghsjvz"
      ],
      "toAddresses": [
        "tb1qd9c56r4ptez8dmygedkmyduq0zp8c7e60vlcdw",
        "tb1qpu2zny87x7egtxmvqvn8lelhurtpp2jm3yklst"
      ],
      "amount": "0.01",
      "coin": {
        "code": "BTC",
        "name": "Bitcoin",
        "decimals": 8
      },
      "address": {
        "address": "tb1qd9c56r4ptez8dmygedkmyduq0zp8c7e60vlcdw",
        "externalId": "user-12345"
      }
    }
  }
}

Crypto deposit (USDT-TRC20) with automatic exchange to fiat (EUR) callback example:

{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "088e21e7-0d74-4b27-9fe1-c67a3d1c024a",
    "referenceId": "ff1ba1c2d12ab58cf91e862945302ef976ced8bdf8fda8cc14df668c4fac520a",
    "externalId": "user-12345",
    "type": "crypto",
    "kind": "payment",
    "status": "pending",
    "paid": {
      "amount": "100",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      }
    },
    "received": {
      "rate": null,
      "amount": null,
      "fee": null,
      "netAmount": null,
      "balanceBefore": null,
      "balanceAfter": null,
      "currency": null
    },
    "createdAt": "2024-07-15T07:29:47.014Z",
    "updatedAt": "2024-07-15T07:29:47.014Z",
    "cryptoTransaction": {
      "uuid": "2907fd3d-9a08-4783-a13b-dbc5b2552c0e",
      "type": "in",
      "status": "pending",
      "transactionHash": "ff1ba1c2d12ab58cf91e862945302ef976ced8bdf8fda8cc14df668c4fac520a",
      "fromAddresses": [
        "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU"
      ],
      "toAddresses": [
        "TJnHg5naSEx9dLXKPyfdML5yewnshdhgLS"
      ],
      "amount": "100",
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      },
      "address": {
        "address": "TJnHg5naSEx9dLXKPyfdML5yewnshdhgLS",
        "externalId": "user-12345"
      }
    }
  }
}
{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "088e21e7-0d74-4b27-9fe1-c67a3d1c024a",
    "referenceId": "ff1ba1c2d12ab58cf91e862945302ef976ced8bdf8fda8cc14df668c4fac520a",
    "externalId": "user-12345",
    "type": "crypto",
    "kind": "payment",
    "status": "confirmed",
    "paid": {
      "amount": "100",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      }
    },
    "received": {
      "rate": null,
      "amount": null,
      "fee": null,
      "netAmount": null,
      "balanceBefore": null,
      "balanceAfter": null,
      "currency": null
    },
    "createdAt": "2024-07-15T07:29:47.014Z",
    "updatedAt": "2024-07-15T07:29:53.000Z",
    "cryptoTransaction": {
      "uuid": "2907fd3d-9a08-4783-a13b-dbc5b2552c0e",
      "type": "in",
      "status": "confirmed",
      "transactionHash": "ff1ba1c2d12ab58cf91e862945302ef976ced8bdf8fda8cc14df668c4fac520a",
      "fromAddresses": [
        "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU"
      ],
      "toAddresses": [
        "TJnHg5naSEx9dLXKPyfdML5yewnshdhgLS"
      ],
      "amount": "100",
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      },
      "address": {
        "address": "TJnHg5naSEx9dLXKPyfdML5yewnshdhgLS",
        "externalId": "user-12345"
      }
    }
  }
}
{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "088e21e7-0d74-4b27-9fe1-c67a3d1c024a",
    "referenceId": "ff1ba1c2d12ab58cf91e862945302ef976ced8bdf8fda8cc14df668c4fac520a",
    "externalId": "user-12345",
    "type": "crypto",
    "kind": "payment",
    "status": "completed",
    "paid": {
      "amount": "100",
      "currency": {
        "symbol": "USDT",
        "name": "Tether USD",
        "type": "crypto",
        "decimals": 6
      }
    },
    "received": {
      "rate": "0.917",
      "amount": "91.7",
      "fee": "3.3755",
      "netAmount": "88.3245",
      "balanceBefore": "115.676954",
      "balanceAfter": "204.001454",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "createdAt": "2024-07-15T07:29:47.014Z",
    "updatedAt": "2024-07-15T07:30:06.000Z",
    "cryptoTransaction": {
      "uuid": "2907fd3d-9a08-4783-a13b-dbc5b2552c0e",
      "type": "in",
      "status": "confirmed",
      "transactionHash": "ff1ba1c2d12ab58cf91e862945302ef976ced8bdf8fda8cc14df668c4fac520a",
      "fromAddresses": [
        "TRwV6AQgaHZmsmWawycV5bpgthsdExgxVU"
      ],
      "toAddresses": [
        "TJnHg5naSEx9dLXKPyfdML5yewnshdhgLS"
      ],
      "amount": "100",
      "coin": {
        "code": "USDT-TRC20",
        "name": "Tether USD (TRC-20)",
        "decimals": 6
      },
      "address": {
        "address": "TJnHg5naSEx9dLXKPyfdML5yewnshdhgLS",
        "externalId": "user-12345"
      }
    }
  }
}

Fiat deposit (EUR) callback example:

{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "946b586e-a2b0-4a77-a20f-12aae62386cc",
    "referenceId": "f21b1c2d-ebb8-4176-9172-53fa8027cab6",
    "externalId": null,
    "type": "fiat",
    "kind": "deposit",
    "status": "pending",
    "paid": {
      "amount": "100",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "received": {
      "rate": null,
      "amount": "10",
      "fee": null,
      "netAmount": null,
      "balanceBefore": null,
      "balanceAfter": null,
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "createdAt": "2024-07-15T10:32:08.337Z",
    "updatedAt": "2024-07-15T10:32:08.337Z",
    "fiatTransaction": {
      "uuid": "01854783-fbd2-425a-b611-e664a4a02548",
      "type": "in",
      "status": "pending",
      "transactionId": "f21b1c2d-ebb8-4176-9172-53fa8027cab6",
      "amount": "100"
    }
  }
}
{
  "type": "deposit",
  "version": "1.0",
  "merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
  "deposit": {
    "uuid": "946b586e-a2b0-4a77-a20f-12aae62386cc",
    "referenceId": "f21b1c2d-ebb8-4176-9172-53fa8027cab6",
    "externalId": null,
    "type": "fiat",
    "kind": "deposit",
    "status": "completed",
    "paid": {
      "amount": "100",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "received": {
      "rate": null,
      "amount": "100",
      "fee": "2",
      "netAmount": "98",
      "balanceBefore": "162.770904",
      "balanceAfter": "260.770904",
      "currency": {
        "symbol": "EUR",
        "name": "Euro",
        "type": "fiat",
        "decimals": 6
      }
    },
    "createdAt": "2024-07-15T10:32:08.337Z",
    "updatedAt": "2024-07-15T10:32:08.000Z",
    "fiatTransaction": {
      "uuid": "01854783-fbd2-425a-b611-e664a4a02548",
      "type": "in",
      "status": "completed",
      "transactionId": "f21b1c2d-ebb8-4176-9172-53fa8027cab6",
      "amount": "100"
    }
  }
}