Replace for sale config
Rate limits
This endpoint does not belong to the priority lane. Do not use it within your ticket sales flow.
Completely replace the for sale config for an event.
The passed in objects, area places or categories will be the only objects that are for sale or not for sale after this operation.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/events/{eventKey}/actions/mark-as-for-sale
POST https://api-{region}.seatsio.net/events/{eventKey}/actions/mark-as-not-for-sale
// Make for sale
$seatsioClient->events->replaceForSaleConfig("event34", true, ["A-1", "A-2"], [ "GA1" => 3], ["category1", "category2"]);
// Make not for sale
$seatsioClient->events->replaceForSaleConfig("event34", false, ["A-1", "A-2"], [ "GA1" => 3], ["category1", "category2"]);
// Make for sale
await Client.Events.ReplaceForSaleConfigAsync("event34", true, new [] { "A-1", "A-2" }, new () {{ "GA1", 3 }}, new [] { "category1", "category2" });
// Make not for sale
await Client.Events.ReplaceForSaleConfigAsync("event34", false, new [] { "A-1", "A-2" }, new () {{ "GA1", 3 }}, new [] { "category1", "category2" });
// Make for sale
client.events.replaceForSaleConfig("event34", true, List.of("A-1", "A-2"), Map.of("GA1", 3), List.of("category1", "category2"));
// Make not for sale
client.events.replaceForSaleConfig("event34", false, List.of("A-1", "A-2"), Map.of("GA1", 3), List.of("category1", "category2"));
# Make for sale
client.events.replace_for_sale_config("event34", True, objects=["A-1", "A-2"], area_places={"GA1": 3}, categories=["category1", "category2"])
# Make not for sale
client.events.replace_for_sale_config("event34", False, objects=["A-1", "A-2"], area_places={"GA1": 3}, categories=["category1", "category2"])
# Make for sale
client.events.replace_for_sale_config key: 'event34', true, objects: ['A-1', 'A-2'], area_places: {'GA1' => 3}, categories: ['category1', 'category2']
# Make not for sale
client.events.replace_for_sale_config key: 'event34', false, objects: ['A-1', 'A-2'], area_places: {'GA1' => 3}, categories: ['category1', 'category2']
// Make for sale
await client.events.replaceForSaleConfig('eventKey', true, ['A-1', 'A-2'], { 'GA1': 3 }, ['category1', 'category2']);
// Make not for sale
await client.events.replaceForSaleConfig('eventKey', false, ['A-1', 'A-2'], { 'GA1': 3 }, ['category1', 'category2']);
// Make for sale
err = client.Events.ReplaceForSaleConfig("eventKey", true, &events.ForSaleConfigParams{
Objects: []string{"A-1", "A-2"},
AreaPlaces: map[string]int{"GA1": 3},
Categories: []string{"category1", "category2"},
})
// Make not for sale
err = client.Events.ReplaceForSaleConfig("eventKey", false, &events.ForSaleConfigParams{
Objects: []string{"A-1", "A-2"},
AreaPlaces: map[string]int{"GA1": 3},
Categories: []string{"category1", "category2"},
})
Request
{
"objects": ["A-1", "A-2"],
"areaPlaces": {"GA1": 3},
"categories": ["category1", "category2"]
}
objects: optional array of strings. Can contain table labels, booth labels, area labels or seat labels.areaPlaces: optional object, which indicates how many places per general admission area should be not for sale. An area can also be passed intoobjects. In that case, it's made completely not for sale.categories: optional array of strings. Can contain category keys or labels.
Example request
curl https://api-{region}.seatsio.net/events/event34/actions/mark-as-for-sale \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"objects": ["A-1", "A-2"]}'
curl https://api-{region}.seatsio.net/events/event34/actions/mark-as-not-for-sale \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"objects": ["A-1", "A-2"]}'
Response
{
"rateLimitRemainingCalls": 9,
"rateLimitResetDate": "2021-10-01T23:00:00Z"
}
Warning
There's a rate limit of 10 calls per day per event. If that rate limit if reached, a 429 (Too Many Requests) is returned. The Retry-After header indicates how many seconds you have to wait before trying again.