API referencePlugin contractWebhooks
Variant Deleted
POST
/webhooks/variant-deletedRequest 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})$variantId*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})$Response Body
text/plain
curl -X POST "https://example.com/webhooks/variant-deleted" \ -H "Content-Type: application/json" \ -d '{ "storeId": "string", "variantId": "string" }'"string"