# Common issues

This section addresses some common issues and their solutions.

#### 1. API Key Not Working

**Problem:** You receive an error message such as `Missing api key` or `Invalid api key`. **Solution:**

* Ensure that your API key is correctly included in the `apiKey` header.
* Verify that you have copied the API key accurately from your account dashboard at [https://dashboard.omypayments.com/](https://dashboard.omypayments.com/site/login).
* Check that the API key has not expired or been revoked.

#### 2. Invoice Not Updating

**Problem:** The invoice status does not change after its creation. **Solution:**

* Confirm that the payment has been made and confirmed on the blockchain.
* Verify that the Callback URL is correctly configured and is receiving status updates.
* Ensure that your system correctly processes incoming callbacks.

#### 3. Callback Not Received

**Problem:** Your server is not receiving webhook callbacks. **Solution:**

* Check that your server endpoint is publicly accessible and returns a `200` status code.
* Ensure that no firewall or network restrictions block incoming requests.
* Verify that the Callback URL is correctly registered in your merchant settings.


---

# Agent Instructions: 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:

```
GET https://docs.omypayments.com/api/common-issues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
