# Fetch Invoice creation ways

<mark style="color:green;">`POST`</mark> `https://app.thedex.cloud/api/v1/info/invoice/creation/ways`

#### Headers

| Name                                             | Type   | Description                        |
| ------------------------------------------------ | ------ | ---------------------------------- |
| X-EX-APIKEY<mark style="color:red;">\*</mark>    | String | Your API key                       |
| X-EX-PAYLOAD<mark style="color:red;">\*</mark>   | String | Body to base64                     |
| X-EX-SIGNATURE<mark style="color:red;">\*</mark> | String | Encrypted body with the secret key |

#### Request Body (Empty JSON)

```json
{ }
```

**Request JSON attributes**

| Name | Type | Description |
| ---- | ---- | ----------- |
| -    | -    | -           |

**Response Body**

{% tabs %}
{% tab title="200 invoice creation ways" %}

```json
[
   {
      "name":"String",
      "value":"Integer"
   }
]
```

Example:

```json
[
    {
        "name": "UI",
        "value": 0
    },
    {
        "name": "API",
        "value": 1
    },
    {
        "name": "MERCHANT",
        "value": 2
    },
    {
        "name": "WALLET_STATIC",
        "value": 3
    },
    {
        "name": "PAYMENT_BUTTON_WAY",
        "value": 4
    },
    {
        "name": "DONATION_BUTTON_WAY",
        "value": 5
    },
    {
        "name": "EMAIL_CONFIRM_WAY",
        "value": 6
    },
    {
        "name": "SWAP",
        "value": 7
    },
    {
        "name": "USER_WALLET",
        "value": 8
    },
    {
        "name": "DOUBLE_PAY",
        "value": 9
    },
    {
        "name": "SELF_WALLET",
        "value": 10
    },
    {
        "name": "ANOTHER_CURRENCY",
        "value": 11
    }
]
```

{% endtab %}
{% endtabs %}

**Response JSON attributes**

| `"name"`  | `String`  | Name of invoice creation way |
| --------- | --------- | ---------------------------- |
| `"value"` | `Integer` | Index of creation way        |

**Request Curl**

```powershell
curl --location --request POST 'https://app.thedex.cloud/api/v1/info/invoice/creation/ways' \
--header 'X-EX-APIKEY: <string>' \
--header 'X-EX-PAYLOAD: <string>' \
--header 'X-EX-SIGNATURE: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{ }'
```

**Example Curl**

```powershell
curl --location --request POST 'https://app.thedex.cloud/api/v1/info/invoice/creation/ways' \
--header 'X-EX-APIKEY: abcd1234apikeyexample' \
--header 'X-EX-PAYLOAD: e30=' \
--header 'X-EX-SIGNATURE: 123abc456def7890abcdef1234567890abcdef1234567890abcdef1234567890' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{ }'
```


---

# 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.thedex.cloud/documentation/informational/fetch-invoice-creation-ways.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.
