GET api/SystemApi/GetAllInvoicesByCustomer?start={start}&end={end}&IsSale={IsSale}&customerid={customerid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
start

date

Required

end

date

Required

IsSale

boolean

Required

customerid

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Invoice
NameDescriptionTypeAdditional 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.

Response 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:11:14.0393033-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
  },
  {
    "Id": 1,
    "Paid": 2.1,
    "Net": 3.1,
    "Discount": 4.1,
    "IsSale": true,
    "Total": 6.1,
    "Required": 7.1,
    "DateTime": "2025-12-22T13:11:14.0393033-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:
<ArrayOfInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlsamanodyPosApi.Models">
  <Invoice>
    <CustomerAddress>sample string 20</CustomerAddress>
    <CustomerName>sample string 19</CustomerName>
    <CustomerPhone>sample string 18</CustomerPhone>
    <Customer_Id>12</Customer_Id>
    <DateTime>2025-12-22T13:11:14.0393033-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>
  <Invoice>
    <CustomerAddress>sample string 20</CustomerAddress>
    <CustomerName>sample string 19</CustomerName>
    <CustomerPhone>sample string 18</CustomerPhone>
    <Customer_Id>12</Customer_Id>
    <DateTime>2025-12-22T13:11:14.0393033-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>
</ArrayOfInvoice>