Buyback Cart API
Use these APIs to create, manage and submit buyback orders with ValoreBooks.
Routes
https://test.valorebooks.com/marketplace/buyback/cart (qa)
https://api.valorebooks.com/marketplace/buyback/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 buyback 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 buyback list
403 Your AWS credentials are not correct
500 An internal error occurred
https://test.valorebooks.com/marketplace/buyback/cart/{id} (qa)
https://api.valorebooks.com/marketplace/buyback/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 buyback 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 buyback 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/marketplace/buyback/cart/{id}/checkout (qa)
https://api.valorebooks.com/marketplace/buyback/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
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 |
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
https://test.valorebooks.com/marketplace/buyback/cart/{cartId}/item/{itemId} (qa)
https://api.valorebooks.com/marketplace/buyback/cart/{cartId}/item/{itemId} (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/marketplace/buyback/cart/{id}/item (qa)
https://api.valorebooks.com/marketplace/buyback/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 |