Fetches the checkout by the Local Management System id.
GET /v3/checkouts?lmsLoanId=<lms loan id>&language=<language code>
lms loan id | The lms loan id ex: 42268539 |
language code | The language code ex: en |
{ "metadata":{ "id":<checkout id>, "lmsLoanId":"<lms loan id>", "contentProviderLoanId":"<content provider loan id>", "expirationDate":<expiration date>, "format":{ "id":"<format id>", "name":"<format name>", "description":"<format description>", "contentDisposition":"<content disposition>" } }, "contentLinks":[ {"href":"<content url>"}, {"href":"<content url>"} }, "supplementLinks": [ {"href":"<supplement link url>", "name": "<supplement link name>"}, {"href":"<supplement link url>", "name": "<supplement link name>"} ] }
<checkout id> | The checkout id. | ||||
<format metadata> | The format metadata is a JSON object with properties of format id. The value of each property is an object with value of properties "<content
links>" and "<supplement links>" where:
|
||||
<expiration date> | The checkout expiration date in seconds since epoch. See Epoch & Unix Timestamp Conversion Tools |
Example request:
GET /v3/checkouts?lmsLoanId=7462892&language=en
Example response:
{ "metadata":{ "id":1271261, "lmsLoanId":"7462892", "contentProviderLoanId":"18727936", "expirationDate":1494374400000, "format":{ "id":"4002", "name":"Listen on computer", "description":"E-audiobook played in browser, Flash is required", "contentDisposition":"DOWNLOADABLE" } }, "contentLinks":[ {"href":"https://zebservices.elib.se/v2/Fulfillment/?data=xxxxx"}, {"href":"https://zebservices.elib.se/v2/Fulfillment/?data=yyyyy"} }, "supplementLinks": [ {"href":"https://zebservices.elib.se/v2/Fulfillment/?data=ttttt", "name": "Supplement 1"}, {"href":"https://zebservices.elib.se/v2/Fulfillment/?data=zzzzz", "name": "Supplement 2"} ] }