OCLC Developer Network

Purchase order copies response details

Examples:

The following examples demonstrate the different operations that can be executed on purchase order items using HTTP methods. Please note that none of the examples include the principleID and principleIDNS parameters that are required to successfully complete the operation. 

GET a collection of purchase order copies:

Request:

https://acq.sd00.worldcat.org/purchaseorders/PO-2011-11/items/OIN-2011-31/copies

Response:

<?xml version="1.0" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
  <id>
    info:OCLC/Platform/Service
  </id>
  <title type="text">
    OCLC Platform Service Results
  </title>
  <updated>
    2012-05-07T15:07:58.532Z
  </updated>
  <os:totalResults>
    1
  </os:totalResults>
  <os:startIndex>
    1
  </os:startIndex>
  <os:itemsPerPage>
    1
  </os:itemsPerPage>
  <entry>  
    <title type="text"/> 
    <updated>
      2012-05-07T15:07:58.540Z
    </updated>
    <content type="application/xml"> 
      <ns6:copy xmlns="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrder-1.5" xmlns:ns2="http://worldcat.org/xmlschemas/common-types/Identity-1.2" xmlns:ns3="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderItem-1.5" xmlns:ns4="http://worldcat.org/xmlschemas/purchase-order/Resource-1.5" xmlns:ns5="http://worldcat.org/xmlschemas/purchase-order/CopyConfig-1.5" xmlns:ns6="http://worldcat.org/xmlschemas/purchase-order/Copy-1.5" xmlns:ns7="http://worldcat.org/xmlschemas/purchase-order/CopyReceipt-1.5" xmlns:ns8="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderSubmission-1.5">
        <ns6:copyNumber>
          1
        </ns6:copyNumber> 
        <ns6:branchId>
          125569
        </ns6:branchId>
        <ns6:shelvingLocationId>
          MAIN-STACKS
        </ns6:shelvingLocationId>
        <ns6:itemCopyId>
          0
        </ns6:itemCopyId> 
        <ns6:itemCopyNumber>
          0
        </ns6:itemCopyNumber>  
        <ns6:status>
          DUE
        </ns6:status>
      </ns6:copy>
    </content>
  </entry>
</feed>

GET a purchase order copy by ID:

Request:

https://acq.sd00.worldcat.org/purchaseorders/PO-2011-11/items/OIN-2011-31/copies/1

Response:

<?xml version="1.0" ?>
<entry xmlns="http://www.w3.org/2005/Atom">
  <title type="text"/>
  <updated>
    2012-05-07T15:09:58.820Z
  </updated>
  <content type="application/xml">
    <ns6:copy xmlns="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrder-1.5" xmlns:ns2="http://worldcat.org/xmlschemas/common-types/Identity-1.2" xmlns:ns3="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderItem-1.5" xmlns:ns4="http://worldcat.org/xmlschemas/purchase-order/Resource-1.5" xmlns:ns5="http://worldcat.org/xmlschemas/purchase-order/CopyConfig-1.5" xmlns:ns6="http://worldcat.org/xmlschemas/purchase-order/Copy-1.5" xmlns:ns7="http://worldcat.org/xmlschemas/purchase-order/CopyReceipt-1.5" xmlns:ns8="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderSubmission-1.5">   
      <ns6:copyNumber>
        1
      </ns6:copyNumber>     
      <ns6:branchId>
        125569
      </ns6:branchId>   
      <ns6:shelvingLocationId>
        MAIN-STACKS
      </ns6:shelvingLocationId> 
      <ns6:itemCopyId>
        0
      </ns6:itemCopyId>  
      <ns6:itemCopyNumber>
        0
      </ns6:itemCopyNumber>  
      <ns6:status>
        DUE
      </ns6:status> 
    </ns6:copy>  
  </content> 
</entry>

POST XML to create a new purchase order copy:

Request:

https://acq.sd00.worldcat.org/purchaseorders/PO-2011-11/items/OIN-2011-31/copies/1/recieve

XML Payload:

<?xml version="1.0" ?>
<entry xmlns="http://www.w3.org/2005/Atom">
  <content type="application/xml">
    <copyReceipt xmlns="http://worldcat.org/xmlschemas/purchase-order/CopyReceipt-1.3" xmlns:ns2="http://worldcat.org/xmlschemas/purchase-order/Copy-1.3" xmlns:ns3="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderItem-1.3" xmlns:ns4="http://worldcat.org/xmlschemas/purchase-order/Resource-1.3" xmlns:ns5="http://worldcat.org/xmlschemas/purchase-order/CopyConfig-1.3" xmlns:ns6="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrder-1.3" xmlns:ns7="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderSubmission-1.3"/>
  </content>
</entry>

PUT XML to update an existing purchase order copy:

Request:

https://acq.sd00.worldcat.org/purchaseorders/PO-2011-11/items/OIN-2011-31/copies/1/recieve

XML Payload:

<entry xmlns="http://www.w3.org/2005/Atom"><content type="application/xml"><copyReceipt xmlns="http://worldcat.org/xmlschemas/purchase-order/CopyReceipt-1.3" xmlns:ns2="http://worldcat.org/xmlschemas/purchase-order/Copy-1.3" xmlns:ns4="http://worldcat.org/xmlschemas/purchase-order/Resource-1.3" xmlns:ns3="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderItem-1.3" xmlns:ns5="http://worldcat.org/xmlschemas/purchase-order/CopyConfig-1.3" xmlns:ns6="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrder-1.3" xmlns:ns7="http://worldcat.org/xmlschemas/purchase-order/PurchaseOrderSubmission-1.3">
    <createLocalHoldingsRecord>true</createLocalHoldingsRecord>
    <copy>
        <ns2:copyNumber>3</ns2:copyNumber>
        <ns2:barcode>MyBarcode-553805673</ns2:barcode>
        <ns2:branchId>125575</ns2:branchId>
        <ns2:shelvingLocationId>Tyler's Shelving Location</ns2:shelvingLocationId>
        <ns2:shelvingScheme>LIBRARY_OF_CONGRESS</ns2:shelvingScheme>
        <ns2:callNumber>call</ns2:callNumber>
        <ns2:itemCopyId>0</ns2:itemCopyId>
        <ns2:itemCopyNumber>0</ns2:itemCopyNumber>
        <ns2:status>DUE</ns2:status>
    </copy>
</copyReceipt></content></entry>

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