getOffer method
Provides details about an offer, such as the pricing model, seller of record, availability dates, badges, and associated products.
May throw ResourceNotFoundException.
Parameter offerId :
The unique identifier of the offer to retrieve.
Implementation
Future<GetOfferOutput> getOffer({
required String offerId,
}) async {
final $payload = <String, dynamic>{
'offerId': offerId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/2026-02-05/getOffer',
exceptionFnMap: _exceptionFns,
);
return GetOfferOutput.fromJson(response);
}