# Get all Custom Fields by Scope

## Get all Custom Fields by Scope

<mark style="color:blue;">`GET`</mark> `https://{{accountSlug}}.myeshopbox.com/api/platform/v1/property/scopes`

This endpoint allows you to get all custom fields by scope.

#### Headers

| Name          | Type   | Description                                  |
| ------------- | ------ | -------------------------------------------- |
| Authorization | string | The Bearer token to grant access to the API. |

{% tabs %}
{% tab title="200 Custom Field by scope successfully retrieved." %}

```
{
    "items": [
        {
            "id": 1,
            "scope": "product",
            "createdAt": "2020-03-12T16:02:31.229+05:30",
            "updatedAt": "2020-03-12T16:02:31.229+05:30"
        },
        {
            "id": 2,
            "scope": "recall consignment",
            "createdAt": "2020-03-12T16:02:58.583+05:30",
            "updatedAt": "2020-03-12T16:02:58.583+05:30"
        },
        {
            "id": 3,
            "scope": "inward consignment",
            "createdAt": "2020-03-12T16:03:12.410+05:30",
            "updatedAt": "2020-03-12T16:03:12.410+05:30"
        },
        {
            "id": 4,
            "scope": "order",
            "createdAt": "2020-03-12T16:03:24.537+05:30",
            "updatedAt": "2020-03-12T16:03:24.537+05:30"
        },
        {
            "id": 5,
            "scope": "invoice",
            "createdAt": "2020-03-12T16:04:09.717+05:30",
            "updatedAt": "2020-03-12T16:04:09.717+05:30"
        },
        {
            "id": 6,
            "scope": "listing",
            "createdAt": "2020-03-12T16:04:44.530+05:30",
            "updatedAt": "2020-03-12T16:04:44.530+05:30"
        },
        {
            "id": 7,
            "scope": "inventory",
            "createdAt": "2020-03-12T16:05:04.489+05:30",
            "updatedAt": "2020-03-12T16:05:04.489+05:30"
        },
        {
            "id": 8,
            "scope": "expense",
            "createdAt": "2020-03-12T16:05:25.842+05:30",
            "updatedAt": "2020-03-12T16:05:25.842+05:30"
        },
        {
            "id": 9,
            "scope": "expense",
            "createdAt": "2020-03-12T16:05:47.280+05:30",
            "updatedAt": "2020-03-12T16:05:47.280+05:30"
        },
        {
            "id": 10,
            "scope": "return",
            "createdAt": "2020-03-12T16:06:25.945+05:30",
            "updatedAt": "2020-03-12T16:06:25.945+05:30"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

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

```
curl --location --request GET 'http://localhost:8080/_ah/api/esb/v1/property/scopes' \
--header 'Content-Type: application/json' \
--header 'Authorization: '
```

{% 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://eshop.gitbook.io/eshopbox-developers/advanced/custom-fields/get-all-custom-fields-by-scope.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.
