openapi: 3.0.3
info:
title: StubHub Account Addressess Shipments API
version: v2
description: StubHub Account API — manage the authenticated user, their addresses, and payment methods.
contact:
name: StubHub API Support
email: api.support@stubhub.com
url: https://developer.stubhub.com/
x-media-type: application/hal+json
servers:
- url: https://api.stubhub.net
description: Production
- url: https://sandbox.api.stubhub.net
description: Sandbox
security:
- oauth2: []
tags:
- name: Shipments
paths:
/sellerlistings/{listingId}/shipments/{shipmentId}/label:
get:
operationId: Shipments_GetListingShippingLabel
summary: Get a shipping label for a seller listing
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: listingId
in: path
required: true
schema:
type: string
- name: shipmentId
in: path
required: true
schema:
type: string
security:
- oauth2:
- read:sellerlistings
/sellerlistings/{listingId}/shipments:
get:
operationId: Shipments_GetListingShipments
summary: List shipments for a seller listing
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: listingId
in: path
required: true
schema:
type: string
security:
- oauth2:
- read:sellerlistings
put:
operationId: Shipments_PutOrGetListingShipmentLabel
summary: Print a shipping label for a seller listing
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: listingId
in: path
required: true
schema:
type: string
security:
- oauth2:
- write:sellerlistings
/sellerlistings/{listingId}/shipments/{shipmentId}:
patch:
operationId: Shipments_PatchListingShipment
summary: Update a shipment for a seller listing
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: listingId
in: path
required: true
schema:
type: string
- name: shipmentId
in: path
required: true
schema:
type: string
security:
- oauth2:
- write:sellerlistings
/sales/{saleId}/shipments/{shipmentId}/label:
get:
operationId: Shipments_GetSaleShippingLabel
summary: Get shipping label for a sale
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: saleId
in: path
required: true
schema:
type: string
- name: shipmentId
in: path
required: true
schema:
type: string
security:
- oauth2:
- read:sales
/sales/{saleId}/shipments:
get:
operationId: Shipments_GetSaleShipments
summary: List shipments for a sale
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: saleId
in: path
required: true
schema:
type: string
security:
- oauth2:
- read:sales
put:
operationId: Shipments_PutOrGetSaleShipmentLabel
summary: Print a shipping label for a sale
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: saleId
in: path
required: true
schema:
type: string
security:
- oauth2:
- write:sales
/sales/{saleId}/shipments/{shipmentId}:
patch:
operationId: Shipments_PatchSaleShipment
summary: Update a shipment for a sale
tags:
- Shipments
responses:
'200':
description: Success. Response is `application/hal+json`.
content:
application/hal+json: {}
'400':
description: Bad Request. Error `code` may be https_required, user_agent_required, invalid_request_body, or validation_failed.
content:
application/hal+json: {}
'401':
description: Unauthorized. The request is not authenticated.
content:
application/hal+json: {}
'403':
description: Forbidden. Error `code` may be insufficient_scope, invalid_seller_listing_action, create_listing_not_allowed, or invalid_delete.
content:
application/hal+json: {}
'500':
description: Internal Server Error (`internal_server_error`).
content:
application/hal+json: {}
parameters:
- name: saleId
in: path
required: true
schema:
type: string
- name: shipmentId
in: path
required: true
schema:
type: string
security:
- oauth2:
- write:sales
components:
securitySchemes:
oauth2:
type: oauth2
description: OAuth2. All API requests must be authenticated.
flows:
clientCredentials:
tokenUrl: https://account.stubhub.com/oauth2/token
scopes:
read:events: Read-only access to events on the StubHub platform.
authorizationCode:
authorizationUrl: https://account.stubhub.com/authorize
tokenUrl: https://account.stubhub.com/oauth2/token
refreshUrl: https://account.stubhub.com/oauth2/token
scopes:
read:events: Read-only access to events on the StubHub platform.
read:payment: Read-only access to the user's payments.
read:sales: Read access to the user's sales.
write:sales: Write access to the user's sales (confirm and fulfill sales).
read:sellerlistings: Read access to the user's listings.
write:sellerlistings: Write access to the user's listings (create and update listings).
read:webhooks: Read access to the user's webhooks.
write:webhooks: Write access to the user's webhooks.
write:requestedevents: Write access to the user's requested events.