التوثيق متوفّر بالفرنسية والإنجليزية. يُعرض المحتوى هنا بالفرنسية — اختر EN من القائمة العلوية لقراءته بالإنجليزية.

المطوّرون
المرجع · Webhooks

أحداث الـ webhook

أحداث يرسلها QuoShop API إلى نقاط الاستقبال لديك. كل إرسال طلب POST بصيغة JSON موقَّع.

أدلّة : Webhooks →

order.created

Nouvelle commande — passée sur la vitrine ou créée par l’API.

الصلاحية المطلوبة لاستقباله : orders:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمorder.created
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataOrderDtoإلزامي
    تفاصيل OrderDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "order.created",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
    "number": "WEB-2026-000042",
    "channel": "STOREFRONT",
    "externalSource": "woocommerce",
    "externalId": "10293",
    "status": "NEW",
    "statusLabel": "Confirmée",
    "paymentStatus": "PENDING",
    "paymentStatusLabel": "Payée",
    "currency": "TND",
    "locale": "fr",
    "customer": {
      "id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
      "email": "client@exemple.tn",
      "name": "Sarra Ben Ali",
      "phone": null
    },
    "shippingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "billingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "delivery": {
      "methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
      "code": "STANDARD",
      "label": "Livraison standard"
    },
    "payment": {
      "method": "CARD",
      "label": "Carte bancaire",
      "reference": "pi_3QxYz"
    },
    "totals": {
      "items": 238,
      "shipping": 7,
      "discount": 0,
      "totalExclTax": 207,
      "tax": 38,
      "total": 245,
      "paid": 245,
      "due": 0
    },
    "lines": [
      {
        "productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
        "sku": "ART-0042",
        "title": "Chaise en chêne massif",
        "quantity": 2,
        "unitPrice": 119,
        "unitPriceExclTax": 100,
        "vatRate": 19,
        "totalExclTax": 200,
        "tax": 38,
        "total": 238
      }
    ],
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "salesDocument": {
        "type": "COMMANDE_VENTE",
        "typeLabel": "Facture",
        "number": "FAC-2026-00042"
      },
      "invoiceNumber": "FAC-2026-00042",
      "creditNoteNumber": null,
      "stockApplied": true,
      "lastError": null
    },
    "note": null,
    "cancelReason": null,
    "placedAt": "2026-10-02T09:15:00.000Z",
    "confirmedAt": "2026-10-02T09:15:00.000Z",
    "preparedAt": "2026-10-02T09:15:00.000Z",
    "shippedAt": "2026-10-02T09:15:00.000Z",
    "deliveredAt": "2026-10-02T09:15:00.000Z",
    "cancelledAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  }
}

order.status_changed

Changement d’étape : confirmée (portée en gestion), préparée, expédiée, livrée ou annulée. previous.status donne l’étape quittée.

الصلاحية المطلوبة لاستقباله : orders:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمorder.status_changed
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataOrderDtoإلزامي
    تفاصيل OrderDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "order.status_changed",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
    "number": "WEB-2026-000042",
    "channel": "STOREFRONT",
    "externalSource": "woocommerce",
    "externalId": "10293",
    "status": "NEW",
    "statusLabel": "Confirmée",
    "paymentStatus": "PENDING",
    "paymentStatusLabel": "Payée",
    "currency": "TND",
    "locale": "fr",
    "customer": {
      "id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
      "email": "client@exemple.tn",
      "name": "Sarra Ben Ali",
      "phone": null
    },
    "shippingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "billingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "delivery": {
      "methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
      "code": "STANDARD",
      "label": "Livraison standard"
    },
    "payment": {
      "method": "CARD",
      "label": "Carte bancaire",
      "reference": "pi_3QxYz"
    },
    "totals": {
      "items": 238,
      "shipping": 7,
      "discount": 0,
      "totalExclTax": 207,
      "tax": 38,
      "total": 245,
      "paid": 245,
      "due": 0
    },
    "lines": [
      {
        "productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
        "sku": "ART-0042",
        "title": "Chaise en chêne massif",
        "quantity": 2,
        "unitPrice": 119,
        "unitPriceExclTax": 100,
        "vatRate": 19,
        "totalExclTax": 200,
        "tax": 38,
        "total": 238
      }
    ],
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "salesDocument": {
        "type": "COMMANDE_VENTE",
        "typeLabel": "Facture",
        "number": "FAC-2026-00042"
      },
      "invoiceNumber": "FAC-2026-00042",
      "creditNoteNumber": null,
      "stockApplied": true,
      "lastError": null
    },
    "note": null,
    "cancelReason": null,
    "placedAt": "2026-10-02T09:15:00.000Z",
    "confirmedAt": "2026-10-02T09:15:00.000Z",
    "preparedAt": "2026-10-02T09:15:00.000Z",
    "shippedAt": "2026-10-02T09:15:00.000Z",
    "deliveredAt": "2026-10-02T09:15:00.000Z",
    "cancelledAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  }
}

