Gift certificates definition

Events

Action Event name
create a new gift certificate definition giftcertificate.definition.created
update an existing gift certificate definition giftcertificate.definition.updated
delete an existing gift certificate definition giftcertificate.definition.deleted

Payload example created

{
  "attemptId": "16dd2aa7-f6ed-4e68-8e98-270365dd2523",
  "created": 1623794091,
  "data": {
    "_id": "60c921a917bda93f5c896bf4",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:54:49.506Z"
    },
    "currencyCode": "",
    "deleted": false,
    "description": "TEst",
    "disabled": false,
    "image": "",
    "name": "Test",
    "price": 301000,
    "savings": 33000,
    "taxable": false,
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:54:49.510Z"
    },
    "userId": "55fc2f318791db6e1a0000b6",
    "value": 401000
  },
  "event": "giftcertificate.definition.created",
  "id": "1c38da11-2e46-4d8a-bd4f-4e005673b3fd",
  "livemode": true
}

Payload example updated

{
  "attemptId": "fe0b9466-f545-488f-8a03-bbfbf12df652",
  "created": 1623793883,
  "data": {
    "_id": "5f3e98216501256cff449715",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2020-08-20T15:34:57.193Z"
    },
    "currencyCode": "",
    "deleted": false,
    "description": "new gift",
    "disabled": false,
    "image": "",
    "name": "new gift",
    "price": 5000000,
    "savings": 50000,
    "taxable": false,
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:50:40.749Z"
    },
    "userId": "55fc2f318791db6e1a0000b6",
    "value": 7500000
  },
  "event": "giftcertificate.definition.updated",
  "id": "23a37788-7936-43d7-aafa-82714ddc99d6",
  "livemode": false
}

Payload example deleted

{
  "attemptId": "401b9daf-9afe-4c21-98a6-b47970e7e947",
  "created": 1623794095,
  "data": {
    "_id": "60c921a917bda93f5c896bf4",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:54:49.506Z"
    },
    "currencyCode": "",
    "deleted": false,
    "description": "TEst",
    "disabled": false,
    "image": "",
    "name": "Test",
    "price": 301000,
    "savings": 33000,
    "taxable": false,
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:54:54.787Z"
    },
    "userId": "55fc2f318791db6e1a0000b6",
    "value": 401000
  },
  "event": "giftcertificate.definition.deleted",
  "id": "c4c2b2ed-d6d4-4f8c-ae7b-bace455b11f8",
  "livemode": true
}