> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/samita-wholesale-b2b/~/revisions/t86s1xVv9jUAPdJmeEIc/faqs/why-i-receive-something-went-wrong-error-when-proceeding-to-checkout.md).

# Why I receive “Something went wrong” error when proceeding to checkout?

During the checkout process, the app may occasionally lag, displaying the error message **“Something Went Wrong. What Happened? This Invoice Is Not Available Yet, Please Try Again Later.”**

When there is a delay in execution, the cart items are not recognized, resulting in this error. It is crucial to remember that this problem only affects apps that employ draft orders. You can click this [**link**](https://community.shopify.com/c/shopify-discussions/something-went-wrong-what-happened-this-invoice-is-not-available/td-p/2073187) to learn more about this mistake and how it occurs in other apps that use draft orders.

<figure><img src="/files/GNM53dgQNT2wr6AR1HtV" alt=""><figcaption></figcaption></figure>

This is a result of a recent modification to Shopify’s invoice creation process for draft orders. The app creates and transfers your discount to Shopify’s checkout via draft orders. But now, it takes a little longer for Shopify to process this, which can result in these problem messages showing up.

#### ***So what should we do in this case?***

1. You can try duplicating the theme you’re using and apply our Sami Wholesale app to that new theme to see if the checkout process works fine again.&#x20;
2. Contact our Support team (**<support@samita.io>**) immediately to get a proper support. We will try customizing codes to your theme to change the process time of creating draft order so as to match the way Shopify deals with the checkout process.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/samita-wholesale-b2b/~/revisions/t86s1xVv9jUAPdJmeEIc/faqs/why-i-receive-something-went-wrong-error-when-proceeding-to-checkout.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
