For Verification, create a base64 hash using HmacSHA256 using Published-Timestamp header as message and your API key as secret. The result should match the Signature header.
Weavr Webhook (v2)
Request
Notification that a card has changed state. The following events trigger a notification:
- Activate a physical card.
- Remove a managed card.
- Report a physical card as lost.
- Report a physical card as stolen.
- Mark a virtual card as compromised.
- Card has expired.
- Block a managed card.
- Unblock a managed card.
- Update card renewal type.
Please note that since a card can have multiple blocks, an unblock event (for which a notification is sent) may not always result in the card state being updated to Active.
A call reference generated by the caller and unique to the caller to provide correlation between the caller and system with a maximum length of 255
The timestamp, expressed in Epoch timestamp using millisecond precision, when this event was published.
The signature to verify the authenticity of this request. This is the base64 hash (HmacSHA256) of the call-ref + payload + published-timestamp using your API key.
The timestamp of the state change, using epoch timestamp with millisecond precision.
Indicates how the card will be handled once it is close to expiring.
- RENEW: The card will be automatically renewed, keeping the same card number but with a new expiry date and CVV.
- NO_RENEW: Once the expiry date is reached, the card is destroyed.
- Mock serverhttps://api.weavr.io/_mock/products/webhooks/openapi/managed_cards/state_change/watch
- https://api.weavr.io/""/managed_cards/state_change/watch
{ "id": { "id": "string", "type": "managed_cards" }, "timestamp": "string", "eventType": "ACTIVATED", "state": { "state": "ACTIVE", "blockedReason": "USER", "destroyedReason": "SYSTEM" }, "cardType": "VIRTUAL", "renewalType": "RENEW" }
A call reference generated by the caller and unique to the caller to provide correlation between the caller and system with a maximum length of 255
The timestamp, expressed in Epoch timestamp using millisecond precision, when this event was published.
The signature to verify the authenticity of this request. This is the base64 hash (HmacSHA256) of the call-ref + payload + published-timestamp using your API key.
The id of the managed card on which a settlement has been performed.
The type of adjustment that was processed.
The amount in the currency of the card.
The timestamp of the transaction, using epoch timestamp with millisecond precision.
The updated card available balance after this adjustment was processed.
- Mock serverhttps://api.weavr.io/_mock/products/webhooks/openapi/managed_cards/adjustments/watch
- https://api.weavr.io/""/managed_cards/adjustments/watch
{ "id": { "id": "string", "type": "managed_cards" }, "transactionId": "string", "adjustmentType": "DEFAULT_ADJUSTMENT", "adjustmentAmount": { "currency": "str", "amount": "string" }, "transactionTimestamp": "string", "availableBalance": { "currency": "str", "amount": "string" }, "owner": { "type": "string", "id": "string" }, "details": { "prepaidModeDetails": { … }, "debitModeDetails": { … } } }