OCLC Developer Network

Invoices Resource

Building a query:

To access a collection of invoices construct the URL in the following manner:

https://acq.sd00.worldcat.org/invoices?{query}

To access information on a specific invoice construct the URL in the following manner:

https://acq.sd00.worldcat.org/invoices/{invoiceNumber}

To flag an invoice as paid you can submit a GET request to the following URL:

https://acq.sd00.worldcat.org/invoices/{invoiceNumber}/pay

where {query} or {invoiceNumber} provide information about the invoices you are requesting information for.

 

Examples:

Below are some sample URLs and an explanation of what they are querying using different HTTP methods:

example uRLhttp methodnotes
https://acq.sd00.worldcat.org/invoices?q=invoiceStatus:OPEN&startIndex=2&itemsPerPage=5GETReturns a collection of invoices where the status is OPEN the collection starts at index 2 and there are 5 items per page
https://acq.sd00.worldcat.org/invoices/INV-2010-59GETReturns information about a specific invoice with the ID INV-2010-59.
https://acq.sd00.worldcat.org/invoices/INV-2010-59DELETEDeletes a specific invoice with the ID INV-2010-59.
https://acq.sd00.worldcat.org/invoicesPOSTCreates a new invoice using the content of the post body.
https://acq.sd00.worldcat.org/invoices/INV-2010-59PUTUpdates the information about a specific invoice with the ID INV-2010-59.
https://acq.sd00.worldcat.org/invoices/INV-2010-59/payGETFlags an invoice with the ID INV-2010-59 as paid.

 

Query options:

Below is a list of all the possible parameters that can be used as part of the invoices resource, all of them are optional:

parameterdescription
qAvailable Queries are: vendorName, vendorInvoiceNumber, invoiceStatus (ex. vendorName:EBSCO, vendorInvoiceNumber:12345, and invoiceStatus=OPEN)
startIndexWhat index item to start the collection at.
itemsPerPageHow many collection items to return per request.

Follow the OCLC Developer Network:

The OCLC Developer Network supports the use of OCLC Web Services—a set of tools and APIs that expose data and services for WorldCat and our member libraries and partner institutions or companies. learn more »

© 2010 OCLC Domestic and international trademarks and/or service marks of OCLC Online Computer Library Center, Inc. and its affiliates


Powered by Drupal, an open source content management system