Skip to content

Wildberries API TypeScript SDK / MetaValidationFailError

Class: MetaValidationFailError

Defined in: errors/meta-validation-fail-error.ts:38

Error thrown when PATCH /api/v3/supplies/{supplyId}/deliver returns HTTP 409 with marking-code validation failures in the metaDetails response array.

From 2026-06-03, Wildberries validates Честный Знак (Honest Sign) marking codes server-side for B2C FBS orders. Codes must be passed in full — with GS separators (ASCII 0x1D) and the cryptographic authenticity tail. Invalid codes trigger this error.

⚠️ Rate-limit penalty: every 409 response counts as 10 requests against the FBS supply/order budget. Use sdk.ordersFBS.getOrdersMetaBulk() for pre-flight validation to avoid burning budget on repeated failures.

Since

3.15.0

See

Example

typescript
import { MetaValidationFailError } from 'daytona-wildberries-typescript-sdk';

try {
  await sdk.ordersFBS.updateSuppliesDeliver('WB-GI-1234');
} catch (err) {
  if (err instanceof MetaValidationFailError) {
    // Typed access to the failing marking codes
    err.metaDetails.forEach(d => {
      console.log(`key=${d.key} value="${d.value}" decision=${d.decision}`);
    });
    // err is still instanceof WBAPIError — existing catch-all blocks still work
  }
  throw err;
}

Extends

Constructors

Constructor

ts
new MetaValidationFailError(
   message: string, 
   code: string, 
   metaDetails: MetaDetail[], 
   response?: unknown, 
   requestId?: string, 
   origin?: string, 
   timestamp?: string): MetaValidationFailError;

Defined in: errors/meta-validation-fail-error.ts:63

Creates a MetaValidationFailError

Parameters

ParameterTypeDescription
messagestringHuman-readable error message from the API response
codestringWB error code string (e.g. 'MetaValidationFail'). Defaults to 'Unknown' when WB omits the code field.
metaDetailsMetaDetail[]Array of individual validation failures
response?unknownRaw API response body
requestId?stringCorrelation ID for debugging and tracing
origin?stringOrigin service identifier from RFC 7807 problem+json responses
timestamp?stringISO 8601 timestamp from RFC 7807 problem+json responses

Returns

MetaValidationFailError

Overrides

WBAPIError.constructor

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
<a id="statuscode"></a> statusCode?readonlynumberHTTP status code if applicableWBAPIError.statusCodeerrors/base-error.ts:25
<a id="response"></a> response?readonlyunknownAPI response body if availableWBAPIError.responseerrors/base-error.ts:30
<a id="requestid"></a> requestId?readonlystringCorrelation ID for debugging and tracing requestsWBAPIError.requestIderrors/base-error.ts:35
<a id="origin"></a> origin?readonlystringOrigin service identifier from RFC 7807 problem+json responses. Indicates which internal Wildberries service originated the error (e.g., "s2s-api-auth-catalog").WBAPIError.originerrors/base-error.ts:43
<a id="timestamp"></a> timestamp?readonlystringISO 8601 timestamp from RFC 7807 problem+json responses. Indicates when the error occurred on the server side (e.g., "2024-09-30T06:52:38Z").WBAPIError.timestamperrors/base-error.ts:51
<a id="code"></a> codereadonlystringWB error code from the response body (e.g. 'MetaValidationFail'). Defaults to 'Unknown' when WB omits the code field.-errors/meta-validation-fail-error.ts:43
<a id="metadetails"></a> metaDetailsreadonlyMetaDetail[]Array of individual marking-code validation failures. Each item exposes key (metadata type), value (the submitted code), and decision ('invalid' when the code failed validation).-errors/meta-validation-fail-error.ts:50

Methods

getUserMessage()

ts
getUserMessage(): string;

Defined in: errors/meta-validation-fail-error.ts:84

Returns a user-friendly error message listing the failing marking codes.

Returns

string

Error message with metaDetails summary and recovery guidance

Overrides

WBAPIError.getUserMessage


toJSON()

ts
toJSON(): {
  name: string;
  message: string;
  statusCode?: number;
  code: string;
  metaDetails: MetaDetail[];
  response?: unknown;
  requestId?: string;
};

Defined in: errors/meta-validation-fail-error.ts:122

Custom JSON serialization to include metaDetails and code properties

Returns

ts
{
  name: string;
  message: string;
  statusCode?: number;
  code: string;
  metaDetails: MetaDetail[];
  response?: unknown;
  requestId?: string;
}

Object representation including metaDetails and code

NameTypeDefined in
namestringerrors/meta-validation-fail-error.ts:123
messagestringerrors/meta-validation-fail-error.ts:124
statusCode?numbererrors/meta-validation-fail-error.ts:125
codestringerrors/meta-validation-fail-error.ts:126
metaDetailsMetaDetail[]errors/meta-validation-fail-error.ts:127
response?unknownerrors/meta-validation-fail-error.ts:128
requestId?stringerrors/meta-validation-fail-error.ts:129

Overrides

WBAPIError.toJSON

Made with ❤️ for the Wildberries developer community