POST api/SystemApi/AddInvoice
Request Information
URI Parameters
None.
Body Parameters
Invoice| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Paid | decimal number |
None. |
|
| Net | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| IsSale | boolean |
None. |
|
| Total | decimal number |
None. |
|
| Required | decimal number |
None. |
|
| DateTime | date |
None. |
|
| User_Id | integer |
None. |
|
| Drawer_Id | integer |
None. |
|
| ItemsCount | integer |
None. |
|
| Customer_Id | integer |
None. |
|
| IsCustomer | boolean |
None. |
|
| DeliveryAmount | decimal number |
None. |
|
| IsDelivery | boolean |
None. |
|
| Updated | boolean |
None. |
|
| Deleted | boolean |
None. |
|
| CustomerPhone | string |
None. |
|
| CustomerName | string |
None. |
|
| CustomerAddress | string |
None. |
|
| Invoicetype | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Paid": 2.1,
"Net": 3.1,
"Discount": 4.1,
"IsSale": true,
"Total": 6.1,
"Required": 7.1,
"DateTime": "2025-12-22T13:12:37.6770439-08:00",
"User_Id": 9,
"Drawer_Id": 10,
"ItemsCount": 11,
"Customer_Id": 12,
"IsCustomer": true,
"DeliveryAmount": 14.1,
"IsDelivery": true,
"Updated": true,
"Deleted": true,
"CustomerPhone": "sample string 18",
"CustomerName": "sample string 19",
"CustomerAddress": "sample string 20",
"Invoicetype": 21
}
application/xml, text/xml
Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlsamanodyPosApi.Models"> <CustomerAddress>sample string 20</CustomerAddress> <CustomerName>sample string 19</CustomerName> <CustomerPhone>sample string 18</CustomerPhone> <Customer_Id>12</Customer_Id> <DateTime>2025-12-22T13:12:37.6770439-08:00</DateTime> <Deleted>true</Deleted> <DeliveryAmount>14.1</DeliveryAmount> <Discount>4.1</Discount> <Drawer_Id>10</Drawer_Id> <Id>1</Id> <Invoicetype>21</Invoicetype> <IsCustomer>true</IsCustomer> <IsDelivery>true</IsDelivery> <IsSale>true</IsSale> <ItemsCount>11</ItemsCount> <Net>3.1</Net> <Paid>2.1</Paid> <Required>7.1</Required> <Total>6.1</Total> <Updated>true</Updated> <User_Id>9</User_Id> </Invoice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.