OCLC Developer Network

Invoices Response

Examples:

The following examples demonstrate the different operations that can be executed on invoices using HTTP methods.  The invoices service can return data in two possible formats.

FormatAccept HeaderExtension
Atom XMLapplication/atom+xml.xml
Atom JSONapplication/json.json

 

GET a collection of invoices:

Request:

https://acq.sd00.worldcat.org/invoices?q=invoiceStatus:OPEN

XML Response:

<?xml version='1.0' encoding='UTF-8'?>
<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>
  <link href="https://acq.sd00.worldcat.org/invoices?q=invoiceStatus:OPEN&inst=128807&principalID=8eaa9f92-3951-431c-975a-d7df26b8d131&principalIDNS=urn:oclc:wms:da" rel="self" />
  <updated>2012-08-06T15:11:29.756Z</updated>
  <os:totalResults>4</os:totalResults>
  <os:startIndex>1</os:startIndex>
  <os:itemsPerPage>10</os:itemsPerPage>
  <entry xmlns:gd="http://schemas.google.com/g/2005">
    <title type="text">INV-2012-2</title>
    <id>https://acq.sd00.worldcat.org/invoices/INV-2012-2</id>
    <link href="https://acq.sd00.worldcat.org/invoices/INV-2012-2" rel="self" type="application/atom+xml" />
    <published>2012-06-28T18:33:13.000Z</published>
    <updated>2012-07-02T18:48:53.000Z</updated>
    <content type="application/xml">
      <invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.1/Acquisitions-1.1-invoice.xsd">
        <invoiceNumber>INV-2012-2</invoiceNumber>
        <vendor>
          <link rel="self" href="https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf" type="application/atom+xml" />
          <vendorName>Amazon</vendorName>
          <invoiceNumber>KAC-12345</invoiceNumber>
          <invoiceDate>2012-06-28</invoiceDate>
        </vendor>
        <currency>USD</currency>
        <totalPrice>28.71</totalPrice>
        <totalServiceCharge>0.00</totalServiceCharge>
        <totalShipping>0.00</totalShipping>
        <totalTax>0.00</totalTax>
        <totalDiscount>0.00</totalDiscount>
        <invoiceTotal>28.71</invoiceTotal>
        <itemTotal>28.71</itemTotal>
        <updated>2012-07-02T14:48:53-04:00</updated>
        <created>2012-06-28T14:33:13-04:00</created>
        <status>OPEN</status>
        <exchangeRate>1.000000</exchangeRate>
        <totalCopies>2</totalCopies>
        <totalItems>2</totalItems>
        <invoiceItems>
          <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-2/invoiceItems" type="application/atom+xml" />
          <invoiceItem xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.1/Acquisitions-1.1-invoiceItem.xsd">
            <link rel="self" href="https://acq.sd00.worldcat.org/invoiceItems/INVI-2012-7" type="application/atom+xml" />
            <invoiceItemNumber>INVI-2012-7</invoiceItemNumber>
            <quantity>1</quantity>
            <unitCost>12.00</unitCost>
            <discountPercentage>0.00</discountPercentage>
            <discountValue>0.00</discountValue>
            <taxPercentage>0.00</taxPercentage>
            <taxValue>0.00</taxValue>
            <shippingAmount>0.00</shippingAmount>
            <serviceCharge>0.00</serviceCharge>
            <itemType>FULL</itemType>
            <totalCost>12.00</totalCost>
            <invoiceInfo>
              <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-2" type="application/atom+xml" />
              <vendorInfo>
                <link rel="self" href="https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf" type="application/atom+xml" />
                <vendorName>Amazon</vendorName>
                <invoiceNumber>KAC-12345</invoiceNumber>
                <invoiceDate>2012-06-28</invoiceDate>
              </vendorInfo>
            </invoiceInfo>
          </invoiceItem>
          <invoiceItem xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.1/Acquisitions-1.1-invoiceItem.xsd">
            <link rel="self" href="https://acq.sd00.worldcat.org/invoiceItems/INVI-2012-5" type="application/atom+xml" />
            <invoiceItemNumber>INVI-2012-5</invoiceItemNumber>
            <description>The swerve : how the world became modern</description>
            <quantity>1</quantity>
            <unitCost>16.71</unitCost>
            <discountPercentage>0.00</discountPercentage>
            <discountValue>0.00</discountValue>
            <taxPercentage>0.00</taxPercentage>
            <taxValue>0.00</taxValue>
            <shippingAmount>0.00</shippingAmount>
            <serviceCharge>0.00</serviceCharge>
            <itemType>FULL</itemType>
            <totalCost>16.71</totalCost>
            <invoiceInfo>
              <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-2" type="application/atom+xml" />
              <vendorInfo>
                <link rel="self" href="https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf" type="application/atom+xml" />
                <vendorName>Amazon</vendorName>
                <invoiceNumber>KAC-12345</invoiceNumber>
                <invoiceDate>2012-06-28</invoiceDate>
              </vendorInfo>
            </invoiceInfo>
          </invoiceItem>
        </invoiceItems>
      </invoice>
    </content>
    <gd:etag>63956f85231dda5ccdb2ff4a1a830a1b</gd:etag>
  </entry>
  ...