order.paid

Encaissement enregistré sur la commande (paymentStatus, totals.paid à jour ; previous.paid donne le montant réglé avant).

الصلاحية المطلوبة لاستقباله : orders:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمorder.paid
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataOrderDtoإلزامي
    تفاصيل OrderDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "order.paid",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
    "number": "WEB-2026-000042",
    "channel": "STOREFRONT",
    "externalSource": "woocommerce",
    "externalId": "10293",
    "status": "NEW",
    "statusLabel": "Confirmée",
    "paymentStatus": "PENDING",
    "paymentStatusLabel": "Payée",
    "currency": "TND",
    "locale": "fr",
    "customer": {
      "id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
      "email": "client@exemple.tn",
      "name": "Sarra Ben Ali",
      "phone": null
    },
    "shippingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "billingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "delivery": {
      "methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
      "code": "STANDARD",
      "label": "Livraison standard"
    },
    "payment": {
      "method": "CARD",
      "label": "Carte bancaire",
      "reference": "pi_3QxYz"
    },
    "totals": {
      "items": 238,
      "shipping": 7,
      "discount": 0,
      "totalExclTax": 207,
      "tax": 38,
      "total": 245,
      "paid": 245,
      "due": 0
    },
    "lines": [
      {
        "productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
        "sku": "ART-0042",
        "title": "Chaise en chêne massif",
        "quantity": 2,
        "unitPrice": 119,
        "unitPriceExclTax": 100,
        "vatRate": 19,
        "totalExclTax": 200,
        "tax": 38,
        "total": 238
      }
    ],
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "salesDocument": {
        "type": "COMMANDE_VENTE",
        "typeLabel": "Facture",
        "number": "FAC-2026-00042"
      },
      "invoiceNumber": "FAC-2026-00042",
      "creditNoteNumber": null,
      "stockApplied": true,
      "lastError": null
    },
    "note": null,
    "cancelReason": null,
    "placedAt": "2026-10-02T09:15:00.000Z",
    "confirmedAt": "2026-10-02T09:15:00.000Z",
    "preparedAt": "2026-10-02T09:15:00.000Z",
    "shippedAt": "2026-10-02T09:15:00.000Z",
    "deliveredAt": "2026-10-02T09:15:00.000Z",
    "cancelledAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  }
}

order.cancelled

Commande annulée (pièces annulées, stock sorti remis).

