Create Test Data for Source
Use these APIs to create and modify your test Source orders and items.
Routes
https://test.valorebooks.com/test/buyback/order (qa)
https://api.valorebooks.com/test/buyback/order (production)
POST
Create a new buyback order containing one buyback item
Parameters
Name
Located in
Description
Type
Content-Type
header
String
price
body
Number
isbn
body
String
wantList
query
Value 1-5 to indicate which Want List to create the order for.
Byte
Request Examples
Create a new order containing a new item with a price of $20.00 and isbn of 9780000000002.
Responses
200
The new order and item IDs
400
There is an error in your request
403
Your AWS credentials are not correct
404
Want List not found for buyer
500
An internal error occurred
POST Create a new buyback order containing one buyback item
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
price | body | Number | |
isbn | body | String | |
wantList | query | Value 1-5 to indicate which Want List to create the order for. | Byte |
Request Examples
Create a new order containing a new item with a price of $20.00 and isbn of 9780000000002.
Responses
200 The new order and item IDs
400 There is an error in your request
403 Your AWS credentials are not correct
404 Want List not found for buyer
500 An internal error occurred
https://test.valorebooks.com/test/buyback/changeitemstatus (qa)
https://api.valorebooks.com/test/buyback/changeitemstatus (production)
POST
Change the status of an item
Parameters
Name
Located in
Description
Type
Content-Type
header
String
itemId
body
Number
status
body
accepted, in-transit, or rejected
String
Request Examples
Change the status of the item whose ID is 1001 to `accepted`
Responses
200
Success
400
There is an error in your request
403
Your AWS credentials are not correct
500
An internal error occurred
POST Change the status of an item
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
itemId | body | Number | |
status | body | accepted, in-transit, or rejected | String |
Request Examples
Change the status of the item whose ID is 1001 to `accepted`
Responses
200 Success
400 There is an error in your request
403 Your AWS credentials are not correct
500 An internal error occurred
https://test.valorebooks.com/test/buyback/shipment (qa)
https://api.valorebooks.com/test/buyback/shipment (production)
POST
Create a shipment for one or more items
Parameters
Name
Located in
Description
Type
Content-Type
header
String
itemIds
body
Array
wantList
query
Value 1-5 to indicate which Want List to create the shipment for.
Byte
Request Examples
Create a shipment for items 1001 and 1002
Responses
200
Success
400
There is an error in your request
403
Your AWS credentials are not correct
404
Want List not found for buyer
500
An internal error occurred
POST Create a shipment for one or more items
Parameters
Name | Located in | Description | Type |
---|---|---|---|
Content-Type | header | String | |
itemIds | body | Array | |
wantList | query | Value 1-5 to indicate which Want List to create the shipment for. | Byte |