# 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 %}
