#Karen27 - metadata
1 messages ยท Page 1 of 1 (latest)
Do you have the request ID (req_123 ) from a time you tried to set this metadata?
The Go library should support metadata. Most often this is because Stripe does not copy metadata, even between closely related objects, so the data may be getting set somewhere slightly different than where you are expecting?
I can see in the logs that account acct_1KW10FDFkzIILaFL has the metadata, but the update method does not return it
Do you see it if you retrieve the account?
No, I don't see the metadata either.
Can you make that update call again and send me the request ID from it? https://stripe.com/docs/api/request_ids
Let's see if I can find it
req_3VMW7kb9bdTUUJ
This is the request ID
I now see the metadata is not even there.
Yeah I am not seeing it on that call or other calls that are on that account. Can you provide the GoCode snippet where you are trying to set this metadata?
And can you set metadata on other objects like a Customer?
Just one note, I dont see the metadata field in the struct &stripe.PersonParams{} (from Stripe library) all the others fields are there. Is that the expected behavior?
person := &stripe.PersonParams{}
person.AddMetadata("phone_country_code", "US")
//Update
acct, err := ps.stripeAccount.Update(
stripeAccountId,
&stripe.AccountParams{
Individual: person,
},
)
When you say you don't see it, do you mean you cannot access the parameter or it isn't printed out as part of the existing Account struct?
Hi ๐ stepping in for @waxen monolith BTW
I can not access the parameter Hi @restive relic ๐
The reason I ask is I recently helped a user with Stripe GO. They couldn't the the default_source on a Customer because they needed to traverse the struct and expand the underlying data structure that was linked to the Customer.
That does seem odd, since Metadata is definitely a field you can add data to: https://stripe.com/docs/api/persons/create?lang=go
I'm using stripe-go@v67.3.0
Ah, well our current release is v72.87.0 so that might be partly to blame
It does not exist in the latest version either...
I was just looking at that
But the metadata is a part of the Person object: https://github.com/stripe/stripe-go/blob/master/person.go#L352