GET PurchaseInvoice/GetPurchaseInvoice?VendorID={VendorID}&InvoiceNumber={InvoiceNumber}

Returns a purchase invoice.

Request Information

URI Parameters

NameDescriptionTypeAdditional Information
VendorID

VendorID of the purchase invoice to return.

string

Required

InvoiceNumber

Invoice number of the purchase invoice to return.

string

Required

Body Parameters

Response Information

Resource Description

Returns a purchase invoice.

AgvPurchaseInvoice
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
Count

Count of how many PurchaseInvoice JSON Objects.

string
PurchaseInvoice

JSON Object of PurchaseInvoice.

ClsAPIPurchaseInvoice

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Count": "sample string 3",
  "PurchaseInvoice": {
    "PurchaseInvoiceRecordHeaderDetails": null,
    "PurchaseInvoiceRecordLineItemDetails": [],
    "PurchaseInvoiceRecordChargeDetails": []
  }
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.