WooCommerce · Capability

WooCommerce REST API — Payment Gateways

WooCommerce REST API — Payment Gateways. 3 operations. Lead operation: WooCommerce List All Payment Gateways. Self-contained Naftiko capability covering one Woocommerce business surface.

Run with Naftiko WoocommercePayment Gateways

What You Can Do

GET
Listpaymentgateways — WooCommerce List All Payment Gateways
/v1/payment-gateways
GET
Getpaymentgateway — WooCommerce Retrieve a Payment Gateway
/v1/payment-gateways/{id}
PUT
Updatepaymentgateway — WooCommerce Update a Payment Gateway
/v1/payment-gateways/{id}

MCP Tools

woocommerce-list-all-payment-gateways

WooCommerce List All Payment Gateways

read-only idempotent
woocommerce-retrieve-payment-gateway

WooCommerce Retrieve a Payment Gateway

read-only idempotent
woocommerce-update-payment-gateway

WooCommerce Update a Payment Gateway

idempotent

Capability Spec

rest-payment-gateways.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WooCommerce REST API — Payment Gateways
  description: 'WooCommerce REST API — Payment Gateways. 3 operations. Lead operation: WooCommerce List All Payment Gateways.
    Self-contained Naftiko capability covering one Woocommerce business surface.'
  tags:
  - Woocommerce
  - Payment Gateways
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WOOCOMMERCE_API_KEY: WOOCOMMERCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-payment-gateways
    baseUri: https://example.com/wp-json/wc/v3
    description: WooCommerce REST API — Payment Gateways business capability. Self-contained, no shared references.
    resources:
    - name: payment_gateways
      path: /payment_gateways
      operations:
      - name: listpaymentgateways
        method: GET
        description: WooCommerce List All Payment Gateways
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: payment_gateways-id
      path: /payment_gateways/{id}
      operations:
      - name: getpaymentgateway
        method: GET
        description: WooCommerce Retrieve a Payment Gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatepaymentgateway
        method: PUT
        description: WooCommerce Update a Payment Gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.WOOCOMMERCE_USER}}'
      password: '{{env.WOOCOMMERCE_PASS}}'
  exposes:
  - type: rest
    namespace: rest-payment-gateways-rest
    port: 8080
    description: REST adapter for WooCommerce REST API — Payment Gateways. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/payment-gateways
      name: payment-gateways
      description: REST surface for payment_gateways.
      operations:
      - method: GET
        name: listpaymentgateways
        description: WooCommerce List All Payment Gateways
        call: rest-payment-gateways.listpaymentgateways
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/payment-gateways/{id}
      name: payment-gateways-id
      description: REST surface for payment_gateways-id.
      operations:
      - method: GET
        name: getpaymentgateway
        description: WooCommerce Retrieve a Payment Gateway
        call: rest-payment-gateways.getpaymentgateway
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatepaymentgateway
        description: WooCommerce Update a Payment Gateway
        call: rest-payment-gateways.updatepaymentgateway
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-payment-gateways-mcp
    port: 9090
    transport: http
    description: MCP adapter for WooCommerce REST API — Payment Gateways. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: woocommerce-list-all-payment-gateways
      description: WooCommerce List All Payment Gateways
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-payment-gateways.listpaymentgateways
      outputParameters:
      - type: object
        mapping: $.
    - name: woocommerce-retrieve-payment-gateway
      description: WooCommerce Retrieve a Payment Gateway
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-payment-gateways.getpaymentgateway
      outputParameters:
      - type: object
        mapping: $.
    - name: woocommerce-update-payment-gateway
      description: WooCommerce Update a Payment Gateway
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: rest-payment-gateways.updatepaymentgateway
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.