folio.drew.edu | api notes | Rapido | re AcceptItem XML

copied from Basecamp

edited

copied from the Getting Started Guide

likewise edited

copied from Basecamp

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NCIPMessage xmlns="http://www.niso.org/2008/ncip" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="http://www.niso.org/schemas/ncip/v2_0/imp1/xsd/ncip_v2_0.xsd">
   <AcceptItem>
      <InitiationHeader>
         <FromAgencyId>
            <AgencyId>EXLDEV1_INST</AgencyId>
         </FromAgencyId>
         <ToAgencyId>
            <AgencyId>EXLDEV1_INST</AgencyId>
         </ToAgencyId>
         <ApplicationProfileType>OCLC_Nav</ApplicationProfileType>
      </InitiationHeader>
      <RequestId>
         <AgencyId>EXLDEV1_INST</AgencyId>
         <RequestIdentifierValue>358AALTO0002583</RequestIdentifierValue>
      </RequestId>
      <RequestedActionType Scheme="https://www.niso.org/ncip/v1_0/imp1/schemes/requestedactiontype/requestedactiontype.scm">Hold For Pickup</RequestedActionType>
      <UserId>
         <AgencyId>EXLDEV1_INST</AgencyId>
         <UserIdentifierType>Barcode Id</UserIdentifierType>
         <UserIdentifierValue>gdobson</UserIdentifierValue>
      </UserId>
      <ItemId>
         <AgencyId>main</AgencyId>
         <UserIdentifierType>Barcode Id</UserIdentifierType>
         <ItemIdentifierValue>bar3</ItemIdentifierValue>
      </ItemId>
      <ItemOptionalFields>
         <BibliographicDescription>
            <Author>Gould, Laurence McKinley ; Paige, David Abbey</Author>
            <BibliographicRecordId>
               <BibliographicRecordIdentifier>1130027799</BibliographicRecordIdentifier>
               <BibliographicRecordIdentifierCode Scheme="http://www.niso.org/ncip/v1_0/imp1/schemes/bibliographicrecordidentifiercode/bibliographicrecordidentifiercode.scm">OCLC</BibliographicRecordIdentifierCode>
            </BibliographicRecordId>
            <PlaceOfPublication>Chicago</PlaceOfPublication>
            <PublicationDate>2019</PublicationDate>
            <Publisher>Red Kestrel Books</Publisher>
            <Title>Cold: The Record of an Antarctic Sledge Journey</Title>
            <BibliographicLevel Scheme="https://www.niso.org/ncip/v1_0/imp1/schemes/bibliographiclevel/bibliographiclevel.scm">Monograph</BibliographicLevel>
         </BibliographicDescription>
         <ItemDescription/>
         <Ext>
            <RequestNote xmlns=""/>
         </Ext>
      </ItemOptionalFields>
      <PickupLocation>main</PickupLocation>
      <Ext>
         <Volume xmlns=""/>
         <Parts xmlns=""/>
         <Chapters xmlns=""/>
         <Sources xmlns=""/>
      </Ext>
   </AcceptItem>
</NCIPMessage>

edited

  • the AgencyId must be Rapido
  • the UserIdentifierValue must be an active and notBlocked user barcode
  • the PickupLocation must match the checkout.service.point.code in te Rapido configuration entries (aka ILL)
this still only returned a useless 500 - Internal Server Error

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NCIPMessage xmlns="http://www.niso.org/2008/ncip" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="http://www.niso.org/schemas/ncip/v2_0/imp1/xsd/ncip_v2_0.xsd">
   <AcceptItem>
      <InitiationHeader>
         <FromAgencyId>
            <AgencyId>Rapido</AgencyId>
         </FromAgencyId>
         <ToAgencyId>
            <AgencyId>Rapido</AgencyId>
         </ToAgencyId>
         <ApplicationProfileType>OCLC_Nav</ApplicationProfileType>
      </InitiationHeader>
      <RequestId>
         <AgencyId>Rapido</AgencyId>
         <RequestIdentifierValue>358AALTO0002583</RequestIdentifierValue>
      </RequestId>
      <RequestedActionType Scheme="https://www.niso.org/ncip/v1_0/imp1/schemes/requestedactiontype/requestedactiontype.scm">Hold For Pickup</RequestedActionType>
      <UserId>
         <AgencyId>Rapido</AgencyId>
         <UserIdentifierType>Barcode Id</UserIdentifierType>
         <UserIdentifierValue>21144000365073</UserIdentifierValue>
      </UserId>
      <ItemId>
         <AgencyId>Rapido</AgencyId>
         <ItemIdentifierValue>bar3</ItemIdentifierValue>
      </ItemId>
      <ItemOptionalFields>
         <BibliographicDescription>
            <Author>Gould, Laurence McKinley ; Paige, David Abbey</Author>
            <BibliographicRecordId>
               <BibliographicRecordIdentifier>1130027799</BibliographicRecordIdentifier>
               <BibliographicRecordIdentifierCode Scheme="http://www.niso.org/ncip/v1_0/imp1/schemes/bibliographicrecordidentifiercode/bibliographicrecordidentifiercode.scm">OCLC</BibliographicRecordIdentifierCode>
            </BibliographicRecordId>
            <PlaceOfPublication>Chicago</PlaceOfPublication>
            <PublicationDate>2019</PublicationDate>
            <Publisher>Red Kestrel Books</Publisher>
            <Title>Cold: The Record of an Antarctic Sledge Journey</Title>
            <BibliographicLevel Scheme="https://www.niso.org/ncip/v1_0/imp1/schemes/bibliographiclevel/bibliographiclevel.scm">Monograph</BibliographicLevel>
         </BibliographicDescription>
         <ItemDescription/>
         <Ext>
            <RequestNote xmlns=""/>
         </Ext>
      </ItemOptionalFields>
      <PickupLocation>ILL</PickupLocation>
      <Ext>
         <Volume xmlns=""/>
         <Parts xmlns=""/>
         <Chapters xmlns=""/>
         <Sources xmlns=""/>
      </Ext>
   </AcceptItem>
