TrellisDevelopers

Cash Entries

POST
/cash-management/drawers/{id}/entries

Record during-shift entries including cash in, cash collected, cash out, payout, tip out, cash drop, and no sale.

Path Parameters

id*string
Length1 <= length

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/cash-management/drawers/string/entries" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "entryType": "cash_in"  }'
{  "drawer": {    "id": "string",    "locationId": "string",    "label": "string",    "baseLabel": "string",    "sequenceNumber": 1,    "state": "open",    "assignedStaffUserId": "string",    "lockedToStaffUserId": "string",    "openingStaffUserId": "string",    "startingBalance": 0,    "expectedBalance": 0,    "actualBalance": 0,    "overShortAmount": 0,    "closeoutMode": "standard",    "closeoutRequireApprovalAmount": 0,    "closeoutWarningAmount": 0,    "stateComment": "string",    "parentDrawerId": "string",    "replacementDrawerId": "string",    "payload": {      "property1": null,      "property2": null    },    "openedAt": "2019-08-24T14:15:22Z",    "pausedAt": "2019-08-24T14:15:22Z",    "closedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "entry": {    "id": "string",    "drawerId": "string",    "locationId": "string",    "entryType": "cash_in",    "amount": 0,    "balanceDelta": 0,    "comment": "string",    "reason": "string",    "createdByStaffUserId": "string",    "relatedStaffUserId": "string",    "payload": {      "property1": null,      "property2": null    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "reconciliation": {    "drawerId": "string",    "closeoutMode": "standard",    "startingBalance": 0,    "expectedBalance": 0,    "actualBalance": 0,    "overShortAmount": 0,    "requiresWarningConfirmation": true,    "requiresManagerApproval": true,    "status": "exact"  },  "closeoutSummary": {    "shiftId": "string",    "locationId": "string",    "staffUserId": "string",    "orderIds": [      "string"    ],    "paymentIntentIds": [      "string"    ],    "openOrderIds": [      "string"    ],    "unresolvedPaymentIntentIds": [      "string"    ],    "orderCount": 0,    "openOrderCount": 0,    "paidOpenCheckCount": 0,    "authorizedPaymentCount": 0,    "openTabCount": 0,    "unresolvedPaymentCount": 0,    "capturedPaymentCount": 0,    "refundedPaymentCount": 0,    "grossCapturedAmount": 0,    "grossRefundedAmount": 0,    "netCapturedAmount": 0,    "tipAmount": 0,    "refundedTipAmount": 0,    "blockingReasons": [      "string"    ],    "status": "ready"  }}