question

kyle avatar image
kyle asked Jeffrey Blattman answered

is the order id unique?

Hi, I am wondering if the order ID is unique, across all merchant, or it is only unique within the same merchant? I tried to search the doc but i didn't seem to find the answer to it.

https://clover.github.io/clover-andro...

the only thing I found is that it is a "Unique identifier"... Thanks so much for answering.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered

You can assume they are unique across merchants.

There are 1,190,112,520,884,487,201 possible UUID values. Each time a new object is created we generate a new one, randomly. While it's possible to have a collision, our databases have a unique constraint on the UUID*, so this would fail fast at object creation time. It's also statistically very unlikely for the collision to occur in the first place.

* This is only true for object of the the same type. E.g., an inventory item and an order could have the same UUID without problems.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community