{"components":{"callbacks":{},"examples":{},"headers":{},"links":{},"parameters":{"clientHeader":{"description":"The identifier of a client associated with a \u0026quot;Login with Amazon\u0026quot; account.","in":"header","name":"Amazon-Advertising-API-ClientId","required":true,"schema":{"type":"string"}},"managerAccountIdHeader":{"description":"ManagerAccountId is an ID that is globally unique and identifies a manager account that is mapped to many advertiser accounts. Manager accounts can be associated to sponsored ads accounts, DSP ads accounts, represent a partner network account, and now all DSP entities have been migrated to manager accounts.","in":"header","name":"Amazon-Ads-Manager-AccountId","required":false,"schema":{"type":"string"}},"profileHeader":{"description":"The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header and choose profile id `profileId` from the response to pass it as input. For DSP profiles, the `type` field of the `accountInfo` object must be set to `agency` and the `subType` field must not be `AMAZON_ATTRIBUTION`.","in":"header","name":"Amazon-Advertising-API-Scope","required":false,"schema":{"type":"string"}}},"requestBodies":{},"responses":{"seats400":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Bad Request."},"seats401":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Unauthenticated request."},"seats404":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Resource Not Found."},"seats429":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Too Many Requests."},"seats500":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Internal Service Failure."},"seats503":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Service Unavailable."}},"schemas":{"ApiError":{"description":"The error response object.","properties":{"errors":{"items":{"$ref":"#/components/schemas/FieldError"},"maxItems":1000,"minItems":0,"type":"array"},"message":{"description":"A human-readable description of the response.","type":"string"},"requestId":{"description":"A value created by Amazon API Gateway that uniquely identifies your request.","type":"string"}},"type":"object"},"CurrentSeat":{"properties":{"dealCreationId":{"$ref":"#/components/schemas/DealCreationId"},"exchangeId":{"$ref":"#/components/schemas/ExchangeId"},"exchangeName":{"$ref":"#/components/schemas/ExchangeName"},"spendTrackingId":{"$ref":"#/components/schemas/SpendTrackingId"}},"type":"object"},"CurrentSeatV2":{"properties":{"eligibleSeats":{"$ref":"#/components/schemas/EligibleSeat"},"exchangeId":{"$ref":"#/components/schemas/ExchangeId"},"exchangeName":{"$ref":"#/components/schemas/ExchangeName"}},"type":"object"},"DealCreationId":{"description":"The seat ID used for tracking spend via the exchange\u0027s system.","type":"string"},"EligibleSeat":{"properties":{"maGroupSeats":{"description":"The group seats for current manager account shared with other manager accounts","properties":{"dealCreationId":{"$ref":"#/components/schemas/DealCreationId"},"spendTrackingId":{"$ref":"#/components/schemas/SpendTrackingId"}},"type":"object"},"maSeats":{"description":"The manager account seats specific to only current manager account.","properties":{"dealCreationId":{"$ref":"#/components/schemas/DealCreationId"},"spendTrackingId":{"$ref":"#/components/schemas/SpendTrackingId"}},"type":"object"}},"type":"object"},"ExchangeId":{"description":"The identifier for the exchange (also known as SSP).","type":"number"},"ExchangeName":{"description":"The name of the exchange (also known as SSP).","type":"string"},"FieldError":{"description":"The sub error object.","properties":{"errorType":{"type":"string"},"fieldName":{"type":"string"},"message":{"type":"string"}},"required":["errorType","message"],"type":"object"},"ListCurrentSeatIdsRequest":{"allOf":[{"$ref":"#/components/schemas/PagingRequest"}],"properties":{"countryIsoCode":{"description":"The ISO country code of the country for which to retrieve seat IDs.  Used for AdX. Applicable for India \u0027IN\u0027, can be null for other countries.","example":"IN","type":"string"}},"type":"object"},"ListCurrentSeatIdsResponse":{"allOf":[{"$ref":"#/components/schemas/PagingResponse"}],"properties":{"currentSeats":{"description":"The seats retrieved.","items":{"$ref":"#/components/schemas/CurrentSeat"},"maxItems":1000,"minItems":0,"type":"array"}},"type":"object"},"ListCurrentSeatIdsResponseV2":{"allOf":[{"$ref":"#/components/schemas/PagingResponse"}],"properties":{"seats":{"description":"The seats retrieved.","items":{"$ref":"#/components/schemas/CurrentSeatV2"},"maxItems":1000,"minItems":0,"type":"array"}},"type":"object"},"PagingRequest":{"properties":{"maxResults":{"default":50,"description":"Sets the maximum number of results in the returned collection. Used in conjunction with \u0027nextToken\u0027 to control pagination.  Values less than 1 are considered invalid and will result in an error response.","maximum":1000,"type":"integer"},"nextToken":{"description":"Used for pagination, a string that can be sent in the next request to get the next page of results.","example":"abc123abc123abc123abc123abc123","type":"string"}},"type":"object"},"PagingResponse":{"properties":{"nextToken":{"description":"Used for pagination, a string that can be sent in the next request to get the next page of results.","type":"string"},"totalResults":{"description":"The number of results returned.","type":"integer"}},"type":"object"},"SpendTrackingId":{"description":"The seat ID used for creating deals with publishers.","type":"string"}},"securitySchemes":{}},"info":{"description":"Seat ID Mapping Private API","title":"Seat IDs","version":"3.0"},"openapi":"3.0.1","paths":{"/dsp/seats/current/list":{"post":{"description":"Gets list of current seatIds for all exchanges (also known as SSPs) for a given entityId.","operationId":"listCurrentSeatIds","parameters":[{"$ref":"#/components/parameters/clientHeader"},{"$ref":"#/components/parameters/profileHeader"},{"$ref":"#/components/parameters/managerAccountIdHeader"}],"requestBody":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ListCurrentSeatIdsRequest"}},"application/vnd.dspseats.v2+json":{"schema":{"$ref":"#/components/schemas/ListCurrentSeatIdsRequest"}}}},"responses":{"200":{"content":{"application/vnd.dspseats.v1+json":{"schema":{"$ref":"#/components/schemas/ListCurrentSeatIdsResponse"}},"application/vnd.dspseats.v2+json":{"schema":{"$ref":"#/components/schemas/ListCurrentSeatIdsResponseV2"}}},"description":"Successful operation."},"400":{"$ref":"#/components/responses/seats400"},"401":{"$ref":"#/components/responses/seats401"},"404":{"$ref":"#/components/responses/seats404"},"429":{"$ref":"#/components/responses/seats429"},"500":{"$ref":"#/components/responses/seats500"},"503":{"$ref":"#/components/responses/seats503"}},"summary":"Gets list of current seatIds for all exchanges (also known as SSPs) for a given entityId.","tags":["Current Seat"]}}}}