Squarespace Developer Platform: APIs, Apps, and Docs
Commerce Order Events

Order update

Code
"topic": "order.update"

Occurs when an order is updated on a Squarespace merchant site.

Read the Overview for details about the information sent with every Squarespace webhook notification.

Request payload example

JavascriptCode
{ // String; unique notification id "id": "5c2ba184b63ed3cb411ce2b1", // String; Squarespace website id that triggered the notification. "websiteId": "5f3c3d55ac435e1a051f77b3", // String; unique Webhook Subscriptions id "subscriptionId": "5f3c2155d947844beedda991", // String; description of the event that triggered notification. "topic": "order.update", // ISO 8601 UTC date and time string; represents when the notification was created. "createdOn": "2020-04-22T22:18+00:00", // Object; data associated with the event. "data": { // String; unique order id. "orderId": "5f3c39ce69e11e796f19990e", // String; describes the update to the order. // Values can include: `FULFILLED`, `REFUNDED`, `CANCELED`, `MARKED_PENDING`, or `EMAIL_UPDATED` "update": "FULFILLED" } }