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"
}'
http-request
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"
}
httpie-request
$ 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'
Table 1. request-fields
Path Type Description

code

String

Code

password

String

Password

cashdrawLimit

BigDecimal

Cash Withdrawal Limit

tellerAccountIdentifier

String

Teller Account Identifier

vaultAccountIdentifier

String

Vault Account Identifier

chequesReceivableAccount

String

Cheques Receivable Account

cashOverShortAccount

String

Cash Over Short Account

denominationRequired

Boolean

Denomination Required

assignedEmployee

String

Assigned Employee

http-response
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: */*'
http-request
GET /offices/office412/teller/4123 HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
httpie-request
$ http GET 'http://localhost:8080/offices/office412/teller/4123' 'Content-Type:application/json' 'Accept:*/*'
Table 2. response-fields
Path Type Description

code

String

Code

password

String

Password

cashdrawLimit

BigDecimal

Cash Withdrawal Limit

tellerAccountIdentifier

String

Teller Account Identifier

vaultAccountIdentifier

String

Vault Account Identifier

chequesReceivableAccount

String

Cheques Receivable Account

cashOverShortAccount

String

Cash Over Short Account

denominationRequired

Boolean

Denomination Required

assignedEmployee

String

Assigned Employee

state

String

State of Teller
enum State {
ACTIVE,
CLOSED,
OPEN,
PAUSED
}

createdBy

String

Employee who created teller

createdOn

String

Date employee was created

lastModifiedBy

Null

Employee who last modified teller

lastModifiedOn

Null

Date when teller was last modified

lastOpenedBy

Null

Last employee who opened teller

lastOpenedOn

Null

Last time teller was opened

http-response
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: */*'
http-request
GET /offices/office247/teller/ HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
httpie-request
$ http GET 'http://localhost:8080/offices/office247/teller/' 'Content-Type:application/json' 'Accept:*/*'
Table 3. response-fields
Path Type Description

[].code

String

Code for first teller

[].password

String

first teller’s Password

[].cashdrawLimit

BigDecimal

first teller’s Cash Withdrawal Limit

[].tellerAccountIdentifier

String

first Teller Account Identifier

[].vaultAccountIdentifier

String

first teller Vault Account Identifier

[].chequesReceivableAccount

String

Cheques Receivable Account

[].cashOverShortAccount

String

Cash Over Short Account

[].denominationRequired

Boolean

first teller’s Denomination Required

[].assignedEmployee

String

first teller’s Assigned Employee

[].state

String

State of first Teller
enum State {
ACTIVE,
CLOSED,
OPEN,
PAUSED
}

[].createdBy

String

Employee who created teller

[].createdOn

String

Date employee was created

[].lastModifiedBy

Null

Employee who last modified teller

[].lastModifiedOn

Null

Date when teller was last modified

[].lastOpenedBy

Null

Last employee who opened teller

[].lastOpenedOn

Null

Last time teller was opened

[1].code

String

Second teller’s Code

[1].password

String

Second teller’s Password

[1].cashdrawLimit

BigDecimal

Cash Withdrawal Limit

[1].tellerAccountIdentifier

String

Second Teller’s Account Identifier

[1].vaultAccountIdentifier

String

Vault Account Identifier

[1].chequesReceivableAccount

String

Cheques Receivable Account

[1].cashOverShortAccount

String

Cash Over Short Account

[1].denominationRequired

Boolean

Denomination Required

[1].assignedEmployee

String

second teller’s Assigned Employee

[1].state

String

State of second Teller
enum State {
ACTIVE,
CLOSED,
OPEN,
PAUSED
}

[1].createdBy

String

Employee who created teller

[1].createdOn

String

Date employee was created

[1].lastModifiedBy

Null

Employee who last modified teller

[1].lastModifiedOn

Null

Date when teller was last modified

[1].lastOpenedBy

Null

Last employee who opened teller

[1].lastOpenedOn

Null

Last time teller was opened

http-response
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"
}'
http-request
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"
}
httpie-request
$ 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'
Table 4. request-fields
Path Type Description

code

String

Code

password

String

Password

cashdrawLimit

BigDecimal

Cash Withdrawal Limit

tellerAccountIdentifier

String

Teller Account Identifier

vaultAccountIdentifier

String

Vault Account Identifier

chequesReceivableAccount

String

Cheques Receivable Account

cashOverShortAccount

String

Cash Over Short Account

denominationRequired

Boolean

Denomination Required

assignedEmployee

String

Assigned employee

http-response
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"
}'
http-request
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"
}
httpie-request
$ echo '{
  "action" : "OPEN",
  "adjustment" : "NONE",
  "assignedEmployeeIdentifier" : "Ashu"
}' | http POST 'http://localhost:8080/offices/moritavo/teller/689/commands' 'Content-Type:application/json' 'Accept:application/json'
Table 5. request-fields
Path Type Description

action

String

Action
enum Action {
OPEN,
CLOSE
}

adjustment

String

Adjustment enum Adjustment {
NONE,
DEBIT,
CREDIT
}

assignedEmployeeIdentifier

String

Teller Account Identifier

http-response
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"
}'
http-request
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"
}
httpie-request
$ echo '{
  "action" : "CLOSE",
  "adjustment" : "NONE",
  "assignedEmployeeIdentifier" : "Antah"
}' | http POST 'http://localhost:8080/offices/antananarivo/teller/7239/commands' 'Content-Type:application/json' 'Accept:application/json'
Table 6. request-fields
Path Type Description

