Search invoices for a Supplier For export
Overview
This route will return an array of all invoices for a specific supplier for export.
Resource Access
GET https://<hostname>/invoice/v1/supplier/{id}/export
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/export?size=2
Example Response
{
"_scroll_id": "eyJhbGciOiJFUzI1NiJ9.eyJzY3JvbGxJZCI6IkZHbHVZMngxWkdWZlkyOXVkR1Y0ZEY5MWRXbGtEWEYxWlhKNVFXNWtSbVYwWTJnQkZrTlZXRVJvZEZZMVVsaDVVVzk2Y1ZoaVNGbzBNbWNBQUFBQUFHOGhpeFpLZDBsSWFFeERiMUZCUzNNMU9YQkVRMnBpZFdOMyIsInRlbmFudElkIjoiNUQ0Q0QxRUEtNzI0Qi00NkFDLUE4NzgtMEIwNjhFMjM5RTAyIiwidmlydHVhbEVudiI6ImF3cy1udi1jcHhxYSIsInVzZXJJZCI6IjQwNGI4NjFjLTc0ZGYtNWUyOS1iNzBjLTVlOWMxM2MwOTk4NCJ9.MCWwOaZXyeqSux-OXud-_0iXaRdS0u_g0t-7HZIfBINT0LWsUB85Cf1Bilxf5eBn7iD-StFuSlgknitNwLBFGQ",
"totalRecords": 48,
"totalType": "exact",
"recordCount": 2,
"records": [
{
"fileId": "ec7e441d-0e0d-5dc1-ac52-019fc6e3fea8",
"fileDate": "2023-12-08T17:53:06.022Z",
"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:53:07.830Z",
"number": "2222",
"date": "2002-02-01T18:30:00.000Z",
"totalDue": 2,
"description": "INVOICE 2",
"amountPaid": 2,
"pifTransactionId": "b1ff6084-5a6c-562f-ade0-94f9207aa9c5",
"location": "",
"openAmount": 0,
"creditAmount": 0,
"discountAmount": 0,
"creditNumber": "",
"creditMemoNote": "",
"id": "d38a41b7-c7c0-5d4f-afa3-52366c6d7bf3"
},
{
"fileId": "ec7e441d-0e0d-5dc1-ac52-019fc6e3fea8",
"fileDate": "2023-12-08T17:53:06.022Z",
"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:53:07.830Z",
"number": "1111",
"date": "2000-12-31T18:30:00.000Z",
"totalDue": 1,
"description": "INVOICE1",
"amountPaid": 1,
"pifTransactionId": "b1ff6084-5a6c-562f-ade0-94f9207aa9c5",
"location": "",
"openAmount": 0,
"creditAmount": 0,
"discountAmount": 0,
"creditNumber": "",
"creditMemoNote": "",
"id": "a71af8f4-d59e-5e89-8305-346df719bf25"
}
]
}
Updated 3 days ago