POST api/Supplier/GetSupplierAllPurchases
Request Information
URI Parameters
None.
Body Parameters
RequestIDModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
Required |
|
RequestedUserID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "RequestedUserID": 1 }
application/xml, text/xml
Sample:
<RequestIDModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <RequestedUserID>1</RequestedUserID> <ID>1</ID> </RequestIDModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetAllSupplierOpenInvoicesResponseName | Description | Type | Additional information |
---|---|---|---|
dOpeningBalance | decimal number |
None. |
|
AllSupplierOpenInvoices | Collection of SupplierOpenInvoicesModel |
None. |
|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "dOpeningBalance": 1.0, "AllSupplierOpenInvoices": [ { "PurchasePaymentID": 1, "SuppierInvoiceNo": "sample string 2", "SupplierID": 1, "DueDate": "2025-01-22T21:09:31.403393-06:00", "DueDateString": "sample string 3", "PurchaseID": 1, "dTotalAmount": 1.0, "dPaidAmount": 1.0, "dRemainingAmount": 1.0, "dTotalAmountString": "sample string 4", "dPaidAmountString": "sample string 5", "dRemainingAmountString": "sample string 6", "purchaseAmount": 1.0 }, { "PurchasePaymentID": 1, "SuppierInvoiceNo": "sample string 2", "SupplierID": 1, "DueDate": "2025-01-22T21:09:31.403393-06:00", "DueDateString": "sample string 3", "PurchaseID": 1, "dTotalAmount": 1.0, "dPaidAmount": 1.0, "dRemainingAmount": 1.0, "dTotalAmountString": "sample string 4", "dPaidAmountString": "sample string 5", "dRemainingAmountString": "sample string 6", "purchaseAmount": 1.0 } ], "ResponseCode": 1, "ResponseText": "sample string 2" }
application/xml, text/xml
Sample:
<GetAllSupplierOpenInvoicesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode> <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText> <AllSupplierOpenInvoices xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <d2p1:SupplierOpenInvoicesModel> <d2p1:DueDate>2025-01-22T21:09:31.403393-06:00</d2p1:DueDate> <d2p1:DueDateString>sample string 3</d2p1:DueDateString> <d2p1:PurchaseID>1</d2p1:PurchaseID> <d2p1:PurchasePaymentID>1</d2p1:PurchasePaymentID> <d2p1:SuppierInvoiceNo>sample string 2</d2p1:SuppierInvoiceNo> <d2p1:SupplierID>1</d2p1:SupplierID> <d2p1:dPaidAmount>1</d2p1:dPaidAmount> <d2p1:dPaidAmountString>sample string 5</d2p1:dPaidAmountString> <d2p1:dRemainingAmount>1</d2p1:dRemainingAmount> <d2p1:dRemainingAmountString>sample string 6</d2p1:dRemainingAmountString> <d2p1:dTotalAmount>1</d2p1:dTotalAmount> <d2p1:dTotalAmountString>sample string 4</d2p1:dTotalAmountString> <d2p1:purchaseAmount>1</d2p1:purchaseAmount> </d2p1:SupplierOpenInvoicesModel> <d2p1:SupplierOpenInvoicesModel> <d2p1:DueDate>2025-01-22T21:09:31.403393-06:00</d2p1:DueDate> <d2p1:DueDateString>sample string 3</d2p1:DueDateString> <d2p1:PurchaseID>1</d2p1:PurchaseID> <d2p1:PurchasePaymentID>1</d2p1:PurchasePaymentID> <d2p1:SuppierInvoiceNo>sample string 2</d2p1:SuppierInvoiceNo> <d2p1:SupplierID>1</d2p1:SupplierID> <d2p1:dPaidAmount>1</d2p1:dPaidAmount> <d2p1:dPaidAmountString>sample string 5</d2p1:dPaidAmountString> <d2p1:dRemainingAmount>1</d2p1:dRemainingAmount> <d2p1:dRemainingAmountString>sample string 6</d2p1:dRemainingAmountString> <d2p1:dTotalAmount>1</d2p1:dTotalAmount> <d2p1:dTotalAmountString>sample string 4</d2p1:dTotalAmountString> <d2p1:purchaseAmount>1</d2p1:purchaseAmount> </d2p1:SupplierOpenInvoicesModel> </AllSupplierOpenInvoices> <dOpeningBalance>1</dOpeningBalance> </GetAllSupplierOpenInvoicesResponse>