WooCommerce Payment Gateways API

Retrieve and configure available payment gateways

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /payment_gateways List all payment gateways · WooCommerce List All Payment Gateways #
Ask an LLM
“Which payment gateways are installed and enabled in my store?”
“What settings does each payment gateway have?”
Tell an agent
List all payment gateways.
Show every payment gateway with its enabled state and settings.
GET /payment_gateways/{id} Get one payment gateway · WooCommerce Retrieve a Payment Gateway #
Ask an LLM
“How do I check whether a specific payment gateway is enabled?”
“What settings does one payment gateway have?”
Tell an agent
Get payment gateway {id}.
Show the enabled state and settings of gateway {id}.
PUT /payment_gateways/{id} Enable or update a payment gateway · WooCommerce Update a Payment Gateway #
Ask an LLM
“How do I turn a payment gateway on or off?”
“Can I change a payment gateway's settings?”
Tell an agent
Set payment gateway {id} enabled to {enabled}.
Update the settings of payment gateway {id} to {settings}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/woocommerce:woocommerce-payment-gateways-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

woocommerce-payment-gateways-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-derived-by: API Evangelist (split from an AE-authored, documentation-derived spec in openapi/_original/)
  x-sources:
  - https://woocommerce.github.io/woocommerce-rest-api-docs/
  title: WooCommerce REST Payment Gateways API
  description: The WooCommerce REST API is the primary server-side interface for reading and writing WooCommerce store data programmatically.
  version: v3
  contact:
    name: WooCommerce Developer Support
    url: https://developer.woocommerce.com/docs/apis/rest-api/
  termsOfService: https://woocommerce.com/terms-conditions/
servers:
- url: https://example.com/wp-json/wc/v3
  description: Production Server (replace example.com with your store domain)
security:
- basicAuth: []
tags:
- name: Payment Gateways
  description: Retrieve and configure available payment gateways
paths:
  /payment_gateways:
    get:
      operationId: listPaymentGateways
      summary: WooCommerce List All Payment Gateways
      description: Returns all payment gateways installed in the store, including their enabled state, settings, and display order.
      tags:
      - Payment Gateways
      responses:
        '200':
          description: List of payment gateways
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PaymentGateway'
              examples:
                listPaymentGateways200Example:
                  summary: Default listPaymentGateways 200 response
                  x-microcks-default: true
                  value:
                  - id: '500123'
                    title: Example Name
                    description: A sample description
                    order: 1
                    enabled: true
                    method_title: Example Name
                    method_description: A sample description
                    method_supports:
                    - string-value
                    settings: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /payment_gateways/{id}:
    get:
      operationId: getPaymentGateway
      summary: WooCommerce Retrieve a Payment Gateway
      description: Returns a single payment gateway by its string ID (e.g. stripe, paypal).
      tags:
      - Payment Gateways
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Payment gateway details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentGateway'
              examples:
                getPaymentGateway200Example:
                  summary: Default getPaymentGateway 200 response
                  x-microcks-default: true
                  value:
                    id: '500123'
                    title: Example Name
                    description: A sample description
                    order: 1
                    enabled: true
                    method_title: Example Name
                    method_description: A sample description
                    method_supports:
                    - string-value
                    settings: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      operationId: updatePaymentGateway
      summary: WooCommerce Update a Payment Gateway
      description: Updates the settings or enabled state of a payment gateway.
      tags:
      - Payment Gateways
      parameters:
      - $ref: '#/components/parameters/id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentGatewayInput'
      responses:
        '200':
          description: Payment gateway updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentGateway'
              examples:
                updatePaymentGateway200Example:
                  summary: Default updatePaymentGateway 200 response
                  x-microcks-default: true
                  value:
                    id: '500123'
                    title: Example Name
                    description: A sample description
                    order: 1
                    enabled: true
                    method_title: Example Name
                    method_description: A sample description
                    method_supports:
                    - string-value
                    settings: {}
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  parameters:
    id:
      name: id
      in: path
      description: Unique identifier for the resource.
      required: true
      schema:
        type: integer
  schemas:
    PaymentGateway:
      type: object
      description: A payment gateway installed in the WooCommerce store.
      properties:
        id:
          type: string
          description: Payment gateway unique string identifier (e.g. stripe, paypal).
          example: '500123'
        title:
          type: string
          description: Gateway display name shown to customers at checkout.
          example: Example Name
        description:
          type: string
          description: Gateway description shown at checkout.
          example: A sample description
        order:
          type: integer
          description: Gateway display order at checkout.
          example: 1
        enabled:
          type: boolean
          description: Whether the gateway is active and available at checkout.
          example: true
        method_title:
          type: string
          description: Admin label for the gateway.
          example: Example Name
        method_description:
          type: string
          description: Admin description of the gateway.
          example: A sample description
        method_supports:
          type: array
          description: Features supported by this gateway (e.g. products, refunds, subscriptions).
          items:
            type: string
          example:
          - string-value
        settings:
          type: object
          description: Gateway settings as a key-value map. Each setting has id, label, description, type, value, and tip properties.
          additionalProperties: true
          example: {}
    Error:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: string-value
        message:
          type: string
          description: Human-readable error message.
          example: string-value
        data:
          type: object
          description: Additional error context including HTTP status code.
          properties:
            status:
              type: integer
              description: HTTP status code associated with the error.
          example:
            status: 1
    PaymentGatewayInput:
      type: object
      description: Input for updating a payment gateway.
      properties:
        enabled:
          type: boolean
          description: Whether to enable the gateway.
          example: true
        settings:
          type: object
          description: Gateway settings to update.
          additionalProperties: true
          example: {}
  responses:
    BadRequest:
      description: The request body contains invalid or missing parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication credentials are missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Auth using the WooCommerce Consumer Key as the username and Consumer Secret as the password over HTTPS. Over plain HTTP use OAuth 1.0a one-legged authentication instead.
externalDocs:
  description: WooCommerce REST API Documentation
  url: https://woocommerce.github.io/woocommerce-rest-api-docs/