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

card.status_changed
Вебхук

Запрос

The card state at the issuer changed. The card status in this API does not change.

Заголовки
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обязательный
Value:"card.status_changed"
cardIdstring, (uuid)обязательный
cardMaskedPanstring or null
upayStateinteger or nullобязательный
Пример:3
upayStateNamestring or null
Пример:"Frozen"
previousStateinteger or nullобязательный
Пример:1
previousStateNamestring or null
Пример:"Normal"
syncedAtstring, (date-time)

When the new state was read from the issuer

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

When the event was sent

Payload
{ "event": "card.status_changed", "cardId": "f16ba382-eb42-481a-b08f-c57bdc9aae24", "cardMaskedPan": "string", "upayState": 3, "upayStateName": "Frozen", "previousState": 1, "previousStateName": "Normal", "syncedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }

Ответы

Any 2xx acknowledges the delivery.