mapSoapFailure
mapSoapFailure(
operation,info,status?):LoncaError
Defined in: sdks/n11/src/soap/errors.ts:48
Turn a result.status: "failure" (sent with HTTP 200) into a LoncaError.
n11 documents error codes only for the REST services, so the mapping below is keyed on substrings:
- a code or category mentioning authentication →
AuthError(a wrong secret answers HTTP 200 withSELLER_API.authenticationFailed, verified on prod 2026-10-10); maxCallLimit/ a “limit” code (the legacy manual’s over-limit code, and the question list’s once-a-minute rule) →RateLimitError;- a “not found” code (
SELLER_API.productQuestion.notFound,SELLER_API.order.not.found, seen on the test store 2026-10-13) →NotFoundError; systemError(“Sistemde bir hata oluştu.”) →ServerError;- anything else →
ValidationError(not retried). Writes on an id in the wrong state answer codes likeSELLER_API.claimReturn.invalidRequestForApprove.
Parameters
Section titled “Parameters”operation
Section titled “operation”string
status?
Section titled “status?”number = 200
Returns
Section titled “Returns”LoncaError
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.