action

String

Action
enum Action {
OPEN,
CLOSE
}

adjustment

String

Adjustment enum Adjustment {
NONE,
DEBIT,
CREDIT
}

assignedEmployeeIdentifier

String

Teller Account Identifier

http-response
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: */*'
http-request
GET /offices/fesse/teller/kombone987/balance HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
httpie-request
$ http GET 'http://localhost:8080/offices/fesse/teller/kombone987/balance' 'Content-Type:application/json' 'Accept:*/*'
http-response
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
}
Table 7. response-fields
Path Type Description

day

String

Code

cashOnHand

BigDecimal

Password

cashReceivedTotal

BigDecimal

Cash Withdrawal Limit

cashDisbursedTotal

BigDecimal

Teller Account Identifier

chequesReceivedTotal

BigDecimal

Vault Account Identifier

cashEntries

List<TellerEntry>

Cheques Receivable Account

chequeEntries

List<TellerEntry>

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'
http-request
POST /teller/tellerrwR HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

command=PAUSE
httpie-request
$ http --form POST 'http://localhost:8080/teller/tellerrwR' 'Content-Type:application/json' 'Accept:application/json' 'command=PAUSE'
http-response
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'
http-request
DELETE /offices/kakeOne/teller/9876 HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
httpie-request
$ http DELETE 'http://localhost:8080/offices/kakeOne/teller/9876' 'Content-Type:application/json' 'Accept:application/json'
http-response
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"}'
http-request
POST /teller/tellernGV/drawer HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 56

{"employeeIdentifier":"homer","password":"TRAZagcmz2dO"}
httpie-request
$ echo '{"employeeIdentifier":"homer","password":"TRAZagcmz2dO"}' | http POST 'http://localhost:8080/teller/tellernGV/drawer' 'Content-Type:application/json' 'Accept:application/json'
Table 8. response-fields
Path Type Description

code

String

Teller Code

password

String

Password to unlock drawer

cashdrawLimit

BigDecimal

Cash draw limit

tellerAccountIdentifier

String

Teller Account Identifier

vaultAccountIdentifier

String

Vault account identifier

chequesReceivableAccount

String

Cheques receivables account

cashOverShortAccount

String

Cash Over/Short Account

denominationRequired

Boolean

Denomination Required ?

assignedEmployee

String

Assigned Employee

state

String

State of Teller
enum State {
ACTIVE,
CLOSED,
OPEN,
PAUSED
}

createdBy

String

Employee who created teller

createdOn

String

Date employee was created

lastModifiedBy

String

Employee who last modified teller

lastModifiedOn

String

Date when teller was last modified

lastOpenedBy

String

Last employee who opened teller

lastOpenedOn

String

Last time teller was opened

http-response
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
}'
http-request
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
}
httpie-request
$ 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'
Table 9. request-fields
Path Type Description

transactionType

String

Transaction type

transactionDate

String

Transaction Date

customerIdentifier

String

Customer Identifier

productIdentifier

String

Product identifier

customerAccountIdentifier

String

Customer’s account

clerk

String

Clerk’s name

amount

BigDecimal

Amount in account

http-response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 118

{
  "tellerTransactionIdentifier" : "DUGeg5L8jMw18zhtxwteftQKDBV8oklp",
  "totalAmount" : 1234.56,
  "charges" : [ ]
}
Table 10. response-fields
Path Type Description

tellerTransactionIdentifier

String

Teller transaction

totalAmount

BigDecimal

Total Amount

charges

List<Charge>

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
}'
http-request
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
}
httpie-request
$ 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'
Table 11. request-fields
Path Type Description

transactionType

String

Transaction type

transactionDate

String

Transaction Date

customerIdentifier

String

Customer Identifier

productIdentifier

String

Product identifier

customerAccountIdentifier

String

Customer’s account

clerk

String

Clerk’s name

amount

BigDecimal

Amount in account

http-response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 118

{
  "tellerTransactionIdentifier" : "mQOXFk0uJQNDnkLaIOtcN0pCvUZTaNdq",
  "totalAmount" : 1234.56,
  "charges" : [ ]
}
Table 12. response-fields
Path Type Description

tellerTransactionIdentifier

String

Teller transaction

totalAmount

BigDecimal

Total Amount

charges

List<Charge>

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'
http-request
POST /teller/telleriAk/transactions/BW36FVpAxs6IkM6Jk2XTs59Tph37ztYc HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

command=CONFIRM&charges=included
httpie-request
$ http --form POST 'http://localhost:8080/teller/telleriAk/transactions/BW36FVpAxs6IkM6Jk2XTs59Tph37ztYc' 'Content-Type:application/json' 'Accept:application/json' 'command=CONFIRM' 'charges=included'
http-response
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'
http-request
POST /teller/tellerMZJ/transactions/y5pHoqwuvPG9rsGhLqFDhEtcc2Za2MIQ HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080

command=CANCEL&charges=excluded
httpie-request
$ http --form POST 'http://localhost:8080/teller/tellerMZJ/transactions/y5pHoqwuvPG9rsGhLqFDhEtcc2Za2MIQ' 'Content-Type:application/json' 'Accept:application/json' 'command=CANCEL' 'charges=excluded'
http-response
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"
}'
http-request
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"
}
httpie-request
$ 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-response
HTTP/1.1 400 Bad Request