</feed>

JSON Response:

{
   "id":"info:OCLC/Platform/Service",
   "title":"OCLC Platform Service Results",
   "updated":"2012-08-06T15:07:33.577Z",
   "links":[
      {
         "href":"https://acq.sd00.worldcat.org/invoices?q=invoiceStatus:OPEN&inst=128807&principalID=8eaa9f92-3951-431c-975a-d7df26b8d131&principalIDNS=urn:oclc:wms:da",
         "rel":"self"
      }
   ],
   "entries":[
      {
         "id":"https://acq.sd00.worldcat.org/invoices/INV-2012-2",
         "title":"INV-2012-2",
         "content":{
            "vendor":{
               "link":{
                  "type":"application/atom+xml",
                  "href":"https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf",
                  "rel":"self"
               },
               "name":"Amazon",
               "invoiceNumber":"KAC-12345",
               "invoiceDate":"2012-06-28"
            },
            "link":"https://acq.sd00.worldcat.org/invoices/INV-2012-2",
            "comment":null,
            "status":"OPEN",
            "currency":"USD",
            "updated":"2012-07-02T14:48:53-04:00",
            "invoiceNumber":"INV-2012-2",
            "invoiceID":"d544052e-8d2f-44fe-a6c4-f03b8c859896",
            "totalPrice":"28.71",
            "totalServiceCharge":"0.00",
            "totalShipping":"0.00",
            "totalTax":"0.00",
            "totalDiscount":"0.00",
            "invoiceTotal":"28.71",
            "itemTotal":"28.71",
            "created":"2012-06-28T14:33:13-04:00",
            "datePaid":null,
            "exchangeRate":"1.000000",
            "totalCopies":"2",
            "invoiceItems":{
               "link":{
                  "type":"application/atom+xml",
                  "href":"https://acq.sd00.worldcat.org/invoices/INV-2012-2/invoiceItems",
                  "rel":"self"
               },
               "invoiceItem":[
                  {
                     "invoice":{
                        "link":{
                           "type":"application/atom+xml",
                           "href":"https://acq.sd00.worldcat.org/invoices/INV-2012-2",
                           "rel":"self"
                        },
                        "vendorInfo":{
                           "link":{
                              "type":"application/atom+xml",
                              "href":"https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf",
                              "rel":"self"
                           },
                           "name":"Amazon",
                           "invoiceNumber":"KAC-12345",
                           "invoiceDate":"2012-06-28"
                        },
                        "etag":"261725ce96229b3fb8067f159b19d231"
                     },
                     "number":"INVI-2012-7",
                     "description":null,
                     "link":{
                        "type":"application/atom+xml",
                        "href":"https://acq.sd00.worldcat.org/invoiceItems/INVI-2012-7",
                        "rel":"self"
                     },
                     "itemType":"FULL",
                     "quantity":1,
                     "unitCost":12.00,
                     "discountPercentage":0.00,
                     "discountValue":0.00,
                     "taxPercentage":0.00,
                     "taxValue":0.00,
                     "shippingAmount":0.00,
                     "serviceCharge":0.00,
                     "totalCost":12.00,
                     "etag":"855f474d91c60766517d5d96dd2c49ff"
                  },
                  {
                     "invoice":{
                        "link":{
                           "type":"application/atom+xml",
                           "href":"https://acq.sd00.worldcat.org/invoices/INV-2012-2",
                           "rel":"self"
                        },
                        "vendorInfo":{
                           "link":{
                              "type":"application/atom+xml",
                              "href":"https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf",
                              "rel":"self"
                           },
                           "name":"Amazon",
                           "invoiceNumber":"KAC-12345",
                           "invoiceDate":"2012-06-28"
                        },
                        "etag":"261725ce96229b3fb8067f159b19d231"
                     },
                     "number":"INVI-2012-5",
                     "description":"The swerve : how the world became modern",
                     "link":{
                        "type":"application/atom+xml",
                        "href":"https://acq.sd00.worldcat.org/invoiceItems/INVI-2012-5",
                        "rel":"self"
                     },
                     "itemType":"FULL",
                     "quantity":1,
                     "unitCost":16.71,
                     "discountPercentage":0.00,
                     "discountValue":0.00,
                     "taxPercentage":0.00,
                     "taxValue":0.00,
                     "shippingAmount":0.00,
                     "serviceCharge":0.00,
                     "totalCost":16.71,
                     "etag":"9641baf40ea7f4f1b764444ff46c3cec"
                  }
               ],
               "etag":"219638d5df3ec55c41f30c51bca07fad"
            },
            "totalItems":"2",
            "etag":"63956f85231dda5ccdb2ff4a1a830a1b"
         },
         "updated":"2012-07-02T18:48:53.000Z",
         "published":"2012-06-28T18:33:13.000Z",
         "links":[
            {
               "href":"https://acq.sd00.worldcat.org/invoices/INV-2012-2",
               "rel":"self",
               "type":"application/atom+xml"
            }
         ],
         "extensions":[
            {
               "name":"gd:etag",
               "attributes":{
                  "xmlns:gd":"http://schemas.google.com/g/2005"
               },
               "children":[
                  "63956f85231dda5ccdb2ff4a1a830a1b"
               ]
            }
         ]
      },
      ...
   ],
   "extensions":[
      {
         "name":"os:totalResults",
         "attributes":{
            "xmlns:os":"http://a9.com/-/spec/opensearch/1.1/"
         },
         "children":[
            "4"
         ]
      },
      {
         "name":"os:startIndex",
         "attributes":{
            "xmlns:os":"http://a9.com/-/spec/opensearch/1.1/"
         },
         "children":[
            "1"
         ]
      },
      {
         "name":"os:itemsPerPage",
         "attributes":{
            "xmlns:os":"http://a9.com/-/spec/opensearch/1.1/"
         },
         "children":[
            "10"
         ]
      }
   ]
}

