Check content request

Purpose
To allow a Glassboxx Vendor website to check if a book can be fulfilled by Glassboxx before the end user is allowed to purchase the book.
Pre-requisites
Token generated from token authentication request with token value included as Bearer in request header.
Request
| base URL + endpoint | /glassboxxcontent/checkContent |
| Method | GET |
Parameters
A URL parameter of the ISBN/sku to be checked.
Responses
ResponseStatus/MessagePurpose/Reason/Resolution
| 200 (OK) | Status SUCCESS Message ‘Product encrypted and enabled’ |
Indicates book can be fulfilled by Glassboxx |
| 200 (OK) | Status SUCCESS Message ‘Pre-order product’ |
Indicates book is a pre-order |
| 200 (OK) | Status ERROR Message ‘SKU doesn’t exist on Glassboxx, Please confirm sku with Glassboxx’ |
Indicates ISBN/SKU is not present on Glassboxx |
| 200 (OK) | Status ERROR Message ‘Product not enabled’ |
Indicates ISBN/SKU has not be encrypted and cannot be fulfilled by Glassboxx |
| 200 (OK) | Status ERROR Message ‘SKU exists on Glassboxx with another vendor. Please confirm sku with Glassboxx’ |
Indicates ISBN/SKU is not assigned to current vendor |
| 400 (Bad request) | Message: “%fieldName is a required field.”,parameters: {fieldName: “customer” | The array has not been passed correctly to the endpoint |
| 400 (Bad request) | Message: “Message ‘Specified request cannot be processed.” | Please check the layout of the full request being passed. |
| 401 (Unauthorized) | You did not sign in correctly or your account is temporarily disabled | Authentication token not supplied or not valid |
| 500 (Internal Server Error) | Message ‘Internal Error. Details are available in Magento log file. Report ID: webapi-xxxxxxxxxxxxxxx’ | Normally means a parameter name has been incorrectly passed in the request |
| 503 (Service Unavailable) | You did not sign in correctly or your account is temporarily disabled | Glassboxx Server not available due to maintenance. |
Examples
1. Example success response
For request https://server.glassboxx.co.uk/rest/V1/glassboxxcontent/checkContent/9781849946650
{
"status": "SUCCESS",
"message": "Product encrypted and enabled"
}
2. Example error response
For request https://server.glassboxx.co.uk/rest/V1/glassboxxcontent/checkContent/9781849946650
{
"status": "ERROR",
"message": "SKU 9781849946650 exists on Glassboxx with another vendor. Please confirm sku with Glassboxx"
}