Deposits
Deposit Transactions are performed as a part of Cash Management at POS API, which allows users to declare how much currency to send to the bank.
The Deposits documentation includes the following sections:
Deposit Status - The status of a given deposit created by employee.
Example Deposit - A sample JSON illustrating a typical payload sent to the webhook URL.
Data Models - Defines the objects and attributes that make up the Deposit Object.
Deposit Status
This field describes the status of a given Deposit created by an employee.
Deposit Status | Description |
|---|---|
Open | The Deposit has not yet been finalized. |
Finalized | The Deposit is complete and Final. |
Deleted | The Deposit has been deleted by the employee. |
Example Deposit Object
The code below shows an example of a Deposit Object that is published to the webhook URL:
"data": {
"entityName": "Deposit",
"data": {
"company_id": "5ddab0e3d93109001df6a76c",
"created_at": "2021-05-25T14:24:59.880Z",
"deposit_items": [
{
"amount": 1362.46,
"description": "Site #1234",
"_id": "ada6bd46-9e97-4c7e-ba72-716364283e37",
"type": "CASH",
"created_at": "20XX-05-25T14:23:30.799Z",
"owner_id": "606b5ed8b1eaee0001cca7c6",
"session_number": 2100,
"source_id": "5bddc467-481c-4c3e-96fd-14ba701e58de",
"display_date": "2021-05-25T14:23:30.801Z"
}
],
"_id": "bc268787-333b-4c37-9ca0-54a8b82cce75",
"terminal_id": "5e1626a6cbdbfa001fff6b21",
"comment": "",
"business_date": "20XX-05-25T00:00:00.000Z",
"updated_at": "20XX-05-25T14:24:59.880Z",
"itemizedCounts_items": [
{
"payment_type": "CASH",
"expected_amount": 1362.46,
"counted_amount": 1362.46,
"counted_denominations": [
{
"name": "Quarters",
"value": 0.25,
"quantity": 1,
"denomination_type": "coin"
},
{
"name": "Dimes",
"value": 0.1,
"quantity": 2,
"denomination_type": "coin"
},
{
"name": "Nickels",
"value": 0.05,
"quantity": 0,
"denomination_type": "coin"
},
{
"name": "Pennies",
"value": 0.01,
"quantity": 1,
"denomination_type": "coin"
},
{
"name": "Hundreds",
"value": 100,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Fifties",
"value": 50,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Twenties",
"value": 20,
"quantity": 60,
"denomination_type": "banknote"
},
{
"name": "Tens",
"value": 10,
"quantity": 10,
"denomination_type": "banknote"
},
{
"name": "Fives",
"value": 5,
"quantity": 10,
"denomination_type": "banknote"
},
{
"name": "Ones",
"value": 1,
"quantity": 12,
"denomination_type": "banknote"
},
{
"name": "Amount",
"value": 0,
"quantity": 0,
"denomination_type": "other"
}
],
"_id": "052e314d-a7d9-4b3e-9583-e56173d4c13b"
},
{
"payment_type": "CHECK",
"expected_amount": 0,
"counted_amount": 0,
"counted_denominations": [
{
"name": "Amount",
"value": 0,
"quantity": 0,
"denomination_type": "other"
}
],
"_id": "7caf4da7-4bcb-4be2-af0b-897a36902582"
}
],
"last_updated_by": "606b5f2eb1eaee0001cca7c8",
"site_id": "5ff33b75a3ea4100089bdbab",
"status": "finalized",
"name": "Deposit_9607_2"
}
}For more information, see Data Models General Structure - Deposits.
Data Models
Data Models General Structure - Deposits
The table below defines the objects and attributes the Data Stream service sends as part of the Deposits object.
Field Name | Type | Description |
|---|---|---|
| string | The unique identifier (UID) of the deposit document. Example: "id": "80ef7622-6797-43f1-870f-143037c045a1" |
| string | The current business date within which depositing logic was performed. Example: "business_date": "20XX-06-08T00:00:00.000Z" |
| string/ UUID Length: 36 | The universally unique identifier (UUID) for the company that performed this deposit transaction. Example: "company_id": "60a29826879a1a0007021082" |
| string | Provides an optional comment value stored by the point of sale (POS) terminal during a deposit. Example: "comment": "LB2" |
| string | The Date/Time value when the deposit was created. Example: "created_at": "20XX-05-25T14:24:59.880Z |
| array | The items which have been included in the current deposit, such as Sales, Cash Pull, Other Amounts, and information about each item included in the deposit transaction. Structure: deposit_items Array |
| array | An array of objects that detail each denomination that was counted as part of the deposit process. Structure: itemizedCounts_items Array |
| string | The UID of the last employee to change the deposit. Example: "last_updated_by": "60c71dd2c89b350001338a |
| string | Provides an optional name associated with the deposit. A default value is generated, but may be overwritten with user input. The name is auto-generated as: |
| string/ UUID Length: 36 | The UID of the site within which the deposit transaction was performed. Example: "site_id": "60b0b81b0d2b510007c9606f" |
| string | Describes the status of the deposit. The available values are as follows:
Example: "status": "finalized" |
| string/ UUID Length: 36 | The UID of the terminal through which the deposit was performed. Example: "terminal_id": "5e73ae520f100271673b3f39" |
| string | The timestamp of the deposit updating the operation. Example: "updated_at": "20XX-07-09T07:30:22.022Z" |
deposit_items Array
Field Field | Type | Description |
|---|---|---|
| string | The unique identifier (UID) for this deposit record |
| string | Describes the pay type associated with the deposit. The available values are as follows:
|
| integer | Represents the drawer session from which the deposit item was added. For Cash Drawer - The reference to the drawer session's WarningFor Cash Pull, this field is absent. |
| string | It could be a reference to the different entities:
Otherwise, it is set to null. |
| string | Could be a reference to different entities:
Otherwise, this field describes the employee that added this item to the deposit. |
| string | For Cash Pull and Cash Drawer, this is a reference to the drawer event's WarningFor Another Amount deposit item, this field is absent. |
| decimal | Describes how much of the deposit item is included |
| string | The deposit description which was added by the employee during the creation step. WarningFor Cash Pull, this field contains the event actor's description. |
| string | For Cash Drawer - The reference to the drawer session's WarningFor other types, this field is absent. |
Sample Deposits Object deposit_items Array
"deposit_items":
[
{
"_id":
"ecb3ac5c-9447-4ae3-9938-c4494d49e96f",
"type": "CASH",
"source_id": null,
"owner_id": "60c71dd2c89b350001338a20",
"amount": 12,
"description": "Deposit from 07/08 "
}
]itemizedCounts_items Array
Field Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| string | The unique identifier (UID) of the calculated Item | |||||||||||||||
| string | Describes that payment type that was deposited. It correlates with the payment type "name" value. The available values are as follows:
| |||||||||||||||
| decimal | Represents how much money the system calculated as "expected," It represents the sum of all drawer counts. | |||||||||||||||
| decimal | Captures the sum of the counted denominations for the pay type. | |||||||||||||||
| array | Captures each denomination that was counted. The object includes name, value, and quantity fields. Structure:
|
Sample Deposits Object itemizedCounts_items Array
"itemizedCounts_items": [
{
"payment_type": "CASH",
"expected_amount": 12,
"counted_amount": 12,
"counted_denominations": [
{
"name": "Quarters",
"value": 0.25,
"quantity": 48,
"denomination_type": "coin"
},
{
"name": "Dimes",
"value": 0.1,
"quantity": 0,
"denomination_type": "coin"
},
{
"name": "Nickels",
"value": 0.05,
"quantity": 0,
"denomination_type": "coin"
},
{
"name": "Pennies",
"value": 0.01,
"quantity": 0,
"denomination_type": "coin"
},
{
"name": "Hundreds",
"value": 100,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Fifties",
"value": 50,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Twenties",
"value": 20,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Tens",
"value": 10,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Fives",
"value": 5,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Ones",
"value": 1,
"quantity": 0,
"denomination_type": "banknote"
},
{
"name": "Amount",
"value": 0,
"quantity": 0,
"denomination_type": "other"
}
],
"_id": "c26692be-9e54-431b-be41-236c1805306a"
},
{
"payment_type": "CHECK",
"expected_amount": 0,
"counted_amount": 0,
"counted_denominations": [
{
"name": "Amount",
"value": 0,
"denomination_type": "other"
}
],
"_id": "7df85893-9578-4b32-85b1-8dc0f1b2230b"
}
]