{
  "schemaVersion": "1.0",
  "item": {
    "slug": "stripe-api",
    "name": "Stripe",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/stripe-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/stripe-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/stripe-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stripe-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/stripe-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/stripe-api",
    "agentPageUrl": "https://openagent3.xyz/skills/stripe-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/stripe-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/stripe-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Stripe",
        "body": "Access the Stripe API with managed OAuth authentication. Manage customers, subscriptions, invoices, products, prices, and process payments."
      },
      {
        "title": "Quick Start",
        "body": "# List customers\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/stripe/v1/customers?limit=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/stripe/{native-api-path}\n\nReplace {native-api-path} with the actual Stripe API endpoint path. The gateway proxies requests to api.stripe.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Stripe OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=stripe&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'stripe'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"c3c82a73-4c86-4c73-8ebd-1f325212fde6\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-01T06:04:02.431819Z\",\n    \"last_updated_time\": \"2026-02-10T22:40:01.061825Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"stripe\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Stripe connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/stripe/v1/customers')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', 'c3c82a73-4c86-4c73-8ebd-1f325212fde6')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "API Reference",
        "body": "All Stripe API endpoints follow this pattern:\n\n/stripe/v1/{resource}"
      },
      {
        "title": "Get Balance",
        "body": "GET /stripe/v1/balance\n\nResponse:\n\n{\n  \"object\": \"balance\",\n  \"available\": [\n    {\n      \"amount\": 0,\n      \"currency\": \"usd\",\n      \"source_types\": {\"card\": 0}\n    }\n  ],\n  \"pending\": [\n    {\n      \"amount\": 5000,\n      \"currency\": \"usd\",\n      \"source_types\": {\"card\": 5000}\n    }\n  ]\n}"
      },
      {
        "title": "List Balance Transactions",
        "body": "GET /stripe/v1/balance_transactions?limit=10"
      },
      {
        "title": "List Customers",
        "body": "GET /stripe/v1/customers?limit=10\n\nQuery Parameters:\n\nParameterDescriptionlimitNumber of results (1-100, default: 10)starting_afterCursor for paginationending_beforeCursor for reverse paginationemailFilter by emailcreatedFilter by creation date\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"cus_TxKtN8Irvzx9BQ\",\n      \"object\": \"customer\",\n      \"email\": \"customer@example.com\",\n      \"name\": null,\n      \"balance\": 0,\n      \"currency\": \"usd\",\n      \"created\": 1770765579,\n      \"metadata\": {}\n    }\n  ],\n  \"has_more\": true,\n  \"url\": \"/v1/customers\"\n}"
      },
      {
        "title": "Get Customer",
        "body": "GET /stripe/v1/customers/{customer_id}"
      },
      {
        "title": "Create Customer",
        "body": "POST /stripe/v1/customers\nContent-Type: application/x-www-form-urlencoded\n\nemail=customer@example.com&name=John%20Doe&metadata[user_id]=123"
      },
      {
        "title": "Update Customer",
        "body": "POST /stripe/v1/customers/{customer_id}\nContent-Type: application/x-www-form-urlencoded\n\nname=Jane%20Doe&email=jane@example.com"
      },
      {
        "title": "Delete Customer",
        "body": "DELETE /stripe/v1/customers/{customer_id}"
      },
      {
        "title": "List Products",
        "body": "GET /stripe/v1/products?limit=10\n\nQuery Parameters:\n\nParameterDescriptionactiveFilter by active statustypeFilter by type: good or service\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"prod_TthCLBwTIXuzEw\",\n      \"object\": \"product\",\n      \"active\": true,\n      \"name\": \"Premium Plan\",\n      \"description\": \"Premium subscription\",\n      \"type\": \"service\",\n      \"created\": 1769926024,\n      \"metadata\": {}\n    }\n  ],\n  \"has_more\": true\n}"
      },
      {
        "title": "Get Product",
        "body": "GET /stripe/v1/products/{product_id}"
      },
      {
        "title": "Create Product",
        "body": "POST /stripe/v1/products\nContent-Type: application/x-www-form-urlencoded\n\nname=Premium%20Plan&description=Premium%20subscription&type=service"
      },
      {
        "title": "Update Product",
        "body": "POST /stripe/v1/products/{product_id}\nContent-Type: application/x-www-form-urlencoded\n\nname=Updated%20Plan&active=true"
      },
      {
        "title": "Delete Product",
        "body": "DELETE /stripe/v1/products/{product_id}"
      },
      {
        "title": "List Prices",
        "body": "GET /stripe/v1/prices?limit=10\n\nQuery Parameters:\n\nParameterDescriptionactiveFilter by active statusproductFilter by product IDtypeFilter: one_time or recurringcurrencyFilter by currency\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"price_1SvtoVDfFKJhF88gKJv2eSmO\",\n      \"object\": \"price\",\n      \"active\": true,\n      \"currency\": \"usd\",\n      \"product\": \"prod_TthCLBwTIXuzEw\",\n      \"unit_amount\": 1999,\n      \"recurring\": {\n        \"interval\": \"month\",\n        \"interval_count\": 1\n      },\n      \"type\": \"recurring\"\n    }\n  ],\n  \"has_more\": true\n}"
      },
      {
        "title": "Get Price",
        "body": "GET /stripe/v1/prices/{price_id}"
      },
      {
        "title": "Create Price",
        "body": "POST /stripe/v1/prices\nContent-Type: application/x-www-form-urlencoded\n\nproduct=prod_XXX&unit_amount=1999&currency=usd&recurring[interval]=month"
      },
      {
        "title": "Update Price",
        "body": "POST /stripe/v1/prices/{price_id}\nContent-Type: application/x-www-form-urlencoded\n\nactive=false"
      },
      {
        "title": "List Subscriptions",
        "body": "GET /stripe/v1/subscriptions?limit=10\n\nQuery Parameters:\n\nParameterDescriptioncustomerFilter by customer IDpriceFilter by price IDstatusFilter: active, canceled, past_due, etc.\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"sub_1SzQDXDfFKJhF88gf72x6tDh\",\n      \"object\": \"subscription\",\n      \"customer\": \"cus_TxKtN8Irvzx9BQ\",\n      \"status\": \"active\",\n      \"current_period_start\": 1770765579,\n      \"current_period_end\": 1773184779,\n      \"items\": {\n        \"data\": [\n          {\n            \"id\": \"si_TxKtFWxlUW50cR\",\n            \"price\": {\n              \"id\": \"price_1RGbXsDfFKJhF88gMIShAq9m\",\n              \"unit_amount\": 0\n            },\n            \"quantity\": 1\n          }\n        ]\n      }\n    }\n  ],\n  \"has_more\": true\n}"
      },
      {
        "title": "Get Subscription",
        "body": "GET /stripe/v1/subscriptions/{subscription_id}"
      },
      {
        "title": "Create Subscription",
        "body": "POST /stripe/v1/subscriptions\nContent-Type: application/x-www-form-urlencoded\n\ncustomer=cus_XXX&items[0][price]=price_XXX"
      },
      {
        "title": "Update Subscription",
        "body": "POST /stripe/v1/subscriptions/{subscription_id}\nContent-Type: application/x-www-form-urlencoded\n\nitems[0][id]=si_XXX&items[0][price]=price_YYY"
      },
      {
        "title": "Cancel Subscription",
        "body": "DELETE /stripe/v1/subscriptions/{subscription_id}"
      },
      {
        "title": "List Invoices",
        "body": "GET /stripe/v1/invoices?limit=10\n\nQuery Parameters:\n\nParameterDescriptioncustomerFilter by customer IDsubscriptionFilter by subscription IDstatusFilter: draft, open, paid, void, uncollectible\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"in_1SzQDXDfFKJhF88g3nh4u2GS\",\n      \"object\": \"invoice\",\n      \"customer\": \"cus_TxKtN8Irvzx9BQ\",\n      \"amount_due\": 0,\n      \"amount_paid\": 0,\n      \"currency\": \"usd\",\n      \"status\": \"paid\",\n      \"subscription\": \"sub_1SzQDXDfFKJhF88gf72x6tDh\",\n      \"hosted_invoice_url\": \"https://invoice.stripe.com/...\",\n      \"invoice_pdf\": \"https://pay.stripe.com/invoice/.../pdf\"\n    }\n  ],\n  \"has_more\": true\n}"
      },
      {
        "title": "Get Invoice",
        "body": "GET /stripe/v1/invoices/{invoice_id}"
      },
      {
        "title": "Create Invoice",
        "body": "POST /stripe/v1/invoices\nContent-Type: application/x-www-form-urlencoded\n\ncustomer=cus_XXX"
      },
      {
        "title": "Finalize Invoice",
        "body": "POST /stripe/v1/invoices/{invoice_id}/finalize"
      },
      {
        "title": "Pay Invoice",
        "body": "POST /stripe/v1/invoices/{invoice_id}/pay"
      },
      {
        "title": "Void Invoice",
        "body": "POST /stripe/v1/invoices/{invoice_id}/void"
      },
      {
        "title": "List Charges",
        "body": "GET /stripe/v1/charges?limit=10\n\nQuery Parameters:\n\nParameterDescriptioncustomerFilter by customer IDpayment_intentFilter by payment intent\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"ch_3SyXBvDfFKJhF88g1MHtT45f\",\n      \"object\": \"charge\",\n      \"amount\": 5000,\n      \"currency\": \"usd\",\n      \"customer\": \"cus_TuZ7GIjeZQOQ2m\",\n      \"paid\": true,\n      \"status\": \"succeeded\",\n      \"payment_method_details\": {\n        \"card\": {\n          \"brand\": \"mastercard\",\n          \"last4\": \"0833\"\n        },\n        \"type\": \"card\"\n      }\n    }\n  ],\n  \"has_more\": true\n}"
      },
      {
        "title": "Get Charge",
        "body": "GET /stripe/v1/charges/{charge_id}"
      },
      {
        "title": "Create Charge",
        "body": "POST /stripe/v1/charges\nContent-Type: application/x-www-form-urlencoded\n\namount=2000&currency=usd&source=tok_XXX"
      },
      {
        "title": "List Payment Intents",
        "body": "GET /stripe/v1/payment_intents?limit=10\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"pi_3SyXBvDfFKJhF88g17PeHdpE\",\n      \"object\": \"payment_intent\",\n      \"amount\": 5000,\n      \"currency\": \"usd\",\n      \"customer\": \"cus_TuZ7GIjeZQOQ2m\",\n      \"status\": \"succeeded\",\n      \"payment_method\": \"pm_1SyXBpDfFKJhF88gmP3IjC8C\"\n    }\n  ],\n  \"has_more\": true\n}"
      },
      {
        "title": "Get Payment Intent",
        "body": "GET /stripe/v1/payment_intents/{payment_intent_id}"
      },
      {
        "title": "Create Payment Intent",
        "body": "POST /stripe/v1/payment_intents\nContent-Type: application/x-www-form-urlencoded\n\namount=2000&currency=usd&customer=cus_XXX&payment_method_types[]=card"
      },
      {
        "title": "Confirm Payment Intent",
        "body": "POST /stripe/v1/payment_intents/{payment_intent_id}/confirm"
      },
      {
        "title": "Cancel Payment Intent",
        "body": "POST /stripe/v1/payment_intents/{payment_intent_id}/cancel"
      },
      {
        "title": "List Payment Methods",
        "body": "GET /stripe/v1/payment_methods?customer=cus_XXX&type=card"
      },
      {
        "title": "Get Payment Method",
        "body": "GET /stripe/v1/payment_methods/{payment_method_id}"
      },
      {
        "title": "Attach Payment Method",
        "body": "POST /stripe/v1/payment_methods/{payment_method_id}/attach\nContent-Type: application/x-www-form-urlencoded\n\ncustomer=cus_XXX"
      },
      {
        "title": "Detach Payment Method",
        "body": "POST /stripe/v1/payment_methods/{payment_method_id}/detach"
      },
      {
        "title": "List Coupons",
        "body": "GET /stripe/v1/coupons?limit=10"
      },
      {
        "title": "Get Coupon",
        "body": "GET /stripe/v1/coupons/{coupon_id}"
      },
      {
        "title": "Create Coupon",
        "body": "POST /stripe/v1/coupons\nContent-Type: application/x-www-form-urlencoded\n\npercent_off=25&duration=once"
      },
      {
        "title": "Delete Coupon",
        "body": "DELETE /stripe/v1/coupons/{coupon_id}"
      },
      {
        "title": "List Refunds",
        "body": "GET /stripe/v1/refunds?limit=10"
      },
      {
        "title": "Get Refund",
        "body": "GET /stripe/v1/refunds/{refund_id}"
      },
      {
        "title": "Create Refund",
        "body": "POST /stripe/v1/refunds\nContent-Type: application/x-www-form-urlencoded\n\ncharge=ch_XXX&amount=1000"
      },
      {
        "title": "Pagination",
        "body": "Stripe uses cursor-based pagination with starting_after and ending_before:\n\nGET /stripe/v1/customers?limit=10&starting_after=cus_XXX\n\nResponse includes:\n\n{\n  \"object\": \"list\",\n  \"data\": [...],\n  \"has_more\": true,\n  \"url\": \"/v1/customers\"\n}\n\nUse the last item's ID as starting_after for the next page."
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/stripe/v1/customers?limit=10',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\nconsole.log(data.data);"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/stripe/v1/customers',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'limit': 10}\n)\ndata = response.json()\nfor customer in data['data']:\n    print(f\"{customer['id']}: {customer['email']}\")"
      },
      {
        "title": "Notes",
        "body": "Stripe API uses application/x-www-form-urlencoded for POST requests (not JSON)\nAmounts are in the smallest currency unit (e.g., cents for USD)\nIDs start with prefixes: cus_ (customers), prod_ (products), price_ (prices), sub_ (subscriptions), in_ (invoices), ch_ (charges), pi_ (payment intents)\nTimestamps are Unix timestamps\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments"
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Bad request or invalid parameters401Invalid or missing Maton API key402Card declined or payment required404Resource not found429Rate limited500Stripe internal error"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with stripe. For example:\n\nCorrect: https://gateway.maton.ai/stripe/v1/customers\nIncorrect: https://gateway.maton.ai/v1/customers"
      },
      {
        "title": "Resources",
        "body": "Stripe API Reference\nStripe Dashboard\nStripe Testing\nMaton Community\nMaton Support"
      }
    ],
    "body": "Stripe\n\nAccess the Stripe API with managed OAuth authentication. Manage customers, subscriptions, invoices, products, prices, and process payments.\n\nQuick Start\n# List customers\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/stripe/v1/customers?limit=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/stripe/{native-api-path}\n\n\nReplace {native-api-path} with the actual Stripe API endpoint path. The gateway proxies requests to api.stripe.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Stripe OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=stripe&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'stripe'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"c3c82a73-4c86-4c73-8ebd-1f325212fde6\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2026-02-01T06:04:02.431819Z\",\n    \"last_updated_time\": \"2026-02-10T22:40:01.061825Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"stripe\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Stripe connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/stripe/v1/customers')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', 'c3c82a73-4c86-4c73-8ebd-1f325212fde6')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\n\nAll Stripe API endpoints follow this pattern:\n\n/stripe/v1/{resource}\n\nBalance\nGet Balance\nGET /stripe/v1/balance\n\n\nResponse:\n\n{\n  \"object\": \"balance\",\n  \"available\": [\n    {\n      \"amount\": 0,\n      \"currency\": \"usd\",\n      \"source_types\": {\"card\": 0}\n    }\n  ],\n  \"pending\": [\n    {\n      \"amount\": 5000,\n      \"currency\": \"usd\",\n      \"source_types\": {\"card\": 5000}\n    }\n  ]\n}\n\nList Balance Transactions\nGET /stripe/v1/balance_transactions?limit=10\n\nCustomers\nList Customers\nGET /stripe/v1/customers?limit=10\n\n\nQuery Parameters:\n\nParameter\tDescription\nlimit\tNumber of results (1-100, default: 10)\nstarting_after\tCursor for pagination\nending_before\tCursor for reverse pagination\nemail\tFilter by email\ncreated\tFilter by creation date\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"cus_TxKtN8Irvzx9BQ\",\n      \"object\": \"customer\",\n      \"email\": \"customer@example.com\",\n      \"name\": null,\n      \"balance\": 0,\n      \"currency\": \"usd\",\n      \"created\": 1770765579,\n      \"metadata\": {}\n    }\n  ],\n  \"has_more\": true,\n  \"url\": \"/v1/customers\"\n}\n\nGet Customer\nGET /stripe/v1/customers/{customer_id}\n\nCreate Customer\nPOST /stripe/v1/customers\nContent-Type: application/x-www-form-urlencoded\n\nemail=customer@example.com&name=John%20Doe&metadata[user_id]=123\n\nUpdate Customer\nPOST /stripe/v1/customers/{customer_id}\nContent-Type: application/x-www-form-urlencoded\n\nname=Jane%20Doe&email=jane@example.com\n\nDelete Customer\nDELETE /stripe/v1/customers/{customer_id}\n\nProducts\nList Products\nGET /stripe/v1/products?limit=10\n\n\nQuery Parameters:\n\nParameter\tDescription\nactive\tFilter by active status\ntype\tFilter by type: good or service\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"prod_TthCLBwTIXuzEw\",\n      \"object\": \"product\",\n      \"active\": true,\n      \"name\": \"Premium Plan\",\n      \"description\": \"Premium subscription\",\n      \"type\": \"service\",\n      \"created\": 1769926024,\n      \"metadata\": {}\n    }\n  ],\n  \"has_more\": true\n}\n\nGet Product\nGET /stripe/v1/products/{product_id}\n\nCreate Product\nPOST /stripe/v1/products\nContent-Type: application/x-www-form-urlencoded\n\nname=Premium%20Plan&description=Premium%20subscription&type=service\n\nUpdate Product\nPOST /stripe/v1/products/{product_id}\nContent-Type: application/x-www-form-urlencoded\n\nname=Updated%20Plan&active=true\n\nDelete Product\nDELETE /stripe/v1/products/{product_id}\n\nPrices\nList Prices\nGET /stripe/v1/prices?limit=10\n\n\nQuery Parameters:\n\nParameter\tDescription\nactive\tFilter by active status\nproduct\tFilter by product ID\ntype\tFilter: one_time or recurring\ncurrency\tFilter by currency\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"price_1SvtoVDfFKJhF88gKJv2eSmO\",\n      \"object\": \"price\",\n      \"active\": true,\n      \"currency\": \"usd\",\n      \"product\": \"prod_TthCLBwTIXuzEw\",\n      \"unit_amount\": 1999,\n      \"recurring\": {\n        \"interval\": \"month\",\n        \"interval_count\": 1\n      },\n      \"type\": \"recurring\"\n    }\n  ],\n  \"has_more\": true\n}\n\nGet Price\nGET /stripe/v1/prices/{price_id}\n\nCreate Price\nPOST /stripe/v1/prices\nContent-Type: application/x-www-form-urlencoded\n\nproduct=prod_XXX&unit_amount=1999&currency=usd&recurring[interval]=month\n\nUpdate Price\nPOST /stripe/v1/prices/{price_id}\nContent-Type: application/x-www-form-urlencoded\n\nactive=false\n\nSubscriptions\nList Subscriptions\nGET /stripe/v1/subscriptions?limit=10\n\n\nQuery Parameters:\n\nParameter\tDescription\ncustomer\tFilter by customer ID\nprice\tFilter by price ID\nstatus\tFilter: active, canceled, past_due, etc.\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"sub_1SzQDXDfFKJhF88gf72x6tDh\",\n      \"object\": \"subscription\",\n      \"customer\": \"cus_TxKtN8Irvzx9BQ\",\n      \"status\": \"active\",\n      \"current_period_start\": 1770765579,\n      \"current_period_end\": 1773184779,\n      \"items\": {\n        \"data\": [\n          {\n            \"id\": \"si_TxKtFWxlUW50cR\",\n            \"price\": {\n              \"id\": \"price_1RGbXsDfFKJhF88gMIShAq9m\",\n              \"unit_amount\": 0\n            },\n            \"quantity\": 1\n          }\n        ]\n      }\n    }\n  ],\n  \"has_more\": true\n}\n\nGet Subscription\nGET /stripe/v1/subscriptions/{subscription_id}\n\nCreate Subscription\nPOST /stripe/v1/subscriptions\nContent-Type: application/x-www-form-urlencoded\n\ncustomer=cus_XXX&items[0][price]=price_XXX\n\nUpdate Subscription\nPOST /stripe/v1/subscriptions/{subscription_id}\nContent-Type: application/x-www-form-urlencoded\n\nitems[0][id]=si_XXX&items[0][price]=price_YYY\n\nCancel Subscription\nDELETE /stripe/v1/subscriptions/{subscription_id}\n\nInvoices\nList Invoices\nGET /stripe/v1/invoices?limit=10\n\n\nQuery Parameters:\n\nParameter\tDescription\ncustomer\tFilter by customer ID\nsubscription\tFilter by subscription ID\nstatus\tFilter: draft, open, paid, void, uncollectible\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"in_1SzQDXDfFKJhF88g3nh4u2GS\",\n      \"object\": \"invoice\",\n      \"customer\": \"cus_TxKtN8Irvzx9BQ\",\n      \"amount_due\": 0,\n      \"amount_paid\": 0,\n      \"currency\": \"usd\",\n      \"status\": \"paid\",\n      \"subscription\": \"sub_1SzQDXDfFKJhF88gf72x6tDh\",\n      \"hosted_invoice_url\": \"https://invoice.stripe.com/...\",\n      \"invoice_pdf\": \"https://pay.stripe.com/invoice/.../pdf\"\n    }\n  ],\n  \"has_more\": true\n}\n\nGet Invoice\nGET /stripe/v1/invoices/{invoice_id}\n\nCreate Invoice\nPOST /stripe/v1/invoices\nContent-Type: application/x-www-form-urlencoded\n\ncustomer=cus_XXX\n\nFinalize Invoice\nPOST /stripe/v1/invoices/{invoice_id}/finalize\n\nPay Invoice\nPOST /stripe/v1/invoices/{invoice_id}/pay\n\nVoid Invoice\nPOST /stripe/v1/invoices/{invoice_id}/void\n\nCharges\nList Charges\nGET /stripe/v1/charges?limit=10\n\n\nQuery Parameters:\n\nParameter\tDescription\ncustomer\tFilter by customer ID\npayment_intent\tFilter by payment intent\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"ch_3SyXBvDfFKJhF88g1MHtT45f\",\n      \"object\": \"charge\",\n      \"amount\": 5000,\n      \"currency\": \"usd\",\n      \"customer\": \"cus_TuZ7GIjeZQOQ2m\",\n      \"paid\": true,\n      \"status\": \"succeeded\",\n      \"payment_method_details\": {\n        \"card\": {\n          \"brand\": \"mastercard\",\n          \"last4\": \"0833\"\n        },\n        \"type\": \"card\"\n      }\n    }\n  ],\n  \"has_more\": true\n}\n\nGet Charge\nGET /stripe/v1/charges/{charge_id}\n\nCreate Charge\nPOST /stripe/v1/charges\nContent-Type: application/x-www-form-urlencoded\n\namount=2000&currency=usd&source=tok_XXX\n\nPayment Intents\nList Payment Intents\nGET /stripe/v1/payment_intents?limit=10\n\n\nResponse:\n\n{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"pi_3SyXBvDfFKJhF88g17PeHdpE\",\n      \"object\": \"payment_intent\",\n      \"amount\": 5000,\n      \"currency\": \"usd\",\n      \"customer\": \"cus_TuZ7GIjeZQOQ2m\",\n      \"status\": \"succeeded\",\n      \"payment_method\": \"pm_1SyXBpDfFKJhF88gmP3IjC8C\"\n    }\n  ],\n  \"has_more\": true\n}\n\nGet Payment Intent\nGET /stripe/v1/payment_intents/{payment_intent_id}\n\nCreate Payment Intent\nPOST /stripe/v1/payment_intents\nContent-Type: application/x-www-form-urlencoded\n\namount=2000&currency=usd&customer=cus_XXX&payment_method_types[]=card\n\nConfirm Payment Intent\nPOST /stripe/v1/payment_intents/{payment_intent_id}/confirm\n\nCancel Payment Intent\nPOST /stripe/v1/payment_intents/{payment_intent_id}/cancel\n\nPayment Methods\nList Payment Methods\nGET /stripe/v1/payment_methods?customer=cus_XXX&type=card\n\nGet Payment Method\nGET /stripe/v1/payment_methods/{payment_method_id}\n\nAttach Payment Method\nPOST /stripe/v1/payment_methods/{payment_method_id}/attach\nContent-Type: application/x-www-form-urlencoded\n\ncustomer=cus_XXX\n\nDetach Payment Method\nPOST /stripe/v1/payment_methods/{payment_method_id}/detach\n\nCoupons\nList Coupons\nGET /stripe/v1/coupons?limit=10\n\nGet Coupon\nGET /stripe/v1/coupons/{coupon_id}\n\nCreate Coupon\nPOST /stripe/v1/coupons\nContent-Type: application/x-www-form-urlencoded\n\npercent_off=25&duration=once\n\nDelete Coupon\nDELETE /stripe/v1/coupons/{coupon_id}\n\nRefunds\nList Refunds\nGET /stripe/v1/refunds?limit=10\n\nGet Refund\nGET /stripe/v1/refunds/{refund_id}\n\nCreate Refund\nPOST /stripe/v1/refunds\nContent-Type: application/x-www-form-urlencoded\n\ncharge=ch_XXX&amount=1000\n\nPagination\n\nStripe uses cursor-based pagination with starting_after and ending_before:\n\nGET /stripe/v1/customers?limit=10&starting_after=cus_XXX\n\n\nResponse includes:\n\n{\n  \"object\": \"list\",\n  \"data\": [...],\n  \"has_more\": true,\n  \"url\": \"/v1/customers\"\n}\n\n\nUse the last item's ID as starting_after for the next page.\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/stripe/v1/customers?limit=10',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\nconsole.log(data.data);\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/stripe/v1/customers',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'limit': 10}\n)\ndata = response.json()\nfor customer in data['data']:\n    print(f\"{customer['id']}: {customer['email']}\")\n\nNotes\nStripe API uses application/x-www-form-urlencoded for POST requests (not JSON)\nAmounts are in the smallest currency unit (e.g., cents for USD)\nIDs start with prefixes: cus_ (customers), prod_ (products), price_ (prices), sub_ (subscriptions), in_ (invoices), ch_ (charges), pi_ (payment intents)\nTimestamps are Unix timestamps\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments\nError Handling\nStatus\tMeaning\n400\tBad request or invalid parameters\n401\tInvalid or missing Maton API key\n402\tCard declined or payment required\n404\tResource not found\n429\tRate limited\n500\tStripe internal error\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with stripe. For example:\nCorrect: https://gateway.maton.ai/stripe/v1/customers\nIncorrect: https://gateway.maton.ai/v1/customers\nResources\nStripe API Reference\nStripe Dashboard\nStripe Testing\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/stripe-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/stripe-api",
    "owner": "byungkyu",
    "version": "1.0.8",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/stripe-api",
    "downloadUrl": "https://openagent3.xyz/downloads/stripe-api",
    "agentUrl": "https://openagent3.xyz/skills/stripe-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/stripe-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/stripe-api/agent.md"
  }
}