الصلاحية المطلوبة لاستقباله : orders:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمorder.cancelled
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataOrderDtoإلزامي
    تفاصيل OrderDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "order.cancelled",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "4d5be26d-7215-4ca2-8d6a-d2caf7cb2b25",
    "number": "WEB-2026-000042",
    "channel": "STOREFRONT",
    "externalSource": "woocommerce",
    "externalId": "10293",
    "status": "NEW",
    "statusLabel": "Confirmée",
    "paymentStatus": "PENDING",
    "paymentStatusLabel": "Payée",
    "currency": "TND",
    "locale": "fr",
    "customer": {
      "id": "b8d9d661-908c-4f9a-8102-7062468ebf9d",
      "email": "client@exemple.tn",
      "name": "Sarra Ben Ali",
      "phone": null
    },
    "shippingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "billingAddress": {
      "fullName": null,
      "line1": "12 rue de la Liberté",
      "line2": null,
      "postalCode": "1002",
      "city": "Tunis",
      "country": "TN",
      "notes": null
    },
    "delivery": {
      "methodId": "a1bf3148-0209-4730-8b6d-9431e00e4125",
      "code": "STANDARD",
      "label": "Livraison standard"
    },
    "payment": {
      "method": "CARD",
      "label": "Carte bancaire",
      "reference": "pi_3QxYz"
    },
    "totals": {
      "items": 238,
      "shipping": 7,
      "discount": 0,
      "totalExclTax": 207,
      "tax": 38,
      "total": 245,
      "paid": 245,
      "due": 0
    },
    "lines": [
      {
        "productId": "fb9cb358-8d6c-4602-8818-1c6d44d2c349",
        "sku": "ART-0042",
        "title": "Chaise en chêne massif",
        "quantity": 2,
        "unitPrice": 119,
        "unitPriceExclTax": 100,
        "vatRate": 19,
        "totalExclTax": 200,
        "tax": 38,
        "total": 238
      }
    ],
    "erp": {
      "posted": true,
      "postedAt": "2026-10-02T09:15:00.000Z",
      "salesDocument": {
        "type": "COMMANDE_VENTE",
        "typeLabel": "Facture",
        "number": "FAC-2026-00042"
      },
      "invoiceNumber": "FAC-2026-00042",
      "creditNoteNumber": null,
      "stockApplied": true,
      "lastError": null
    },
    "note": null,
    "cancelReason": null,
    "placedAt": "2026-10-02T09:15:00.000Z",
    "confirmedAt": "2026-10-02T09:15:00.000Z",
    "preparedAt": "2026-10-02T09:15:00.000Z",
    "shippedAt": "2026-10-02T09:15:00.000Z",
    "deliveredAt": "2026-10-02T09:15:00.000Z",
    "cancelledAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  }
}

product.published

Produit mis en vente sur la boutique.

الصلاحية المطلوبة لاستقباله : catalog:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمproduct.published
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataProductDetailDtoإلزامي
    تفاصيل ProductDetailDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "product.published",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "119b8757-dcd7-448a-8b50-ff900831c659",
    "slug": "chaise-chene",
    "sku": "ART-0042",
    "barcode": "6191234567890",
    "title": "Chaise en chêne massif",
    "shortDescription": null,
    "price": {
      "amount": 119,
      "amountExclTax": 100,
      "compareAt": 142.8,
      "compareAtExclTax": 120,
      "vatRate": 19,
      "onSale": true,
      "currency": "TND"
    },
    "unit": "U",
    "images": [
      {
        "url": "https://cdn.exemple.tn/produits/chaise.jpg",
        "alt": "Chaise en chêne",
        "position": 0
      }
    ],
    "availability": {
      "status": "IN_STOCK",
      "statusLabel": "En stock",
      "orderable": true,
      "remaining": 2
    },
    "featured": true,
    "collections": [
      "string"
    ],
    "locale": "fr",
    "url": "https://boutique.exemple.tn/p/chaise-chene",
    "publishedAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "description": "string",
    "seo": {
      "title": null,
      "description": null
    },
    "translations": {}
  }
}

product.updated

Fiche du produit publié modifiée : contenu, visuels, prix (y compris un prix de vente changé dans l’ERP).

الصلاحية المطلوبة لاستقباله : catalog:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمproduct.updated
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataProductDetailDtoإلزامي
    تفاصيل ProductDetailDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "product.updated",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "119b8757-dcd7-448a-8b50-ff900831c659",
    "slug": "chaise-chene",
    "sku": "ART-0042",
    "barcode": "6191234567890",
    "title": "Chaise en chêne massif",
    "shortDescription": null,
    "price": {
      "amount": 119,
      "amountExclTax": 100,
      "compareAt": 142.8,
      "compareAtExclTax": 120,
      "vatRate": 19,
      "onSale": true,
      "currency": "TND"
    },
    "unit": "U",
    "images": [
      {
        "url": "https://cdn.exemple.tn/produits/chaise.jpg",
        "alt": "Chaise en chêne",
        "position": 0
      }
    ],
    "availability": {
      "status": "IN_STOCK",
      "statusLabel": "En stock",
      "orderable": true,
      "remaining": 2
    },
    "featured": true,
    "collections": [
      "string"
    ],
    "locale": "fr",
    "url": "https://boutique.exemple.tn/p/chaise-chene",
    "publishedAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z",
    "description": "string",
    "seo": {
      "title": null,
      "description": null
    },
    "translations": {}
  }
}

product.unpublished

Produit retiré de la vente (dépublié, supprimé de la boutique, ou article archivé dans l’ERP). data ne porte que son identité : il n’est plus lisible par l’API.

