Inventory / Create
Name | Inventory / Create |
|---|---|
Description | Create an Inventory Ticket Listing |
Type |
|
URL |
|
|
Long Description
Create a listing that represents inventory available for sale. The ticket listing must include all required information necessary to make the inventory eligible for order creation. Note that office_id and remote_id together serve as the unique identifiers for the listing.
Request Parameters
Inventory Object
Attribute Name | Type | Required |
|---|---|---|
| Yes | |
| Yes | |
| Yes | |
| Yes |
Event Object
Attribute Name | Type | Required |
|---|---|---|
| Integer | Yes |
| String | No |
| String (Date) | No |
| String (Time) | No |
| Boolean | No |
| String (Enum) | Acceptable Values:
|
Office Object
Attribute Name | Type | Required | Notes |
|---|---|---|---|
| Integer | Yes | If using a |
| String | No |
|
Ticket Object
Attribute Name | Type | Required | Notes |
|---|---|---|---|
| String | No |
|
| Float | No |
|
| Float | No | Acceptable values between 0.00 and 100.00 |
| Boolean | No |
|
| String | No |
|
| Float | No |
|
| String (Enum) | Yes | Acceptable Values:
|
| Boolean | No |
|
| String (Date) | Conditional | Required when |
| Boolean | No |
|
| String | No |
|
| Decimal | Yes | Maximum value is 1,000,000 |
| Integer | Yes | Minimum value is 1 Must match Seats Array elements if seats are provided |
| Integer | Yes | Must be greater than 0 |
| String | Yes |
|
| Array of Seat Object(s) | No | If provided, minimum value is 1 |
| String | Yes |
|
| Boolean | No |
|
| String (Enum) | No | Acceptable Values:
|
| Array of Integers | Conditional | Required if |
| Float | No |
|
| String (Enum) | Yes | Acceptable Values:
|
| String (Enum) | No | Acceptable Values:
|
| Boolean | No |
|
Seat Object
Attribute Name | Attribute Name | Required | Notes |
|---|---|---|---|
| Integer | Yes | Values must be unique |
| String | No |
|
| String | No |
|
| String | No |
|
Venue Object
Attribute Name | Type | Required |
|---|---|---|
| Integer | No |
| String | Yes |
Responses
HTTP Code | Meaning | Description |
|---|---|---|
201 | Created | Inventory was successfully created. Response body contains the new inventory with id. |
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. |
500 | Internal Server Error | A generic internal service error message is returned. |
Examples:
Request | Response |
|---|---|
POST /v9/inventory {
"inventory": {
"event": {
"id": "12345678",
"name": "Superbowl LIX",
"occurs_at_date": "2021-06-08",
"occurs_at_time": "18:19:20",
"tbd": false,
"type": "EVENT"
},
"office": {
"id": "12345678",
"name": "Foobar"
},
"ticket": {
"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",
"in_hand": false,
"in_hand_on": "2021-06-08",
"instant_delivery": false,
"internal_notes": "These are some notes...",
"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
},
"venue": {
"id": "12345678",
"name": "Foobar"
}
}
} | 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": {
...,
"ticket" :
...,
"account_email": "invalid email"
}
} | Error {
"errors": [
{
"code": "invalid_params",
"message": "inventory[ticket][account_email] is in invalid format"
}
]
} |