Webhook requests will contain 6 main key-value pairs:
Key | Value |
---|---|
event | Reports the current status of the order, can take the values of "created", "authorized", "charged", "refunded", "partially_refunded", "voided", "expired", "refunded_not_charged", "not_created". The list of statuses may change in the future, so it is not advised to hardcode the set of values to expect. |
magicOrderToken | Order token |
orderReference | The correlation id from the merchant, typically the order id. |
totalAmount | The total amount in cents e.g. €10 is 1000 |
refundAmount | The refund amount in cents, only for refund events |
totalRefundAmount | The cumulative refund amount in cents, only for refund events |