Skip to main content

Introduction

This section defines the complete schemas for every order-related event on Webround Commerce.

Why listen to order events

Integrating order events allows you to manage the following in real time:

  • Issuing electronic invoices upon payment status changes.
  • Logistics processing and shipment tracking.
  • Managing Stripe disputes and refunds.
  • Inventory synchronization via order line items.

Complete Events and Payloads Table

EventPayload SchemaJSON Example
order.createdOrder Data SchemaLink
order.updatedOrder Data Schema-
order.canceledOrder Data Schema-
order.paidOrder Data Schema-
order.payment-failedOrder Data Schema-
order.payment-authorizedOrder Data Schema-
order.payment-canceledOrder Data Schema-
order.payment-partially-fundedOrder Data Schema-
order.refund.updatedOrder Data Schema-
order.dispute.updatedOrder Data Schema-
order.deletedOrder Deleted SchemaLink
order-item.createdOrder Item Created SchemaLink
order-item.updatedOrder Item Updated Schema-
order-item.deletedOrder Item Deleted SchemaLink
order.promotion-usage.replacedPromotion Replaced SchemaLink

Data Types

Base Types

TypeFormatDescription
uuidstringUniversally unique identifier in UUID v4 format
isoDatestringDate and time string in ISO 8601 format
amountstringDecimal numeric string (up to 8 decimal places)

Address Schema (addressSchema)

Used for defining billingAddress and shippingAddress.

FieldTypeNotes
fullNamestring - nullOptional
companystring - nullOptional
addressLine1stringRequired
addressLine2string - nullOptional
citystringRequired
postalCodestringRequired
countryCodestringRequired (ISO 3166-1 alpha-2)
phonestring - nullOptional
provincestring - nullOptional
additionalInfostring - nullOptional

Order Schema (orderDataSchema)

FieldTypeNotes
iduuidRequired
storeIduuidRequired
customerIduuidRequired
customerEmailstringRequired (Email)
paymentStatusstringRequired
shippingStatusstringRequired
amountamountRequired
currencyCodestringRequired
shippingCostamount - nullOptional
billingAddressaddressSchema - nullOptional
shippingAddressaddressSchema - nullOptional
shippingTrackingUrlstring - nullOptional (URL)
stripePaymentIntentIdstring - nullOptional
stripeSubscriptionIdstring - nullOptional
stripeCheckoutSessionIdstring - nullOptional
stripeInvoiceIdstring - nullOptional
stripeInvoiceUrlstring - nullOptional (URL)
stripeAccountIdstring - nullOptional
amountCapturableamount - nullOptional
partialFundingAmountamount - nullOptional
disputeStatusstringRequired
refundStatusstringRequired
stripeDisputeIdstring - nullOptional
lastRefundIdstring - nullOptional
refundAmountamount - nullOptional
createdAtisoDateOptional
updatedAtisoDateOptional

Order Schema Example

{
"envelopeId": "e17d2354-580c-44f7-9f46-e4eed2cdff14",
"eventType": "order.created",
"initiatedBy": null,
"storeId": "a7734977-c5b1-49a4-911c-0b0bf745bd4f",
"occurredAt": "2026-02-17T19:36:46.552Z",
"data": {
"id": "3e29362a-da1b-4641-a656-5fe6b9f3a836",
"storeId": "a7734977-c5b1-49a4-911c-0b0bf745bd4f",
"customerId": "00e72027-3672-4c12-a78f-e9ff744a0892",
"customerEmail": "[email protected]",
"paymentStatus": "created",
"shippingStatus": "unassigned",
"amount": "178.12000000",
"currencyCode": "EUR",
"shippingCost": "12.20000000",
"billingAddress": {
"fullName": "John Doe",
"company": "Webround",
"addressLine1": "Via Roma 123",
"addressLine2": "n. 4",
"city": "Milano",
"postalCode": "20100",
"countryCode": "IT",
"phone": "+IT 1234567890",
"province": "Italy",
"additionalInfo": "info..."
},
"shippingAddress": {
"fullName": "John Doe",
"company": "Webround",
"addressLine1": "Via Roma 123",
"addressLine2": "n. 4",
"city": "Milano",
"postalCode": "20100",
"countryCode": "IT",
"phone": "+IT 1234567890",
"province": "Italy",
"additionalInfo": "info..."
},
"shippingTrackingUrl": null,
"stripePaymentIntentId": null,
"stripeSubscriptionId": null,
"stripeCheckoutSessionId": "cs_...",
"stripeInvoiceId": null,
"stripeInvoiceUrl": null,
"stripeAccountId": "acct_...",
"amountCapturable": null,
"partialFundingAmount": null,
"disputeStatus": "none",
"refundStatus": "none",
"stripeDisputeId": null,
"lastRefundId": null,
"refundAmount": null,
"createdAt": "2026-02-17T19:36:45.498Z",
"updatedAt": "2026-02-17T19:36:45.498Z"
},
"eventId": "5b7137c3-d261-40d8-aeb0-ad4831209b4b"
}


Deleted Order Schema (order.deleted)

