Invoice
How to get invoices for a given supplier

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_typeShort NameDescription
1PO Number SearchSearch for invoices by purchase order number.
2Invoice Number SearchSearch for invoice by invoice number.
3Date SearchSearch for invoices with an invoice date specified by the requestedDate.
4Available Date Time SearchSearch 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"
            }
        ]
    }
}