Automattic Ucp API

The ucp API from Automattic — 15 operation(s) for ucp.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 24

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

POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts Create a UCP cart for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts #
Ask an LLM
“How do I create a cart for a site through the UCP proxy?”
“Can I start a new UCP cart for a site?”
Tell an agent
Create a UCP cart for site {wpcom_site}.
Start a new UCP cart on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} Get a UCP cart for a site · GET /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} #
Ask an LLM
“What is in a UCP cart on a site?”
“Can I read a single UCP cart for a site?”
Tell an agent
Get UCP cart {id} for site {wpcom_site}.
Show the contents of UCP cart {id} on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} Update a UCP cart for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} #
Ask an LLM
“Can I add items to a UCP cart on a site?”
“How do I update a UCP cart on a site?”
Tell an agent
Update UCP cart {id} on site {wpcom_site}.
Add items to UCP cart {id} for site {wpcom_site}.
PUT /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} Replace a UCP cart for a site · PUT /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} #
Ask an LLM
“How do I replace all items in a UCP cart on a site?”
“Can I overwrite a UCP cart on a site?”
Tell an agent
Replace UCP cart {id} on site {wpcom_site}.
Overwrite the items in UCP cart {id} for site {wpcom_site}.
PATCH /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} Update a UCP cart via the proxy · PATCH /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id} #
Ask an LLM
“How do I update a UCP cart through the site's commerce proxy endpoint?”
“Can I edit a cart in a user account proxy cart list?”
Tell an agent
Update the UCP proxy cart {cart_id} on site {site}.
Change the cart {cart_id} via the user account proxy using {site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}/cancel Cancel a UCP cart for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}/cancel #
Ask an LLM
“How do I cancel a UCP cart on a site?”
“Can I clear a UCP cart on a site?”
Tell an agent destructive · confirm first
Cancel UCP cart {id} on site {wpcom_site}.
Clear UCP cart {id} for site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/lookup Look up a product in the UCP catalog · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/lookup #
Ask an LLM
“How do I look up a product in the UCP catalog for a site?”
“Can I find a product by its ID in the UCP catalog?”
Tell an agent
Look up a product in the UCP catalog for site {wpcom_site}.
Find a product in the UCP catalog of site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/product Create a product in the UCP catalog · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/product #
Ask an LLM
“How do I create a product in the UCP catalog for a site?”
“Can I add a new product to the UCP catalog?”
Tell an agent
Create a product in the UCP catalog for site {wpcom_site}.
Add a new product to the UCP catalog of site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/search Search the UCP catalog · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/search #
Ask an LLM
“How do I search the UCP catalog for a site?”
“Can I find products in the UCP catalog by keyword?”
Tell an agent
Search the UCP catalog for site {wpcom_site}.
Find products in the UCP catalog of site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions Create a UCP checkout session for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions #
Ask an LLM
“How do I create a checkout session for a site through the UCP proxy?”
“Can I start a new UCP checkout session on a site?”
Tell an agent
Create a UCP checkout session for site {wpcom_site}.
Start a new UCP checkout session on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} Get a UCP checkout session for a site · GET /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} #
Ask an LLM
“What is the status of a UCP checkout session on a site?”
“Can I read a single UCP checkout session for a site?”
Tell an agent
Get UCP checkout session {id} for site {wpcom_site}.
Show the status of UCP checkout session {id} on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} Update a UCP checkout session for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} #
Ask an LLM
“Can I add items to a UCP checkout session on a site?”
“How do I update a UCP checkout session on a site?”
Tell an agent
Update UCP checkout session {id} on site {wpcom_site}.
Add items to UCP checkout session {id} for site {wpcom_site}.
PUT /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} Replace a UCP checkout session for a site · PUT /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} #
Ask an LLM
“How do I replace all items in a UCP checkout session on a site?”
“Can I overwrite a UCP checkout session on a site?”
Tell an agent
Replace UCP checkout session {id} on site {wpcom_site}.
Overwrite the items in UCP checkout session {id} for site {wpcom_site}.
PATCH /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} Update a UCP checkout session via the proxy · PATCH /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id} #
Ask an LLM
“How can I patch an external UCP checkout session through the site's proxy endpoint?”
“Can I edit a checkout session in the user account proxy list?”
Tell an agent
Update the UCP proxy checkout session {session_id} on site {site}.
Change the checkout session {session_id} via the user account proxy using {site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/cancel Cancel a UCP checkout session for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/cancel #
Ask an LLM
“How do I cancel a UCP checkout session on a site?”
“Can I clear a UCP checkout session on a site?”
Tell an agent destructive · confirm first
Cancel UCP checkout session {id} on site {wpcom_site}.
Clear UCP checkout session {id} for site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/complete Complete a UCP checkout session for a site · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/complete #
Ask an LLM
“How do I complete a UCP checkout session on a site?”
“Can I mark a UCP checkout session as completed?”
Tell an agent
Complete UCP checkout session {id} on site {wpcom_site}.
Mark UCP checkout session {id} for site {wpcom_site} as completed.
POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/webhooks/order Send an order webhook to the UCP proxy · POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/webhooks/order #
Ask an LLM
“How do I send an order webhook to the UCP proxy for a site?”
“Can I notify the UCP proxy of an order on a site?”
Tell an agent
Send an order webhook to the UCP proxy for site {wpcom_site}.
Notify the UCP proxy of an order on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions Create a UCP checkout session (legacy) · POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions #
Ask an LLM
“How do I create a checkout session using the older UCP v1 endpoint?”
“Can I start a UCP checkout session with the legacy v1 endpoint?”
Tell an agent
Create a UCP checkout session using the legacy v1 endpoint for site {wpcom_site}.
Start a UCP checkout session with the older UCP v1 endpoint on site {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} Get a checkout session on the site's checkout proxy · GET /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} #
Ask an LLM
“How do I fetch a single checkout session from the site's checkout proxy endpoint?”
“What are the details of one UCP checkout session for a site?”
Tell an agent
Get checkout session {session_id} on the site's checkout proxy for site {site}.
Show the {session_id} checkout session through the site's checkout proxy.
POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} Submit a POST to an existing checkout session · POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} #
Ask an LLM
“How do I send a POST action to an existing checkout session through a site's UCP v1 proxy?”
“Can I post to a specific checkout session by its ID on a WordPress.com site's UCP v1 route?”
Tell an agent
Send a POST to the UCP v1 checkout session {id} on site {wpcom_site}.
Post to the existing v1 checkout session {id} under site {wpcom_site} without creating a new one.
PUT /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} Replace a checkout session on the site's checkout proxy · PUT /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} #
Ask an LLM
“How do I replace a checkout session on the site's checkout proxy endpoint?”
“Can I overwrite a single UCP checkout session through the site's proxy?”
Tell an agent
Replace checkout session {session_id} on the site's checkout proxy for site {site}.
Overwrite the {session_id} checkout session through the site's checkout proxy.
PATCH /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} Partially modify an existing checkout session · PATCH /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id} #
Ask an LLM
“How do I make a partial change to an existing checkout session on a site's UCP v1 route?”
“Can I patch just some fields of a UCP v1 checkout session by its ID?”
Tell an agent
Patch the UCP v1 checkout session {id} on site {wpcom_site}.
Apply a partial modification to v1 checkout session {id} under site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/cancel Cancel a checkout session on the site's checkout proxy · POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/cancel #
Ask an LLM
“How do I cancel a checkout session on the site's checkout proxy?”
“Can I stop a UCP checkout session through the site's proxy?”
Tell an agent destructive · confirm first
Cancel checkout session {session_id} on the site's checkout proxy for site {site}.
Stop the {session_id} checkout session through the site's checkout proxy.
POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/complete Complete a checkout session on the site's checkout proxy · POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/complete #
Ask an LLM
“How do I mark a checkout session as paid through the site's checkout proxy?”
“Can I finish a UCP checkout session through the site's proxy?”
Tell an agent
Complete checkout session {session_id} on the site's checkout proxy for site {site}.
Mark the {session_id} checkout session through the site's checkout proxy as complete.

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/automattic:automattic-ucp-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

