Manage Direct Offers
Get Direct Offers Information
The following shows how to GET Direct Offers information:
curl -XGET
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/listings/[listing_id]/auto_offer
Response example:
{
"offer_percentage": 10,
"offer_price": {
"amount": "971.99",
"amount_cents": 97199,
"currency": "USD",
"symbol": "$",
"display": "$971.99"
},
"message": "",
"_links": {
"listing": {
"href": "https://api.reverb.com/api/listings/[listing_id]"
}
}
}
Assign Direct Offers
The following shows how to assign Direct Offers:
curl -XPOST
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/listings/[listing_id]/auto_offer
-d '{
"offer_percentage": 10 // This value should be an integer. Example, 10 will correspond to 10%, 15 to 15%, and so on.
}'
If you receive the following error response, your account may not have Direct Offers activated. Please reach out to [email protected] with any questions.
{
"message": "You are not authorized to perform this action.",
"error_type": null
}
Remove Direct Offers
The following shows how to remove Direct Offers from a listing:
curl -XDELETE
-H "Content-Type: application/hal+json"
-H "Accept: application/hal+json"
-H "Accept-Version: 3.0"
-H "Authorization: Bearer [personal_token]"
https://api.reverb.com/api/listings/[listing_id]/auto_offer
Updated over 1 year ago