Automattic Jetpack Licensing API

The jetpack-licensing API from Automattic — 24 operation(s) for jetpack-licensing.

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 31

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 /wpcom/v2/jetpack-licensing/dev-licenses List development licenses · GET /wpcom/v2/jetpack-licensing/dev-licenses #
Ask an LLM
“Which development licenses do I have?”
“Can I see all my dev licenses at once?”
Tell an agent
List my development licenses.
Show every dev license I hold.
GET /wpcom/v2/jetpack-licensing/jetpack-crm/license Get a Jetpack CRM license · GET /wpcom/v2/jetpack-licensing/jetpack-crm/license #
Ask an LLM
“What does my Jetpack CRM license key give me?”
“Can I look up a CRM license by its key?”
Tell an agent
Get the Jetpack CRM license for key {license_key}.
Show the CRM license tied to {license_key}.
GET /wpcom/v2/jetpack-licensing/license Look up a Jetpack license key · GET /wpcom/v2/jetpack-licensing/license #
Ask an LLM
“Is a particular Jetpack license key still valid?”
“How do I verify a Jetpack license key by its key?”
Tell an agent
Look up Jetpack license key {license_key}.
Check whether {license_key} is a valid Jetpack license.
POST /wpcom/v2/jetpack-licensing/license Buy a Jetpack license · POST /wpcom/v2/jetpack-licensing/license #
Ask an LLM
“How do I buy a new Jetpack license for a product?”
“Can I buy a quantity of licenses at once?”
Tell an agent
Buy a {quantity} license for {product}.
Purchase one {product} license.
DELETE /wpcom/v2/jetpack-licensing/license Cancel a Jetpack license · DELETE /wpcom/v2/jetpack-licensing/license #
Ask an LLM
“How do I cancel a Jetpack license?”
“Can I email a cancellation notice when I cancel a license?”
Tell an agent destructive · confirm first
Cancel the Jetpack license {license_key}.
Cancel {license_key} and email {cancellation_email}.
GET /wpcom/v2/jetpack-licensing/license/{license_key}/children List sites a license covers · GET /wpcom/v2/jetpack-licensing/license/{license_key}/children #
Ask an LLM
“Which sites is a given license attached to?”
“Can I see the child sites of a license?”
Tell an agent
List the sites covered by license {license_key}.
Show the child sites of {license_key}.
GET /wpcom/v2/jetpack-licensing/license/{license_key}/download Download a license · GET /wpcom/v2/jetpack-licensing/license/{license_key}/download #
Ask an LLM
“How do I download a license file?”
“Can I get a license download link by its key?”
Tell an agent
Download the license {license_key}.
Get the download link for license {license_key}.
POST /wpcom/v2/jetpack-licensing/license/{license_key}/site Attach a site to a license · POST /wpcom/v2/jetpack-licensing/license/{license_key}/site #
Ask an LLM
“How do I attach a site to an existing license?”
“Can I add a new site to a license?”
Tell an agent
Attach site {site} to license {license_key}.
Add {site} to the sites covered by {license_key}.
DELETE /wpcom/v2/jetpack-licensing/license/{license_key}/site Remove a site from a license · DELETE /wpcom/v2/jetpack-licensing/license/{license_key}/site #
Ask an LLM
“How do I detach a site from a license?”
“Can I take a site off a license without cancelling it?”
Tell an agent destructive · confirm first
Remove a site from license {license_key}.
Detach the site covered by {license_key}.
GET /wpcom/v2/jetpack-licensing/licenses List my Jetpack licenses · GET /wpcom/v2/jetpack-licensing/licenses #
Ask an LLM
“Which Jetpack licenses do I have?”
“Can I search my licenses by product or parent?”
Tell an agent
List my Jetpack licenses.
Find licenses matching {search}.
POST /wpcom/v2/jetpack-licensing/licenses Buy a bundle of licenses · POST /wpcom/v2/jetpack-licensing/licenses #
Ask an LLM
“How do I buy a bundle of licenses for a product?”
“Can I order several licenses for a bundle at once?”
Tell an agent
Buy {quantity} licenses for product {product} in bundle {bundle}.
Order a {quantity} license bundle of {product}.
GET /wpcom/v2/jetpack-licensing/licenses/billing View my billing details · GET /wpcom/v2/jetpack-licensing/licenses/billing #
Ask an LLM
“What are my billing details for Jetpack licenses?”
“Can I see my license billing information?”
Tell an agent
Show my license billing details.
Get my billing information for Jetpack licenses.
GET /wpcom/v2/jetpack-licensing/licenses/counts Count my Jetpack licenses · GET /wpcom/v2/jetpack-licensing/licenses/counts #
Ask an LLM
“How many Jetpack licenses do I have?”
“What are the counts of my licenses by status?”
Tell an agent
Count my Jetpack licenses.
Show the license counts for each status.
GET /wpcom/v2/jetpack-licensing/partner Get my partner account · GET /wpcom/v2/jetpack-licensing/partner #
Ask an LLM
“What partner account details are stored for me?”
“Can I see my partner billing address?”
Tell an agent
Show my partner account.
Get my partner billing address.
POST /wpcom/v2/jetpack-licensing/partner Register as a partner · POST /wpcom/v2/jetpack-licensing/partner #
Ask an LLM
“How do I sign up as a Jetpack partner?”
“What do I need to register a partner account?”
Tell an agent
Register as a partner with {tos} and {name}.
Sign up for the partner program as {name} with terms {tos}.
PUT /wpcom/v2/jetpack-licensing/partner Update my partner account · PUT /wpcom/v2/jetpack-licensing/partner #
Ask an LLM
“How do I update my partner account details?”
“Can I change my partner billing address?”
Tell an agent
Update my partner account to {tos} and {name}.
Change my partner billing address to {line1}, {city}, {state}, {postal_code}.
POST /wpcom/v2/jetpack-licensing/partner/invoice/{invoice_id}/payment Pay a partner invoice · POST /wpcom/v2/jetpack-licensing/partner/invoice/{invoice_id}/payment #
Ask an LLM
“How do I pay a partner invoice?”
“Can I pay an invoice by its ID?”
Tell an agent
Pay partner invoice {invoice_id}.
Record payment for invoice {invoice_id}.
GET /wpcom/v2/jetpack-licensing/partner/invoices List partner invoices · GET /wpcom/v2/jetpack-licensing/partner/invoices #
Ask an LLM
“Which invoices have I received as a partner?”
“Can I filter partner invoices by status?”
Tell an agent
List my partner invoices.
Show partner invoices with status {status}.
GET /wpcom/v2/jetpack-licensing/partner/product-families List partner product families · GET /wpcom/v2/jetpack-licensing/partner/product-families #
Ask an LLM
“What product families can I sell as a partner?”
“Which products are available in the partner program?”
Tell an agent
List the product families available to partners.
Show partner product families.
GET /wpcom/v2/jetpack-licensing/product-families List product families · GET /wpcom/v2/jetpack-licensing/product-families #
Ask an LLM
“What product families are available for licensing?”
“Which products can I license?”
Tell an agent
List the product families.
Show every product family available for licensing.
GET /wpcom/v2/jetpack-licensing/public/manage-pricing Get Jetpack licensing pricing · GET /wpcom/v2/jetpack-licensing/public/manage-pricing #
Ask an LLM
“What pricing tiers does Jetpack licensing offer?”
“Can I see the current Jetpack licensing pricing?”
Tell an agent
Show the Jetpack licensing pricing.
Get the current Jetpack licensing pricing tiers.
POST /wpcom/v2/jetpack-licensing/site-connection Connect a site to Jetpack licensing · POST /wpcom/v2/jetpack-licensing/site-connection #
Ask an LLM
“How do I connect my site to Jetpack licensing?”
“Can I attach a local user when connecting a site?”
Tell an agent
Connect {url} to Jetpack licensing as {local_user}.
Attach {local_user} to site {url} for licensing.
POST /wpcom/v2/jetpack-licensing/stripe/payment-method Add a payment method to licensing · POST /wpcom/v2/jetpack-licensing/stripe/payment-method #
Ask an LLM
“How do I add a credit card to my Jetpack licensing account?”
“Can I make a new payment method the default?”
Tell an agent
Add payment method {payment_method_id} to Jetpack licensing.
Attach {payment_method_id} to licensing and set it as primary: {use_as_primary_payment_method}.
DELETE /wpcom/v2/jetpack-licensing/stripe/payment-method Remove a payment method from licensing · DELETE /wpcom/v2/jetpack-licensing/stripe/payment-method #
Ask an LLM
“How do I remove a credit card from my Jetpack licensing account?”
“Can I set a different payment method as primary when removing one?”
Tell an agent destructive · confirm first
Remove payment method {payment_method_id} from Jetpack licensing.
Detach {payment_method_id} from licensing and make {primary_payment_method_id} primary.
GET /wpcom/v2/jetpack-licensing/stripe/payment-methods List payment methods saved for licensing · GET /wpcom/v2/jetpack-licensing/stripe/payment-methods #
Ask an LLM
“Which payment methods are saved on my billing account?”
“Can I see my Stripe payment methods used for licensing?”
Tell an agent
List payment methods saved for licensing.
Show the Stripe payment methods on my account.
GET /wpcom/v2/jetpack-licensing/user/licenses List my Jetpack licenses · GET /wpcom/v2/jetpack-licensing/user/licenses #
Ask an LLM
“What Jetpack licenses do I currently hold?”
“Where can I see my own Jetpack license keys?”
Tell an agent
Show all my Jetpack licenses.
List every Jetpack license key I have.
GET /wpcom/v2/jetpack-licensing/user/licenses/counts Get my license counts by status · GET /wpcom/v2/jetpack-licensing/user/licenses/counts #
Ask an LLM
“What is the breakdown of my Jetpack licenses by status?”
“Can I see a summary of how many licenses are in each state for my user account?”
Tell an agent
Get the status tallies for the licenses on my user account.
Summarize my user-level Jetpack license totals per status.
GET /wpcom/v2/jetpack-licensing/user/order/{order_id} Get a Jetpack license order · GET /wpcom/v2/jetpack-licensing/user/order/{order_id} #
Ask an LLM
“Can I see the details of one Jetpack license order?”
“What products were in a specific Jetpack order?”
Tell an agent
Show Jetpack order {order_id}.
Get the products in Jetpack order {order_id}.
GET /wpcom/v2/jetpack-licensing/user/receipt/{receipt_id} Get a Jetpack license receipt · GET /wpcom/v2/jetpack-licensing/user/receipt/{receipt_id} #
Ask an LLM
“Can I download a receipt for a Jetpack license order?”
“Where do I find the receipt for a Jetpack order?”
Tell an agent
Get receipt {receipt_id} for my Jetpack license.
Download the receipt {receipt_id} for my Jetpack order.
GET /wpcom/v2/jetpack-licensing/user/subscription/{subscription_id} Get a Jetpack license subscription · GET /wpcom/v2/jetpack-licensing/user/subscription/{subscription_id} #
Ask an LLM
“Can I see the status of one Jetpack license subscription?”
“What does a specific Jetpack subscription include?”
Tell an agent
Show Jetpack subscription {subscription_id}.
Get the details of my Jetpack subscription {subscription_id}.
POST /wpcom/v2/jetpack-licensing/vendasta/provision-or-deprovision/{product_id} Provision or deprovision a Vendasta product · POST /wpcom/v2/jetpack-licensing/vendasta/provision-or-deprovision/{product_id} #
Ask an LLM
“How do I provision a Vendasta product for a customer?”
“Can I deprovision a Vendasta product I provisioned earlier?”
Tell an agent
Provision Vendasta product {product_id}.
Deprovision Vendasta product {product_id}.

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-jetpack-licensing-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-jetpack-licensing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Jetpack…
  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: jetpack-licensing
