Is stripe id unique across diffenent Stripe account

591 views
Skip to first unread message

staneventtest

unread,
Dec 7, 2021, 9:06:03 PM12/7/21
to Stripe API Discussion
Hi,

If I have 2 Stripe account, e.g. account A , account B.
And I create invoices, payment intents in both accounts.

Is there any chance that the id of invoice A in account A would be the same as the id of invoice B in account B.

Just want to know the id uniqueness is guaranteed in one Stripe account or the whole Stripe system.

Thanks


Remi J.

unread,
Dec 7, 2021, 9:09:00 PM12/7/21
to api-d...@lists.stripe.com
Hello,

The majority of our object ids are unique across all Stripe accounts to avoid collisions like this one and Invoice or PaymentIntent objects would be unique. It's not true for all objects though as some can be created by choosing their ids such as a Coupon or a Product, making those ids not unique across accounts. Because of this, it's best to keep track of which account the information is coming from to avoid any issue.

Hope this helps!
Remi

--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages