Connect a notification to your order
Saveorder_id when creating the order. In a Stocks notification, source_id and data.order.order_id identify that order. data.order contains its snapshot at the event time.
See Stocks order Webhook for the complete fields and notification examples.
Handle repeated or missing notifications
Useevent_id to identify a delivery and data.business_event_id to identify the business event within your account. Do not apply a position change twice or replace a terminal result with a late processing notification.
If no final notification arrives, query Retrieve order using the saved order_id. If that identifier was not received, use List orders with client_reference. Do not create a second order solely because a notification is missing.
