> 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/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 checkout, the app can occasionally show the error **"Something Went Wrong. What Happened? This Invoice Is Not Available Yet, Please Try Again Later."**

This happens when there's a short delay and the cart items aren't recognized in time. It only affects apps — like this one — that use Shopify draft orders to process checkout. You can read more about this error and why it happens in other draft-order apps in [this Shopify Community thread](https://community.shopify.com/c/shopify-discussions/something-went-wrong-what-happened-this-invoice-is-not-available/td-p/2073187).

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

This is caused by a change Shopify made to how draft order invoices are created. The app creates your discount and sends it to Shopify checkout through a draft order — but it can now take a little longer for Shopify to process that step, which is what triggers this message.

## What should you do?

1. Try duplicating your current theme and installing Samita Wholesale Pricing on the copy to see if checkout works correctly there.
2. Contact our support team at **<support@samita.io>**. We can adjust the timing of the draft order creation process in your theme to better match how Shopify processes checkout.


---

# 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/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.
