novinzodevelopers
API referencePlugin contractWebhooks

Order Refunded

POST/webhooks/order-refunded

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

storeId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
orderId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
paymentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
customerId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
refundId?string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
amount*
paymentFullyRefunded*boolean

Response Body

text/plain

curl -X POST "https://example.com/webhooks/order-refunded" \  -H "Content-Type: application/json" \  -d '{    "storeId": "string",    "orderId": "string",    "paymentId": "string",    "customerId": "string",    "amount": {      "amountMinorUnits": "string",      "currency": "AED"    },    "paymentFullyRefunded": true  }'
"string"