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

card.transaction.created / card.transaction.settled
Вебхук

Запрос

card.transaction.created — a new operation row from the issuer, including recharge rows (typeName: Recharge/Collateral). card.transaction.settled — an earlier authorization was settled or cancelled: a separate row with a new upayBillId and the same upayParentId. Link them by upayParentId so one payment is not counted twice.

Заголовки
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.transaction.created""card.transaction.settled"
idstring, (uuid)обязательный

Same as id in GET /cards/{id}/transactions

cardIdstring, (uuid)обязательный
cardMaskedPanstring or null
upayBillIdstringобязательный

Issuer's operation id, processorBillId in REST

upayParentIdstring or null

Shared by an authorization and its settlement, processorParentId in REST

typeinteger
typeNamestring or null
Пример:"Consumption"
statusinteger
statusNamestring or null
Пример:"Unposted"
directioninteger or null

2 — money leaves the card, 1 — money comes to the card

amountstringобязательный
feestring or null
currencystring or null
originalAmountstring or null
originalCurrencystring or null
merchantNamestring or null
merchantMccstring or null
transactionTimestring, (date-time)обязательный
createdAtstring, (date-time)обязательный

When the event was sent

Payload
{ "event": "card.transaction.created", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24", "cardMaskedPan": "string", "upayBillId": "string", "upayParentId": "string", "type": 0, "typeName": "Consumption", "status": 0, "statusName": "Unposted", "direction": 0, "amount": "string", "fee": "string", "currency": "string", "originalAmount": "string", "originalCurrency": "string", "merchantName": "string", "merchantMcc": "string", "transactionTime": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }

Ответы

Any 2xx acknowledges the delivery.