POST api/CashRegister/OpenCashRegister
Request Information
URI Parameters
None.
Body Parameters
OpenCashRegisterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CashRegisterID | integer |
Required |
|
| UserID | integer |
Required |
|
| OpeningAmount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"CashRegisterID": 1,
"UserID": 2,
"OpeningAmount": 3.0
}
application/xml, text/xml
Sample:
<OpenCashRegisterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <CashRegisterID>1</CashRegisterID> <OpeningAmount>3</OpeningAmount> <UserID>2</UserID> </OpenCashRegisterRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OpenCashRegisterResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| CashRegisterHistoryID | integer |
None. |
|
| ResponseCode | integer |
None. |
|
| ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"CashRegisterHistoryID": 1,
"ResponseCode": 2,
"ResponseText": "sample string 3"
}
application/xml, text/xml
Sample:
<OpenCashRegisterResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">2</ResponseCode> <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 3</ResponseText> <CashRegisterHistoryID>1</CashRegisterHistoryID> </OpenCashRegisterResponse>