OCLC Developer Network

NCIP Reponses

NCIP responses take the form of an XML document containing the appropriate information. Each message returns a specific set of fields and information, some of these fields can be configured based on the NCIP request.

All responses must include the following fields

ElementRequired?Description
ResponseHeader/FromAgencyId/@SchemeYes

OCLC Registry Id Scheme URI

http://oclc.org/ncip/schemes/agencyid.scm

ResponseHeader/FromAgencyIdYesRegistry ID of the library/branch in which the circulation operation is taking place
ResponseHeader/ToAgencyIdYesMust match the FromAgencyId

 

CheckIn
 

ElementRequiredDescription
ItemId/AgencyIdYesRegistry Id of the institution to which the item belongs
ItemId/ItemIdentifierValueYesBarcode of the Item
UserId/AgencyIdYesThe OCLC registry ID of the institution that the item was previously checked out to.
UserId/UserIdentifierValueYesThe barcode of the user that the item was previously checked out to.
FiscalTransactionInformationIf bill is created as result of operation 
RoutingInformationYesDetails about what the next action that should occur to the item is.
RoutingInformation / RoutingInstructionsYes

Information about what the next action should be:

  • The literal string “Process” (optionally followed by a colon ‘:’ and some free form text) indicates that the item is being routed for processing (cataloguing, repair etc).
  • The literal string “Request” followed by a colon and the request identifier indicates that the item is being routed as a result of a request.
  • The literal string “Re-shelve” if the item should be re-shelved.
  • The literal string “Withdrawn” if the item has been withdrawn from the collection
RoutingInformation / UserId / UserIdentifierValueif the item is being routed for a requestThe barcode of the user that the item was requested for
RoutingInformation / Destination / Location / LocationType / @SchemeYesMust be the NCIP Location Type Scheme URI
http://www.niso.org/ncip/v1_0/imp1/schemes/ locationtype/locationtype.scm
RoutingInformation / Destination / Location / LocationTypeYesThe literal string “Current”.
RoutingInformation / Destination / Location / LocationName / LocationNameInstance / LocationNameLevelYesLevel 1: the holding code
Level 2: the shelving location
RoutingInformation / Destination / Location / LocationName / LocationNameInstance / LocationNameValueYesThe location information.
RoutingInformation / Destination / LocationYesLevel 1: the holding code associated with a branch that is the destination for the item.
Level 2: the shelving location at the branch that is the destination for the item (optional).
RoutingInformation / Name InformationIf the item is being routed to satisfy a request

The name of the individual or institution that the item is for.

The name of the individual will be in the fields of the PersonNameInformation / StructuredPersonalUserName field.

The name of the institution will be in the OrganizationNameInformation / OrganizationName field.

RoutingInformation / RequestType / @SchemeIf the item is being routed to satisfy a requestMust be the NCIP Request Type Scheme URI
http://www.niso.org/ncip/v1_0/imp1/schemes/requesttype/requesttype.scm
RoutingInformation / RequestTypeIf the item is being routed to satisfy a request

The type of request if the item is being routed to satisfy a request.

  • Must be the literal string “Hold” if the request was for a Hold;
  • “Stack Retrieval” if the request was for Stack Retrieval
  • or “Loan” if the request was for an ILL.
RoutingInformation / UserId /AgencyIdIf the item is being routed to satisfy a requestThe OCLC registry ID of the institution that the item was requested for
ItemOptionalFieldsNoRequested optional item fields

 

CheckOut
 

ElementRequiredDescription
ItemId/AgencyIdYesRegistry Id of the institution to which the item belongs
ItemId/ItemIdentifierValueYesBarcode of the Item
UserId/AgencyIdYesOCLC Registry ID of the institution to check the item out to or to which the user to check the item out to is associated
UserId/UserIdentifierValueYesBarcode of the user to whom the item is being checked out
DueDateYesThe date/time that the item is due to be returned by
Must be in ISO 8601 format. Eg - 2010-12-31T13:30:00Z
FiscalTransactionInformationIf a bill is created as a result of the operation 
RenewalCountYesNumber of times the items has been renewed.
ItemOptionalFieldsNoRequested optional item fields

RequestItem
 

ElementRequiredDescription
RequestIdPresent if the responding system was unable to determine the item that will be used to fill this request at the time the service was invoked. The value will be the same as the value of RequestId of the associated request. 
RequestId/AgencyId/@SchemeYesMust be the OCLC Regstry Id Scheme URI (see Section 10 of this Profile).
RequestId/AgencyIdYesMust be the Regstry Id of the library with which the RequestIdentifierValue is associated.
RequestId/RequestIdentifierValueYesMust be the same value as the RequestId / RequestIdentifierValue of the associated request.
UserId/AgencyIdYesMust be identical to the UserId in the Request Item message that invoked the service.
UserId/UserIdentifierValueYesMust be identical to the UserId in the Request Item message that invoked the service.
RequestType/@SchemeYes

Must be the NCIP Request Scheme URI

http://www.niso.org/ncip/v1_0/imp1/schemes/requesttype/requesttype.scm

RequestTypeYesMust be identical to the RequestType in the Request Item message that invoked the service.
RequestScopeType/@SchemeYes

Must be the NCIP Request Scope Type Scheme URI

http://www.niso.org/ncip/v1_0/imp1/schemes/requestscopetype/requestscopetype.scm

RequestScopeTypeYesMust be “Item” if the responding system was able to determine the item that will be used to fill this request at the time the service was invoked; otherwise “Bibliographic Item”.
ItemOptionalFieldsNoRequested optional item fields

CancelRequestItem
 

ElementRequiredDescription
UserIdYesMust be identical to the UserId in the Cancel Request Item message that invoked the service.
UserId/AgencyIdYes 
UserId/UserIdentifierValueYes 
ItemIdEither this or the RequestId must be presentMust be identical to the ItemId in the Cancel Request Item message that invoked the service.
ItemId/AgencyId  
ItemId/ItemIdentifierValue  
RequestIdEither this or the ItemId must be presentMust be identical to the RequestId in the Cancel Request Item message that invoked the service.
RequestId/AgencyId  
RequestId/RequestIdentifierValue  
ItemOptionalFieldsNoRequested optional item fields

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