Set expiration for draft order via REST API

Highlighted

Hi,

 

Does anybody know if there is any way of setting an expiration date or time for Draft Orders, created with REST API?
For the purpose we use them, it is not the best that the customer can reuse the checkout URL days after the draft order was created and finalize the order with the prices which were set for him days before.
We checked the documentation, but there doesn't appear to be any expiration field (or we missed it somehow).

 

Ideally, there would be an expiration field, which can be set when creating the draft order via API. When accessing the draft order after the expiration date, the customer would be notified that this order expired and invited to go back to the shop.

 

Henry

0 Likes
Highlighted
Shopify Staff
Shopify Staff
516 100 96

Hi @NiceTeam 

 

This is not a current feature of the API (or through the UI). You could delete the draft order after a specific timeframe has gone by, however, this will result in a generic error page with a message that reads: 

 

This invoice is not available: Please contact {STORE NAME} for more details.
 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes
Highlighted
Tourist
7 0 0

Hi,
Does anyone know where I can edit this generic page?

0 Likes