Перейти к содержимому

deposit.* — company deposits
Вебхук

Запрос

A deposit to the company address changed status: deposit.created → deposit.fee_charged → deposit.aml_pending → deposit.completed, or deposit.failed (including an AML check that still fails after the retries). deposit.aml_failed is not sent for company deposits. deposit.completed is sent right before the funds are credited.

Заголовки
X-Lumo-Signaturestringобязательный

HMAC-SHA256 of the raw request body with the company webhook secret, hex.

Пример:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
X-Lumo-Delivery-Idstring, (uuid)обязательный

Delivery id. The same for all retries of one delivery — use it to drop duplicates.

Телоapplication/jsonобязательный
eventstringобязательный
Enum:"deposit.created""deposit.fee_charged""deposit.aml_pending""deposit.completed""deposit.aml_failed""deposit.failed"
depositIdstring, (uuid)обязательный
txHashstringобязательный
walletAddressstringобязательный

Company deposit address

fromAddressstring or null
amountnumberобязательный
Пример:100
tokenSymbolstringобязательный
Пример:"USDT"
statusstring(CompanyDepositStatus)обязательный

aml_failed, on_hold_insufficient_balance and sweeping remain in the enum but are not assigned to company deposits now: a failed AML check goes to pending_retry and, after the retries, to failed.

Enum:"new""on_hold_insufficient_balance""fee_charged""aml_pending""aml_passed""aml_failed""forwarding""sweeping""completed""pending_retry"
amlCheckIdstring or null
amlResultstring or null

null, or a string starting with skipped when AML is disabled for company deposits

Пример:null
sweepTxHashstring or null
errorstring or null
blockTimestampstring or null, (date-time)
createdAtstring, (date-time)обязательный

When the deposit was registered

updatedAtstring, (date-time)обязательный
Payload
{ "event": "deposit.created", "depositId": "33504022-daeb-4ddf-96f2-fc15aa4e6a52", "txHash": "string", "walletAddress": "string", "fromAddress": "string", "amount": 100, "tokenSymbol": "USDT", "status": "new", "amlCheckId": "string", "amlResult": null, "sweepTxHash": "string", "error": "string", "blockTimestamp": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Ответы

Any 2xx acknowledges the delivery.