How to get invoices for a given supplier
Educational video from PromoStandards
Function getInvoices
In order to get all invoices
for a given supplier we need to use Invoice Service(INVC). Our API allows easy access by a GET
request to our invoices
endpoint.
Query Types
query_type | Short Name | Description |
---|---|---|
1 | PO Number Search | Search for invoices by purchase order number. |
2 | Invoice Number Search | Search for invoice by invoice number. |
3 | Date Search | Search for invoices with an invoice date specified by the requestedDate . |
4 | Available Date Time Search | Search for invoices that were made available by a date time greater than the value specified by availableTimeStamp . |
HTTP VERB: GET
URL: https://api.psrestful.com/v1.0.0/suppliers/{SUPPLIER_CODE}/invoices/ (opens in a new tab)
Example Response:
This is the response from calling with:
SUPPLIER_CODE
= PCNA
COMPLETE URL:
https://api.psrestful.com/v1.0.0/suppliers/PCNA/invoices
Example of error message
{
"InvoiceArray": null,
"ServiceMessageArray": {
"ServiceMessage": [
{
"code": 999,
"description": "Max 14 days of invoices or invalid date search",
"severity": "Error"
}
]
}
}