> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modulex.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stripe Integration for AI Agents & Workflows

> Integrate Stripe into the workflow. Manage payment intents, customers, subscriptions, invoices, charges, products, prices, and events through the Stripe REST API.

{/* Self-hosted logo — build-time vendored from modulex.json / Iconify (see scripts/lib/logo.js). */}

<img src="https://mintcdn.com/modulexaillc/df8MOr-hXotYLTh5/logos/placeholder.svg?fit=max&auto=format&n=df8MOr-hXotYLTh5&q=85&s=a4046f9cd6d738c81259050e9833913c" alt="Stripe logo" width="72" height="72" data-path="logos/placeholder.svg" />

## Overview

Add **Stripe** to any ModuleX agent or workflow. Process payments and manage commerce data through the Stripe REST API (`api.stripe.com/v1`). Covers payment intents, customers, subscriptions, invoices, charges, products, prices, and events — 50 actions in all.

<Info>
  **Categories**: Finance & Payments · Payments · Subscriptions · **Auth**: API Key · **Actions**: 50
</Info>

## Authentication

### API Key Authentication

Authenticate using your Stripe secret API key

<Steps>
  <Step title="Step 1">
    Sign in to your Stripe dashboard at [https://dashboard.stripe.com](https://dashboard.stripe.com)
  </Step>

  <Step title="Step 2">
    Open the Developers section and click 'API keys'
  </Step>

  <Step title="Step 3">
    Reveal or create a secret key (it starts with sk\_test\_ or sk\_live\_)
  </Step>

  <Step title="Step 4">
    Paste the secret key below
  </Step>
</Steps>

#### Required Credentials

| Field             | Description                                          | Required | Format        |
| ----------------- | ---------------------------------------------------- | -------- | ------------- |
| Stripe Secret Key | Your Stripe secret API key from the Stripe dashboard | Yes      | `sk_test_...` |

## Available Actions

<AccordionGroup>
  <Accordion title="create_payment_intent — Create a new Payment Intent to process a payment.">
    ### Parameters

    <ResponseField name="amount" type="integer" required>
      Amount in cents (e.g., 2000 for \$20.00)
    </ResponseField>

    <ResponseField name="currency" type="string" required>
      Three-letter ISO currency code (e.g., usd, eur)
    </ResponseField>

    <ResponseField name="customer" type="string">
      Customer ID to associate with this payment
    </ResponseField>

    <ResponseField name="payment_method" type="string">
      Payment method ID
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the payment
    </ResponseField>

    <ResponseField name="receipt_email" type="string">
      Email address to send receipt to
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    <ResponseField name="automatic_payment_methods" type="object">
      Enable automatic payment methods (e.g., \{"enabled": true})
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PaymentIntentMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PaymentIntentMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Payment Intent"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentIntentMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_payment_intent — Retrieve an existing Payment Intent by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Payment Intent ID (e.g., pi\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PaymentIntentMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PaymentIntentMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Payment Intent"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentIntentMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_payment_intent — Update an existing Payment Intent.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Payment Intent ID (e.g., pi\_1234567890)
    </ResponseField>

    <ResponseField name="amount" type="integer">
      Updated amount in cents
    </ResponseField>

    <ResponseField name="currency" type="string">
      Three-letter ISO currency code
    </ResponseField>

    <ResponseField name="customer" type="string">
      Customer ID
    </ResponseField>

    <ResponseField name="description" type="string">
      Updated description
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Updated metadata
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PaymentIntentMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PaymentIntentMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Payment Intent"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentIntentMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="confirm_payment_intent — Confirm a Payment Intent to complete the payment.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Payment Intent ID (e.g., pi\_1234567890)
    </ResponseField>

    <ResponseField name="payment_method" type="string">
      Payment method ID to confirm with
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PaymentIntentMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PaymentIntentMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Payment Intent"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentIntentMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="capture_payment_intent — Capture an authorized Payment Intent.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Payment Intent ID (e.g., pi\_1234567890)
    </ResponseField>

    <ResponseField name="amount_to_capture" type="integer">
      Amount to capture in cents (defaults to full amount)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PaymentIntentMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PaymentIntentMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Payment Intent"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentIntentMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="cancel_payment_intent — Cancel a Payment Intent.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Payment Intent ID (e.g., pi\_1234567890)
    </ResponseField>

    <ResponseField name="cancellation_reason" type="string">
      Reason for cancellation (duplicate, fraudulent, requested\_by\_customer, abandoned)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PaymentIntentMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PaymentIntentMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intent": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Payment Intent"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PaymentIntentMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_payment_intents — List all Payment Intents.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="customer" type="string">
      Filter by customer ID
    </ResponseField>

    <ResponseField name="created" type="object">
      Filter by creation date (e.g., \{"gt": 1633024800})
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intents": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Payment Intents",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_payment_intents — Search for Payment Intents using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "payment_intents": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Payment Intents",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PaymentIntentListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_customer — Create a new customer object.">
    ### Parameters

    <ResponseField name="email" type="string">
      Customer email address
    </ResponseField>

    <ResponseField name="name" type="string">
      Customer full name
    </ResponseField>

    <ResponseField name="phone" type="string">
      Customer phone number
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the customer
    </ResponseField>

    <ResponseField name="address" type="object">
      Customer address object
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    <ResponseField name="payment_method" type="string">
      Payment method ID to attach
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CustomerMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            }
          },
          "title": "CustomerMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "customer": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Customer"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/CustomerMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CustomerOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_customer — Retrieve an existing customer by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Customer ID (e.g., cus\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CustomerMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            }
          },
          "title": "CustomerMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "customer": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Customer"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/CustomerMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CustomerOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_customer — Update an existing customer.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Customer ID (e.g., cus\_1234567890)
    </ResponseField>

    <ResponseField name="email" type="string">
      Updated email address
    </ResponseField>

    <ResponseField name="name" type="string">
      Updated name
    </ResponseField>

    <ResponseField name="phone" type="string">
      Updated phone number
    </ResponseField>

    <ResponseField name="description" type="string">
      Updated description
    </ResponseField>

    <ResponseField name="address" type="object">
      Updated address object
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Updated metadata
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CustomerMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            }
          },
          "title": "CustomerMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "customer": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Customer"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/CustomerMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CustomerOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_customer — Permanently delete a customer.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Customer ID (e.g., cus\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "deleted": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Deleted"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        }
      },
      "required": [
        "success"
      ],
      "title": "CustomerDeleteOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_customers — List all customers.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="email" type="string">
      Filter by email address
    </ResponseField>

    <ResponseField name="created" type="object">
      Filter by creation date
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "customers": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Customers",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CustomerListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_customers — Search for customers using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "customers": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Customers",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "CustomerListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_subscription — Create a new subscription for a customer.">
    ### Parameters

    <ResponseField name="customer" type="string" required>
      Customer ID to subscribe
    </ResponseField>

    <ResponseField name="items" type="array" required>
      Array of items with price IDs (e.g., \[\{"price": "price\_xxx", "quantity": 1}])
    </ResponseField>

    <ResponseField name="trial_period_days" type="integer">
      Number of trial days
    </ResponseField>

    <ResponseField name="default_payment_method" type="string">
      Payment method ID
    </ResponseField>

    <ResponseField name="cancel_at_period_end" type="boolean">
      Cancel subscription at period end
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "SubscriptionMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "customer": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Customer"
            }
          },
          "title": "SubscriptionMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscription": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Subscription"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/SubscriptionMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_subscription — Retrieve an existing subscription by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Subscription ID (e.g., sub\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "SubscriptionMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "customer": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Customer"
            }
          },
          "title": "SubscriptionMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscription": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Subscription"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/SubscriptionMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_subscription — Update an existing subscription.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Subscription ID (e.g., sub\_1234567890)
    </ResponseField>

    <ResponseField name="items" type="array">
      Updated array of items with price IDs
    </ResponseField>

    <ResponseField name="cancel_at_period_end" type="boolean">
      Cancel subscription at period end
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Updated metadata
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "SubscriptionMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "customer": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Customer"
            }
          },
          "title": "SubscriptionMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscription": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Subscription"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/SubscriptionMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="cancel_subscription — Cancel a subscription.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Subscription ID (e.g., sub\_1234567890)
    </ResponseField>

    <ResponseField name="prorate" type="boolean">
      Whether to prorate the cancellation
    </ResponseField>

    <ResponseField name="invoice_now" type="boolean">
      Whether to invoice immediately
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "SubscriptionMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "customer": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Customer"
            }
          },
          "title": "SubscriptionMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscription": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Subscription"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/SubscriptionMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="resume_subscription — Resume a subscription that was scheduled for cancellation.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Subscription ID (e.g., sub\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "SubscriptionMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "customer": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Customer"
            }
          },
          "title": "SubscriptionMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscription": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Subscription"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/SubscriptionMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_subscriptions — List all subscriptions.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="customer" type="string">
      Filter by customer ID
    </ResponseField>

    <ResponseField name="status" type="string">
      Filter by status (active, past\_due, unpaid, canceled, incomplete, incomplete\_expired, trialing, all)
    </ResponseField>

    <ResponseField name="price" type="string">
      Filter by price ID
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscriptions": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Subscriptions",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_subscriptions — Search for subscriptions using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "subscriptions": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Subscriptions",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "SubscriptionListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_invoice — Create a new invoice.">
    ### Parameters

    <ResponseField name="customer" type="string" required>
      Customer ID (e.g., cus\_1234567890)
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the invoice
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    <ResponseField name="auto_advance" type="boolean">
      Auto-finalize the invoice
    </ResponseField>

    <ResponseField name="collection_method" type="string">
      Collection method: charge\_automatically or send\_invoice
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_invoice — Retrieve an existing invoice by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_invoice — Update an existing invoice.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the invoice
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    <ResponseField name="auto_advance" type="boolean">
      Auto-finalize the invoice
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_invoice — Permanently delete a draft invoice.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "deleted": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Deleted"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceDeleteOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="finalize_invoice — Finalize a draft invoice.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    <ResponseField name="auto_advance" type="boolean">
      Auto-advance the invoice
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="pay_invoice — Pay an invoice.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    <ResponseField name="paid_out_of_band" type="boolean">
      Mark invoice as paid out of band
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="void_invoice — Void an invoice.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="send_invoice — Send an invoice to the customer.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Invoice ID (e.g., in\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "InvoiceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount_due": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount Due"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "InvoiceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoice": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Invoice"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/InvoiceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_invoices — List all invoices.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="customer" type="string">
      Filter by customer ID
    </ResponseField>

    <ResponseField name="status" type="string">
      Filter by invoice status
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoices": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Invoices",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_invoices — Search for invoices using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "invoices": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Invoices",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "InvoiceListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_charge — Create a new charge to process a payment.">
    ### Parameters

    <ResponseField name="amount" type="integer" required>
      Amount in cents (e.g., 2000 for \$20.00)
    </ResponseField>

    <ResponseField name="currency" type="string" required>
      Three-letter ISO currency code (e.g., usd, eur)
    </ResponseField>

    <ResponseField name="customer" type="string">
      Customer ID to associate with this charge
    </ResponseField>

    <ResponseField name="source" type="string">
      Payment source ID (e.g., card token or saved card ID)
    </ResponseField>

    <ResponseField name="description" type="string">
      Description of the charge
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    <ResponseField name="capture" type="boolean">
      Whether to immediately capture the charge (defaults to true)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ChargeMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            },
            "paid": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Paid"
            }
          },
          "title": "ChargeMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "charge": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Charge"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChargeMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ChargeOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_charge — Retrieve an existing charge by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Charge ID (e.g., ch\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ChargeMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            },
            "paid": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Paid"
            }
          },
          "title": "ChargeMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "charge": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Charge"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChargeMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ChargeOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_charge — Update an existing charge.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Charge ID (e.g., ch\_1234567890)
    </ResponseField>

    <ResponseField name="description" type="string">
      Updated description
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Updated metadata
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ChargeMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            },
            "paid": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Paid"
            }
          },
          "title": "ChargeMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "charge": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Charge"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChargeMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ChargeOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="capture_charge — Capture an uncaptured charge.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Charge ID (e.g., ch\_1234567890)
    </ResponseField>

    <ResponseField name="amount" type="integer">
      Amount to capture in cents (defaults to full amount)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ChargeMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "status": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            },
            "paid": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Paid"
            }
          },
          "title": "ChargeMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "charge": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Charge"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ChargeMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ChargeOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_charges — List all charges.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="customer" type="string">
      Filter by customer ID
    </ResponseField>

    <ResponseField name="created" type="object">
      Filter by creation date (e.g., \{"gt": 1633024800})
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "charges": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Charges",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ChargeListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_charges — Search for charges using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "charges": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Charges",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ChargeListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_product — Create a new product object.">
    ### Parameters

    <ResponseField name="name" type="string" required>
      Product name
    </ResponseField>

    <ResponseField name="description" type="string">
      Product description
    </ResponseField>

    <ResponseField name="active" type="boolean">
      Whether the product is active
    </ResponseField>

    <ResponseField name="images" type="array">
      Array of image URLs for the product
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ProductMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "active": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Active"
            }
          },
          "title": "ProductMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "product": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Product"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProductMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ProductOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_product — Retrieve an existing product by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Product ID (e.g., prod\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ProductMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "active": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Active"
            }
          },
          "title": "ProductMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "product": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Product"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProductMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ProductOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_product — Update an existing product.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Product ID (e.g., prod\_1234567890)
    </ResponseField>

    <ResponseField name="name" type="string">
      Updated product name
    </ResponseField>

    <ResponseField name="description" type="string">
      Updated product description
    </ResponseField>

    <ResponseField name="active" type="boolean">
      Updated active status
    </ResponseField>

    <ResponseField name="images" type="array">
      Updated array of image URLs
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Updated metadata
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ProductMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "active": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Active"
            }
          },
          "title": "ProductMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "product": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Product"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProductMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ProductOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_product — Permanently delete a product.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Product ID (e.g., prod\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "deleted": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Deleted"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        }
      },
      "required": [
        "success"
      ],
      "title": "ProductDeleteOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_products — List all products.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="active" type="boolean">
      Filter by active status
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "products": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Products",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ProductListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_products — Search for products using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "products": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Products",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "ProductListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_price — Create a new price for a product.">
    ### Parameters

    <ResponseField name="product" type="string" required>
      Product ID (e.g., prod\_1234567890)
    </ResponseField>

    <ResponseField name="currency" type="string" required>
      Three-letter ISO currency code (e.g., usd, eur)
    </ResponseField>

    <ResponseField name="unit_amount" type="integer">
      Amount in cents (e.g., 1000 for \$10.00)
    </ResponseField>

    <ResponseField name="recurring" type="object">
      Recurring billing configuration (interval: day/week/month/year)
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Set of key-value pairs for storing additional information
    </ResponseField>

    <ResponseField name="billing_scheme" type="string">
      Billing scheme (per\_unit or tiered)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PriceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "product": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Product"
            },
            "unit_amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Unit Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PriceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "price": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Price"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PriceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PriceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_price — Retrieve an existing price by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Price ID (e.g., price\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PriceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "product": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Product"
            },
            "unit_amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Unit Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PriceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "price": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Price"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PriceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PriceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_price — Update an existing price.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Price ID (e.g., price\_1234567890)
    </ResponseField>

    <ResponseField name="active" type="boolean">
      Whether the price is active
    </ResponseField>

    <ResponseField name="metadata" type="object">
      Updated metadata
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "PriceMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "product": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Product"
            },
            "unit_amount": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Unit Amount"
            },
            "currency": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Currency"
            }
          },
          "title": "PriceMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "price": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Price"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/PriceMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PriceOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_prices — List all prices.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="product" type="string">
      Filter by product ID
    </ResponseField>

    <ResponseField name="active" type="boolean">
      Filter by active status
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "prices": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Prices",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PriceListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="search_prices — Search for prices using query syntax.">
    ### Parameters

    <ResponseField name="query" type="string" required>
      Search query using Stripe's search query syntax
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "prices": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Prices",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "PriceListOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="retrieve_event — Retrieve an existing Event by ID.">
    ### Parameters

    <ResponseField name="id" type="string" required>
      Event ID (e.g., evt\_1234567890)
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "EventMetadata": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "type": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Type"
            },
            "created": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Created"
            }
          },
          "title": "EventMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "event": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Event"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/EventMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "EventOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_events — List all Events.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of results to return (default 10, max 100)
    </ResponseField>

    <ResponseField name="type" type="string">
      Filter by event type (e.g., payment\_intent.created)
    </ResponseField>

    <ResponseField name="created" type="object">
      Filter by creation date (e.g., \{"gt": 1633024800})
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "ListMetadata": {
          "additionalProperties": false,
          "description": "Pagination summary for list/search responses.",
          "properties": {
            "count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Count"
            },
            "has_more": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has More"
            }
          },
          "title": "ListMetadata",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "events": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "title": "Events",
          "type": "array"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ListMetadata"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        }
      },
      "required": [
        "success"
      ],
      "title": "EventListOutput",
      "type": "object"
    }
    ```
  </Accordion>
</AccordionGroup>

## Limits & Quotas

* **Rate limits**: Stripe allows \~100 read and \~100 write requests per
  second in live mode (lower in test mode). Search endpoints have their
  own, lower limits.
* **Request format**: requests are sent as
  `application/x-www-form-urlencoded` with Stripe's bracketed key
  notation for nested objects and arrays.
* **Error model**: non-2xx responses and timeouts are caught and
  returned as `success=False` + `error` rather than raising. Plan for
  retries on the agent side based on the error string.

## Related integrations

<CardGroup cols={3}>
  <Card title="Lemon Squeezy" href="/integrations/tools/lemon-squeezy" />

  <Card title="RevenueCat" href="/integrations/tools/revenuecat" />

  <Card title="Square" href="/integrations/tools/square" />
</CardGroup>

## Links

* [Stripe](https://stripe.com)
