Ensure orders are unique

Hi I am developing an integration that is importing orders into veeqo. I am having an issue with ensuring orders are only added once. I am using the number field on the order as external system ID but this allows for duplication and while I have implemented checks to stop duplicate orders I was hoping there was some field on the order endpoint that can be used to enforce orders to be unique.

Would appropriate any help.

Dave

Hey Dave,

The only way you’d end up with duplicate orders is if you send the same request twice.

You could also perform a GET request to check to see if the order number exists before sending the POST request.

1 Like