GET an invoice by ID:

Request:

https://acq.sd00.worldcat.org/invoices/INV-2012-2

Response:

<entry xmlns:gd="http://schemas.google.com/g/2005">
    <title type="text">INV-2012-2</title>
    <id>https://acq.sd00.worldcat.org/invoices/INV-2012-2</id>
    <link href="https://acq.sd00.worldcat.org/invoices/INV-2012-2" rel="self" type="application/atom+xml" />
    <published>2012-06-28T18:33:13.000Z</published>
    <updated>2012-07-02T18:48:53.000Z</updated>
    <content type="application/xml">
      <invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.1/Acquisitions-1.1-invoice.xsd">
        <invoiceNumber>INV-2012-2</invoiceNumber>
        <vendor>
          <link rel="self" href="https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf" type="application/atom+xml" />
          <vendorName>Amazon</vendorName>
          <invoiceNumber>KAC-12345</invoiceNumber>
          <invoiceDate>2012-06-28</invoiceDate>
        </vendor>
        <currency>USD</currency>
        <totalPrice>28.71</totalPrice>
        <totalServiceCharge>0.00</totalServiceCharge>
        <totalShipping>0.00</totalShipping>
        <totalTax>0.00</totalTax>
        <totalDiscount>0.00</totalDiscount>
        <invoiceTotal>28.71</invoiceTotal>
        <itemTotal>28.71</itemTotal>
        <updated>2012-07-02T14:48:53-04:00</updated>
        <created>2012-06-28T14:33:13-04:00</created>
        <status>OPEN</status>
        <exchangeRate>1.000000</exchangeRate>
        <totalCopies>2</totalCopies>
        <totalItems>2</totalItems>
        <invoiceItems>
          <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-2/invoiceItems" type="application/atom+xml" />
          <invoiceItem xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.1/Acquisitions-1.1-invoiceItem.xsd">
            <link rel="self" href="https://acq.sd00.worldcat.org/invoiceItems/INVI-2012-7" type="application/atom+xml" />
            <invoiceItemNumber>INVI-2012-7</invoiceItemNumber>
            <quantity>1</quantity>
            <unitCost>12.00</unitCost>
            <discountPercentage>0.00</discountPercentage>
            <discountValue>0.00</discountValue>
            <taxPercentage>0.00</taxPercentage>
            <taxValue>0.00</taxValue>
            <shippingAmount>0.00</shippingAmount>
            <serviceCharge>0.00</serviceCharge>
            <itemType>FULL</itemType>
            <totalCost>12.00</totalCost>
            <invoiceInfo>
              <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-2" type="application/atom+xml" />
              <vendorInfo>
                <link rel="self" href="https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf" type="application/atom+xml" />
                <vendorName>Amazon</vendorName>
                <invoiceNumber>KAC-12345</invoiceNumber>
                <invoiceDate>2012-06-28</invoiceDate>
              </vendorInfo>
            </invoiceInfo>
          </invoiceItem>
          <invoiceItem xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.1/Acquisitions-1.1-invoiceItem.xsd">
            <link rel="self" href="https://acq.sd00.worldcat.org/invoiceItems/INVI-2012-5" type="application/atom+xml" />
            <invoiceItemNumber>INVI-2012-5</invoiceItemNumber>
            <description>The swerve : how the world became modern</description>
            <quantity>1</quantity>
            <unitCost>16.71</unitCost>
            <discountPercentage>0.00</discountPercentage>
            <discountValue>0.00</discountValue>
            <taxPercentage>0.00</taxPercentage>
            <taxValue>0.00</taxValue>
            <shippingAmount>0.00</shippingAmount>
            <serviceCharge>0.00</serviceCharge>
            <itemType>FULL</itemType>
            <totalCost>16.71</totalCost>
            <invoiceInfo>
              <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-2" type="application/atom+xml" />
              <vendorInfo>
                <link rel="self" href="https://vic.sd00.worldcat.org/vendors/c796db47-deed-4716-abda-fb0815c09ddf" type="application/atom+xml" />
                <vendorName>Amazon</vendorName>
                <invoiceNumber>KAC-12345</invoiceNumber>
                <invoiceDate>2012-06-28</invoiceDate>
              </vendorInfo>
            </invoiceInfo>
          </invoiceItem>
        </invoiceItems>
      </invoice>
    </content>
    <gd:etag>63956f85231dda5ccdb2ff4a1a830a1b</gd:etag>
  </entry>