</NCIPMessage>

copied from the Getting Started Guide

<?xml version="1.0" encoding="UTF-8"?>
<NCIPMessage version="http://www.niso.org/schemas/ncip/v2_0/ncip_v2_0.xsd"
   xmlns="http://www.niso.org/2008/ncip">
        <AcceptItem>
                <InitiationHeader>
                     <FromAgencyId>
                        <AgencyId>ReShare</AgencyId>
                    </FromAgencyId>
                    <ToAgencyId>
                        <AgencyId>ReShare</AgencyId>
                    </ToAgencyId>
                    <ApplicationProfileType>EZBORROW</ApplicationProfileType>
                    </InitiationHeader>
                <RequestId>
                        <AgencyId>ReShare</AgencyId>
                        <RequestIdentifierValue>LEH-202003231237</RequestIdentifierValue>
                </RequestId>
                <RequestedActionType>Hold For Pickup</RequestedActionType>
                <UserId>
                        <AgencyId>LEH</AgencyId>
                        <UserIdentifierValue>194710970216014</UserIdentifierValue>
                </UserId>
                <ItemId>
                        <AgencyId>LEH</AgencyId>
                        <ItemIdentifierValue>LEH-202003231237</ItemIdentifierValue>
                </ItemId>
                <ItemOptionalFields>
                        <BibliographicDescription>
                        <Author>Author</Author>
                        <Title>NCIP TEST</Title>
                </BibliographicDescription>
                <ItemDescription>
                        <CallNumber>Call Number</CallNumber>
                </ItemDescription>
                </ItemOptionalFields>
                <PickupLocation>cd1</PickupLocation>
        </AcceptItem>
</NCIPMessage>

likewise edited
this worked

<?xml version="1.0" encoding="UTF-8"?>
<NCIPMessage version="http://www.niso.org/schemas/ncip/v2_0/ncip_v2_0.xsd"
   xmlns="http://www.niso.org/2008/ncip">
        <AcceptItem>
                <InitiationHeader>
                     <FromAgencyId>
                        <AgencyId>Rapido</AgencyId>
                    </FromAgencyId>
                    <ToAgencyId>
                        <AgencyId>Rapido</AgencyId>
                    </ToAgencyId>
                    <ApplicationProfileType>EZBORROW</ApplicationProfileType>
                    </InitiationHeader>
                <RequestId>
                        <AgencyId>Rapido</AgencyId>
                        <RequestIdentifierValue>LEH-202003231237</RequestIdentifierValue>
                </RequestId>
                <RequestedActionType>Hold For Pickup</RequestedActionType>
                <UserId>
                        <AgencyId>Rapido</AgencyId>
                        <UserIdentifierValue>21144000365073</UserIdentifierValue>
                </UserId>
                <ItemId>
                        <AgencyId>Rapido</AgencyId>
                        <ItemIdentifierValue>LEH-202003231237</ItemIdentifierValue>
                </ItemId>
                <ItemOptionalFields>
                        <BibliographicDescription>
                        <Author>Author</Author>
                        <Title>NCIP TEST</Title>
                </BibliographicDescription>
                <ItemDescription>
                        <CallNumber>Call Number</CallNumber>
                </ItemDescription>
                </ItemOptionalFields>
                <PickupLocation>ILL</PickupLocation>
        </AcceptItem>
</NCIPMessage>