getListing method

Future<GetListingOutput> getListing({
  1. required String listingId,
})

Provides details about a listing, such as descriptions, badges, categories, pricing model summaries, reviews, and associated products and offers.

May throw ResourceNotFoundException.

Parameter listingId : The unique identifier of the listing to retrieve.

Implementation

Future<GetListingOutput> getListing({
  required String listingId,
}) async {
  final $payload = <String, dynamic>{
    'listingId': listingId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/2026-02-05/getListing',
    exceptionFnMap: _exceptionFns,
  );
  return GetListingOutput.fromJson(response);
}