8 ms·
You can use "expand" to get multiple queries into a single request, kind of like a SQL join. I don't know if this is exactly your use case, but when we get a Ch
by WillPostForFood 5y ago
You can use "expand" to get multiple queries into a single request, kind of like a SQL join. I don't know if this is exactly your use case, but when we get a Checkout session, and want the customer and purchase line items, it looks like this (using the Stripe Ruby library).
Stripe::Checkout::Session.retrieve({ id: session_id, expand: ['line_items', 'customer'] })