Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

175
Vistas
Rails. I can't see my plan subscription in Stripe::Customer.retrieve("cus_XYZ") console

I have created my product with price and when I go to consult the clients the subscription field does not appear.

# rails console
Stripe::Customer.retrieve("cus_XYZ")

However, the subscription appears when I run in the console:

Stripe::Subscription.retrieve("sub_1XYZ")

I'd like it to appear when I do a query Stripe::Customer.retrieve, as I need the "subscription" field appears it

If there is any way to retrieve the subscription field in customer I would be very grateful to know.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

As noted in the API reference, the subscriptions are expandable and not included by default.

You can get these, but you need to explicitly request them via expansion:

Stripe::Customer.retrieve({
  id: 'cus_123',
  expand: ['subscriptions'],
})
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda