Skip to content

HighLevel: List Products

HighLevel products.listInvoices: arguments, response, policy and SDK examples.

← Products operations · Get started

Operation gohighlevel.products_list_invoices

Provider route: GET /products/. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["products"]["listInvoices"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.products.listInvoices(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.products.list_invoices(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.limitnumberOptionalDefault: 0
query.offsetnumberOptionalDefault: 0
query.locationIdstringRequired within parent
query.searchstringOptional
query.collectionIdsstringOptional
query.collectionSlugstringOptional
query.expandarrayOptional
query.expand[]stringEach item
query.productIdsarrayOptional
query.productIds[]stringEach item
query.storeIdstringOptional
query.includedInStorebooleanOptional
query.availableInStorebooleanOptional
query.sortOrderstringOptionalOne of: asc, desc

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand List Products — response body

Referenced models: List Products — response body

List Products — response body
FieldTypePresenceDescription and constraints
$objectRoot
productsarrayRequired within parentAn array of products
products[]ModelEach itemExpand Create Product — response body
totalarrayRequired within parentlist products status
total[]ModelEach itemExpand List Products — response body — total item

Referenced models: Create Product — response body, List Products — response body — total item

Create Product — response body
FieldTypePresenceDescription and constraints
$objectRoot
_idstringRequired within parentThe unique identifier for the product.
automaticTaxCategoryIdstringOptionalTax category ID for Automatic taxes calculation.
availableInStorebooleanOptionalIndicates whether the product is available in-store.
collectionIdsarrayOptionalAn array of category Ids for the product
collectionIds[]stringEach item
createdAtstringRequired within parentThe creation timestamp of the product.
Format: date-time
descriptionstringOptionalproduct description
imagestringOptionalThe URL for the product image.
isTaxesEnabledbooleanOptionalThe field indicates whether taxes are enabled for the product or not.
Default: false
labelJSONOptionalThe Product label details
label (allOf 1)ModelAll variants applyExpand Create Product — response body — label end Date, start Date, title
locationIdstringRequired within parentThe unique identifier for the location.
namestringRequired within parentThe name of the product.
productTypestringRequired within parentThe type of the product (e.g., PHYSICAL).
slugstringOptionalThe slug of the product by which the product will be navigated
statementDescriptorstringOptionalThe statement descriptor for the product.
taxesarrayOptionalAn array of ids of Taxes attached to the Product. If the expand query includes tax, the taxes will be of type `ProductTaxDto`. Please refer to the `ProductTaxDto` for additional details.
taxes[]stringEach item
updatedAtstringRequired within parentThe last update timestamp of the product.
Format: date-time
variantsarrayOptionalAn array of variants for the product.
variants[]ModelEach itemExpand Create Product — response body — variants item

Referenced models: Create Product — response body — label end Date, start Date, title, Create Product — response body — variants item

List Products — response body — total item
FieldTypePresenceDescription and constraints
$objectRoot
totalJSONRequired within parent
total (anyOf 1)numberAlternativeTotal number of products
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Create Product — response body — label end Date, start Date, title
FieldTypePresenceDescription and constraints
$objectRoot
endDatestringOptionalStart date in YYYY-MM-DDTHH:mm:ssZ format
startDatestringOptionalStart date in YYYY-MM-DDTHH:mm:ssZ format
titlestringRequired within parentThe content for the product label.
Create Product — response body — variants item
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentA unique identifier for the variant.
namestringRequired within parentThe name of the variant.
optionsarrayRequired within parentAn array of options for the variant.
options[]ModelEach itemExpand Create Product — response body — variants item options item

Referenced models: Create Product — response body — variants item options item

Create Product — response body — variants item options item
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique identifier for the option.
namestringRequired within parentThe name of the option.

SDK function policy ID: gohighlevel.products_list_invoices. Catalog operation: products.list-invoices. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["products.readonly"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.