Tellers
Create A Teller
curl-request
$ curl 'http://localhost:8080/offices/office1234/teller/' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"code" : "1234",
"password" : "password",
"cashdrawLimit" : 5000000,
"tellerAccountIdentifier" : "TEL123BA",
"vaultAccountIdentifier" : "TEL123BA",
"chequesReceivableAccount" : "CHA2018XYZ",
"cashOverShortAccount" : "CHA2018XYZ",
"denominationRequired" : false,
"assignedEmployee" : "Nakuve Lah"
}'
POST /offices/office1234/teller/ HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 317
{
"code" : "1234",
"password" : "password",
"cashdrawLimit" : 5000000,
"tellerAccountIdentifier" : "TEL123BA",
"vaultAccountIdentifier" : "TEL123BA",
"chequesReceivableAccount" : "CHA2018XYZ",
"cashOverShortAccount" : "CHA2018XYZ",
"denominationRequired" : false,
"assignedEmployee" : "Nakuve Lah"
}
$ echo '{
"code" : "1234",
"password" : "password",
"cashdrawLimit" : 5000000,
"tellerAccountIdentifier" : "TEL123BA",
"vaultAccountIdentifier" : "TEL123BA",
"chequesReceivableAccount" : "CHA2018XYZ",
"cashOverShortAccount" : "CHA2018XYZ",
"denominationRequired" : false,
"assignedEmployee" : "Nakuve Lah"
}' | http POST 'http://localhost:8080/offices/office1234/teller/' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Code |
|
|
Password |
|
|
Cash Withdrawal Limit |
|
|
Teller Account Identifier |
|
|
Vault Account Identifier |
|
|
Cheques Receivable Account |
|
|
Cash Over Short Account |
|
|
Denomination Required |
|
|
Assigned Employee |
HTTP/1.1 202 Accepted
Find A Teller
curl-request
$ curl 'http://localhost:8080/offices/office412/teller/4123' -i -H 'Content-Type: application/json' -H 'Accept: */*'
GET /offices/office412/teller/4123 HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
$ http GET 'http://localhost:8080/offices/office412/teller/4123' 'Content-Type:application/json' 'Accept:*/*'
Path | Type | Description |
---|---|---|
|
|
Code |
|
|
Password |
|
|
Cash Withdrawal Limit |
|
|
Teller Account Identifier |
|
|
Vault Account Identifier |
|
|
Cheques Receivable Account |
|
|
Cash Over Short Account |
|
|
Denomination Required |
|
|
Assigned Employee |
|
|
State of Teller |
|
|
Employee who created teller |
|
|
Date employee was created |
|
|
Employee who last modified teller |
|
|
Date when teller was last modified |
|
|
Last employee who opened teller |
|
|
Last time teller was opened |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 500
{
"code" : "4123",
"password" : null,
"cashdrawLimit" : 4.0,
"tellerAccountIdentifier" : "TEL412AC",
"vaultAccountIdentifier" : "TEL412AC",
"chequesReceivableAccount" : "CHA2018AB",
"cashOverShortAccount" : "CHA2018AB",
"denominationRequired" : false,
"assignedEmployee" : "Chi Ndohah",
"state" : "CLOSED",
"createdBy" : "homer",
"createdOn" : "2018-06-25T01:55:41.699Z",
"lastModifiedBy" : null,
"lastModifiedOn" : null,
"lastOpenedBy" : null,
"lastOpenedOn" : null
}
Fetch Tellers In An Office
curl-request
$ curl 'http://localhost:8080/offices/office247/teller/' -i -H 'Content-Type: application/json' -H 'Accept: */*'
GET /offices/office247/teller/ HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
$ http GET 'http://localhost:8080/offices/office247/teller/' 'Content-Type:application/json' 'Accept:*/*'
Path | Type | Description |
---|---|---|
|
|
Code for first teller |
|
|
first teller’s Password |
|
|
first teller’s Cash Withdrawal Limit |
|
|
first Teller Account Identifier |
|
|
first teller Vault Account Identifier |
|
|
Cheques Receivable Account |
|
|
Cash Over Short Account |
|
|
first teller’s Denomination Required |
|
|
first teller’s Assigned Employee |
|
|
State of first Teller |
|
|
Employee who created teller |
|
|
Date employee was created |
|
|
Employee who last modified teller |
|
|
Date when teller was last modified |
|
|
Last employee who opened teller |
|
|
Last time teller was opened |
|
|
Second teller’s Code |
|
|
Second teller’s Password |
|
|
Cash Withdrawal Limit |
|
|
Second Teller’s Account Identifier |
|
|
Vault Account Identifier |
|
|
Cheques Receivable Account |
|
|
Cash Over Short Account |
|
|
Denomination Required |
|
|
second teller’s Assigned Employee |
|
|
State of second Teller |
|
|
Employee who created teller |
|
|
Date employee was created |
|
|
Employee who last modified teller |
|
|
Date when teller was last modified |
|
|
Last employee who opened teller |
|
|
Last time teller was opened |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 1032
[ {
"code" : "412389",
"password" : null,
"cashdrawLimit" : 4000000.0,
"tellerAccountIdentifier" : "TEL412389C",
"vaultAccountIdentifier" : "TEL412389C",
"chequesReceivableAccount" : "CHA2018ABC",
"cashOverShortAccount" : "CHA2018ABC",
"denominationRequired" : false,
"assignedEmployee" : "Chi Ndi",
"state" : "CLOSED",
"createdBy" : "homer",
"createdOn" : "2018-06-25T02:26:23.483Z",
"lastModifiedBy" : null,
"lastModifiedOn" : null,
"lastOpenedBy" : null,
"lastOpenedOn" : null
}, {
"code" : "512389",
"password" : null,
"cashdrawLimit" : 5000000.0,
"tellerAccountIdentifier" : "TEL512389D",
"vaultAccountIdentifier" : "TEL512389D",
"chequesReceivableAccount" : "DHA2018ABD",
"cashOverShortAccount" : "DHA2018ABD",
"denominationRequired" : false,
"assignedEmployee" : "Chia Chenjo",
"state" : "CLOSED",
"createdBy" : "homer",
"createdOn" : "2018-06-25T02:26:23.628Z",
"lastModifiedBy" : null,
"lastModifiedOn" : null,
"lastOpenedBy" : null,
"lastOpenedOn" : null
} ]
Update A Teller
curl-request
$ curl 'http://localhost:8080/offices/IKdUkzrfgfWGellLIDQPAgErEzWyLHqM/teller/6789' -i -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"code" : "6789",
"password" : "ncqenizKV",
"cashdrawLimit" : 15000.0,
"tellerAccountIdentifier" : "TEL6789Z1",
"vaultAccountIdentifier" : "TEL6789Z1",
"chequesReceivableAccount" : "ZHX2018ABZ",
"cashOverShortAccount" : "ZHX2018ABZ",
"denominationRequired" : true,
"assignedEmployee" : "Dioh Dione"
}'
PUT /offices/IKdUkzrfgfWGellLIDQPAgErEzWyLHqM/teller/6789 HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 319
{
"code" : "6789",
"password" : "ncqenizKV",
"cashdrawLimit" : 15000.0,
"tellerAccountIdentifier" : "TEL6789Z1",
"vaultAccountIdentifier" : "TEL6789Z1",
"chequesReceivableAccount" : "ZHX2018ABZ",
"cashOverShortAccount" : "ZHX2018ABZ",
"denominationRequired" : true,
"assignedEmployee" : "Dioh Dione"
}
$ echo '{
"code" : "6789",
"password" : "ncqenizKV",
"cashdrawLimit" : 15000.0,
"tellerAccountIdentifier" : "TEL6789Z1",
"vaultAccountIdentifier" : "TEL6789Z1",
"chequesReceivableAccount" : "ZHX2018ABZ",
"cashOverShortAccount" : "ZHX2018ABZ",
"denominationRequired" : true,
"assignedEmployee" : "Dioh Dione"
}' | http PUT 'http://localhost:8080/offices/IKdUkzrfgfWGellLIDQPAgErEzWyLHqM/teller/6789' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Code |
|
|
Password |
|
|
Cash Withdrawal Limit |
|
|
Teller Account Identifier |
|
|
Vault Account Identifier |
|
|
Cheques Receivable Account |
|
|
Cash Over Short Account |
|
|
Denomination Required |
|
|
Assigned employee |
HTTP/1.1 202 Accepted
Open A Teller
curl-request
$ curl 'http://localhost:8080/offices/moritavo/teller/689/commands' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"action" : "OPEN",
"adjustment" : "NONE",
"assignedEmployeeIdentifier" : "Ashu"
}'
POST /offices/moritavo/teller/689/commands HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 89
{
"action" : "OPEN",
"adjustment" : "NONE",
"assignedEmployeeIdentifier" : "Ashu"
}
$ echo '{
"action" : "OPEN",
"adjustment" : "NONE",
"assignedEmployeeIdentifier" : "Ashu"
}' | http POST 'http://localhost:8080/offices/moritavo/teller/689/commands' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Action |
|
|
Adjustment enum Adjustment { |
|
|
Teller Account Identifier |
HTTP/1.1 202 Accepted
Close A Teller
curl-request
$ curl 'http://localhost:8080/offices/antananarivo/teller/7239/commands' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"action" : "CLOSE",
"adjustment" : "NONE",
"assignedEmployeeIdentifier" : "Antah"
}'
POST /offices/antananarivo/teller/7239/commands HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 91
{
"action" : "CLOSE",
"adjustment" : "NONE",
"assignedEmployeeIdentifier" : "Antah"
}
$ echo '{
"action" : "CLOSE",
"adjustment" : "NONE",
"assignedEmployeeIdentifier" : "Antah"
}' | http POST 'http://localhost:8080/offices/antananarivo/teller/7239/commands' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Action |
|
|
Adjustment enum Adjustment { |
|
|
Teller Account Identifier |
HTTP/1.1 202 Accepted
Get Teller’s Balance
curl-request
$ curl 'http://localhost:8080/offices/fesse/teller/kombone987/balance' -i -H 'Content-Type: application/json' -H 'Accept: */*'
GET /offices/fesse/teller/kombone987/balance HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
$ http GET 'http://localhost:8080/offices/fesse/teller/kombone987/balance' 'Content-Type:application/json' 'Accept:*/*'
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 173
{
"day" : null,
"cashOnHand" : 0,
"cashReceivedTotal" : 0,
"cashDisbursedTotal" : 0,
"chequesReceivedTotal" : 0,
"cashEntries" : null,
"chequeEntries" : null
}
Path | Type | Description |
---|---|---|
|
|
Code |
|
|
Password |
|
|
Cash Withdrawal Limit |
|
|
Teller Account Identifier |
|
|
Vault Account Identifier |
|
|
Cheques Receivable Account |
|
|
Cash Over Short Account |
Pause A Teller
curl-request
$ curl 'http://localhost:8080/teller/tellerrwR' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d 'command=PAUSE'
POST /teller/tellerrwR HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
command=PAUSE
$ http --form POST 'http://localhost:8080/teller/tellerrwR' 'Content-Type:application/json' 'Accept:application/json' 'command=PAUSE'
HTTP/1.1 202 Accepted
Delete A Teller
curl-request
$ curl 'http://localhost:8080/offices/kakeOne/teller/9876' -i -X DELETE -H 'Content-Type: application/json' -H 'Accept: application/json'
DELETE /offices/kakeOne/teller/9876 HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
$ http DELETE 'http://localhost:8080/offices/kakeOne/teller/9876' 'Content-Type:application/json' 'Accept:application/json'
HTTP/1.1 202 Accepted
Teller Operations
Unlock A Drawer
curl-request
$ curl 'http://localhost:8080/teller/tellernGV/drawer' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"employeeIdentifier":"homer","password":"TRAZagcmz2dO"}'
POST /teller/tellernGV/drawer HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 56
{"employeeIdentifier":"homer","password":"TRAZagcmz2dO"}
$ echo '{"employeeIdentifier":"homer","password":"TRAZagcmz2dO"}' | http POST 'http://localhost:8080/teller/tellernGV/drawer' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Teller Code |
|
|
Password to unlock drawer |
|
|
Cash draw limit |
|
|
Teller Account Identifier |
|
|
Vault account identifier |
|
|
Cheques receivables account |
|
|
Cash Over/Short Account |
|
|
Denomination Required ? |
|
|
Assigned Employee |
|
|
State of Teller |
|
|
Employee who created teller |
|
|
Date employee was created |
|
|
Employee who last modified teller |
|
|
Date when teller was last modified |
|
|
Last employee who opened teller |
|
|
Last time teller was opened |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 557
{
"code" : "tellernGV",
"password" : null,
"cashdrawLimit" : 10000.0,
"tellerAccountIdentifier" : "telAcchBI",
"vaultAccountIdentifier" : "telAccDiK",
"chequesReceivableAccount" : "cheqRecjUs",
"cashOverShortAccount" : "cashOSAccjlc",
"denominationRequired" : false,
"assignedEmployee" : "homer",
"state" : "OPEN",
"createdBy" : "homer",
"createdOn" : "2018-06-25T13:56:42.69Z",
"lastModifiedBy" : "homer",
"lastModifiedOn" : "2018-06-25T13:56:42.871Z",
"lastOpenedBy" : "homer",
"lastOpenedOn" : "2018-06-25T13:56:42.871Z"
}
Open An Account
curl-request
$ curl 'http://localhost:8080/teller/tellerjjt/transactions' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"transactionType" : "ACCO",
"transactionDate" : "2018-06-25T15:08:34.95Z",
"customerIdentifier" : "CustomerOne",
"productIdentifier" : "product101",
"customerAccountIdentifier" : "Customer001",
"clerk" : "homer",
"amount" : 1234.56
}'
POST /teller/tellerjjt/transactions HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 249
{
"transactionType" : "ACCO",
"transactionDate" : "2018-06-25T15:08:34.95Z",
"customerIdentifier" : "CustomerOne",
"productIdentifier" : "product101",
"customerAccountIdentifier" : "Customer001",
"clerk" : "homer",
"amount" : 1234.56
}
$ echo '{
"transactionType" : "ACCO",
"transactionDate" : "2018-06-25T15:08:34.95Z",
"customerIdentifier" : "CustomerOne",
"productIdentifier" : "product101",
"customerAccountIdentifier" : "Customer001",
"clerk" : "homer",
"amount" : 1234.56
}' | http POST 'http://localhost:8080/teller/tellerjjt/transactions' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Transaction type |
|
|
Transaction Date |
|
|
Customer Identifier |
|
|
Product identifier |
|
|
Customer’s account |
|
|
Clerk’s name |
|
|
Amount in account |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 118
{
"tellerTransactionIdentifier" : "DUGeg5L8jMw18zhtxwteftQKDBV8oklp",
"totalAmount" : 1234.56,
"charges" : [ ]
}
Path | Type | Description |
---|---|---|
|
|
Teller transaction |
|
|
Total Amount |
|
|
List of Charges |
Close An Account
curl-request
$ curl 'http://localhost:8080/teller/tellerUxU/transactions' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"transactionType" : "ACCC",
"transactionDate" : "2018-06-25T15:07:29.682Z",
"customerIdentifier" : "CustomerTwo",
"productIdentifier" : "product102",
"customerAccountIdentifier" : "Customer002",
"clerk" : "homer",
"amount" : 1234.56
}'
POST /teller/tellerUxU/transactions HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 250
{
"transactionType" : "ACCC",
"transactionDate" : "2018-06-25T15:07:29.682Z",
"customerIdentifier" : "CustomerTwo",
"productIdentifier" : "product102",
"customerAccountIdentifier" : "Customer002",
"clerk" : "homer",
"amount" : 1234.56
}
$ echo '{
"transactionType" : "ACCC",
"transactionDate" : "2018-06-25T15:07:29.682Z",
"customerIdentifier" : "CustomerTwo",
"productIdentifier" : "product102",
"customerAccountIdentifier" : "Customer002",
"clerk" : "homer",
"amount" : 1234.56
}' | http POST 'http://localhost:8080/teller/tellerUxU/transactions' 'Content-Type:application/json' 'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Transaction type |
|
|
Transaction Date |
|
|
Customer Identifier |
|
|
Product identifier |
|
|
Customer’s account |
|
|
Clerk’s name |
|
|
Amount in account |
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 118
{
"tellerTransactionIdentifier" : "mQOXFk0uJQNDnkLaIOtcN0pCvUZTaNdq",
"totalAmount" : 1234.56,
"charges" : [ ]
}
Path | Type | Description |
---|---|---|
|
|
Teller transaction |
|
|
Total Amount |
|
|
List of Charges |
Confirm A Transaction
curl-request
$ curl 'http://localhost:8080/teller/telleriAk/transactions/BW36FVpAxs6IkM6Jk2XTs59Tph37ztYc' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d 'command=CONFIRM&charges=included'
POST /teller/telleriAk/transactions/BW36FVpAxs6IkM6Jk2XTs59Tph37ztYc HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
command=CONFIRM&charges=included
$ http --form POST 'http://localhost:8080/teller/telleriAk/transactions/BW36FVpAxs6IkM6Jk2XTs59Tph37ztYc' 'Content-Type:application/json' 'Accept:application/json' 'command=CONFIRM' 'charges=included'
HTTP/1.1 202 Accepted
Cancel A Transaction
curl-request
$ curl 'http://localhost:8080/teller/tellerMZJ/transactions/y5pHoqwuvPG9rsGhLqFDhEtcc2Za2MIQ' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d 'command=CANCEL&charges=excluded'
POST /teller/tellerMZJ/transactions/y5pHoqwuvPG9rsGhLqFDhEtcc2Za2MIQ HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
command=CANCEL&charges=excluded
$ http --form POST 'http://localhost:8080/teller/tellerMZJ/transactions/y5pHoqwuvPG9rsGhLqFDhEtcc2Za2MIQ' 'Content-Type:application/json' 'Accept:application/json' 'command=CANCEL' 'charges=excluded'
HTTP/1.1 202 Accepted
Save A Denomination
curl-request
$ curl 'http://localhost:8080/offices/kakeTwo/teller/7843/denominations' -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
"countedTotal" : 200000,
"note" : "New Denomination",
"adjustingJournalEntry" : "Adjusted J.E.",
"createdOn" : "2018-02-27"
}'
POST /offices/kakeTwo/teller/7843/denominations HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 135
{
"countedTotal" : 200000,
"note" : "New Denomination",
"adjustingJournalEntry" : "Adjusted J.E.",
"createdOn" : "2018-02-27"
}
$ echo '{
"countedTotal" : 200000,
"note" : "New Denomination",
"adjustingJournalEntry" : "Adjusted J.E.",
"createdOn" : "2018-02-27"
}' | http POST 'http://localhost:8080/offices/kakeTwo/teller/7843/denominations' 'Content-Type:application/json' 'Accept:application/json'
HTTP/1.1 400 Bad Request