Search invoices for a Supplier
Overview
This route will return an array of all invoices for a specific supplier.
Resource Access
GET https://<hostname>/invoice/v1/supplier/{id}
Parameters
The requested criteria can be a combination of one or more of the following fields:
Keys | Values |
---|---|
filter | %7B%7D |
search | <Item user wants to search> |
size | 10 |
sort | created%3Adesc |
Example Request
GET https://<hostname>/invoice/v1/supplier/c309bc69-e3df-58a5-857a-49953328a640?size=1
Example Response
{
"totalRecords": 48,
"totalType": "exact",
"recordCount": 2,
"records": [
{
"fileId": "3dd8b8ed-a2e5-5062-9a56-8da5a2eaaf07",
"fileDate": "2023-12-08T17:59:18.574Z",
"buyer": {
"id": "adcf5909-2afe-5078-a2db-525cc21a7981",
"bid": "1234567890asdfghjkl",
"name": "Abhishek EMCK Buyer"
},
"supplier": {
"id": "c309bc69-e3df-58a5-857a-49953328a640",
"name": "Aditya supplier 2"
},
"importDate": "2023-12-08T17:59:20.433Z",
"number": "11",
"date": "2001-11-10T18:30:00.000Z",
"totalDue": 11,
"description": "inv1",
"amountPaid": 11,
"pifTransactionId": "61b7ff73-1373-5c62-a3a9-3068c59ff181",
"location": "",
"openAmount": 0,
"creditAmount": 0,
"discountAmount": 0,
"creditNumber": "",
"creditMemoNote": "",
"id": "7751f5e8-3327-53e7-9b43-dcf1335aaab3"
},
{
"fileId": "3dd8b8ed-a2e5-5062-9a56-8da5a2eaaf07",
"fileDate": "2023-12-08T17:59:18.574Z",
"buyer": {
"id": "adcf5909-2afe-5078-a2db-525cc21a7981",
"bid": "1234567890asdfghjkl",
"name": "Abhishek EMCK Buyer"
},
"supplier": {
"id": "c309bc69-e3df-58a5-857a-49953328a640",
"name": "Aditya supplier 2"
},
"importDate": "2023-12-08T17:59:20.433Z",
"number": "22",
"date": "2022-02-21T18:30:00.000Z",
"totalDue": 22,
"description": "inv 2",
"amountPaid": 22,
"pifTransactionId": "61b7ff73-1373-5c62-a3a9-3068c59ff181",
"location": "",
"openAmount": 0,
"creditAmount": 0,
"discountAmount": 0,
"creditNumber": "",
"creditMemoNote": "",
"id": "8c1fbf5c-4044-5eeb-933a-b9b72a89de97"
}
]
}
Updated 3 days ago