# Get Cost Center List

<mark style="color:green;">`POST`</mark> `[PlatformAddress]/api/1.0/venue?action=getCostCenterList`

#### Request Body

| Name    | Type    | Description         |
| ------- | ------- | ------------------- |
| venueId | integer | The id of the venue |

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

```
{
    "meta": {
        "totalResults": 1,
        "start": 0,
        "perPage": 50,
        "count": 1
    },
    "results": [
        {
            "id": 1,
            "name": "Food",
            "code": "venueccfd",
            "description": "Venue food cost center",
            "parentId": 321,
            "parentDefaultType": 1,
        }
    ]
}
```

{% endtab %}
{% endtabs %}

The result from this call will be a [collection](https://developer.ivvy.com/getting-started/interpreting-the-response/collections) of all the events the user has access to. This call also accepts the [pagination](https://developer.ivvy.com/getting-started/interpreting-the-response/pagination) and [filter](https://developer.ivvy.com/getting-started/interpreting-the-response/filtering) properties. The venueId is required, for example {"venuId":10}

### Returns

| Property          | Description                                                                                                                  |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| id                | The unique identifier of the cost center                                                                                     |
| name              | The name of the cost center                                                                                                  |
| code              | The code of the cost center                                                                                                  |
| description       | The complete description of the cost center                                                                                  |
| parentId          | The unique identifier of the parent account cost center                                                                      |
| parentDefaultType | The type of the parent account cost center. See [Type](https://developer.ivvy.com/account/get-cost-center-list#default-type) |

### Throws

| Code                 | Description            |
| -------------------- | ---------------------- |
| Specific Code: 24270 | Account does not exist |
| Specific Code: 24271 | Venue does not exist   |