POST an invoice

Request:

https://acq.sd00.worldcat.org/invoices

Payload:

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom">
	<content type="application/xml">
		<invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions">
			<vendor>
				<link href="/vendors/671f85e1-2efe-4715-ab20-c942e18aef3a" />
				<invoiceNumber>1234562</invoiceNumber>
				<invoiceDate>2012-08-19</invoiceDate>
			</vendor>
			<currency>USD</currency>
			<exchangeRate>1.000000</exchangeRate>
		</invoice>
	</content>
</entry>

Response:

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom">
  <title type="text">INV-2012-7</title>
  <id>https://acq.sd00.worldcat.org/invoices/INV-2012-7</id>
  <link href="https://acq.sd00.worldcat.org/invoices/INV-2012-7" rel="self" type="application/atom+xml" />
  <published>2012-11-02T13:24:47.000Z</published>
  <updated>2012-11-02T13:24:47.000Z</updated>
  <content type="application/xml">
    <invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions" xmlns:ns2="http://worldcat.org/xmlschemas/Acquisitions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.2/Acquisitions-1.2-invoice.xsd">
      <invoiceNumber>INV-2012-7</invoiceNumber>
      <vendor>
        <link rel="self" href="https://vic.sd00.worldcat.org/vendors/671f85e1-2efe-4715-ab20-c942e18aef3a" type="application/atom+xml" />
        <vendorName>Actrace</vendorName>
        <invoiceNumber>1234562222</invoiceNumber>
        <invoiceDate>2012-08-11</invoiceDate>
      </vendor>
      <currency>USD</currency>
      <taxCalculationMethod>EXCLUDE_ADDITIONAL_COSTS</taxCalculationMethod>
      <totalPrice>0.00</totalPrice>
      <totalServiceCharge>0.00</totalServiceCharge>
      <totalShipping>0.00</totalShipping>
      <totalTax>0.00</totalTax>
      <totalDiscount>0.00</totalDiscount>
      <invoiceTotal>0.00</invoiceTotal>
      <itemTotal>0.00</itemTotal>
      <updated>2012-11-02T09:24:47-04:00</updated>
      <created>2012-11-02T09:24:47-04:00</created>
      <status>OPEN</status>
      <exchangeRate>1.000000</exchangeRate>
      <totalCopies>0</totalCopies>
      <totalItems>0</totalItems>
      <invoiceItems>
        <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-7/invoiceItems" type="application/atom+xml" />
      </invoiceItems>
    </invoice>
  </content>