الصلاحية المطلوبة لاستقباله : catalog:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمproduct.unpublished
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataProductRefDtoإلزامي
    تفاصيل ProductRefDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "product.unpublished",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "e65d6dc3-fb6f-484e-8889-fe124c062471",
    "slug": "chaise-chene",
    "sku": "ART-0042",
    "published": false,
    "reason": "UNPUBLISHED"
  }
}

inventory.updated

Stock vendable d’un produit publié modifié (vente, réception, ajustement, réservation ou libération par une commande). Les changements rapprochés sont regroupés : data est toujours le stock du moment de l’envoi.

الصلاحية المطلوبة لاستقباله : inventory:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمinventory.updated
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataInventoryDtoإلزامي
    تفاصيل InventoryDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "inventory.updated",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "productId": "333fc016-9dfe-49fa-8662-6c33eaf6d3d9",
    "sku": "ART-0042",
    "tracked": true,
    "status": "IN_STOCK",
    "statusLabel": "En stock",
    "orderable": true,
    "available": 12,
    "reserved": 3,
    "lowStock": true,
    "backorderAllowed": true,
    "asOf": "string"
  }
}

customer.created

Nouveau compte acheteur sur la boutique.

الصلاحية المطلوبة لاستقباله : customers:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمcustomer.created
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataCustomerDtoإلزامي
    تفاصيل CustomerDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "customer.created",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "26aec12b-63ad-42b2-8d53-0aa2549e5b45",
    "email": "client@exemple.tn",
    "firstName": "Sarra",
    "lastName": "Ben Ali",
    "phone": null,
    "acceptsMarketing": true,
    "locale": "fr",
    "active": true,
    "emailVerified": true,
    "ordersCount": 3,
    "addresses": [
      {
        "id": "dfc810fd-44df-4fb2-8a3d-704a54c61e25",
        "label": "Domicile",
        "fullName": null,
        "phone": null,
        "line1": "12 rue de la Liberté",
        "line2": null,
        "postalCode": null,
        "city": null,
        "country": "TN",
        "isDefaultShipping": true,
        "isDefaultBilling": true
      }
    ],
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  }
}

customer.updated

Compte acheteur modifié (profil, carnet d’adresses).

الصلاحية المطلوبة لاستقباله : customers:read

جسم الإرسال

  • idstringإلزامي
    مثالevt_2b7f3c9d4e5a6b7c8d9e0f1a
  • typestringإلزامي
    القيمcustomer.updated
  • apiVersionstringإلزامي
    مثالv1
  • perimeterstringإلزامي
    القيمQUOSHOP
  • createdAtstring (date-time)إلزامي
  • storeobject
    تفاصيل object
  • previousobject
  • dataCustomerDtoإلزامي
    تفاصيل CustomerDto

الترويسات

  • X-QuoShop-Signature
  • X-QuoShop-Event
  • X-QuoShop-Delivery
  • X-QuoShop-Attempt
مثال استجابة
{
  "id": "evt_2b7f3c9d4e5a6b7c8d9e0f1a",
  "type": "customer.updated",
  "apiVersion": "v1",
  "perimeter": "QUOSHOP",
  "createdAt": "2026-10-02T09:15:00.000Z",
  "store": {
    "id": "7ad7c2de-23d9-45ac-888b-bd73631c6fb9",
    "slug": "string"
  },
  "previous": {},
  "data": {
    "id": "26aec12b-63ad-42b2-8d53-0aa2549e5b45",
    "email": "client@exemple.tn",
    "firstName": "Sarra",
    "lastName": "Ben Ali",
    "phone": null,
    "acceptsMarketing": true,
    "locale": "fr",
    "active": true,
    "emailVerified": true,
    "ordersCount": 3,
    "addresses": [
      {
        "id": "dfc810fd-44df-4fb2-8a3d-704a54c61e25",
        "label": "Domicile",
        "fullName": null,
        "phone": null,
        "line1": "12 rue de la Liberté",
        "line2": null,
        "postalCode": null,
        "city": null,
        "country": "TN",
        "isDefaultShipping": true,
        "isDefaultBilling": true
      }
    ],
    "createdAt": "2026-10-02T09:15:00.000Z",
    "updatedAt": "2026-10-02T09:15:00.000Z"
  }
}