novinzodevelopers
API referencePlugin contractWebhooks

Variant Purchased

POST/webhooks/variant-purchased

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})$
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})$
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})$
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})$
quantity*integer
Range0 < value <= 9007199254740991
charged?
deliveredByYou*boolean
buyerInputs?array<>
subscription?

Response Body

text/plain

curl -X POST "https://example.com/webhooks/variant-purchased" \  -H "Content-Type: application/json" \  -d '{    "storeId": "string",    "variantId": "string",    "customerId": "string",    "orderId": "string",    "quantity": 1,    "deliveredByYou": true  }'
"string"