Interface InventoryResource
@Path("/inventory")
@Produces("application/json")
@Consumes("application/json")
public interface InventoryResource
-
Method Summary
Modifier and TypeMethodDescriptionbulkUpdate(BulkInventoryRequest bulkInventoryRequest) Bulk Update Listings.createInventory(InventoryCreateRequest listing) Create inventory.export(OffsetDateTime updatedDateSince, Integer pageSize, Long paginationToken, Boolean includePastEvents, Boolean includeBuyerCommissionsPerTicket, OffsetDateTime createDateFrom, OffsetDateTime createDateTo, OffsetDateTime updatedDateTo) Exports inventory for exchange integration.getBulkUpdateStatus(UUID bulkProcessingId) Get Bulk Update Listings Status.getByExternalId(String externalId, Boolean includeBuyerCommissionsPerTicket) Get inventory by External ID.getByExternalIds(String externalId, Boolean includeBuyerCommissionsPerTicket) Get multiple inventories by External ID.search(List<Integer> eventIds, List<Integer> categoryIds, List<String> includeTags, List<String> excludeTags, OffsetDateTime purchaseStartDate, OffsetDateTime purchaseEndDate, Integer maxPageSize, Long paginationToken, Boolean includePastEvents, Boolean includeBuyerCommissionsPerTicket, UUID eventMappingId, String vendorName, String eventSearchText, String tagKey, String tagValue) Search inventory.
-
Method Details
-
createInventory
Create inventory. -
search
@GET @Path("/search") InventoryExportResponse search(@QueryParam("eventIds") List<Integer> eventIds, @QueryParam("categoryIds") List<Integer> categoryIds, @QueryParam("includeTags") List<String> includeTags, @QueryParam("excludeTags") List<String> excludeTags, @QueryParam("purchaseStartDate") OffsetDateTime purchaseStartDate, @QueryParam("purchaseEndDate") OffsetDateTime purchaseEndDate, @QueryParam("maxPageSize") Integer maxPageSize, @QueryParam("paginationToken") Long paginationToken, @QueryParam("includePastEvents") Boolean includePastEvents, @QueryParam("includeBuyerCommissionsPerTicket") Boolean includeBuyerCommissionsPerTicket, @QueryParam("eventMappingId") UUID eventMappingId, @QueryParam("vendorName") String vendorName, @QueryParam("eventSearchText") String eventSearchText, @QueryParam("tagKey") String tagKey, @QueryParam("tagValue") String tagValue) Search inventory.- Parameters:
eventIds- Viagogo Event Ids to include (optional)categoryIds- Viagogo Event Categories to include (optional)includeTags- Tags to include (optional)excludeTags- Tags to exclude (optional)purchaseStartDate- Inclusive starting purchase order date. The quantity of tickets considered for the listings will only consider tickets associated to valid purchase. (optional)purchaseEndDate- Inclusive ending purchase order date. The quantity of tickets considered for the listings will only consider tickets associated to valid purchase. (optional)maxPageSize- The max number of items returned per api call (default 500; min 1; max 5000) (optional)paginationToken- Values used to continue iteration for an equivalent query where last left off (optional)includePastEvents- To include inventory from past events in the results. Default is false (optional)includeBuyerCommissionsPerTicket- To include buyerCommissionsArray per Ticket. Default is false (optional)eventMappingId- (optional)vendorName- any purchase that match the vendor name (optional)eventSearchText- search event name or venue name or performer name by this search text (optional)tagKey- Tag key name (optional)tagValue- Tag value name (optional)- Returns:
- inventories.
-
seek
@GET @Path("/seek") List<SearchListingsResponse> seek(@QueryParam("inventoryIds") List<Long> inventoryIds, @QueryParam("includeBuyerCommissionsPerTicket") Boolean includeBuyerCommissionsPerTicket) -
export
@GET @Path("/export") InventoryExportResponse export(@QueryParam("updatedDateSince") OffsetDateTime updatedDateSince, @QueryParam("pageSize") Integer pageSize, @QueryParam("paginationToken") Long paginationToken, @QueryParam("includePastEvents") Boolean includePastEvents, @QueryParam("includeBuyerCommissionsPerTicket") Boolean includeBuyerCommissionsPerTicket, @QueryParam("createDateFrom") OffsetDateTime createDateFrom, @QueryParam("createDateTo") OffsetDateTime createDateTo, @QueryParam("updatedDateTo") OffsetDateTime updatedDateTo) Exports inventory for exchange integration. The results from this method are sorted by reverse mutation date order.- Parameters:
updatedDateSince- The beginning update date to be used for looking up inventory. Must be in format yyyy-MM-ddTHH:mm:ss.pageSize- The number of results per page. Default page size is 100. Max page size is 5000.paginationToken- Token used to paginate result set.includePastEvents- To include inventory from past events in the results. Default is false.includeBuyerCommissionsPerTicket- o include buyerCommissionsArray per Ticket. Default is false.createDateFrom- The beginning create date to be used for looking up inventory. Must be in format yyyy-MM-ddTHH:mm:ss.createDateTo- The ending create date to be used for looking up inventory. Must be in format yyyy-MM-ddTHH:mm:ss.updatedDateTo- The ending update date to be used for looking up inventory. Must be in format yyyy-MM-ddTHH:mm:ss.
-
bulkUpdate
@POST @Path("/bulk") BulkProcessingResultSummaryResponse bulkUpdate(BulkInventoryRequest bulkInventoryRequest) Bulk Update Listings. -
getBulkUpdateStatus
@GET @Path("/bulk/{bulkProcessingId}") BulkProcessingResultSummaryResponse getBulkUpdateStatus(@PathParam("bulkProcessingId") UUID bulkProcessingId) Get Bulk Update Listings Status. -
getByExternalId
@GET @Path("/inventory/external/{externalId}") ListingResponse getByExternalId(@PathParam("externalId") String externalId, @QueryParam("includeBuyerCommissionsPerTicket") Boolean includeBuyerCommissionsPerTicket) Get inventory by External ID. -
getByExternalIds
@GET @Path("/inventory/externals/{externalId}") List<ListingResponse> getByExternalIds(@PathParam("externalId") String externalId, @QueryParam("includeBuyerCommissionsPerTicket") Boolean includeBuyerCommissionsPerTicket) Get multiple inventories by External ID.
-