curl --request POST \
--url https://{yourDomain}/api/service/webhook-event/refund.initiated \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"type": "refund.initiated",
"date": "<string>",
"payload": {
"id": "<string>",
"amount": 1,
"currency": "EUR",
"status": "initiated",
"orderId": "<string>"
}
}'
A refund initiated with /refund/create
curl --request POST \
--url https://{yourDomain}/api/service/webhook-event/refund.initiated \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"type": "refund.initiated",
"date": "<string>",
"payload": {
"id": "<string>",
"amount": 1,
"currency": "EUR",
"status": "initiated",
"orderId": "<string>"
}
}'
Data of the webhook event
The body is of type object
.
OK