POST api/InvoiceRow
Saves InvoiceRow based on data in Json format
Request Information
URI Parameters
None.
Body Parameters
InvoiceRowForExternalIntegration| Name | Description | Type | Additional information |
|---|---|---|---|
| SiteID |
SiteID |
globally unique identifier |
None. |
| CardNumber |
Swiped CardNumber, Line 2 of the magstripe data or if RFID the RFID string |
string |
None. |
| ServiceEID2 |
Article number from the Wash system, provided by Westamtic |
string |
None. |
| Quantity |
Quantity of consumed article |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"SiteID": "6695e348-e114-4cf2-bfe7-74f9c9a5bbce",
"CardNumber": "sample string 2",
"ServiceEID2": "sample string 3",
"Quantity": 4.1
}
text/html
Sample:
{"SiteID":"6695e348-e114-4cf2-bfe7-74f9c9a5bbce","CardNumber":"sample string 2","ServiceEID2":"sample string 3","Quantity":4.1}
application/xml, text/xml
Sample:
<InvoiceRowForExternalIntegration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models.ReturnModels"> <CardNumber>sample string 2</CardNumber> <Quantity>4.1</Quantity> <ServiceEID2>sample string 3</ServiceEID2> <SiteID>6695e348-e114-4cf2-bfe7-74f9c9a5bbce</SiteID> </InvoiceRowForExternalIntegration>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Save result true or false
InvoiceRowSaveResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSaved |
Returns bool:true or false |
boolean |
None. |
| Description |
Description of result of save |
string |
None. |
| InvoiceNo |
Highest new InvoiceNo |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSaved": true,
"Description": "sample string 2",
"InvoiceNo": 3
}
text/html
Sample:
{"IsSaved":true,"Description":"sample string 2","InvoiceNo":3}
application/xml, text/xml
Sample:
<InvoiceRowSaveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Westmatic.Wash8.GenericWebApi.Models"> <Description>sample string 2</Description> <InvoiceNo>3</InvoiceNo> <IsSaved>true</IsSaved> </InvoiceRowSaveResult>