Inventory / Update
Name | Inventory / Update |
|---|---|
Description | Update an Inventory Ticket Listing |
Type |
|
URL |
|
|
Long Description:
Update a listing that represents a change to inventory available for sale. All parameters are optional unless otherwise specified. Any optional parameters that are provided with a blank value (e.g. ”” ) will result in a validation error.
Request Parameters:
Inventory Object
Attribute Name | Type | Required | Notes |
|---|---|---|---|
| String | No | Email format |
| Float | No |
|
| Float | No | Acceptable values between 0.00 and 100.00 |
| Boolean | No |
|
| String | No |
|
| Decimal | No |
|
| String (Enum) | No | Acceptable Values:
|
| Boolean | No |
|
| String (Date) | Conditional | Required when |
| Boolean | No |
|
| String | No |
|
| Decimal | No | Maximum value is 1,000,000 |
| Integer | No |
|
| Integer | No | Must be greater than 0 |
| String | No |
|
| Array of Seat Object(s) | No | If provided, minimum value is 1 |
| String | No |
|
| Boolean | No |
|
| String (Enum) | No | Acceptable Values:
|
| Array of Integers | Conditional | Required if |
| Float | No |
|
| String (Enum) | No | Acceptable Values:
|
| String (Enum) | No | Acceptable Values:
|
| Boolean | No |
|
Seat Object
Attribute Name | Attribute Name | Attribute Name | Notes |
|---|---|---|---|
| Integer | Yes | Values must be unique |
| String | No |
|
| String | No |
|
| String | No |
|
Responses
HTTP Code | Meaning | Description |
|---|---|---|
200 | OK | Inventory was successfully updated. Response body contains the updated inventory. |
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 the provided identifiers. |
500 | Internal Server Error | An unexpected error occurred on the server. |
Examples
Request | Response |
|---|---|
PATCH /v9/inventory/123456 {
"inventory": {
"account_email": "foo@bar.com",
"cost": "123.45",
"discount": "40.71",
"eticket": false,
"external_notes": "These are some notes...",
"face_value": "123.45",
"format": "ETICKET",
"id": "12345678",
"in_hand": false,
"in_hand_on": "2021-06-08",
"instant_delivery": false,
"locked": false,
"price": "123.45",
"quantity": 4,
"remote_id": "12345678",
"row": "AA",
"seats": [
{
"seat": 14,
"barcode": "ABCD1234",
"primary_ticket_id": "12345678",
"verification_id": "12345678"
}
],
"section": "100",
"speculative": false,
"split_type": "DEFAULT",
"split_override": [
2,
5,
10
],
"taxed_cost": "123.45",
"type": "EVENT",
"view_type": "FULL",
"wheelchair_accessible": false
}
} | Success {
"inventory": {
"account_email": "foo@bar.com",
"cost": "123.45",
"discount": "40.71",
"eticket": false,
"external_notes": "These are some notes...",
"face_value": "123.45",
"format": "ETICKET",
"id": "12345678",
"in_hand": false,
"in_hand_on": "2021-06-08",
"instant_delivery": false,
"locked": false,
"price": "123.45",
"quantity": 4,
"remote_id": "12345678",
"row": "AA",
"seats": [
{
"seat": 14,
"barcode": "ABCD1234",
"primary_ticket_id": "12345678",
"verification_id": "12345678"
}
],
"section": "100",
"speculative": false,
"split_type": "DEFAULT",
"split_override": [
2,
5,
10
],
"taxed_cost": "123.45",
"type": "EVENT",
"view_type": "FULL",
"wheelchair_accessible": false
}
} |
Bad Request Example {
"inventory": {
...,
"account_email": "invalid email"
}
} | Error {
"errors": [
{
"code": "invalid_params",
"message": "inventory[account_email] is in invalid format"
}
]
} |