automattic-ucp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Ucp API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wpcom/v2/. Paths, HTTP methods, and parameter names/types/descriptions/defaults are taken verbatim from that index. Response schemas are not published in the route index, so successful responses are described but not schematised; the error envelope was observed live on public-api.wordpress.com.
  contact:
    name: Automattic
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/wpcom/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:
- name: ucp
paths:
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1Carts
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteUcpProxyV1CartsbyId
      summary: GET /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CartsbyId
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2SitesbyWpcomSiteUcpProxyV1CartsbyId
      summary: PUT /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteUcpProxyV1CartsbyId
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}/cancel:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CartsbyIdCancel
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/carts/{id}/cancel
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/lookup:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CatalogLookup
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/lookup
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/product:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CatalogProduct
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/product
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/search:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CatalogSearch
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/catalog/search
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessions
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessionsbyId
      summary: GET /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessionsbyId
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessionsbyId
      summary: PUT /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessionsbyId
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/cancel:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessionsbyIdCancel
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/cancel
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/complete:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1CheckoutSessionsbyIdComplete
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/checkout-sessions/{id}/complete
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/webhooks/order:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpProxyV1WebhooksOrder
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/proxy/v1/webhooks/order
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessions
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessionsbyId
      summary: GET /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessionsbyId
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessionsbyId
      summary: PUT /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessionsbyId
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/cancel:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessionsbyIdCancel
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/cancel
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/complete:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteUcpV1CheckoutSessionsbyIdComplete
      summary: POST /wpcom/v2/sites/{wpcom_site}/ucp/v1/checkout-sessions/{id}/complete
      tags:
      - ucp
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
components:
  schemas:
    WPRestError:
      type: object
      description: WordPress REST API error envelope (observed on public-api.wordpress.com).
      properties:
        code:
          type: string
          example: rest_unauthorized
        message:
          type: string
          example: Authentication required.
        data:
          type: object
          properties:
            status:
              type: integer
              example: 401
  securitySchemes:
    oauth2:
      type: oauth2
      description: WordPress.com OAuth 2.1, per https://public-api.wordpress.com/.well-known/openid-configuration
      flows:
        authorizationCode:
          authorizationUrl: https://public-api.wordpress.com/oauth2-1/authorize
          tokenUrl: https://public-api.wordpress.com/oauth2-1/token
          refreshUrl: https://public-api.wordpress.com/oauth2-1/token
          scopes:
            global: ''
            auth: ''
            openid: ''
            profile: ''
            email: ''
            users: ''
            sites: ''
            posts: ''
            comments: ''
            taxonomy: ''
            follow: ''
            sharing: ''
            freshly-pressed: ''
            notifications: ''
            insights: ''
            read: ''
            stats: ''
            media: ''
            menus: ''
            batch: ''
            videos: ''
    bearerAuth:
      type: http
      scheme: bearer