Manage Sales
Add Listings To A Sale
You can add up to 25 listings at a time by passing an array of listing IDs.
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/sales/[sale_id]/listings
-d '{
"listing_ids":["21363","24524"]
}'
Response example:
{
"results":[
{
"listing_id":"21363",
"success":true,
"message":"OK"
},
{
"listing_id":"24524",
"success":false,
"message":"You are not authorized to add this listing to a sale." // example error message
}
]}
Remove Listings From A Sale
You can remove up to 25 listings at a time by passing an array of listing IDs.
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/sales/[sale_id]/listings
-d '{
"listing_ids":["21363","24524"]
}'
Response example:
{"results":[
{
"listing_id":"21363",
"success":true,
"message":"OK"
},
{
"listing_id":"24524",
"success":false,
"message":"You are not authorized to remove this listing from a sale." // example error message
}
]}
View All Sales for a Given Listing
Authentication is not required to request sales for a specific listing. However, an authenticated user may see more 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]/sales
Response example:
{
"total":1,
"_links":{},
"sales":[
{
"id":5,
"discount_percent":10,
"discount_code":"10PERCENT",
"max_count_listings_allowed":null,
"starts_at":"2015-12-25T08:00:00-06:00",
"ends_at":"2016-01-22T11:50:50-06:00",
"_links":{
"web":{
"href":"https://reverb.site/sales/feil-group-old-sale"
},
"listings":{
"href":"/api/sales/5/listings"
}
}
}
]
}
View All Seller Created Sales
View all of your seller created sales regardless of state. This includes active, ended and upcoming sales created within your account (This does not pull Reverb-sponsored sales. See next section for details on Site-Wide Sales).
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/sales/seller
Response example:
{
"id": 1234,
"slug": "your_sale_slug_here",
"name": "30% OFF CLEARANCE SALE!",
"code": "SALECODE",
"is_live": true,
"starts_at": "2020-09-24T14:00:00+01:00",
"ends_at": "2021-01-31T00:00:00+00:00",
"summary": "Save 30% at Checkout",
"created_by": "Reverb Superseller",
"_links": {
"self": {
"href": "https://api.reverb.com/api/sales/your_sale_slug_here"
},
"web": {
"href": "https://reverb.com/sales/your_sale_slug_here"
},
"listings": {
"href": "https://api.reverb.com/api/listings?curated_set_id=1234"
}
}
}
View All Reverb Sponsored Site-Wide Sales
View Active Reverb Sponsored Site-Wide Sales.
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/sales/reverb
Response shown below displays when there are no active Reverb sponsored sales.
{
"total": 0,
"current_page": 1,
"total_pages": 1,
"sales": [],
"_links": {}
}
###Notes on Sale Attributes
max_count_listings_allowed
is an Integer denoting how many listings are allowed in a Sale per user. This is typically only set on Reverb Official Sales, and is irrelevant for Seller Sales. Anull
value indicates no threshold.
Updated over 1 year ago