Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Storefront API not creating checkouts like it used to

Storefront API not creating checkouts like it used to

tomer2
Visitor
1 0 3

Hello,

 

we have a Shopify Plus store 

and we're using Shopify as headless engine 

 

we're using the storefront API to create checkouts and they used to be added to the abandonment checkout tab on the admin dashboard

 

since yesterday every time we're creating a checkout using our storefront API,

we get a proper response that the checkout is created but we don't see any indication on the dashboard that the checkout was created.

another weird thing, if the checkout is for a new customer, then a new customer entity does being created and also we do see the checkout when exporting the customer data as csv

but the checkout entity is not available on the dashboard and also our 3rd party apps can find these abandoned checkouts..

 

example of request:

curl --location --request POST 'https://stg-shop.snappygifts.com/api/2023-01/graphql.json' \
--header 'X-Shopify-Storefront-Access-Token: <STOREFRONT_TOKEN_WITH_ALL_THE_SCOPES' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation {\n  checkoutCreate(input: {\n    email: \"amit+checkout010@snappy.com\",\n    lineItems: [{ variantId: \"gid://shopify/ProductVariant/42815442321578\", quantity: 1 }]\n  }) {\n    checkout {\n       id\n       webUrl\n       lineItems(first: 5) {\n         edges {\n           node {\n             title\n             quantity\n           }\n         }\n       }\n    }\n  }\n}","variables":{}}' 

response:

{
    "data": {
        "checkoutCreate": {
            "checkout": {
                "id": "gid://shopify/Checkout/4d945e6bca77615509501acdf7c0e816?key=b4e21cf468cfa83652307f89d817f618",
                "webUrl": "https://stg-shop.snappygifts.com/61778329770/checkouts/4d945e6bca77615509501acdf7c0e816?key=b4e21cf4...",
                "lineItems": {
                    "edges": [
                        {
                            "node": {
                                "title": "Snappy gift budget",
                                "quantity": 1
                            }
                        }
                    ]
                }
            }
        }
    }
}

 

Replies 3 (3)

manoj2210
Shopify Partner
1 0 0

We are also facing the same problem, abandoned checkouts are not created when a checkout is created through the store front API. 

nitd24
Shopify Partner
2 0 0

We are also facing the exact issue. We are unable to understand what are we missing and if something has changed from Shopify's end.

Unknown_Dev
Shopify Partner
9 0 1

We also facing the same issue in recent days. Any update on this? Kindly help us for the same