Versions Compared

Key

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

...

Get a list of libraries

GET

code

Supported Methods

Code Block

Endpoint Location

/public/v1/libraryGroups/:library_group_id/libraries?access_token=ffffffff-ffff-ffff-ffff-ffffffffffff

Endpoint Parameters

:library_group_id

Replace the :library_group_id portion of the endpoint path with the id # of your library group, which will be provided by support@thirdiron.com

...

Example response body

Code Block
languagejson
{
  "data": [
    {
      "id": "39411",
      "name": "First Library in the Group",
      "type": "libraries"
    },
    {
      "id": "39412",
      "name": "Second Library in the Group",
      "type": "libraries"
    }
  ]
}

Check the availability of an article in a library group

codecode

Supported Methods

GET

Endpoint Location

/public/v1/libraryGroups/:library_group_id/libraries/:library_id/articles/doi/:article_doi?access_token=ffffffff-ffff-ffff-ffff-ffffffffffff

-or-

code

/public/v1/libraryGroups/:library_group_id/libraries/:library_id/articles/pmid/:article_pmid?access_token=ffffffff-ffff-ffff-ffff-ffffffffffff

Endpoint Parameters

:library_group_id

Replace the :library_group_id portion of the endpoint path with the id # of your library group

:library_id

Replace the :library_id portion of the endpoint path with the id # of your library

:article_doi

Replace :article_doi with the DOI of an article. Only one DOI can be supplied. (DOI value does not need to be URI encoded)

:article_pmid

Replace :article_pmid with the pmid of an article. Only one pmid can be supplied.

Optional Includes

?include=journal

Adding this include to your request will cause the response to include information about the journal that the DOI is located within.  This includes the name of the journal, ISSN, SJR Value, Cover Image URL, BrowZine Enabled Status and the Link to the Journal (more details below including example response)

...

Create a fulfillment request

code

/public/v1/libraryGroups/:library_group_id/fulfillmentRequests?access_token=ffffffff-ffff-ffff-ffff-ffffffffffff

Supported Methods

POST

Endpoint Location

Code Block

Endpoint Parameters

:library_group_id

Replace the :library_group_id portion of the endpoint path with the id # of your library group

Mandatory Body Fields

These must appear in the body of the POST

type

This should be the value fulfillment-requests

articleId

Send the DOI of an article. Only one DOI can be supplied. DOI value does not need to be URI encoded.

requesterLibraryId

This is the Third Iron ID of your library, to indicate from where the fulfillment request is arriving.

requesterEmail

This is the email address to which you would like the fulfillment response to arrive.

lenderLibraryId

This is the library ID from which you would like to attempt to borrow the article. This typically should be captured by using the “Check the availability of an article in a library group” endpoint documented above.

Optional Body Fields

customReference

Add a string here if you would like to store a unique identifier for your fulfillment request.

...

Get the status of a fulfillment request

GET

/public/v1/libraryGroups/:library_group_id/fulfillmentRequests/:fulfillment_request_id?access_token=ffffffff-ffff-ffff-ffff-ffffffffffff

Supported Methods

Code Block

Endpoint Location

Code Block

Endpoint Parameters

:library_group_id

Replace the :library_group_id portion of the endpoint path with the id # of your library group

:fulfillment_request_id

Replace the :fulfillment_request_id portion of the endpoint path with the ID # of your fulfillment request. This is typically acquired when you create a fulfillment request using the POST endpoint documented above.

Optional Includes

?include=journal

Adding this include to your request will cause the response to include information about the journal that the DOI is located within.  This includes the name of the journal, ISSN, SJR Value, Cover Image URL, BrowZine Enabled Status and the Link to the Journal (more details below including example response)

...

Example response body

Code Block
languagejson
{
  "data": {
    "id": "20221003-randomid",
    "type": "fulfillment-requests",
    "created": "2024-10-21T23:58:11.833Z",
    "lastUpdated": "2024-10-21T23:58:11.833Z",
    "status": "pending",
    "articleId": 689611,
    "requesterLibraryId": 9875,
    "requesterEmail": "requester@foo.somewhere",
    "lenderLibraryId": 9876,
    "libraryGroupId": 123,
    "customReference": "abc-123",
    "relationships": {
      "article": {
        "data": {
          "id": 689611,
          "type": "articles"
        }
      },
      "journal": {
        "data": {
          "type": "journals"
        }
      },
      "issue": {
        "data": {
          "id": 68961,
          "type": "issues"
        }
      },
      "requesterLibrary": {
        "data": {
          "id": 9875,
          "type": "libraries"
        }
      },
      "lenderLibrary": {
        "data": {
          "id": 9876,
          "type": "libraries"
        }
      }
    }
  }
}