| PUT | /SaveFstReceipts |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Receipt | body | Receipts | No | |
| appname | body | string | No | |
| hostname | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ReceiptId | form | Guid | No | |
| ReceiptNum | form | int | No | |
| BranchId | form | int | No | |
| FstNum | form | int | No | |
| ShiftId | form | int? | No | |
| Opdt | form | DateTime | No | |
| Dccardid | form | string | No | |
| Prods | form | List<ReceiptProds> | No | |
| Payments | form | List<ReceiptPayments> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RecId | form | Guid | No | |
| ReceiptId | form | Guid | No | |
| FuelId | form | int | No | |
| Scount | form | decimal | No | |
| Price | form | decimal | No | |
| Vg | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RecId | form | Guid | No | |
| ReceiptId | form | Guid | No | |
| PaytypeId | form | int | No | |
| Vg | form | decimal | No | |
| FiscalNumber | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /SaveFstReceipts HTTP/1.1
Host: axfuel.apex.ge
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Receipt:
{
ReceiptId: 00000000000000000000000000000000,
ReceiptNum: 0,
BranchId: 0,
FstNum: 0,
ShiftId: 0,
Opdt: 0001-01-01,
Dccardid: String,
Prods:
[
{
RecId: 00000000000000000000000000000000,
ReceiptId: 00000000000000000000000000000000,
FuelId: 0,
Scount: 0,
Price: 0,
Vg: 0
}
],
Payments:
[
{
RecId: 00000000000000000000000000000000,
ReceiptId: 00000000000000000000000000000000,
PaytypeId: 0,
Vg: 0,
FiscalNumber: String
}
]
},
appname: String,
hostname: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}