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!

0 Likes