#amol_08238

1 messages · Page 1 of 1 (latest)

sly lilyBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

honest helm
#

Can you share the SubscriptionId ?

#

and the customerId you are using

proven bay
#

subscription id is sub_1O2U7CCCtT389lEbyca09DVo and customer id is cus_OqASqoWbE0eEfW

#

hey

honest helm
#

thanks for sharing, checking...

proven bay
#

sorry let me change the ids
cus_P5WwZB1ngFcgya
sub_1OHLsTCCtT389lEbgbeZUHwQ

#

I posted wrong ids before.

honest helm
#

Can you share the request youa re making ?

proven bay
#

Stripe.apiKey = stripeConfig.getApiKey();
List<String> expandList = new ArrayList<>();
expandList.add("subscriptions");

    Map<String, Object> params = new HashMap<>();
    params.put("expand", expandList);
    customer = Customer.retrieve(stripeCustomerId, params, null);
honest helm
#

Can you share the resulting request Id ?

proven bay
#

here is json received in response
<com.stripe.model.Customer@159905798 id=cus_Ouk4BXCFw3tLeg> JSON: {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"balance": 0,
"cash_balance": null,
"created": 1698668939,
"currency": "usd",
"default_source": null,
"deleted": null,
"delinquent": false,
"description": null,
"discount": null,
"email": "amol+test088@trustnota.com",
"id": "cus_Ouk4BXCFw3tLeg",
"invoice_credit_balance": null,
"invoice_prefix": "D13A85BA",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": "Amol 088 bank failure",
"next_invoice_sequence": 1,
"object": "customer",
"phone": null,
"preferred_locales": [
"en-GB",
"en"
],
"shipping": null,
"sources": null,
"subscriptions": {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/customers/cus_Ouk4BXCFw3tLeg/subscriptions",
"request_params": null
},
"tax": null,
"tax_exempt": "none",
"tax_ids": null,
"test_clock": null
}

honest helm
#

The customer id is cus_Ouk4BXCFw3tLeg it's different to the ones you've shared with me

#

Double check the Customer Id you are passing

proven bay
#

oh there is some confusion on my end only then. Sorry to bother, I will check and reopen thread if some issue