Exchange from fiat (EUR) to crypto (USDT) callback example:
{
"type": "exchange",
"version": "1.0",
"merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
"exchange": {
"uuid": "585619fb-dde8-4935-8eeb-d9e86665a78c",
"status": "pending",
"from": {
"amount": "100",
"balanceBefore": "205.206854",
"balanceAfter": "105.206854",
"currency": {
"symbol": "EUR",
"name": "Euro",
"type": "fiat",
"decimals": 6
}
},
"to": {
"rate": null,
"amount": null,
"fee": null,
"netAmount": null,
"balanceBefore": null,
"balanceAfter": null,
"currency": {
"symbol": "USDT",
"name": "Tether USD",
"type": "crypto",
"decimals": 6
}
},
"createdAt": "2024-07-15T06:12:13.934Z",
"updatedAt": "2024-07-15T06:12:13.934Z"
}
}{
"type": "exchange",
"version": "1.0",
"merchantUuid": "b41a686e-7174-4acf-9931-4899147d1536",
"exchange": {
"uuid": "585619fb-dde8-4935-8eeb-d9e86665a78c",
"status": "completed",
"from": {
"amount": "100",
"balanceBefore": "205.206854",
"balanceAfter": "105.206854",
"currency": {
"symbol": "EUR",
"name": "Euro",
"type": "fiat",
"decimals": 6
}
},
"to": {
"rate": "1.08968072",
"amount": "108.968072",
"fee": "1.089681",
"netAmount": "107.878391",
"balanceBefore": "0",
"balanceAfter": "107.878391",
"currency": {
"symbol": "USDT",
"name": "Tether USD",
"type": "crypto",
"decimals": 6
}
},
"createdAt": "2024-07-15T06:12:13.934Z",
"updatedAt": "2024-07-15T06:12:14.000Z"
}
}