Etsy · Capability

Etsy Open API v3 — Shop Return Policy

Etsy Open API v3 — Shop Return Policy. 6 operations. Lead operation: Consolidate Shop Return Policies. Self-contained Naftiko capability covering one Etsy business surface.

Run with Naftiko EtsyOpen API v3Shop Return Policy

What You Can Do

POST
Consolidateshopreturnpolicies — Consolidate Shop Return Policies
/v1/shops/{shop_id}/policies/return/consolidate
POST
Createshopreturnpolicy — Create Shop Return Policy
/v1/shops/{shop_id}/policies/return
GET
Getshopreturnpolicies — Get Shop Return Policies
/v1/shops/{shop_id}/policies/return
DELETE
Deleteshopreturnpolicy — Delete Shop Return Policy
/v1/shops/{shop_id}/policies/return/{return_policy_id}
GET
Getshopreturnpolicy — Get Shop Return Policy
/v1/shops/{shop_id}/policies/return/{return_policy_id}
PUT
Updateshopreturnpolicy — Update Shop Return Policy
/v1/shops/{shop_id}/policies/return/{return_policy_id}

MCP Tools

consolidate-shop-return-policies

Consolidate Shop Return Policies

create-shop-return-policy

Create Shop Return Policy

get-shop-return-policies

Get Shop Return Policies

read-only idempotent
delete-shop-return-policy

Delete Shop Return Policy

idempotent
get-shop-return-policy

Get Shop Return Policy

read-only idempotent
update-shop-return-policy

Update Shop Return Policy

idempotent

Capability Spec

open-api-v3-shop-return-policy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Etsy Open API v3 — Shop Return Policy
  description: 'Etsy Open API v3 — Shop Return Policy. 6 operations. Lead operation: Consolidate Shop Return Policies. Self-contained Naftiko capability covering one Etsy business surface.'
  tags:
    - Etsy
    - Open API v3
    - Shop Return Policy
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
  - namespace: env
    keys:
      ETSY_API_KEY: ETSY_API_KEY
      ETSY_OAUTH_TOKEN: ETSY_OAUTH_TOKEN
