---
title: "List the connected portal's custom objects"
description: "For the invoice object picker."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/hubspot/list-the-connected-portal-s-custom-objects"
---
# List the connected portal's custom objects

> For the invoice object picker.

<api-operation method="GET" path="/v1/businesses/{biz}/integrations/hubspot/objects">
<template v-slot:docs="">

Invoices sync to a custom object, which needs HubSpot Enterprise. `missing_scopes` names the custom-object scopes the grant lacks: a connection made before invoice sync must reconnect. `invoice_properties` lists the internal property names the object should carry; only `invoice_id` is required.

## Path parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        biz
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <strong>
        yes
      </strong>
    </td>
    
    <td>
      Business id (biz_…)
    </td>
  </tr>
</tbody>
</table>

## Response

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        object
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object type.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      <code>
        array of object
      </code>
    </td>
    
    <td>
      The rows on this page.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data.id
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object's id.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data.name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object's name.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        data.label
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The object's label.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        missing_scopes
      </code>
    </td>
    
    <td>
      <code>
        array of string
      </code>
    </td>
    
    <td>
      The missing scopes.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invoice_properties
      </code>
    </td>
    
    <td>
      <code>
        array of string
      </code>
    </td>
    
    <td>
      The invoice properties.
    </td>
  </tr>
</tbody>
</table>

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      A list of custom objects
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      HubSpot is not connected
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        502
      </code>
    </td>
    
    <td>
      HubSpot refused the request
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl "$TMBILLING_URL/v1/businesses/biz_XXXXXXXXXXXX01/integrations/hubspot/objects" \
  -H "Authorization: Bearer $TMBILLING_API_KEY"
```

</template>

<template v-slot:response="">
<code-group>

```json [200 OK]
{
  "object": "list",
  "data": [
    {
      "id": "2-1234567",
      "name": "billing_invoice",
      "label": "Billing invoices"
    }
  ],
  "missing_scopes": [
    "Missing scope"
  ],
  "invoice_properties": [
    "Invoice property"
  ]
}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "HubSpot is not connected"
  }
}
```

```json [502 Bad Gateway]
{
  "error": {
    "type": "api_error",
    "message": "HubSpot refused the request"
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
