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

payout.status_changed / payout.recharged
Вебхук

Запрос

payout.status_changed — on every payout status change, except a return to success after a refund: then payout.recharged is sent instead (the payout was debited again); the body is the same.

Заголовки
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:"payout.status_changed""payout.recharged"
payoutIdstring, (uuid)обязательный
externalIdstring or null
statusstringобязательный
Enum:"pending""waiting_trader""in_progress""success""fail"
amountRubnumberобязательный
Пример:12000
chargedUsdtnumberобязательный
Пример:147.71
ratenumberобязательный
Пример:81.24
requisiteTypestringобязательный
Enum:"card""phone"
requisitestringобязательный
bankIdstring or null
bankstring or null
failReasonstring or null

See Payout.failReason

commentstring or null
refundedbooleanобязательный

The charged amount has been returned to the balance

disputeStatusstring or null
Enum:"open""resolved"null
disputeResolutionstring or null
Enum:"user_won""trader_won"null
completedAtstring or null, (date-time)
createdAtstring, (date-time)обязательный

When the payout was created

updatedAtstring, (date-time)обязательный

When the event was sent

Payload
{ "event": "payout.status_changed", "payoutId": "c3d65312-6575-43de-b8ae-728d8d0a9371", "externalId": "string", "status": "pending", "amountRub": 12000, "chargedUsdt": 147.71, "rate": 81.24, "requisiteType": "card", "requisite": "string", "bankId": "string", "bank": "string", "failReason": "string", "comment": "string", "refunded": true, "disputeStatus": "open", "disputeResolution": "user_won", "completedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }

Ответы

Any 2xx acknowledges the delivery.