Fetches the checkout by the checkout id.
GET /v1/checkouts/<checkout id>
checkout id | The checkout id. |
{ "id": "<checkout id>", "contentLinks": "<content links>", "supplementLinks": "<supplement links>", "expirationDate": "<expiration date>" }
checkout id | The checkout id. |
content links | The media content links array. Every element in the array is an object with singleton property <href>. The property specifies the media url. |
supplement links | The media supplement links array. Every element in the array is an object with properties <name> and <href>. The <name> property specifies the supplement link name and <href> specifies the supplement material url. |
expiration date | The checkout expiration date in ISO 8601 format. |
Example request:
GET /v1/checkouts/checkoutId
Example response:
{ "id": "checkoutId", "contentLinks": [ {"href": "http:/localhost:16521/ep/api/v1/records/recordId_0/ebook/content_0"}, {"href": "http:/localhost:16521/ep/api/v1/records/recordId_0/ebook/content_1"} ], "supplementLinks": [ {"name": "supplement_0", "href": "http:/localhost:16521/ep/api/v1/records/recordId_0/ebook/supplement_0"}, {"name": "supplement_1", "href": "http:/localhost:16521/ep/api/v1/records/recordId_0/ebook/supplement_1"} ], "expirationDate": "2016-01-01T00:00:00Z" }