capability:
  consumes:
    - type: http
      namespace: open-api-v3-shop-return-policy
      baseUri: https://openapi.etsy.com
      description: Etsy Open API v3 — Shop Return Policy business capability. Self-contained, no shared references.
      authentication:
        type: apikey
        key: x-api-key
        value: '{{env.ETSY_API_KEY}}'
        placement: header
      resources:
        - name: shops-policies-return-consolidate
          path: /v3/application/shops/{shop_id}/policies/return/consolidate
          operations:
            - name: consolidateShopReturnPolicies
              method: POST
              description: Consolidate Shop Return Policies
              inputParameters:
                - name: shop_id
                  in: path
                  type: integer
                  required: true
                  description: The unique positive non-zero numeric ID for an Etsy Shop.
                - name: body
                  in: body
                  type: object
                  required: false
                  description: JSON request body.
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: shops-policies-return
          path: /v3/application/shops/{shop_id}/policies/return
          operations:
            - name: createShopReturnPolicy
              method: POST
              description: Create Shop Return Policy
              inputParameters:
                - name: shop_id
                  in: path
                  type: integer
                  required: true
                  description: The unique positive non-zero numeric ID for an Etsy Shop.
                - name: body
                  in: body
                  type: object
                  required: false
                  description: JSON request body.
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
            - name: getShopReturnPolicies
              method: GET
              description: Get Shop Return Policies
              inputParameters:
                - name: shop_id
                  in: path
                  type: integer
                  required: true
                  description: The unique positive non-zero numeric ID for an Etsy Shop.
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: shops-policies-return
          path: /v3/application/shops/{shop_id}/policies/return/{return_policy_id}
          operations:
            - name: deleteShopReturnPolicy
              method: DELETE
              description: Delete Shop Return Policy
              inputParameters:
                - name: shop_id
                  in: path
                  type: integer
                  required: true
                  description: The unique positive non-zero numeric ID for an Etsy Shop.
                - name: return_policy_id
                  in: path
                  type: integer
                  required: true
                  description: The numeric ID of the [Return Policy](/documentation/reference#operation/getShopReturnPolicies).
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
            - name: getShopReturnPolicy
              method: GET
              description: Get Shop Return Policy
              inputParameters:
                - name: shop_id
                  in: path
                  type: integer
                  required: true
                  description: The unique positive non-zero numeric ID for an Etsy Shop.
                - name: return_policy_id
                  in: path
                  type: integer
                  required: true
                  description: The numeric ID of the [Return Policy](/documentation/reference#operation/getShopReturnPolicies).
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
            - name: updateShopReturnPolicy
              method: PUT
              description: Update Shop Return Policy
              inputParameters:
                - name: shop_id
                  in: path
                  type: integer
                  required: true
                  description: The unique positive non-zero numeric ID for an Etsy Shop.
                - name: return_policy_id
                  in: path
                  type: integer
                  required: true
                  description: The numeric ID of the [Return Policy](/documentation/reference#operation/getShopReturnPolicies).
                - name: body
                  in: body
                  type: object
                  required: false
                  description: JSON request body.
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: open-api-v3-shop-return-policy-rest
      port: 8080
      description: REST adapter for Etsy Open API v3 — Shop Return Policy. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/shops/{shop_id}/policies/return/consolidate
          name: shops-policies-return-consolidate
          description: REST surface for shops-policies-return-consolidate.
          operations:
            - method: POST
              name: consolidateShopReturnPolicies
              description: Consolidate Shop Return Policies
              call: open-api-v3-shop-return-policy.consolidateShopReturnPolicies
              with:
                shop_id: rest.shop_id
                body: rest.body
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/shops/{shop_id}/policies/return
          name: shops-policies-return
          description: REST surface for shops-policies-return.
          operations:
            - method: POST
              name: createShopReturnPolicy
              description: Create Shop Return Policy
              call: open-api-v3-shop-return-policy.createShopReturnPolicy
              with:
                shop_id: rest.shop_id
                body: rest.body
              outputParameters:
                - type: object
                  mapping: $.
            - method: GET
              name: getShopReturnPolicies
              description: Get Shop Return Policies
              call: open-api-v3-shop-return-policy.getShopReturnPolicies
              with:
                shop_id: rest.shop_id
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/shops/{shop_id}/policies/return/{return_policy_id}
          name: shops-policies-return
          description: REST surface for shops-policies-return.
          operations:
            - method: DELETE
              name: deleteShopReturnPolicy
              description: Delete Shop Return Policy
              call: open-api-v3-shop-return-policy.deleteShopReturnPolicy
              with:
                shop_id: rest.shop_id
                return_policy_id: rest.return_policy_id
              outputParameters:
                - type: object
                  mapping: $.
            - method: GET
              name: getShopReturnPolicy
              description: Get Shop Return Policy
              call: open-api-v3-shop-return-policy.getShopReturnPolicy
              with:
                shop_id: rest.shop_id
                return_policy_id: rest.return_policy_id
              outputParameters:
                - type: object
                  mapping: $.
            - method: PUT
              name: updateShopReturnPolicy
              description: Update Shop Return Policy
              call: open-api-v3-shop-return-policy.updateShopReturnPolicy
              with:
                shop_id: rest.shop_id
                return_policy_id: rest.return_policy_id
                body: rest.body
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: open-api-v3-shop-return-policy-mcp
      port: 9090
      transport: http
      description: MCP adapter for Etsy Open API v3 — Shop Return Policy. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: consolidate-shop-return-policies
          description: Consolidate Shop Return Policies
          hints:
            readOnly: false
            destructive: false
            idempotent: false
          call: open-api-v3-shop-return-policy.consolidateShopReturnPolicies
          with:
            shop_id: tools.shop_id
            body: tools.body
          outputParameters:
            - type: object
              mapping: $.
        - name: create-shop-return-policy
          description: Create Shop Return Policy
          hints:
            readOnly: false
            destructive: false
            idempotent: false
          call: open-api-v3-shop-return-policy.createShopReturnPolicy
          with:
            shop_id: tools.shop_id
            body: tools.body
          outputParameters:
            - type: object
              mapping: $.
        - name: get-shop-return-policies
          description: Get Shop Return Policies
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: open-api-v3-shop-return-policy.getShopReturnPolicies
          with:
            shop_id: tools.shop_id
          outputParameters:
            - type: object
              mapping: $.
        - name: delete-shop-return-policy
          description: Delete Shop Return Policy
          hints:
            readOnly: false
            destructive: true
            idempotent: true
          call: open-api-v3-shop-return-policy.deleteShopReturnPolicy
          with:
            shop_id: tools.shop_id
            return_policy_id: tools.return_policy_id
          outputParameters:
            - type: object
              mapping: $.
        - name: get-shop-return-policy
          description: Get Shop Return Policy
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: open-api-v3-shop-return-policy.getShopReturnPolicy
          with:
            shop_id: tools.shop_id
            return_policy_id: tools.return_policy_id
          outputParameters:
            - type: object
              mapping: $.
        - name: update-shop-return-policy
          description: Update Shop Return Policy
          hints:
            readOnly: false
            destructive: false
            idempotent: true
          call: open-api-v3-shop-return-policy.updateShopReturnPolicy
          with:
            shop_id: tools.shop_id
            return_policy_id: tools.return_policy_id
            body: tools.body
          outputParameters:
            - type: object
              mapping: $.