Product templates

Events

Action Event name
creating a product template producttemplates.created
deleting a product template producttemplates.deleted

Product payload created

{
  "attemptId": "a4fad7c6-e45c-4ceb-9f33-1d75476dfbaa",
  "created": 1629395100,
  "data": {
    "_id": "611e988223b18f147876a045",
    "createdAt": {
      "offset": 0,
      "value": "2021-08-19T17:44:34.185Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "printerId": "default",
    "productId": "52de9df700340f067c00000d",
    "templateId": "default",
    "updatedAt": {
      "offset": 0,
      "value": "2021-08-19T17:44:34.185Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "producttemplates.created",
  "id": "348fee9c-58d8-4224-9367-fd6dd84b0447",
  "livemode": true
}

Product payload deleted

{
  "attemptId": "22583f45-65af-48b1-a3ff-1d7bd7035fee",
  "created": 1629395119,
  "data": {
    "productTemplateId": "611e987c0721eb147e3ec8ab"
  },
  "event": "producttemplates.deleted",
  "id": "e757db1c-44b6-4d00-9565-f210a90662e2",
  "livemode": live
}