Implement the order completion API endpoint on your confirmation page to trigger immediate order confirmation email sending. This endpoint marks the order as completed and ensures autoresponder emails are sent without delay.
How to Remove Order Confirmation Email Delays
-
On your final confirmation or thank you page, call the order completion endpoint:
POST https://openapi.admoji.com/api/v2/open/complete/{orderid}Replace
{orderid}with the integer Order ID from the original sale transaction. Send your API key in theAuthorizationheader (ApiKey {your key}) and a uniqueIdempotency-Keyheader, which every POST request to the Open API requires. -
Handle the API response accordingly:
Success: Order marked as completed and autoresponder emails triggered. Upsells already added to the order are marked as completed too, so they do not get a separate email.
Error:
"Order is already completed"if the endpoint was already called for this order, or"Order not found or no permission"if the Order ID does not belong to your account.