Repository navigation
Add a Falabella Seller Center adapter with sorted-query HMAC signing - #1543
Merged
Merged
Conversation
Falabella Seller Center (Chile, Colombia, Peru) signs every call with an
HMAC-SHA256 over all query parameters, sorted by name, RFC 3986 encoded
and joined as name=value pairs, with an ISO 8601 Timestamp. The HMAC
signer gains two opt-in options for that: the ${sortedQuery} template
variable and timestampFormat "iso". Existing signatures are unchanged.
The adapter has 25 tools: products, stock, brands, categories and
attributes, warehouses, feeds and orders, plus creating and updating
products, prices, stock and images. Removing products and changing
order status are installed switched off.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a Falabella Seller Center adapter (falabella.com marketplace: Chile, Colombia, Peru) and two opt-in options for the HMAC signer that its API needs.
Falabella signs every call with HMAC-SHA256 using the user's API key. The signed string is built like this:
Signature;name=valuewith&.The
Timestampis in ISO 8601. The existing${sortedParams}(Alibaba IOP style: no separators, no encoding) and the s/ms timestamps cannot express this.Changes
Engine (
rest.engine.ts)${sortedQuery}template variable:name=value&...;timestampFormat: "iso"→2026-11-06T07:00:00+00:00(UTC).rest.engine.hmac-pin.spec.tsand the IOP / Shopee specs pass unchanged; the Shopee spec's list of query-signed adapters gains the new slug.docs/tool-definition.md.Adapter
intl/falabella-seller-center.json, 25 tools:Other details:
FALABELLA_USER_ID,FALABELLA_API_KEY(secret),FALABELLA_SELLER_ID,FALABELLA_BUSINESS_UNIT(FACL/FACO/FAPE).SELLER_ID/AnythingMCP/1.0/ANYTHINGMCP/BU, as Falabella requires.ErrorResponse;errorWhenmaps them:falabella.svg, catalog regenerated, counts 712 → 713,llms.txtregenerated.Cloud and self-hosted: the adapter and the signer behave the same in both.
Type
Testing
In
packages/backend:npx jest src/connectors/engines/rest.engine.sortedquery-signing.spec.ts src/connectors/engines/rest.engine.hmac-pin.spec.ts src/connectors/engines/rest.engine.iop-signing.spec.ts: 30 passed. The engine reproduces the vendor's published reference signature (3ceb8ed9…6041for the documented key, user and timestamp). The spec also covers:+in the timestamp sent as%2B;npx jest src/adapters/intl/falabella-seller-center.live.spec.ts: 12 passed, live block skipped. Live calls are read-only, gated byRUN_FALABELLA_SELLER_CENTER_LIVE=1.npx jest src/adapters src/connectors/engines: 26,181 tests passed. 12 suites could not compile locally because this machine'snode_moduleslacks@types/picomatch(known local baseline, same on main). CI runs them.npx eslinton the changed TS files: clean.From the repo root:
node scripts/validate-adapters.mjs --warn: 729 passed, no warnings for the new adapter.node scripts/adapter-count.mjs --check: OK, 713 adapters.Against the real host:
{"ErrorResponse":{"Head":{"ErrorCode":"9","ErrorMessage":"E009: Access Denied"}}}with HTTP 200, whicherrorWhenmaps to 403.Checklist