RedShelf Price Comparison API

The following information describes how API partners can utilize the RedShelf Price Comparison API to retrieve pricing information and direct users to pre-populated carts.

This API contains two different endpoints: One endpoint is for retrieving pricing information along with the price ID. The second endpoint is for directing a user to a pre-populated cart.

Pricing Endpoint

GET /api/offers.json

Request Parameters isbn

An isbn identifier for a book

Success Response: Pricing

The endpoint will return pricing information based on the provided ISBN in addition to a 200 status code response on success

Example Success Response: Pricing

{"Status": "OK", "Offers": [{"Price": "0.99", "Id": 565961, "Condition": "E-book", "RentalDays": 30}], "Isbn": "0000000000", "success": true, "code": 200}

Cart Endpoint

GET /checkout

Request Parameters ids

An identifier for a book
rejoiner_ids
A rejoiner id for a book

Success Response: Cart

The endpoint will redirect to a populated cart and a 200 response on success

Error responses

400 - Invalid ISBN supplied: ISBN is None, empty, or less than the required length 400 - The requested book does not exist: Book does not exist or is not active, not public, or not published 400 - The requested book is not available: The book’s type of distribution is code 400 - The requested book is not published: The book is not published