FieldTypeNotes
orderIduuidRequired (ID of the deleted order)

Deleted Order Schema Example

{
"envelopeId": "e17d2354-580c-44f7-9f46-e4eed2cdff14",
"eventType": "order.deleted",
"initiatedBy": "[email protected]",
"storeId": "a7734977-c5b1-49a4-911c-0b0bf745bd4f",
"occurredAt": "2026-02-17T19:36:46.552Z",
"data": {
"orderId": "00e72027-3672-4c12-a78f-e9ff744a0892"
},
"eventId": "5b7137c3-d261-40d8-aeb0-ad4831209b4b"
}


Created Order Line Item Schema (order-item.created)

FieldTypeNotes
iduuidRequired
orderIduuidRequired
skuIduuidRequired
productIduuidRequired
variantIduuidRequired
coverUrlstring - nullOptional (URL)
skuCodestringRequired
quantitynumberRequired (Positive integer)
deliveryMethodstringRequired
unitNetamountRequired
unitGrossamountRequired
unitTaxamountRequired
totalNetamountRequired
totalGrossamountRequired
totalTaxamountRequired
appliedTaxRatenumberRequired
taxBehaviorstringRequired
stripePriceIdstring - nullOptional
stripeProductIdstring - nullOptional
stripeTaxCodeIdstring - nullOptional
createdAtisoDateRequired
updatedAtisoDateRequired

Created Order Line Item Schema Example

{
"envelopeId": "5039a305-7b68-4ef9-8956-40bc263bda36",
"eventType": "order-item.created",
"initiatedBy": null,
"storeId": "a7734977-c5b1-49a4-911c-0b0bf745bd4f",
"occurredAt": "2026-02-17T19:36:46.562Z",
"data": {
"id": "f957722a-92a1-4876-8e47-bda6f4944e61",
"orderId": "3e29362a-da1b-4641-a656-5fe6b9f3a836",
"skuId": "01e1c35f-8cb2-4c35-bd8b-1fa42dbc6a8c",
"productId": "5aa07d67-33e0-459c-ba9d-86b68d202e18",
"variantId": "1057deeb-024f-4a5b-9365-a3131aeb7826",
"coverUrl": "https://cdn.webround.com/asset.png",
"skuCode": "T-Shirt",
"quantity": 1,
"deliveryMethod": "shipping",
"unitNet": "17.00000000",
"unitGross": "20.74000000",
"unitTax": "3.74000000",
"totalNet": "17.00000000",
"totalGross": "20.74000000",
"totalTax": "3.74000000",
"appliedTaxRate": 22,
"taxBehavior": "useWrTax",
"stripePriceId": null,
"stripeProductId": null,
"stripeTaxCodeId": null,
"createdAt": "2026-02-17T19:36:45.498Z",
"updatedAt": "2026-02-17T19:36:45.498Z"
},
"eventId": "5b6520ae-eb78-4510-a32a-55ef1fe66d3d"
}


Updated Order Line Item Schema (order-item.updated)

FieldTypeNotes
iduuidRequired
orderIduuidRequired
skuIduuidRequired
productIduuidRequired
variantIduuidRequired
coverUrlstring - nullOptional (URL)
skuCodestringRequired
quantitynumberRequired
deliveryMethodstringRequired
unitNetamountRequired
unitGrossamountRequired
unitTaxamountRequired
totalNetamountRequired
totalGrossamountRequired
totalTaxamountRequired
appliedTaxRatenumberRequired
taxBehaviorstringRequired
updatedAtisoDateRequired

Deleted Order Line Item Schema (order-item.deleted)

FieldTypeNotes
orderIduuidRequired
orderItemIduuidRequired (ID of the deleted line item)

Deleted Order Line Item Schema Example

{
"envelopeId": "5039a305-7b68-4ef9-8956-40bc263bda36",
"eventType": "order-item.deleted",
"initiatedBy": null,
"storeId": "a7734977-c5b1-49a4-911c-0b0bf745bd4f",
"occurredAt": "2026-02-17T19:36:46.562Z",
"data": {
"orderId": "3e29362a-da1b-4641-a656-5fe6b9f3a836",
"orderItemId": "f957722a-92a1-4876-8e47-bda6f4944e61"
},
"eventId": "5b6520ae-eb78-4510-a32a-55ef1fe66d3d"
}


Replaced Promotion Schema (order.promotion-usage.replaced)

FieldTypeNotes
orderIduuidRequired
orderItemIduuid[]Required (Array of affected order line item IDs)

Replaced Promotion Schema Example

{
"envelopeId": "5039a305-7b68-4ef9-8956-40bc263bda36",
"eventType": "order.promotion-usage.replaced",
"initiatedBy": null,
"storeId": "a7734977-c5b1-49a4-911c-0b0bf745bd4f",
"occurredAt": "2026-02-17T19:36:46.562Z",
"data": {
"orderId": "3e29362a-da1b-4641-a656-5fe6b9f3a836",
"orderItemId": ["f957722a-92a1-4876-8e47-bda6f4944e61"]
},
"eventId": "5b6520ae-eb78-4510-a32a-55ef1fe66d3d"
}