How Can We Help?
Invoice Request Transaction
The Invoice Transaction is used to get Invoicing information for display in the web catalog. The request and response JSON strings are defined below.
Request JSON Example (Version 1.0)
The following is an example of the JSON string that will be posted
{
"invoicerequest": {
"version": "1.0",
"integrationtype": "FLK",
"username": "username",
"password": "password",
"transid": "0",
"memberno": 520,
"accountid": "123456,15545",
"invoiceno": "inv123",
"ponumber": "po123",
"frominvoicedate": "08/05/2015",
"toinvoicedate": "08/12/2015",
"locationid": "",
"partno": "",
"invoicetype": ""
}
}
Response JSON Example (Version 1.0)
The following is an example of the JSON string to be returned
{
"invoiceresponse": {
"version": "1.0",
"transid": "0",
"memberno": 520,
"status": "success",
"errordescription": "",
"invoices": [
{
"invoiceno": "inv123",
"invoicedate": "08/05/2015",
"accountid": "12345",
"locationid": "loc123",
"locationdescription": "bob's tire and auto",
"ponumber": "",
"itemcount": "12",
"totalcost": "12.00",
"linkurl": "http://myserver/mypdfs/invoice123.pdf",
"invoicedetail": [
{
"itemqty": "1",
"linecode": "123",
"partno": "xyz123",
"description": "item description",
"listprice": "123.99",
"cost": "89.23"
},
{
"itemqty": "1",
"linecode": "123",
"partno": "xyz123",
"description": "item description",
"listprice": "123.99",
"cost": "89.23"
}
]
},
{
"invoiceno": "inv234",
"invoicedate": "08/05/2015",
"accountid": "15545",
"locationid": "loc129",
"locationdescription": "jeff's tire and auto",
"ponumber": "",
"itemcount": "12",
"totalcost": "12.00",
"linkurl": "http://myserver/mypdfs/invoice129.pdf",
"invoicedetail": [
{
"itemqty": "1",
"linecode": "123",
"partno": "xyz123",
"description": "item description",
"listprice": "123.99",
"cost": "89.23"
},
{
"itemqty": "1",
"linecode": "123",
"partno": "xyz123",
"description": "item description",
"listprice": "123.99",
"cost": "89.23"
}
]
}
]
}