Taxes

Events

Action Event name
create a new tax tax.created
update an existing tax tax.updated

Payload example created

{
  "attemptId": "8616e92c-997b-4e2c-9390-b9d305e42070",
  "created": 1623871550,
  "data": {
    "_id": "60ca5028571a9a3fa5203637",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-16T19:25:28.511Z"
    },
    "deleted": false,
    "disabled": false,
    "isBorder": false,
    "name": "VAT",
    "province": "all",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-16T19:25:28.515Z"
    },
    "value": 12000
  },
  "event": "tax.created",
  "id": "2cbe7a06-d376-462c-b824-02d13a1f9aac",
  "livemode": true
}

Payload example updated

{
  "attemptId": "0300494a-4744-42c1-8b86-ee6792c5543f",
  "created": 1623871550,
  "data": {
    "_id": "60ca5028571a9a3fa5203637",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-16T19:25:28.511Z"
    },
    "deleted": false,
    "disabled": false,
    "isBorder": false,
    "name": "VAT",
    "province": "MN",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-16T19:25:34.464Z"
    },
    "value": 12000
  },
  "event": "tax.updated",
  "id": "e9284ba6-ab75-46d4-8173-eccfeef02097",
  "livemode": true
}