Inventory / Bulk Delete
Name | Inventory / Bulk Delete |
|---|---|
Description | Delete Inventory Ticket Listings in Bulk |
Type |
|
URL |
|
|
Long Description:
Delete up to 1000 listings that should no longer be available for sale. All parameters are optional unless otherwise specified. Any additional parameters that are provided will result in a validation error.
Request Parameters
Json Body
Attribute Name | Type | Required |
|---|---|---|
| Array of Ticket Group IDs | Yes |
Responses
HTTP Code | Meaning | Description |
|---|---|---|
200 | OK | Inventory was successfully deleted. Response body contains deleted items. |
400 | Bad Request | Validation error. Check input fields and formats. A detailed error message is included in the response body. |
401 | Unauthorized | Authentication failed or missing credentials. |
404 | Not Found | Resource not found for any of the provided identifiers. |
500 | Internal Server Error | An unexpected error occurred on the server. |
Examples:
Request | Response |
|---|---|
DELETE /v9/inventory {
"ids": [12345,23456,34567,45678,56789]
}Note: All ticket group ids passed exist on the marketplace | Success [
{"id":12345,"remote_id":67890,"event_id":8675309},
{"id":23456,"remote_id":78901,"event_id":8675310},
{"id":34567,"remote_id":89012,"event_id":8675311},
{"id":45678,"remote_id":90123,"event_id":8675312},
{"id":56789,"remote_id":01234,"event_id":8675313}
] |
DELETE /v9/inventory {
"ids": [12345,23456,34567,45678,56789]
}Note: Only some of the ticket group ids passed exist. The returned items are the ones that existed, and were deleted.
| Success [
{"id":12345,"remote_id":67890,"event_id":8675309},
{"id":34567,"remote_id":89012,"event_id":8675311},
{"id":56789,"remote_id":01234,"event_id":8675313}
] |
DELETE /v9/inventory {
"ids": [12345,23456,34567,45678,56789]
}Note: None of the ticket group ids passed exist, so a 404 is returned. | Error (404) {
"errors": [
{
"code": "not_found",
"message":"Could not find record."
}
]
} |
Bad Request Example {
"ids": ["foo",12345,23456,34567,45678,56789]
}Note: None of the valid ticket group ids passed are deleted on any 4xx error. | Error (400) {
"errors": [
{
"code": "invalid_params",
"message": "ids[0] must be an integer"
}
]
} |