Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleAlternate Response - Transfer Item
linenumberstrue
{
  "message": "Failed",
  "holdingTransferResponses": [],
  "itemTransferResponses": [
    {
      "message": "Source and Destination item ids are not matching", // When the item id across source and destination are different
      "itemTransferRequest": {
        "source": {
          "owningInstitutionBibId": "1421",
          "owningInstitutionHoldingsId": "1621",
          "owningInstitutionItemId": "6320902"
        },
        "destination": {
          "owningInstitutionBibId": "53624",
          "owningInstitutionHoldingsId": "59753",
          "owningInstitutionItemId": "1234"
        }
      }
    }
  ]
}


Code Block
languagejs
titleRequest - Transfer Holdings
linenumberstrue
{
  "institution": "PUL",
  "holdingTransfers": [
    {
      "destination": {
        "owningInstitutionBibId": "1421", // The source bib id is the bib id from which the holding id is being moved.
        "owningInstitutionHoldingsId": "59753" // The holding id is the id that is to be moved.
      },
      "source": {
        "owningInstitutionBibId": "53624", // The destination bib id is the bib id to which the holding id is moved.
        "owningInstitutionHoldingsId": "59753" // The holding id is the id that is to be moved. This is the same both in source and destination.
      }
    }
  ]
}


Code Block
languagejs
titleResponse - Transfer Holdings
linenumberstrue
{
  "message": "Success",
  "holdingTransferResponses": [
    {
      "message": "Successfully relinked", // Success Message
      "holdingsTransferRequest": {
        "source": {
          "owningInstitutionBibId": "53624", 
          "owningInstitutionHoldingsId": "59753" 
        },
        "destination": {
          "owningInstitutionBibId": "1421", 
          "owningInstitutionHoldingsId": "59753" 
        }
      }
    }
  ],
  "itemTransferResponses": []
}