Skip to content
Proud to collaborate with Microsoft for Startups

stripe.customers.search_customers ​

Search Stripe customers by query (email, metadata, name)

Search customers with Stripe's query language, e.g. email:'alice@example.com' metadata['end_user_uuid']:'...'

Search is the right tool for "find the customer for this person"; list is for paging the whole set. Stripe's search index is eventually consistent — a customer created moments ago may not appear yet.

Acts on the CUSTOMER'S OWN Stripe account, authenticated via the org-scoped Stripe connection selected by cloud_connection_uuid.

Inputs:

  • cloud_connection_uuid: Org-scoped Stripe connection (customer's own account).
  • query: Stripe search query string.
  • limit: Page size, 1-100 (default: 20) (optional).
  • page: Cursor from a previous search's next_page (optional).

Outputs (terminal state_data):

  • customers: list
  • total: int
  • has_more: bool
  • next_page: str

Connection required: cloud_connection_uuid — the organization's own Stripe account credentials; there is no platform-key fallback.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-stripe
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Org-scoped Stripe connection (customer's own account)
querystringYes—Stripe search query string
limitintegerNo—Page size, 1-100 (default: 20)
pagestringNo—Cursor from a previous search's next_page

Output Schema ​

FieldTypeRequiredDefaultDescription
customerslistNo——
totalintegerNo——
has_morebooleanNo——
next_pagestringNo——
cloud_connection_uuiduuidNo——
querystringNo——
limitintegerNo——
pagestringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
errorstringNo——
error_typestringNo——
failed_layerintegerNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "stripe.customers.search_customers",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "query": "value"
  }
}