How to detect the post-purchase step is completed for an order?

How to detect the post-purchase step is completed for an order?

hv3
Visitor
1 0 0

Hi,

 

We are building a post-purchase checkout extension to show post-purchase offers.

There's a certain state in an order's lifecycle where we want to plug and run specific backend logic.

 

This state should indicate that for an order a post-purchase page won't be shown anymore. This means:

- It was already shown and the flow is completed

or

- It was never shown and won't be shown at all

 

The only related thing I found and read was the following changelog post: Post-purchase fulfillment holds (API)

However, I can't neither reproduce this "ON_HOLD" state nor find a "FulfillmentOrder" associated with the order. Actually, I can reproduce it and see it in the admin UI, but I that's not the state I see when I fetch the order using the Admin API.

 

👇 Admin UI

hv3_0-1642492157377.png

 

👇 Admin API

hv3_1-1642492428184.png

 

Can you help me identify when the post-purchase offer phase is over for an order using the Admin API?

 

PS: The API version we are using is "2021-10".

 

Regards,

Hristo.

Replies 0 (0)