</entry>

PUT an invoice

Request:

https://acq.sd00.worldcat.org/invoices/INV-2012-7

Payload:

<entry xmlns="http://www.w3.org/2005/Atom">
  <title type="text">INV-2012-7</title>
  <id>https://acq.sd00.worldcat.org/invoices/INV-2012-7</id>
  <link href="https://acq.sd00.worldcat.org/invoices/INV-2012-7" rel="self" type="application/atom+xml" />
  <published>2012-11-02T13:24:47.000Z</published>
  <updated>2012-11-02T13:24:47.000Z</updated>
  <content type="application/xml">
    <invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions" xmlns:ns2="http://worldcat.org/xmlschemas/Acquisitions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.2/Acquisitions-1.2-invoice.xsd">
      <invoiceNumber>INV-2012-7</invoiceNumber>
      <vendor>
        <link rel="self" href="https://vic.sd00.worldcat.org/vendors/671f85e1-2efe-4715-ab20-c942e18aef3a" type="application/atom+xml" />
        <vendorName>Actrace</vendorName>
        <invoiceNumber>1234562222</invoiceNumber>
        <invoiceDate>2012-08-11</invoiceDate>
      </vendor>
      <currency>USD</currency>
      <taxCalculationMethod>EXCLUDE_ADDITIONAL_COSTS</taxCalculationMethod>
      <totalPrice>0.00</totalPrice>
      <totalServiceCharge>0.00</totalServiceCharge>
      <totalShipping>0.00</totalShipping>
      <totalTax>0.00</totalTax>
      <totalDiscount>0.00</totalDiscount>
      <invoiceTotal>0.00</invoiceTotal>
      <itemTotal>0.00</itemTotal>
      <updated>2012-11-02T09:24:47-04:00</updated>
      <created>2012-11-02T09:24:47-04:00</created>
      <status>OPEN</status>
      <exchangeRate>1.000000</exchangeRate>
      <totalCopies>0</totalCopies>
      <totalItems>0</totalItems>
      <invoiceItems>
        <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-7/invoiceItems" type="application/atom+xml" />
      </invoiceItems>
      <comment>ADDED A NEW COMMENT</comment>
    </invoice>
  </content>
</entry>

