#I'm better than you

1 messages · Page 1 of 1 (latest)

hearty flowerBOT
civic bear
#

Hi there, do you have the customer ID?

bold wolf
#

Yes, thanks

#

Once I connect the API, I receive the Customer object

#

for instance

#

{
"id": "cus_NLh13x9kolIPJ2",
"object": "customer",
"account_balance": 0,
"address": {
"city": "",
"country": "",
"line1": "",
"line2": "",
"postal_code": "",
"state": ""
},
"balance": 0,
"created": 1676285488,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
"description": "Name: , Guest",
"discount": null,
"email": null,
"invoice_prefix": "0C877F9A",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": true,
"metadata": {},
"name": null,
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [
"en-US"
],
"shipping": null,
"sources": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/customers/cus_NLh13x9kolIPJ2/sources"
},
"subscriptions": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/customers/cus_NLh13x9kolIPJ2/subscriptions"
},
"tax_exempt": "none",
"tax_ids": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/customers/cus_NLh13x9kolIPJ2/tax_ids"
},
"tax_info": null,
"tax_info_verification": null,
"test_clock": null
}

civic bear
#

OK. I see that you've attached a payment_method to this customer

bold wolf
#

I would expect to receive a value in 'default_source' which enable me to retrieve the Card object

civic bear