When is a transaction created on completion of a draft order

ShiraBoa
Excursionist
13 0 4

Hi,

I am trying to understand when a transaction is created on calling 

/admin/draft_orders/'.$draft_order_id.'/complete.json
with payment_pending = false.
 
It seems that sometimes the transaction is created before the order is created.
Is there an order I can trust or a check I can perform for this case?
 
Thanks,

 

0 Likes