# Invoice Status Check

To get information about all payments on an account, send a GET request to the following URL:

<mark style="color:blue;">`GET`</mark> `https://api.cryptocloud.plus/v1/invoice/info`

#### Request Body

| Name                                   | Type   | Description               |
| -------------------------------------- | ------ | ------------------------- |
| uuid<mark style="color:red;">\*</mark> | string | Unique invoice identifier |

{% tabs %}
{% tab title="200: OK Status received" %}

```json
{
  "status": "success",
  "status_invoice": "paid"
}
```

{% endtab %}

{% tab title="400: Bad Request Status check error" %}

{% endtab %}

{% tab title="401: Unauthorized Incorrect API KEY" %}

{% endtab %}
{% endtabs %}

### Request examples

These examples show how you can execute a request to check the status of an invoice using Python and JavaScript. Note that you need to provide your API key in the `Authorization` header to authorize the request successfully.

{% tabs %}
{% tab title="Python" %}

```python
import requests

url = "https://api.cryptocloud.plus/v1/invoice/info"
headers = {
    "Authorization": "Token <API KEY>"
}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    print("Success:", response.json())
else:
    print("Fail:", response.status_code, response.text)
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
const url = 'https://api.cryptocloud.plus/v1/invoice/info';
const headers = new Headers({
    'Authorization': 'Token <API KEY>'
});

fetch(url, { method: 'GET', headers })
    .then(response => {
        if (response.ok) {
            return response.json();
        } else {
            return Promise.reject('Error');
        }
    })
    .then(data => {
        console.log('Success:', data);
    })
    .catch(error => {
        console.error('Fail:', error);
    });
```

{% endtab %}
{% endtabs %}


---

# 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.cryptocloud.plus/en/api-reference-v1-old/check-invoice-status.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.
