Skip to content

Edit Etsy shop settings, sections and return policies (shops_w) - #2002

Merged
helpcodeai merged 1 commit into
mainfrom
feat/etsy-shop-settings-write
Dec 6, 2026
Merged

helpcodeai merged 1 commit into
mainfrom
feat/etsy-shop-settings-write

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

Etsy sellers asked to change their shop from the AI client: title, announcement, policies and sections. The Etsy connector only read them, because it did not ask for Etsy's shops_w scope. This adds the scope and seven tools on Etsy's documented endpoints (updateShop, create/update/deleteShopSection, create/update/deleteShopReturnPolicy).

Changes

  • etsy.json: scopes gain shops_w. The previous list is appended to previousOAuthScopes, so existing connectors get the new list the next time someone clicks Authorize with Provider (same mechanism as listings_w in October).
  • New tools: etsy_edit_shop (title, announcement, sale messages, policy_additional for EU shops only), etsy_add_shop_section, etsy_rename_shop_section, etsy_delete_shop_section, etsy_add_return_policy, etsy_edit_return_policy, etsy_delete_return_policy. Both deletes install switched off, like the other Etsy deletes. Bodies are form-urlencoded as Etsy's OpenAPI spec says; path ids are encoded.
  • Names avoid etsy_update_shop and etsy_create_shop_section: customers already created tools with those names on their own Etsy connectors, and a catalog tool with the same name would show up as an update to their tool.
  • Instructions: scopes, a "Shop settings" paragraph, and the switched-off list are updated; "Out of scope" no longer lists shop settings and sections.

Existing connectors: every current tool keeps working with the old token. Only the new tools answer "Access token lacks scope" until the connector is authorized again. Same in Cloud and self-hosted (catalog adapter, no deployment-specific code).

Type

  • New feature

Testing

  • Added/updated unit tests

Commands run in packages/backend (after npm ci and prisma generate):

  • npx jest --maxWorkers=3 src/adapters/intl/etsy src/connectors/oauth-authorize-settings src/connectors/connectors.controller src/connectors/catalog-resync src/adapters/catalog: 24306 passed, 0 failed.
  • npx eslint on the four changed specs: clean.

From the repository root:

  • node scripts/validate-adapters.mjs --warn: 996 passed, 0 failed, 1438 warnings, the same count as on main (none for Etsy).
  • node scripts/regenerate-catalog.mjs: no diff.
  • node scripts/adapter-count.mjs --check: OK.
  • node scripts/generate-llms-txt.mjs: no diff.

Not run against a live Etsy shop: the request shapes follow Etsy's OpenAPI spec (https://www.etsy.com/openapi/generated/oas/3.0.0.json).

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • I have updated documentation (if applicable): adapter instructions. docs/catalog/connectors/etsy.md is generated from the website repository.
  • This PR has a descriptive title

@helpcodeai
helpcodeai merged commit db05ddb into main Dec 6, 2026
17 checks passed
@helpcodeai
helpcodeai deleted the feat/etsy-shop-settings-write branch December 6, 2026 17:29
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant