If we take a step back, a new thirdPartyReference is required anytime you attempt to submit a POST request from Online Orders endpoints. This thirdPartyReference can be any string, such as a random UUID.
Let's take my current payload:
As we can see, I'm using eb9b8ffd-3aa6-4b6d-a3cd-8886048ecd23
as my thirdPartyReference
. From there, I have two options:
- Wait for the webhook notification; which is the recommended workflow since it contains the order status (fail, success) and the outstanding amount (
"currentAmount"
minus"paidAmount"
) and the"ikentooAccountIdentifier"
(to be used with the apply payment endpoint when applicable):