Manage Direct Offers
1. Get Direct Offers Information
/api/listings/<listing_id>/auto_offer
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 [oauth_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": null,
"_links": {
"listing": {
"href": "https://api.reverb.com/api/listings/<listing_id>"
}
}
}
2. Assign Direct Offers
/api/listings/<listing_id>/auto_offer
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 [oauth_token]" https://api.reverb.com/api/listings/<listing_id>/auto_offer
{
"offer_percentage": 10 // This value should be an integer. Example, 10 will correspond to 10%, 15 to 15%, and so on.
}
Notes:
If you receive the following error, 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 }
3. Remove Direct Offers
/api/listings/<listing_id>/auto_offer
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 [oauth_token]" https://api.reverb.com/api/listings/<listing_id>/auto_offer
Updated almost 2 years ago