/recipe-skills:stripe-recipesfrom recipe-skills
Generates valid Workato recipe JSON for Stripe operations: customer management, payment processing, refunds, and webhook handling.
Ships in recipe-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
⚠️ DEPENDENCY: Load the
workato-recipesbase skill first if not already loaded. This skill requires the base Workato knowledge for triggers, control flow, datapills, and recipe structure.
This skill provides Stripe-specific knowledge for generating Workato recipes. It extends the workato-recipes base skill and focuses on Stripe-specific patterns.
Use this skill when building Workato recipes that:
Prerequisites:
workato-recipes base skill loadedEvery Stripe recipe requires the stripe provider in the config section:
{
"keyword": "application",
"provider": "stripe",
"skip_validation": false,
"account_id": {
"zip_name": "Workspace Connections/stripe_connection.connection.json",
"name": "Stripe Connection Name",
"folder": "Workspace Connections"
}
}
Combined with trigger provider:
For API endpoint trigger:
"config": [
{ "provider": "workato_api_platform", "account_id": null, ... },
{ "provider": "stripe", "account_id": { ... }, ... }
]
For callable recipe trigger:
"config": [
{ "provider": "workato_recipe_function", "account_id": null, ... },
{ "provider": "stripe", "account_id": { ... }, ... }
]
The Stripe connector provides 7 native actions and 4 triggers. See lint-rules.json for the authoritative list of valid action and trigger names.
new_object — Generic trigger for new Stripe objects (customers, charges, invoices, etc.).new_charge — Trigger specifically on new charges.new_event — Trigger on Stripe webhook events.new_objects_batch — Batch trigger for processing multiple new objects.Customer operations:
create_customer — Create a new Stripe customer natively.update_customer — Update an existing customer.Charges & invoices:
create_charge — Create a charge.create_invoice — Create an invoice.create_invoice_item — Add a line item to an invoice.Generic lookups:
get_object_by_id — Retrieve any Stripe object by ID (customer, charge, invoice, subscription, etc.).list_objects — List objects of any type with optional filters.Adhoc HTTP required for: PaymentIntents (create/confirm), refunds, subscriptions, payment methods, customer search, and other Stripe API operations not covered by the 7 native actions. See Stripe Custom HTTP Actions below.
While the connector provides 7 native actions for basic customer, charge, and invoice operations, many Stripe workflows still require __adhoc_http_action. Common adhoc operations:
| Endpoint | Use Case |
|---|---|
/v1/customers/search | Search customers by email |
/v1/payment_intents | Create PaymentIntents |
/v1/payment_intents/{id}/confirm | Confirm payments with 3D Secure |
/v1/refunds | Create refunds |
{
"number": 2,
"provider": "stripe",
"name": "__adhoc_http_action",
"as": "search_customer",
"keyword": "action",
"input": {
"mnemonic": "Search customers",
"path": "/v1/customers/search",
"verb": "get",
"response_type": "json",
"input": {
"schema": "[{\"name\":\"query\",\"type\":\"string\",\"optional\":false,...}]",
"data": {
"query": "email:'#{email_datapill}'",
"limit": "1"
}
},
"output": "[{\"name\":\"data\",\"type\":\"array\",...}]"
},
"extended_output_schema": [...],
"extended_input_schema": [...], // CRITICAL: See warning below
"uuid": "search-customer-001"
}
CRITICAL: extended_input_schema Requirement
Custom HTTP actions have nested
input.datastructures. Theextended_input_schemaMUST fully define this nested structure or Workato will silently drop the input data. Seeworkato-recipesbase skill for complete documentation.Always copy
extended_input_schemafrom validated templates rather than creating simplified versions.
GET requests - Parameters in input.data:
{
"verb": "get",
"input": {
"data": { "query": "...", "limit": "1" }
}
}
POST requests - Parameters in input.data (form-encoded by Stripe):
{
"verb": "post",
"input": {
"data": { "amount": "5000", "currency": "usd", "customer": "cus_xxx" }
}
}
All create/confirm operations MUST include idempotency headers:
{
"request_headers": [
{
"name": "Idempotency-Key",
"value": "#{idempotency_token_datapill}"
}
]
}
Why: Retries without idempotency create duplicate customers/charges.
{
"request_headers": [
{ "name": "Stripe-Version", "value": "2024-11-20.acacia" }
]
}
Stripe custom HTTP actions do NOT use the ["body"] wrapper in datapill paths.
This is different from other connectors:
// CORRECT for Stripe
"path": ["id"]
"path": ["status"]
"path": ["data", {"path_element_type":"current_item"}, "id"]
"path": ["last_payment_error", "code"]
// WRONG for Stripe - Do NOT use
"path": ["body", "id"]
Customer ID from search:
"#{_dp('{\"pill_type\":\"output\",\"provider\":\"stripe\",\"line\":\"search_customer\",\"path\":[\"data\",{\"path_element_type\":\"current_item\"},\"id\"]}')}"
Customer ID from create:
"#{_dp('{\"pill_type\":\"output\",\"provider\":\"stripe\",\"line\":\"create_customer\",\"path\":[\"id\"]}')}"
PaymentIntent status:
"#{_dp('{\"pill_type\":\"output\",\"provider\":\"stripe\",\"line\":\"create_payment\",\"path\":[\"status\"]}')}"
Error code from failed payment:
"#{_dp('{\"pill_type\":\"output\",\"provider\":\"stripe\",\"line\":\"confirm_payment\",\"path\":[\"last_payment_error\",\"code\"]}')}"
Always search for existing customer before creating:
// Step 1: Search
{
"provider": "stripe",
"name": "__adhoc_http_action",
"as": "search_customer",
"input": {
"path": "/v1/customers/search",
"verb": "get",
"input": {
"data": { "query": "email:'#{email}'", "limit": "1" }
}
}
}
// Step 2: Check if found
{
"keyword": "if",
"input": {
"conditions": [{
"operand": "present",
"lhs": "#{search_customer.data[].id}"
}]
},
"block": [
// Return existing
{ "name": "return/response", "input": { "customer_id": "#{existing}", "created": "false" } },
// Else: Create new
{ "keyword": "else", "block": [ /* create customer */ ] }
]
}
Stripe errors have nested structure. Flatten for responses:
// Stripe returns:
{ "error": { "code": "card_declined", "message": "...", "decline_code": "..." } }
// Flatten in your response schema:
{ "success": false, "error_code": "card_declined", "error_message": "...", "decline_code": "..." }
Stripe requires minimum $0.50 (50 cents):
{
"keyword": "if",
"input": {
"conditions": [{ "operand": "less_than", "lhs": "#{amount}", "rhs": "50" }]
},
"block": [
{ "name": "response", "input": { "error": "Amount must be at least 50 cents" } }
]
}
PaymentIntent status after confirm indicates auth requirement:
| Status | Meaning | Action |
|---|---|---|
succeeded | Payment complete | Return success |
requires_action | 3D Secure needed | Return next_action.redirect_to_url.url |
requires_payment_method | Failed | Return error |
stripe provider with connection referencename matches a valid name in lint-rules.json or is __adhoc_http_actionIdempotency-Key header["body"] wrapper["data", {"path_element_type":"current_item"}, "id"]extended_input_schema fully defines nested input.data structure (see base skill)| Error | Cause | Solution |
|---|---|---|
| "invalid step" | Wrong datapill path | Remove ["body"] wrapper |
| Duplicate customers | Missing idempotency | Add Idempotency-Key header |
| Empty search results | Wrong array access | Use {"path_element_type":"current_item"} |
| Missing API params | Incomplete extended_input_schema | Ensure schema defines all nested input.data fields |
| Input silently dropped | Schema missing nested objects | Copy complete schema from templates |
See templates/ directory:
create-customer.json - Search-before-create patternconfirm-payment.json - PaymentIntent confirmation with 3D Securecreate-refund.json - Refund processingworkato-recipes - Recipe structure, triggers, control flowtemplates/ directorypatterns/ directorylint-rules.json (opens in a new tab)patterns/datapill-syntax.md (opens in a new tab)patterns/error-handling.md (opens in a new tab)patterns/idempotency.md (opens in a new tab)patterns/search-before-create.md (opens in a new tab)skill.yaml (opens in a new tab)templates/atomic-recipe.template.json (opens in a new tab)templates/confirm-payment.json (opens in a new tab)templates/create-customer.json (opens in a new tab)templates/create-refund.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub workato-devs/recipe-skills --plugin recipe-skills8 skills in this plugin
/asana-recipesAsana integration recipes for Workato. Enables AI agents to generate valid recipe JSON for Asana operations including task management, project organization, portfolio tracking, goal setting, team management, and workspace administration./datatable-recipesData Tables connector recipes for Workato. Covers triggers, CRUD actions, search, upsert, batch operations, UUID column mapping, and table reference objects for the internal workato_db_table connector./gmail-recipesGmail integration recipes for Workato. Enables AI agents to generate valid recipe JSON for Gmail operations including sending emails, listing/searching messages, managing labels, and message details./jira-recipesJira integration recipes for Workato. Enables AI agents to generate valid recipe JSON for Jira operations including searching issues by JQL, creating and updating issues, and querying sprint data./salesforce-recipesSalesforce integration recipes for Workato. Enables AI agents to generate valid recipe JSON for Salesforce operations including record creation, updates, upserts, and searches using standard SObjects and custom objects./slack-recipesSlack integration recipes for Workato using Workbot for Slack. Enables AI agents to generate valid recipe JSON for slash commands, dialogs/modals, message posting, button interactions, and channel management.Other plugins' skills for the same job