#minio
1 messages · Page 1 of 1 (latest)
Hello 👋
Yes you can pass your internal user ID to client_reference_id along with a customer ID in the customer parameter
This would add both the values on the checkout object
and what is the fastest way to search the customer by userId?
You can't set client_reference_id on customer object. For customer objects, using metadata would be the best way
ok, so what is the fastest way to find payment (subscription) with userId (client_reference_id)?
I don't think any of the Stripe APIs can query objects with client_reference_id field. It allows you to set your internal user ID so that when you receive webhook events for lets say checkout.session.completed then you'd be able to reconcile it on your end.
If you want to query objects using client_reference_id then yeah setting it on the object metadata would be the way to go
Apologies for the confusion
Ok, thanks, we can close