Stripe CLI Cheat Sheet/Expand multiple nested objects

Return several expanded fields in one request.

Section: Core CLI Usage Patterns

Expand multiple nested objects

bash
bash
stripe checkout sessions retrieve cs_test_123 --expand payment_intent --expand customer

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Core CLI Usage Patterns
Expand nested objects in the response
Request expanded objects directly from Stripe.
OpenIn sheetbashsame section
List resources with a limit
Limit the number of returned objects.
OpenIn sheetbashsame section
Pipe JSON output to jq
Extract specific fields from a CLI response.
OpenIn sheetbashsame section
Send an idempotency key
Protect retried write requests from duplication.
OpenIn sheetbashsame section
Attach metadata when creating resources
Store key-value metadata on supported objects.
OpenIn sheetbashsame section
Send a raw GET request
Call an arbitrary Stripe API endpoint directly.
OpenIn sheetbashsame section