I’m trying to create a custom field on my orders called
order_number, which would contain a sequential order number. I need this for my tax authorities.
This is my workflow:
moltin.Cart().Checkout()to checkout/create the order,
PUT /ordersand set
order_numberto the previously fetched
The problem is that sometimes, even though orders are created 5 to 10 minutes apart, the
order_number is the same. For the majority of times it works, so I’m guessing everything is ok with my code.