diff --git a/static/openapi/account.json b/static/openapi/account.json
index bf582c6..765979e 100644
--- a/static/openapi/account.json
+++ b/static/openapi/account.json
@@ -61,16 +61,15 @@
"content": {
"application/hal+json": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Addresses"
- }
- ]
+ "$ref": "#/components/schemas/Addresss"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -365,16 +364,15 @@
"content": {
"application/hal+json": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/PaymentMethods"
- }
- ]
+ "$ref": "#/components/schemas/PaymentMethodss"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -553,16 +551,15 @@
"content": {
"application/hal+json": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/User"
- }
- ]
+ "$ref": "#/components/schemas/User"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -646,9 +643,8 @@
},
"components": {
"schemas": {
- "Addresses": {
+ "Addresss": {
"type": "object",
- "description": "The Addresses resource is a collection resource that contains zero or\nmore references to a set of addresses, and links that guide you on ways\nto interact with the addresses. The collection offers a paginated view\nof addresses.",
"additionalProperties": false,
"properties": {
"total_items": {
@@ -670,7 +666,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/AddressesLinks"
+ "$ref": "#/components/schemas/AddresssLinks"
}
]
},
@@ -678,14 +674,14 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/AddressesEmbeddedResources"
+ "$ref": "#/components/schemas/AddresssEmbeddedResources"
}
]
}
}
},
- "AddressesLinks": {
- "title": "AddressesLinks",
+ "AddresssLinks": {
+ "title": "AddresssLinks",
"type": "object",
"properties": {
"self": {
@@ -696,15 +692,6 @@
}
]
},
- "address:create": {
- "description": "Add a new address for the current user.",
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
"first": {
"nullable": true,
"oneOf": [
@@ -756,8 +743,8 @@
}
}
},
- "AddressesEmbeddedResources": {
- "title": "AddressesEmbeddedResources",
+ "AddresssEmbeddedResources": {
+ "title": "AddresssEmbeddedResources",
"type": "object",
"properties": {
"items": {
@@ -1077,6 +1064,102 @@
}
}
},
+ "PaymentMethodss": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "total_items": {
+ "type": "integer",
+ "format": "int32",
+ "nullable": true
+ },
+ "page": {
+ "type": "integer",
+ "format": "int32",
+ "nullable": true
+ },
+ "page_size": {
+ "type": "integer",
+ "format": "int32",
+ "nullable": true
+ },
+ "_links": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/PaymentMethodssLinks"
+ }
+ ]
+ },
+ "_embedded": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/PaymentMethodssEmbeddedResources"
+ }
+ ]
+ }
+ }
+ },
+ "PaymentMethodssLinks": {
+ "title": "PaymentMethodssLinks",
+ "type": "object",
+ "properties": {
+ "self": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "first": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "last": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "next": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "prev": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ }
+ }
+ },
+ "PaymentMethodssEmbeddedResources": {
+ "title": "PaymentMethodssEmbeddedResources",
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/PaymentMethods"
+ }
+ }
+ }
+ },
"PaymentMethods": {
"type": "object",
"description": "The PaymentMethods resource is a collection resource that contains zero\nor more references to a set of payment methods, and links that guide you\non ways to interact with the payment methods. The collection offers a\npaginated view of payment methods.",
@@ -1647,9 +1730,9 @@
"x-displayName": "Address"
},
{
- "name": "Resource_Addresses",
- "description": "The Addresses resource is a collection resource that contains zero or\nmore references to a set of addresses, and links that guide you on ways\nto interact with the addresses. The collection offers a paginated view\nof addresses.\n",
- "x-displayName": "Addresses"
+ "name": "Resource_Addresss",
+ "description": "\n",
+ "x-displayName": "Addresss"
},
{
"name": "Resource_PaymentMethod",
@@ -1661,6 +1744,11 @@
"description": "The PaymentMethods resource is a collection resource that contains zero\nor more references to a set of payment methods, and links that guide you\non ways to interact with the payment methods. The collection offers a\npaginated view of payment methods.\n",
"x-displayName": "PaymentMethods"
},
+ {
+ "name": "Resource_PaymentMethodss",
+ "description": "\n",
+ "x-displayName": "PaymentMethodss"
+ },
{
"name": "Resource_User",
"description": "An authenticated user.\n",
@@ -1683,9 +1771,10 @@
"name": "Resources",
"tags": [
"Resource_Address",
- "Resource_Addresses",
+ "Resource_Addresss",
"Resource_PaymentMethod",
"Resource_PaymentMethods",
+ "Resource_PaymentMethodss",
"Resource_User"
]
}
diff --git a/static/openapi/catalog.json b/static/openapi/catalog.json
index d4757ef..52ae0d7 100644
--- a/static/openapi/catalog.json
+++ b/static/openapi/catalog.json
@@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "StubHub Catalog API",
- "version": "1.0.0.33",
+ "version": "1.0.0.61",
"x-logo": {
"url": "https://img.vggcdn.net/images/Assets/Icons/bfx/stubhub-logo-merch-purple-mweb.440b3765.svg",
"backgroundColor": "#222222"
@@ -79,6 +79,55 @@
"type": "string",
"description": "Filters results to only include events located in the specified country."
}
+ },
+ {
+ "name": "latitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with longitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "longitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with latitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "max_distance_in_meters",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "When provided with latitude and longitude filters events returned to ones within the specified distance of the lat/long.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "genre_id",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "Filters results to only include events for the specified genre id.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "exclude_parking_passes",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "description": "Filters results to remove parking passes",
+ "nullable": true
+ }
}
],
"responses": {
@@ -118,8 +167,8 @@
"Events"
],
"summary": "List events by event ids.",
- "description": "List a specified set of events on the StubHub platform.",
- "operationId": "Events_PutEvents",
+ "description": "List a specified set of events on the StubHub platform. Note that the eventID being passed can already be merged with another event. And in this case, details of the new event will be returned, if a different eventId is returned then it means that the event has been merged with the returned event. Also inside _embedded field of the response, a mapping between the original eventId and new eventId will be provided. ",
+ "operationId": "Events_GetEventsByEventIds",
"parameters": [
{
"name": "page",
@@ -172,6 +221,55 @@
"type": "string",
"description": "Filters results to only include events located in the specified country."
}
+ },
+ {
+ "name": "latitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with longitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "longitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with latitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "max_distance_in_meters",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "When provided with latitude and longitude filters events returned to ones within the specified distance of the lat/long.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "genre_id",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "Filters results to only include events for the specified genre id.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "exclude_parking_passes",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "description": "Filters results to remove parking passes",
+ "nullable": true
+ }
}
],
"requestBody": {
@@ -222,6 +320,159 @@
]
}
},
+ "/catalog/categories/{categoryId}/events": {
+ "get": {
+ "tags": [
+ "Events"
+ ],
+ "summary": "List events by category id.",
+ "description": "List set of events filtered by category id on the StubHub platform. ",
+ "operationId": "Events_GetEventsByCategoryId",
+ "parameters": [
+ {
+ "name": "categoryId",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ {
+ "name": "page",
+ "in": "query",
+ "description": "Specifies which page of data to retrieve.",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ {
+ "name": "page_size",
+ "in": "query",
+ "description": "Set custom page sizes on response.",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ {
+ "name": "updated_since",
+ "in": "query",
+ "description": "Filters the response to only return items that have been updated since the given timestamp",
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "sort",
+ "in": "query",
+ "description": "Determines the ordering of items. A comma-separated string containing `resource_version`.",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "min_resource_version",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "format": "int64",
+ "nullable": true
+ }
+ },
+ {
+ "name": "country_code",
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "description": "Filters results to only include events located in the specified country."
+ }
+ },
+ {
+ "name": "latitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with longitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "longitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with latitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "max_distance_in_meters",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "When provided with latitude and longitude filters events returned to ones within the specified distance of the lat/long.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "genre_id",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "Filters results to only include events for the specified genre id.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "exclude_parking_passes",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "description": "Filters results to remove parking passes",
+ "nullable": true
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/hal+json": {
+ "schema": {
+ "$ref": "#/components/schemas/Events"
+ }
+ }
+ }
+ },
+ "403": {
+ "$ref": "#/components/responses/forbidden",
+ "description": null
+ },
+ "401": {
+ "$ref": "#/components/responses/requires_authentication",
+ "description": null
+ },
+ "500": {
+ "$ref": "#/components/responses/internal_server_error",
+ "description": null
+ }
+ },
+ "security": [
+ {
+ "OAuth2": [
+ "read:events"
+ ]
+ }
+ ]
+ }
+ },
"/catalog/events/external_mappings/{platform}/{externalEventId}": {
"get": {
"tags": [
@@ -294,6 +545,7 @@
"Events"
],
"summary": "Get an event",
+ "description": "Note that the eventID being passed can already be merged with another event. And in this case, details of the new event will be returned, if a different eventId is returned then it means that the event has been merged with the returned event. Also inside _embedded field of the response, a mapping between the original eventId and new eventId will be provided.",
"operationId": "Events_GetEvent",
"parameters": [
{
@@ -423,6 +675,55 @@
"type": "string",
"description": "Filters results to only include events located in the specified country."
}
+ },
+ {
+ "name": "latitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with longitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "longitude",
+ "in": "query",
+ "schema": {
+ "type": "number",
+ "description": "When provided with latitude and distance filters events returned to ones within the specified distance of the lat/long.",
+ "format": "double",
+ "nullable": true
+ }
+ },
+ {
+ "name": "max_distance_in_meters",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "When provided with latitude and longitude filters events returned to ones within the specified distance of the lat/long.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "genre_id",
+ "in": "query",
+ "schema": {
+ "type": "integer",
+ "description": "Filters results to only include events for the specified genre id.",
+ "format": "int32",
+ "nullable": true
+ }
+ },
+ {
+ "name": "exclude_parking_passes",
+ "in": "query",
+ "schema": {
+ "type": "boolean",
+ "description": "Filters results to remove parking passes",
+ "nullable": true
+ }
}
],
"responses": {
@@ -869,6 +1170,14 @@
}
]
},
+ "merged_events": {
+ "type": "array",
+ "description": "The events that have been merged into this event.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
+ },
"venue": {
"description": "The venue where the event is taking place.",
"nullable": true,
@@ -942,6 +1251,14 @@
"items": {
"$ref": "#/components/schemas/EmbeddedExternalMapping"
}
+ },
+ "merged_categories": {
+ "type": "array",
+ "description": "The categories that have been merged into this category.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
}
}
},
@@ -982,6 +1299,18 @@
}
}
},
+ "MergedEntity": {
+ "type": "object",
+ "description": "An entity that has been merged into another entity.",
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The identifier for this entity.",
+ "format": "int32"
+ }
+ }
+ },
"EmbeddedCategory": {
"type": "object",
"description": "A Category represents a grouping of events or other categories. Examples are “Concerts”, “Rock and Pop” and “Lady Gaga”.",
@@ -1039,6 +1368,14 @@
"items": {
"$ref": "#/components/schemas/EmbeddedExternalMapping"
}
+ },
+ "merged_categories": {
+ "type": "array",
+ "description": "The categories that have been merged into this category.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
}
}
},
diff --git a/static/openapi/inventory.json b/static/openapi/inventory.json
index facc916..35ce6e7 100644
--- a/static/openapi/inventory.json
+++ b/static/openapi/inventory.json
@@ -1901,6 +1901,77 @@
]
}
]
+ },
+ "post": {
+ "tags": [
+ "E-Tickets"
+ ],
+ "summary": "Upload and save e-tickets for a seller listing",
+ "operationId": "ETicket_PostListingETickets",
+ "parameters": [
+ {
+ "name": "listingId",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int64"
+ }
+ },
+ {
+ "name": "page",
+ "in": "query",
+ "description": "Specifies which page of data to retrieve.",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ },
+ {
+ "name": "page_size",
+ "in": "query",
+ "description": "Set custom page sizes on response.",
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/hal+json": {
+ "schema": {
+ "$ref": "#/components/schemas/ETickets"
+ }
+ }
+ }
+ },
+ "403": {
+ "$ref": "#/components/responses/forbidden",
+ "description": null
+ },
+ "400": {
+ "$ref": "#/components/responses/validation_failed",
+ "description": null
+ },
+ "401": {
+ "$ref": "#/components/responses/requires_authentication",
+ "description": null
+ },
+ "500": {
+ "$ref": "#/components/responses/internal_server_error",
+ "description": null
+ }
+ },
+ "security": [
+ {
+ "OAuth2": [
+ "write:sellerlistings"
+ ]
+ }
+ ]
}
},
"/sellerlistings/{listingId}/etickets/{ETicketId}": {
@@ -2105,7 +2176,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingDetail"
}
]
},
@@ -2114,7 +2185,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingDetail"
}
]
},
@@ -2232,9 +2303,8 @@
}
}
},
- "Seating": {
+ "SeatingDetail": {
"type": "object",
- "description": "Represents the seating information for a ticket(s) in a Venue.",
"additionalProperties": false,
"required": [
"section"
@@ -2259,6 +2329,25 @@
"type": "string",
"description": "The last in a contiguous block of seats to which the tickets have been allocated.",
"nullable": true
+ },
+ "state": {
+ "description": "This field indicates whether the listing's seating is visible on the website on the venue map.",
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/SeatingState"
+ }
+ ]
+ }
+ }
+ },
+ "SeatingState": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "visible_in_venue_map": {
+ "type": "boolean",
+ "description": "True when the seat is visible in the venue map that will be shown to buyers; Otherwise, false."
}
}
},
@@ -3074,6 +3163,14 @@
"description": "True if the event start and end date have been confirmed; Otherwise, false.",
"nullable": true
},
+ "merged_events": {
+ "type": "array",
+ "description": "The list of event ids that are merged into this event.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
+ },
"_links": {
"nullable": true,
"oneOf": [
@@ -3084,6 +3181,18 @@
}
}
},
+ "MergedEntity": {
+ "type": "object",
+ "description": "An entity that has been merged into another entity.",
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The identifier for this entity.",
+ "format": "int32"
+ }
+ }
+ },
"EmbeddedEventLinks": {
"title": "EmbeddedEventLinks",
"type": "object",
@@ -3266,7 +3375,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingRequest"
}
]
},
@@ -3355,6 +3464,12 @@
"format": "int32"
}
},
+ "relist_transaction_id": {
+ "type": "integer",
+ "description": "Used when relisting tickets previously purchased on Stubhub marketplace. Include the transaction ID in the id value field.",
+ "format": "int32",
+ "nullable": true
+ },
"external_event_information": {
"type": "array",
"description": "Information about the listing's event on other platforms.",
@@ -3396,6 +3511,41 @@
}
}
},
+ "SeatingRequest": {
+ "type": "object",
+ "description": "Represents the seating information for a ticket(s) in a Venue.",
+ "additionalProperties": false,
+ "required": [
+ "section"
+ ],
+ "properties": {
+ "section": {
+ "type": "string",
+ "description": "The section of the ticket(s).",
+ "nullable": true
+ },
+ "row": {
+ "type": "string",
+ "description": "The row of the ticket(s).",
+ "nullable": true
+ },
+ "seat_from": {
+ "type": "string",
+ "description": "The first in a contiguous block of seats to which the tickets have been allocated.",
+ "nullable": true
+ },
+ "seat_to": {
+ "type": "string",
+ "description": "The last in a contiguous block of seats to which the tickets have been allocated.",
+ "nullable": true
+ },
+ "hide_seat_details": {
+ "type": "boolean",
+ "description": "Do not display seats pre-purchase. May affect listing visibility in some regions.",
+ "nullable": true
+ }
+ }
+ },
"Reservation": {
"type": "object",
"description": "Reservation details of a sale or a listing.",
@@ -3486,6 +3636,9 @@
"pcid": {
"type": "string",
"nullable": true
+ },
+ "hide_seat_details": {
+ "type": "boolean"
}
}
},
@@ -3721,7 +3874,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingRequest"
}
]
},
@@ -3810,6 +3963,12 @@
"format": "int32"
}
},
+ "relist_transaction_id": {
+ "type": "integer",
+ "description": "Used when relisting tickets previously purchased on Stubhub marketplace. Include the transaction ID in the id value field.",
+ "format": "int32",
+ "nullable": true
+ },
"external_event_information": {
"type": "array",
"description": "Information about the listing's event on other platforms.",
@@ -3911,7 +4070,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingRequest"
}
]
},
@@ -4000,6 +4159,12 @@
"format": "int32"
}
},
+ "relist_transaction_id": {
+ "type": "integer",
+ "description": "Used when relisting tickets previously purchased on Stubhub marketplace. Include the transaction ID in the id value field.",
+ "format": "int32",
+ "nullable": true
+ },
"external_event_information": {
"type": "array",
"description": "Information about the listing's event on other platforms.",
@@ -4145,7 +4310,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingRequest"
}
]
},
@@ -4234,6 +4399,12 @@
"format": "int32"
}
},
+ "relist_transaction_id": {
+ "type": "integer",
+ "description": "Used when relisting tickets previously purchased on Stubhub marketplace. Include the transaction ID in the id value field.",
+ "format": "int32",
+ "nullable": true
+ },
"external_event_information": {
"type": "array",
"description": "Information about the listing's event on other platforms.",
@@ -4336,7 +4507,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingRequest"
}
]
},
@@ -4425,6 +4596,12 @@
"format": "int32"
}
},
+ "relist_transaction_id": {
+ "type": "integer",
+ "description": "Used when relisting tickets previously purchased on Stubhub marketplace. Include the transaction ID in the id value field.",
+ "format": "int32",
+ "nullable": true
+ },
"external_event_information": {
"type": "array",
"description": "Information about the listing's event on other platforms.",
@@ -4635,10 +4812,13 @@
"description": "True if the event start and end date have been confirmed; Otherwise, false.",
"nullable": true
},
- "lms": {
- "type": "boolean",
- "description": "True if the event is a last minute sale event; otherwise, false.",
- "nullable": true
+ "merged_events": {
+ "type": "array",
+ "description": "The list of event ids that are merged into this event.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
},
"_links": {
"nullable": true,
@@ -4648,6 +4828,11 @@
}
]
},
+ "lms": {
+ "type": "boolean",
+ "description": "True if the event is a last minute sale event; otherwise, false.",
+ "nullable": true
+ },
"_embedded": {
"nullable": true,
"oneOf": [
@@ -4799,6 +4984,28 @@
}
}
},
+ "StateInformation": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "name": {
+ "type": "string",
+ "nullable": true
+ },
+ "title": {
+ "type": "string",
+ "nullable": true
+ },
+ "description": {
+ "type": "string",
+ "nullable": true
+ }
+ }
+ },
"DistinctAggregates": {
"type": "object",
"additionalProperties": false,
@@ -5498,28 +5705,6 @@
}
}
},
- "StateInformation": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "integer",
- "format": "int32"
- },
- "name": {
- "type": "string",
- "nullable": true
- },
- "title": {
- "type": "string",
- "nullable": true
- },
- "description": {
- "type": "string",
- "nullable": true
- }
- }
- },
"PatchShipmentRequest": {
"type": "object",
"additionalProperties": false,
diff --git a/static/openapi/sales.json b/static/openapi/sales.json
index efd6543..3477e41 100644
--- a/static/openapi/sales.json
+++ b/static/openapi/sales.json
@@ -512,6 +512,60 @@
]
}
]
+ },
+ "post": {
+ "tags": [
+ "E-Tickets"
+ ],
+ "summary": "Upload and save e-tickets for a sale",
+ "operationId": "ETicket_PostSaleETickets",
+ "parameters": [
+ {
+ "name": "saleId",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/hal+json": {
+ "schema": {
+ "$ref": "#/components/schemas/Sale"
+ }
+ }
+ }
+ },
+ "403": {
+ "$ref": "#/components/responses/forbidden",
+ "description": null
+ },
+ "400": {
+ "$ref": "#/components/responses/validation_failed",
+ "description": null
+ },
+ "401": {
+ "$ref": "#/components/responses/requires_authentication",
+ "description": null
+ },
+ "500": {
+ "$ref": "#/components/responses/internal_server_error",
+ "description": null
+ }
+ },
+ "security": [
+ {
+ "OAuth2": [
+ "write:user",
+ "write:sales"
+ ]
+ }
+ ]
}
},
"/sales/{saleId}/etickets/{eticketId}": {
@@ -593,16 +647,15 @@
"content": {
"application/hal+json": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Sales"
- }
- ]
+ "$ref": "#/components/schemas/Sales"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -677,16 +730,15 @@
"content": {
"application/hal+json": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Sales"
- }
- ]
+ "$ref": "#/components/schemas/Sales"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -887,50 +939,22 @@
"summary": "List payments",
"description": "Lists payments for the authenticated user.",
"operationId": "Payments_GetPayments",
- "parameters": [
- {
- "name": "page",
- "in": "query",
- "description": "Specifies which page of data to retrieve.",
- "schema": {
- "type": "integer",
- "format": "int32"
- }
- },
- {
- "name": "page_size",
- "in": "query",
- "description": "Set custom page sizes on response.",
- "schema": {
- "type": "integer",
- "format": "int32"
- }
- },
- {
- "name": "sort",
- "in": "query",
- "description": "Determines the ordering of items. A comma-separated string containing `created_at`, or`id`.",
- "schema": {
- "type": "string"
- }
- }
- ],
"responses": {
"200": {
"description": "",
"content": {
- "application/hal+json": {
+ "application/octet-stream": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Payments"
- }
- ]
+ "type": "string",
+ "format": "binary"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -2373,102 +2397,6 @@
}
}
},
- "Sales": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "total_items": {
- "type": "integer",
- "format": "int32",
- "nullable": true
- },
- "page": {
- "type": "integer",
- "format": "int32",
- "nullable": true
- },
- "page_size": {
- "type": "integer",
- "format": "int32",
- "nullable": true
- },
- "_links": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/SalesLinks"
- }
- ]
- },
- "_embedded": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/SalesEmbeddedResources"
- }
- ]
- }
- }
- },
- "SalesLinks": {
- "title": "SalesLinks",
- "type": "object",
- "properties": {
- "self": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "first": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "last": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "next": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "prev": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- }
- }
- },
- "SalesEmbeddedResources": {
- "title": "SalesEmbeddedResources",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "nullable": true,
- "items": {
- "$ref": "#/components/schemas/Sale"
- }
- }
- }
- },
"Sale": {
"type": "object",
"description": "A sale on the StubHub marketplace that belongs to the currently authenticated user.",
@@ -2923,6 +2851,14 @@
"description": "True if the event start and end date have been confirmed; Otherwise, false.",
"nullable": true
},
+ "merged_events": {
+ "type": "array",
+ "description": "The list of event ids that are merged into this event.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
+ },
"_links": {
"nullable": true,
"oneOf": [
@@ -2933,6 +2869,18 @@
}
}
},
+ "MergedEntity": {
+ "type": "object",
+ "description": "An entity that has been merged into another entity.",
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The identifier for this entity.",
+ "format": "int32"
+ }
+ }
+ },
"EmbeddedEventLinks": {
"title": "EmbeddedEventLinks",
"type": "object",
@@ -3072,6 +3020,102 @@
}
}
},
+ "Sales": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "total_items": {
+ "type": "integer",
+ "format": "int32",
+ "nullable": true
+ },
+ "page": {
+ "type": "integer",
+ "format": "int32",
+ "nullable": true
+ },
+ "page_size": {
+ "type": "integer",
+ "format": "int32",
+ "nullable": true
+ },
+ "_links": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/SalesLinks"
+ }
+ ]
+ },
+ "_embedded": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/SalesEmbeddedResources"
+ }
+ ]
+ }
+ }
+ },
+ "SalesLinks": {
+ "title": "SalesLinks",
+ "type": "object",
+ "properties": {
+ "self": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "first": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "last": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "next": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ },
+ "prev": {
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/Link"
+ }
+ ]
+ }
+ }
+ },
+ "SalesEmbeddedResources": {
+ "title": "SalesEmbeddedResources",
+ "type": "object",
+ "properties": {
+ "items": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/Sale"
+ }
+ }
+ }
+ },
"PatchSaleRequest": {
"type": "object",
"description": "A sale on the StubHub marketplace that belongs to the currently authenticated user.",
@@ -3316,102 +3360,6 @@
}
}
},
- "Payments": {
- "type": "object",
- "additionalProperties": false,
- "properties": {
- "total_items": {
- "type": "integer",
- "format": "int32",
- "nullable": true
- },
- "page": {
- "type": "integer",
- "format": "int32",
- "nullable": true
- },
- "page_size": {
- "type": "integer",
- "format": "int32",
- "nullable": true
- },
- "_links": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/PaymentsLinks"
- }
- ]
- },
- "_embedded": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/PaymentsEmbeddedResources"
- }
- ]
- }
- }
- },
- "PaymentsLinks": {
- "title": "PaymentsLinks",
- "type": "object",
- "properties": {
- "self": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "first": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "last": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "next": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- },
- "prev": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
- }
- }
- },
- "PaymentsEmbeddedResources": {
- "title": "PaymentsEmbeddedResources",
- "type": "object",
- "properties": {
- "items": {
- "type": "array",
- "nullable": true,
- "items": {
- "$ref": "#/components/schemas/Payment"
- }
- }
- }
- },
"Payment": {
"type": "object",
"description": "A payment on the StubHub marketplace that belongs to the currently authenticated user.",
@@ -4042,11 +3990,6 @@
"description": "A payment on the StubHub marketplace that belongs to the currently authenticated user.\n",
"x-displayName": "Payment"
},
- {
- "name": "Resource_Payments",
- "description": "\n",
- "x-displayName": "Payments"
- },
{
"name": "Resource_Sale",
"description": "A sale on the StubHub marketplace that belongs to the currently authenticated user.\n",
@@ -4107,7 +4050,6 @@
"Resource_ETickets",
"Resource_ETicketUploads",
"Resource_Payment",
- "Resource_Payments",
"Resource_Sale",
"Resource_Sales",
"Resource_Shipment",
diff --git a/static/openapi/webhooks.json b/static/openapi/webhooks.json
index 90639de..196c19d 100644
--- a/static/openapi/webhooks.json
+++ b/static/openapi/webhooks.json
@@ -61,16 +61,15 @@
"content": {
"application/hal+json": {
"schema": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Webhooks"
- }
- ]
+ "$ref": "#/components/schemas/Webhooks"
}
}
}
},
+ "404": {
+ "$ref": "#/components/responses/not_found",
+ "description": null
+ },
"403": {
"$ref": "#/components/responses/forbidden",
"description": null
@@ -454,14 +453,6 @@
"$ref": "#/components/schemas/Link"
}
]
- },
- "webhook:create": {
- "nullable": true,
- "oneOf": [
- {
- "$ref": "#/components/schemas/Link"
- }
- ]
}
}
},
@@ -848,6 +839,14 @@
"description": "True if the event start and end date have been confirmed; Otherwise, false.",
"nullable": true
},
+ "merged_events": {
+ "type": "array",
+ "description": "The list of event ids that are merged into this event.",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/MergedEntity"
+ }
+ },
"_links": {
"nullable": true,
"oneOf": [
@@ -858,6 +857,18 @@
}
}
},
+ "MergedEntity": {
+ "type": "object",
+ "description": "An entity that has been merged into another entity.",
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "integer",
+ "description": "The identifier for this entity.",
+ "format": "int32"
+ }
+ }
+ },
"EmbeddedEventLinks": {
"title": "EmbeddedEventLinks",
"type": "object",
@@ -1021,7 +1032,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingDetail"
}
]
},
@@ -1030,7 +1041,7 @@
"nullable": true,
"oneOf": [
{
- "$ref": "#/components/schemas/Seating"
+ "$ref": "#/components/schemas/SeatingDetail"
}
]
},
@@ -1053,6 +1064,54 @@
}
}
},
+ "SeatingDetail": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "section"
+ ],
+ "properties": {
+ "section": {
+ "type": "string",
+ "description": "The section of the ticket(s).",
+ "nullable": true
+ },
+ "row": {
+ "type": "string",
+ "description": "The row of the ticket(s).",
+ "nullable": true
+ },
+ "seat_from": {
+ "type": "string",
+ "description": "The first in a contiguous block of seats to which the tickets have been allocated.",
+ "nullable": true
+ },
+ "seat_to": {
+ "type": "string",
+ "description": "The last in a contiguous block of seats to which the tickets have been allocated.",
+ "nullable": true
+ },
+ "state": {
+ "description": "This field indicates whether the listing's seating is visible on the website on the venue map.",
+ "nullable": true,
+ "oneOf": [
+ {
+ "$ref": "#/components/schemas/SeatingState"
+ }
+ ]
+ }
+ }
+ },
+ "SeatingState": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "visible_in_venue_map": {
+ "type": "boolean",
+ "description": "True when the seat is visible in the venue map that will be shown to buyers; Otherwise, false."
+ }
+ }
+ },
"EmbeddedSellerListingLinks": {
"title": "EmbeddedSellerListingLinks",
"type": "object",