Skip to content

Wildberries API TypeScript SDK / <internal> / ParsedBidRange

Interface: ParsedBidRange

Defined in: errors/bid-out-of-range-error.ts:17

Parsed components of a WB advert "wrong bid value" 400 detail string.

WB returns the out-of-range bid rejection as an RFC 7807 body whose detail has the shape 'wrong bid value: <received>; min: <min>[; max: <max>]'. received and min are always present; max is only present when WB reports a ceiling (currently unobserved — see task-135 experiment (c)).

The numeric unit depends on which endpoint rejected the bid:

  • updateBidskopecks (e.g. 250 = 2.50 RUB)
  • setNormqueryBidsRUB (whole rubles)

The parser is unit-agnostic; it only extracts the numbers.

Properties

PropertyTypeDescriptionDefined in
<a id="received"></a> receivednumberThe bid value WB rejected (the "wrong bid value").errors/bid-out-of-range-error.ts:19
<a id="min"></a> minnumberThe minimum accepted bid (the floor).errors/bid-out-of-range-error.ts:21
<a id="max"></a> max?numberThe maximum accepted bid (the ceiling), only when WB reports one.errors/bid-out-of-range-error.ts:23

Made with ❤️ for the Wildberries developer community