GET api/WebApiOdata/GetDistributorInvoices?providerId={providerId}&customerID={customerID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
providerId | integer |
Required |
|
customerID | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DistributorInvoiceGridViewModelName | Description | Type | Additional information |
---|---|---|---|
InvoiceHeaderID | integer |
None. |
|
OrderID | integer |
None. |
|
PreferredgroupID | integer |
None. |
|
InvoiceNum | string |
None. |
|
CustomerPO | string |
None. |
|
InvoiceDate | date |
None. |
|
DuteDate | date |
None. |
|
IsDueExceeded | boolean |
None. |
|
TotalAmt | decimal number |
None. |
|
CreditAmt | decimal number |
None. |
|
DueAmt | decimal number |
None. |
|
StatusId | integer |
None. |
|
InvoiceDateDisplay | string |
None. |
|
DuteDateDisplay | string |
None. |
|
TotalAmtDisplay | string |
None. |
|
CreditAmtDisplay | string |
None. |
|
DueAmtDisplay | string |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[ { "InvoiceHeaderID": 1, "OrderID": 2, "PreferredgroupID": 3, "InvoiceNum": "sample string 4", "CustomerPO": "sample string 5", "InvoiceDate": "1/22/2025", "DuteDate": "1/22/2025", "IsDueExceeded": true, "TotalAmt": 1.0, "CreditAmt": 1.0, "DueAmt": 1.0, "StatusId": 1, "InvoiceDateDisplay": "01/22/2025", "DuteDateDisplay": "01/22/2025", "TotalAmtDisplay": "$1", "CreditAmtDisplay": "$1", "DueAmtDisplay": "$1" }, { "InvoiceHeaderID": 1, "OrderID": 2, "PreferredgroupID": 3, "InvoiceNum": "sample string 4", "CustomerPO": "sample string 5", "InvoiceDate": "1/22/2025", "DuteDate": "1/22/2025", "IsDueExceeded": true, "TotalAmt": 1.0, "CreditAmt": 1.0, "DueAmt": 1.0, "StatusId": 1, "InvoiceDateDisplay": "01/22/2025", "DuteDateDisplay": "01/22/2025", "TotalAmtDisplay": "$1", "CreditAmtDisplay": "$1", "DueAmtDisplay": "$1" } ]
application/xml, text/xml
Sample:
<ArrayOfDistributorInvoiceGridViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SellersCommerce.ViewModels.SCCommon"> <DistributorInvoiceGridViewModel> <CreditAmt>1</CreditAmt> <CustomerPO>sample string 5</CustomerPO> <DueAmt>1</DueAmt> <DuteDate>2025-01-22T13:49:51.8157602+00:00</DuteDate> <InvoiceDate>2025-01-22T13:49:51.8157602+00:00</InvoiceDate> <InvoiceHeaderID>1</InvoiceHeaderID> <InvoiceNum>sample string 4</InvoiceNum> <OrderID>2</OrderID> <PreferredgroupID>3</PreferredgroupID> <StatusId>1</StatusId> <TotalAmt>1</TotalAmt> </DistributorInvoiceGridViewModel> <DistributorInvoiceGridViewModel> <CreditAmt>1</CreditAmt> <CustomerPO>sample string 5</CustomerPO> <DueAmt>1</DueAmt> <DuteDate>2025-01-22T13:49:51.8157602+00:00</DuteDate> <InvoiceDate>2025-01-22T13:49:51.8157602+00:00</InvoiceDate> <InvoiceHeaderID>1</InvoiceHeaderID> <InvoiceNum>sample string 4</InvoiceNum> <OrderID>2</OrderID> <PreferredgroupID>3</PreferredgroupID> <StatusId>1</StatusId> <TotalAmt>1</TotalAmt> </DistributorInvoiceGridViewModel> </ArrayOfDistributorInvoiceGridViewModel>