paths:
  /wpcom/v2/jetpack-licensing/dev-licenses:
    get:
      operationId: getWpcomV2JetpackLicensingDevLicenses
      summary: GET /wpcom/v2/jetpack-licensing/dev-licenses
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/jetpack-crm/license:
    get:
      operationId: getWpcomV2JetpackLicensingJetpackCrmLicense
      summary: GET /wpcom/v2/jetpack-licensing/jetpack-crm/license
      tags:
      - jetpack-licensing
      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: license_key
        in: query
        required: true
        schema: {}
  /wpcom/v2/jetpack-licensing/license:
    get:
      operationId: getWpcomV2JetpackLicensingLicense
      summary: GET /wpcom/v2/jetpack-licensing/license
      tags:
      - jetpack-licensing
      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: license_key
        in: query
        required: true
        schema: {}
    post:
      operationId: postWpcomV2JetpackLicensingLicense
      summary: POST /wpcom/v2/jetpack-licensing/license
      tags:
      - jetpack-licensing
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                product: {}
                quantity:
                  type: integer
                  default: 1
              required:
              - product
    delete:
      operationId: deleteWpcomV2JetpackLicensingLicense
      summary: DELETE /wpcom/v2/jetpack-licensing/license
      tags:
      - jetpack-licensing
      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: license_key
        in: query
        required: true
        schema: {}
      - name: cancellation_email
        in: query
        required: false
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/license/{license_key}/children:
    get:
      operationId: getWpcomV2JetpackLicensingLicensebyLicenseKeyChildren
      summary: GET /wpcom/v2/jetpack-licensing/license/{license_key}/children
      tags:
      - jetpack-licensing
      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: license_key
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/license/{license_key}/download:
    get:
      operationId: getWpcomV2JetpackLicensingLicensebyLicenseKeyDownload
      summary: GET /wpcom/v2/jetpack-licensing/license/{license_key}/download
      tags:
      - jetpack-licensing
      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: license_key
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/license/{license_key}/site:
    post:
      operationId: postWpcomV2JetpackLicensingLicensebyLicenseKeySite
      summary: POST /wpcom/v2/jetpack-licensing/license/{license_key}/site
      tags:
      - jetpack-licensing
      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: license_key
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                site:
                  type: string
              required:
              - site
    delete:
      operationId: deleteWpcomV2JetpackLicensingLicensebyLicenseKeySite
      summary: DELETE /wpcom/v2/jetpack-licensing/license/{license_key}/site
      tags:
      - jetpack-licensing
      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: license_key
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/licenses:
    get:
      operationId: getWpcomV2JetpackLicensingLicenses
      summary: GET /wpcom/v2/jetpack-licensing/licenses
      tags:
      - jetpack-licensing
      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: page
        in: query
        required: false
        schema: {}
      - name: per_page
        in: query
        required: false
        schema: {}
      - name: search
        in: query
        required: false
        schema:
          type: string
      - name: parent_id
        in: query
        required: false
        schema:
          type: integer
      - name: filter
        in: query
        required: false
        schema: {}
      - name: sort_field
        in: query
        required: false
        schema: {}
      - name: sort_direction
        in: query
        required: false
        schema: {}
    post:
      operationId: postWpcomV2JetpackLicensingLicenses
      summary: POST /wpcom/v2/jetpack-licensing/licenses
      tags:
      - jetpack-licensing
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                product: {}
                quantity:
                  type: integer
                bundle:
                  type: boolean
              required:
              - product
              - quantity
              - bundle
  /wpcom/v2/jetpack-licensing/licenses/billing:
    get:
      operationId: getWpcomV2JetpackLicensingLicensesBilling
      summary: GET /wpcom/v2/jetpack-licensing/licenses/billing
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/licenses/counts:
    get:
      operationId: getWpcomV2JetpackLicensingLicensesCounts
      summary: GET /wpcom/v2/jetpack-licensing/licenses/counts
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/partner:
    get:
      operationId: getWpcomV2JetpackLicensingPartner
      summary: GET /wpcom/v2/jetpack-licensing/partner
      tags:
      - jetpack-licensing
      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'
    post:
      operationId: postWpcomV2JetpackLicensingPartner
      summary: POST /wpcom/v2/jetpack-licensing/partner
      tags:
      - jetpack-licensing
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tos:
                  type: string
                name:
                  type: string
                contact_person:
                  type: string
                company_website:
                  type: string
                company_type:
                  type: string
                country:
                  type: string
                state:
                  type: string
                line1:
                  type: string
                line2:
                  type: string
                postal_code:
                  type: string
                city:
                  type: string
                managed_sites:
                  type: string
                partner_program_opt_in:
                  type: boolean
                referrer: {}
              required:
              - tos
              - name
    put:
      operationId: putWpcomV2JetpackLicensingPartner
      summary: PUT /wpcom/v2/jetpack-licensing/partner
      tags:
      - jetpack-licensing
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tos:
                  type: string
                name:
                  type: string
                contact_person:
                  type: string
                company_website:
                  type: string
                company_type:
                  type: string
                country:
                  type: string
                state:
                  type: string
                line1:
                  type: string
                line2:
                  type: string
                postal_code:
                  type: string
                city:
                  type: string
                managed_sites:
                  type: string
                partner_program_opt_in:
                  type: boolean
                referrer: {}
  /wpcom/v2/jetpack-licensing/partner/invoice/{invoice_id}/payment:
    post:
      operationId: postWpcomV2JetpackLicensingPartnerInvoicebyInvoiceIdPayment
      summary: POST /wpcom/v2/jetpack-licensing/partner/invoice/{invoice_id}/payment
      tags:
      - jetpack-licensing
      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: invoice_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/partner/invoices:
    get:
      operationId: getWpcomV2JetpackLicensingPartnerInvoices
      summary: GET /wpcom/v2/jetpack-licensing/partner/invoices
      tags:
      - jetpack-licensing
      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: starting_after
        in: query
        required: false
        schema:
          type: string
          default: ''
        description: A cursor for use in pagination. It is an object ID that defines your place in the list.
      - name: ending_before
        in: query
        required: false
        schema:
          type: string
          default: ''
        description: A cursor for use in pagination. It is an object ID that defines your place in the list.
      - name: status
        in: query
        required: false
        schema:
          type: string
          default: ''
        description: Set this if you want results to be filtered by their status.
  /wpcom/v2/jetpack-licensing/partner/product-families:
    get:
      operationId: getWpcomV2JetpackLicensingPartnerProductFamilies
      summary: GET /wpcom/v2/jetpack-licensing/partner/product-families
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/product-families:
    get:
      operationId: getWpcomV2JetpackLicensingProductFamilies
      summary: GET /wpcom/v2/jetpack-licensing/product-families
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/public/manage-pricing:
    get:
      operationId: getWpcomV2JetpackLicensingPublicManagePricing
      summary: GET /wpcom/v2/jetpack-licensing/public/manage-pricing
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/site-connection:
    post:
      operationId: postWpcomV2JetpackLicensingSiteConnection
      summary: POST /wpcom/v2/jetpack-licensing/site-connection
      tags:
      - jetpack-licensing
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                url: {}
                local_user: {}
              required:
              - url
              - local_user
  /wpcom/v2/jetpack-licensing/stripe/payment-method:
    post:
      operationId: postWpcomV2JetpackLicensingStripePaymentMethod
      summary: POST /wpcom/v2/jetpack-licensing/stripe/payment-method
      tags:
      - jetpack-licensing
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                payment_method_id:
                  type: string
                  description: The Stripe payment method ID that should be attached to the customer.
                use_as_primary_payment_method:
                  type: boolean
                  default: false
                  description: Set this payment method as default for the customer.
                stripe_setup_intent_id:
                  type: string
                  default: ''
                  description: The Stripe Setup Intent id for the payment method.
              required:
              - payment_method_id
    delete:
      operationId: deleteWpcomV2JetpackLicensingStripePaymentMethod
      summary: DELETE /wpcom/v2/jetpack-licensing/stripe/payment-method
      tags:
      - jetpack-licensing
      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: payment_method_id
        in: query
        required: true
        schema:
          type: string
        description: The Stripe payment method ID that should be detached.
      - name: primary_payment_method_id
        in: query
        required: false
        schema:
          type: string
        description: The Stripe payment method ID that should be set as a primary.
  /wpcom/v2/jetpack-licensing/stripe/payment-methods:
    get:
      operationId: getWpcomV2JetpackLicensingStripePaymentMethods
      summary: GET /wpcom/v2/jetpack-licensing/stripe/payment-methods
      tags:
      - jetpack-licensing
      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: starting_after
        in: query
        required: false
        schema:
          type: string
        description: A cursor for use in pagination. It is an object ID that defines your place in the list.
      - name: ending_before
        in: query
        required: false
        schema:
          type: string
        description: A cursor for use in pagination. It is an object ID that defines your place in the list.
  /wpcom/v2/jetpack-licensing/user/licenses:
    get:
      operationId: getWpcomV2JetpackLicensingUserLicenses
      summary: GET /wpcom/v2/jetpack-licensing/user/licenses
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/user/licenses/counts:
    get:
      operationId: getWpcomV2JetpackLicensingUserLicensesCounts
      summary: GET /wpcom/v2/jetpack-licensing/user/licenses/counts
      tags:
      - jetpack-licensing
      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'
  /wpcom/v2/jetpack-licensing/user/order/{order_id}:
    get:
      operationId: getWpcomV2JetpackLicensingUserOrderbyOrderId
      summary: GET /wpcom/v2/jetpack-licensing/user/order/{order_id}
      tags:
      - jetpack-licensing
      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: order_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/user/receipt/{receipt_id}:
    get:
      operationId: getWpcomV2JetpackLicensingUserReceiptbyReceiptId
      summary: GET /wpcom/v2/jetpack-licensing/user/receipt/{receipt_id}
      tags:
      - jetpack-licensing
      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: receipt_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/user/subscription/{subscription_id}:
    get:
      operationId: getWpcomV2JetpackLicensingUserSubscriptionbySubscriptionId
      summary: GET /wpcom/v2/jetpack-licensing/user/subscription/{subscription_id}
      tags:
      - jetpack-licensing
      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: subscription_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-licensing/vendasta/provision-or-deprovision/{product_id}:
    post:
      operationId: postWpcomV2JetpackLicensingVendastaProvisionOrDeprovisionbyProductId
      summary: POST /wpcom/v2/jetpack-licensing/vendasta/provision-or-deprovision/{product_id}
      tags:
      - jetpack-licensing
      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: product_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