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

card.recharge.*
Вебхук

Запрос

A recharge reached succeeded, in_progress_manual, refunded or failed; the event name ends with the status. in_progress_manual — the issuer did not carry it out, manual review follows and usually ends with succeeded or refunded. On failed and refunded the debit has been returned. A recharge rejected at once with 422 on POST /cards/recharge produces no event.

Заголовки
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:"card.recharge.succeeded""card.recharge.failed""card.recharge.refunded""card.recharge.in_progress_manual"
rechargeIdstring, (uuid)обязательный
cardIdstring, (uuid)обязательный
statusstring(CardRechargeStatus)обязательный
  • pending — the issuer did not answer, the outcome is being reconciled
  • succeeded — funds are on the card
  • in_progress_manual — the issuer did not carry it out or the outcome is unknown; manual review, the debit stays until resolved
  • refunded — cancelled after manual review, the debit is returned
  • failed — rejected up front or during reconciliation, the debit is returned
Enum:"pending""succeeded""failed""refunded""in_progress_manual"
targetAmountUsdnumberобязательный
Пример:50
userChargeUsdtnumberобязательный
Пример:50
commissionUsdtnumberобязательный
Пример:0.4
failureReasonstring or null
createdAtstring, (date-time)обязательный

When the event was sent

Payload
{ "event": "card.recharge.succeeded", "rechargeId": "f7b4390d-26ba-4d1a-8f67-20bb3302e139", "cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24", "status": "pending", "targetAmountUsd": 50, "userChargeUsdt": 50, "commissionUsdt": 0.4, "failureReason": "string", "createdAt": "2019-08-24T14:15:22Z" }

Ответы

Any 2xx acknowledges the delivery.