Skip to main content

Reopen Teller Till

Overview

Reopens a previously closed teller till, allowing the teller to continue processing transactions.

Command

ReOpenTellerTillCommand

Endpoint

POST /api/bpm/cmd

Request Headers

Authorization: Bearer {access_token}
Content-Type: application/json
X-Tenant-Id: {tenant_id}

Request Body

{
"cmd": "ReOpenTellerTillCommand",
"data": {
"tillId": "TILL-T001",
"reason": "Additional transactions needed for late customer service",
"approvedBy": "SUPER-001"
}
}

Request Parameters

ParameterTypeRequiredDescription
cmdstringYesMust be "ReOpenTellerTillCommand"
dataobjectYesReopen request data
↳ tillIdstringYesUnique identifier of the till to reopen
↳ reasonstringYesReason for reopening the till
↳ approvedBystringNoSupervisor who approved the reopening

Response

Success Response (200 OK)

{
"success": true,
"message": "Teller till reopened successfully",
"data": {
"tillId": "string",
"tellerId": "string",
"status": "Open",
"reopenedDate": "datetime",
"reason": "string",
"approvedBy": "string"
}
}

Error Responses

400 Bad Request

{
"success": false,
"message": "Validation failed",
"errors": ["Till ID is required", "Reason is required"]
}

404 Not Found

{
"success": false,
"message": "Till not found"
}

409 Conflict

{
"success": false,
"message": "Till is already open"
}

Business Rules

  1. Only closed tills can be reopened
  2. Reason must be provided for audit purposes
  3. May require supervisor approval
  4. Original till balance is restored
  5. Creates audit trail entry

Code Example

async function reopenTellerTill(tillId, reason) {
const response = await fetch('/api/bpm/cmd', {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json',
'X-Tenant-Id': tenantId
},
body: JSON.stringify({
commandType: 'ReOpenTellerTillCommand',
data: {
tillId: tillId,
reason: reason
}
})
});

return await response.json();
}

Notes

  • Document reason clearly for audit compliance
  • Verify till balance before reopening
  • Notify relevant parties of till reopening
  • Review transactions before reopening closed tills