Storefront API and Last incomplete checkout

AndreyM40
New Member
1 0 0

Hi!

I am building mobile app which uses StoreFront API. I use GraphiQL to test queries and mutations.

As web customer, in Online Store sales channel, i have created a cart, put 2 goods in it. Fill in address and stopped.

Now I want to continue checkout process in my mobile application. I estimate to find this incomplete checkout ID by a query like this:

query($customerAccessToken : String!){
  customer(customerAccessToken: $customerAccessToken) {
    id
    displayName
    lastIncompleteCheckout {
        id
        webUrl
      }
  }

But, I always get lastIncompleteCheckout == null. All other customers' information is right.

So, my questions are:
1 - Is it possible in my mobile App to get ID of the checkout which was started in Online Store?

2 - If it is possible, how to do this?

Thank you!

Replies 2 (2)
ismartConnect
New Member
1 0 0

HI

I think the checkout need to be abandoned first for lastIncompleteCheckout to return the id. i.e. the customer has to close the checkout page or navigate away from it e.g. using browser back button etc.

Thanks

 

lilhelper
New Member
3 0 0

Hi. Did you find any solution to this problem?