Accounting items

Events

Action Event name
creating an accounting item accountingitem.created
updating an accounting item accountingitem.updated

Payload example created

{
  "attemptId": "8547b567-9aac-484a-bbfa-852ebade2c8b",
  "created": 1635864614,
  "data": {
    "displayTotalTaxes": 0,
    "displayTotal": 1500000,
    "referencedTransactionId": "8773SLAR",
    "totalForTransaction": 0,
    "agencyName": "",
    "shiftId": "61321ec8c98cff5ef3f28137",
    "total": 1500000,
    "createdAt": { "offset": 0, "value": "2021-11-02T14:49:49.602Z" },
    "promos": [],
    "displayTotalWithoutTax": 1500000,
    "lastName": "Lastname",
    "trxId": "6181500dea91440691123dcb",
    "totalTaxes": 0,
    "displayTicketFeesTotal": 0,
    "fees": [],
    "shiftLocation": {
      "name": "Dev Station",
      "stationId": "61321ebba074c113ea6118ae"
    },
    "displayPrice": 0,
    "displayTotalForTransaction": 0,
    "displayCurrency": null,
    "price": 1500000,
    "type": "account_payable",
    "agencyId": "",
    "displayTransactionFees": 0,
    "transactionId": "9SKGPTZ5",
    "ticketFees": [],
    "displayTaxesTotal": 0,
    "transactionFees": 0,
    "_id": "6181500dea91440691123dcc",
    "taxExempted": false,
    "totalWithoutTax": 1500000,
    "accountName": "NewInterline",
    "customerNumber": "923-386-383",
    "operationId": "7a170387-8d71-437a-968b-b81121a8a8fb",
    "extra": { "phone": "" },
    "status": "paid",
    "displayId": "AP-8773SLAR",
    "cartId": "6181500dea91440691123dc7",
    "name": "Account Payable",
    "providerName": "Tal Break Stuff",
    "deleted": false,
    "taxesTotal": 0,
    "updatedAt": { "offset": 0, "value": "2021-11-02T14:50:06.069Z" },
    "paymentRates": [
      {
        "displayTotal": 1500000,
        "itemDisplayId": "AP-8773SLAR",
        "itemId": "6181500dea91440691123dcc",
        "rates": [{ "ratio": "100.00", "type": "cash" }],
        "total": 1500000
      }
    ],
    "details": {},
    "ratios": [{ "displayTotal": 1500000, "total": 1500000, "type": "cash" }],
    "itemId": "AP-8773SLAR",
    "firstName": "Test",
    "agentId": "",
    "email": "test@betterez.com",
    "shiftNumber": "S-GKFVCVT",
    "taxes": [],
    "accountId": "612e3e5a9afc794cdd77f8f0",
    "displayDiscounts": 0,
    "discounts": 0,
    "referencedTrxId": "6181500dea91440691123dc7",
    "productFamily": "accountingItem",
    "ssrs": [],
    "providerId": "52a377ec430c7d4e220001fc",
    "ticketFeesTotal": 0
  },
  "event": "accountingitem.created",
  "id": "090fcae3-890f-411c-8dce-41b553788327",
  "livemode": false
}

Payload example updated

{
  "attemptId": "8547b567-9aac-484a-bbfa-852ebade2c8b",
  "created": 1635864614,
  "data": {
    "displayTotalTaxes": 0,
    "displayTotal": 1500000,
    "referencedTransactionId": "8773SLAR",
    "totalForTransaction": 0,
    "agencyName": "",
    "shiftId": "61321ec8c98cff5ef3f28137",
    "total": 1500000,
    "createdAt": { "offset": 0, "value": "2021-11-02T14:49:49.602Z" },
    "promos": [],
    "displayTotalWithoutTax": 1500000,
    "lastName": "Lastname",
    "trxId": "6181500dea91440691123dcb",
    "totalTaxes": 0,
    "displayTicketFeesTotal": 0,
    "fees": [],
    "shiftLocation": {
      "name": "Dev Station",
      "stationId": "61321ebba074c113ea6118ae"
    },
    "displayPrice": 0,
    "displayTotalForTransaction": 0,
    "displayCurrency": null,
    "price": 1500000,
    "type": "account_payable",
    "agencyId": "",
    "displayTransactionFees": 0,
    "transactionId": "9SKGPTZ5",
    "ticketFees": [],
    "displayTaxesTotal": 0,
    "transactionFees": 0,
    "_id": "6181500dea91440691123dcc",
    "taxExempted": false,
    "totalWithoutTax": 1500000,
    "accountName": "NewInterline",
    "customerNumber": "923-386-383",
    "operationId": "7a170387-8d71-437a-968b-b81121a8a8fb",
    "extra": { "phone": "" },
    "status": "paid",
    "displayId": "AP-8773SLAR",
    "cartId": "6181500dea91440691123dc7",
    "name": "Account Payable",
    "providerName": "Tal Break Stuff",
    "deleted": false,
    "taxesTotal": 0,
    "updatedAt": { "offset": 0, "value": "2021-11-02T15:21:08.015Z" },
    "paymentRates": [
      {
        "displayTotal": 1500000,
        "itemDisplayId": "AP-8773SLAR",
        "itemId": "6181500dea91440691123dcc",
        "rates": [{ "ratio": "100.00", "type": "cash" }],
        "total": 1500000
      }
    ],
    "details": {},
    "ratios": [{ "displayTotal": 1500000, "total": 1500000, "type": "cash" }],
    "itemId": "AP-8773SLAR",
    "firstName": "Test",
    "agentId": "",
    "email": "test@betterez.com",
    "shiftNumber": "S-GKFVCVT",
    "taxes": [],
    "accountId": "612e3e5a9afc794cdd77f8f0",
    "displayDiscounts": 0,
    "discounts": 0,
    "referencedTrxId": "6181500dea91440691123dc7",
    "productFamily": "accountingItem",
    "ssrs": [],
    "providerId": "52a377ec430c7d4e220001fc",
    "ticketFeesTotal": 0
  },
  "event": "accountingitem.created",
  "id": "090fcae3-890f-411c-8dce-41b553788327",
  "livemode": false
}