Sellback Cart API
Use these APIs to create, manage and submit sellback orders with ValoreBooks.
Routes
https://test.valorebooks.com/sellback/cart (qa)
https://api.valorebooks.com/sellback/cart (production)
POST
Create a new cart to add items to
Parameters
Name
Located in
Description
Type
Content-Type
header
String
Responses
200
Details about your newly created sellback list
403
Your AWS credentials are not correct
500
An internal error occurred
POST Create a new cart to add items to
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String |
Responses
200 Details about your newly created sellback list
403 Your AWS credentials are not correct
500 An internal error occurred
https://test.valorebooks.com/sellback/cart/{id}/item (qa)
https://api.valorebooks.com/sellback/cart/{id}/item (production)
POST
Add an item to your cart
Parameters
Name
Located in
Description
Type
Content-Type
header
String
id
path
Id of cart the item will be added to
Long
isbn
body
ISBN of item that will be added to the cart
String
Request Examples
Responses
200
Details about the cart with the newly added item
400
There was an error with your request
403
Your AWS credentials are not correct
404
Not found
500
An internal error occurred
POST Add an item to your cart
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
id | path | Id of cart the item will be added to | Long |
isbn | body | ISBN of item that will be added to the cart | String |
Request Examples
Responses
200 Details about the cart with the newly added item
400 There was an error with your request
403 Your AWS credentials are not correct
404 Not found
500 An internal error occurred
https://test.valorebooks.com/sellback/cart/{id} (qa)
https://api.valorebooks.com/sellback/cart/{id} (production)
GET
Retrieve a list of all the items currently in your cart
Parameters
Name
Located in
Description
Type
Content-Type
header
String
id
path
Id of the sellback cart
String
Responses
200
Details about your cart and items
403
Your AWS credentials are not correct
404
Not found
500
An internal error occurred
GET Retrieve a list of all the items currently in your cart
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
id | path | Id of the sellback cart | String |
Responses
200 Details about your cart and items
403 Your AWS credentials are not correct
404 Not found
500 An internal error occurred
https://test.valorebooks.com/sellback/cart/{id}/lock (qa)
https://api.valorebooks.com/sellback/cart/{id}/lock (production)
POST
Lock all items currently in your cart for another 10 minutes
Parameters
Name
Located in
Description
Type
Content-Type
header
String
id
path
Id of the sellback cart you want to lock
String
Responses
200
Details about your cart and items
400
There was an error with your request
403
Your AWS credentials are not correct
404
Not found
500
An internal error occurred
POST Lock all items currently in your cart for another 10 minutes
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
id | path | Id of the sellback cart you want to lock | String |
Responses
200 Details about your cart and items
400 There was an error with your request
403 Your AWS credentials are not correct
404 Not found
500 An internal error occurred
https://test.valorebooks.com/sellback/cart/{cartId}/item/{itemId}/remove (qa)
https://api.valorebooks.com/sellback/cart/{cartId}/item/{itemId}/remove (production)
DELETE
Remove an item from your cart
Parameters
Name
Located in
Description
Type
Content-Type
header
String
cartId
path
Id of cart the item will be removed from
Long
itemId
path
Id of item that will be removed from the cart
Long
Responses
200
Success
400
There was an error with your request
403
Your AWS credentials are not correct
404
Not found
500
An internal error occurred
DELETE Remove an item from your cart
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
cartId | path | Id of cart the item will be removed from | Long |
itemId | path | Id of item that will be removed from the cart | Long |
Responses
200 Success
400 There was an error with your request
403 Your AWS credentials are not correct
404 Not found
500 An internal error occurred
https://test.valorebooks.com/sellback/cart/{cartId}/item/{itemId}/acknowledgeRemove (qa)
https://api.valorebooks.com/sellback/cart/{cartId}/item/{itemId}/acknowledgeRemove (production)
POST
Acknowledge an item has been removed from your cart
Parameters
Name
Located in
Description
Type
Content-Type
header
String
cartId
path
Id of cart the item was removed from
Long
itemId
path
Id of item that was removed from the cart
Long
Responses
200
Success
400
There was an error with your request
403
Your AWS credentials are not correct
404
Not found
500
An internal error occurred
POST Acknowledge an item has been removed from your cart
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
cartId | path | Id of cart the item was removed from | Long |
itemId | path | Id of item that was removed from the cart | Long |
Responses
200 Success
400 There was an error with your request
403 Your AWS credentials are not correct
404 Not found
500 An internal error occurred
https://test.valorebooks.com/sellback/cart/{id}/checkout (qa)
https://api.valorebooks.com/sellback/cart/{id}/checkout (production)
POST
Complete the checkout and create orders for the items in your cart
Parameters
Name
Located in
Description
Type
Content-Type
header
String
id
path
Id of the cart you want to checkout
String
address
body
Contains payment address information
Object
line1
address
First line of payment address
Object
line2
address
Line 2 of payment address (Note: This value cannot exceed 35 characters)
String
city
address
City of payemnt address
String
state
address
Two letter US state abbreviation of payment address (e.g. MA)
String
postalCode
address
5 or 9 digit US postal code of payment address (e.g. 02210 or 02210-1014)
String
emailAddress
body
Email address of contact
Object
firstName
body
First name of contact
String
lastName
body
Last name of contact
String
phoneNumber
body
Phone number of contact
String
paymentMethod
body
Payment method for the order (CHECK or PAYPAL)
String
Request Examples
Responses
200
Details about your order
400
There was an error with your request
403
Your AWS credentials are not correct
404
Not found
409
There was a confilict with your request
500
An internal error occurred
POST Complete the checkout and create orders for the items in your cart
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
id | path | Id of the cart you want to checkout | String |
address | body | Contains payment address information | Object |
line1 | address | First line of payment address | Object |
line2 | address | Line 2 of payment address (Note: This value cannot exceed 35 characters) | String |
city | address | City of payemnt address | String |
state | address | Two letter US state abbreviation of payment address (e.g. MA) | String |
postalCode | address | 5 or 9 digit US postal code of payment address (e.g. 02210 or 02210-1014) | String |
emailAddress | body | Email address of contact | Object |
firstName | body | First name of contact | String |
lastName | body | Last name of contact | String |
phoneNumber | body | Phone number of contact | String |
paymentMethod | body | Payment method for the order (CHECK or PAYPAL) | String |