Response:

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom">
  <title type="text">INV-2012-7</title>
  <id>https://acq.sd00.worldcat.org/invoices/INV-2012-7</id>
  <link href="https://acq.sd00.worldcat.org/invoices/INV-2012-7" rel="self" type="application/atom+xml" />
  <published>2012-11-02T13:24:47.000Z</published>
  <updated>2012-11-02T13:24:47.000Z</updated>
  <content type="application/xml">
    <invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions" xmlns:ns2="http://worldcat.org/xmlschemas/Acquisitions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.2/Acquisitions-1.2-invoice.xsd">
      <invoiceNumber>INV-2012-7</invoiceNumber>
      <vendor>
        <link rel="self" href="https://vic.sd00.worldcat.org/vendors/671f85e1-2efe-4715-ab20-c942e18aef3a" type="application/atom+xml" />
        <vendorName>Actrace</vendorName>
        <invoiceNumber>1234562222</invoiceNumber>
        <invoiceDate>2012-08-11</invoiceDate>
      </vendor>
      <currency>USD</currency>
      <taxCalculationMethod>EXCLUDE_ADDITIONAL_COSTS</taxCalculationMethod>
      <totalPrice>0.00</totalPrice>
      <totalServiceCharge>0.00</totalServiceCharge>
      <totalShipping>0.00</totalShipping>
      <totalTax>0.00</totalTax>
      <totalDiscount>0.00</totalDiscount>
      <invoiceTotal>0.00</invoiceTotal>
      <itemTotal>0.00</itemTotal>
      <updated>2012-11-02T09:24:47-04:00</updated>
      <created>2012-11-02T09:24:47-04:00</created>
      <status>OPEN</status>
      <exchangeRate>1.000000</exchangeRate>
      <totalCopies>0</totalCopies>
      <totalItems>0</totalItems>
      <invoiceItems>
        <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-7/invoiceItems" type="application/atom+xml" />
      </invoiceItems>
      <comment>ADDED A NEW COMMENT</comment>
    </invoice>
  </content>
</entry>

GET an invoice to flag it as paid

Request:

https://acq.sd00.worldcat.org/invoices/INV-2012-7/pay

Response:

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom">
  <title type="text">INV-2012-7</title>
  <id>https://acq.sd00.worldcat.org/invoices/INV-2012-7</id>
  <link href="https://acq.sd00.worldcat.org/invoices/INV-2012-7" rel="self" type="application/atom+xml" />
  <published>2012-11-02T13:24:47.000Z</published>
  <updated>2012-11-02T13:24:47.000Z</updated>
  <content type="application/xml">
    <invoice xmlns="http://worldcat.org/xmlschemas/Acquisitions" xmlns:ns2="http://worldcat.org/xmlschemas/Acquisitions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://worldcat.org/xmlschemas/Acquisitions http://worldcat.org/xmlschemas/Acquisitions/1.2/Acquisitions-1.2-invoice.xsd">
      <invoiceNumber>INV-2012-7</invoiceNumber>
      <vendor>
        <link rel="self" href="https://vic.sd00.worldcat.org/vendors/671f85e1-2efe-4715-ab20-c942e18aef3a" type="application/atom+xml" />
        <vendorName>Actrace</vendorName>
        <invoiceNumber>1234562222</invoiceNumber>
        <invoiceDate>2012-08-11</invoiceDate>
      </vendor>
      <currency>USD</currency>
      <taxCalculationMethod>EXCLUDE_ADDITIONAL_COSTS</taxCalculationMethod>
      <totalPrice>0.00</totalPrice>
      <totalServiceCharge>0.00</totalServiceCharge>
      <totalShipping>0.00</totalShipping>
      <totalTax>0.00</totalTax>
      <totalDiscount>0.00</totalDiscount>
      <invoiceTotal>0.00</invoiceTotal>
      <itemTotal>0.00</itemTotal>
      <updated>2012-11-02T09:24:47-04:00</updated>
      <created>2012-11-02T09:24:47-04:00</created>
      <status>PAID</status>
      <exchangeRate>1.000000</exchangeRate>
      <totalCopies>0</totalCopies>
      <totalItems>0</totalItems>
      <invoiceItems>
        <link rel="self" href="https://acq.sd00.worldcat.org/invoices/INV-2012-7/invoiceItems" type="application/atom+xml" />
      </invoiceItems>
      <comment>ADDED A NEW COMMENT</comment>
    </invoice>
  </content>
</entry>

DELETE an invoice

Request:

https://acq.sd00.worldcat.org/invoices/INV-2012-7

Response:

Empty 200 Response

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