Documentation Index Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt
Use this file to discover all available pages before exploring further.
The “List Products” API allows to retrieve a paginated list of products. Customize your results by filtering products based on name or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve product information.
GET https://services.leadconnectorhq.com/products/
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion .
Version
string
default: "2021-07-28"
required
Version de la API.
Query parameters
The maximum number of items to be included in a single page of results
The starting index of the page, indicating the position from which the results should be retrieved.
locationId
string
default: "3SwdhCu3svxI8AKsPJt6"
required
LocationId is the id of the account
search
string
default: "Awesome product"
The name of the product for searching.
Filter by product category Ids. Supports comma separated values
The slug value of the collection by which the collection would be searched
Name of an entity whose data has to be fetched along with product. Possible entities are tax, stripe and paypal. If not mentioned, only ID will be returned in case of taxes
List of product ids to be fetched.
storeId
string
default: "3SwdhCu3svxI8AKsPJt6"
fetch and project products based on the storeId
Separate products by which are included in the store and which are not
If the product is included in the online store
The order of sort which should be applied for the date
Respuestas
200 - Successful response
An array of products _id
string
default: "655b33a82209e60b6adb87a5"
required
The unique identifier for the product.
description
string
default: "This is a really awesome product"
product description
An array of variants for the product. id
string
default: "38s63qmxfr4"
required
A unique identifier for the variant.
name
string
default: "Size"
required
The name of the variant.
An array of options for the variant. id
string
default: "h4z7u0im2q8"
required
The unique identifier for the option.
name
string
default: "XL"
required
The name of the option.
locationId
string
default: "3SwdhCsvxI8Au3KsPJt6"
required
The unique identifier for the account.
name
string
default: "Awesome Product"
required
The name of the product.
productType
string
default: "PHYSICAL"
required
The type of the product (e.g., PHYSICAL).
Indicates whether the product is available in-store.
createdAt
string
default: "2023-11-20T10:23:36.515Z"
required
The creation timestamp of the product.
updatedAt
string
default: "2024-01-23T09:57:04.846Z"
required
The last update timestamp of the product.
The statement descriptor for the product.
The URL for the product image.
An array of category Ids for the product
The field indicates whether taxes are enabled for the product or not.
An 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.
automaticTaxCategoryId
string
default: "65d71377c326ea78e1c47df5"
Tax category ID for Automatic taxes calculation.
The Product label details
slug
string
default: "washing-machine"
The slug of the product by which the product will be navigated
list products status total
number
default: "20"
required
Total number of products
{
"products" : [
{
"_id" : "655b33a82209e60b6adb87a5" ,
"description" : "This is a really awesome product" ,
"variants" : [
{}
],
"locationId" : "3SwdhCsvxI8Au3KsPJt6" ,
"name" : "Awesome Product" ,
"productType" : "PHYSICAL" ,
"availableInStore" : true ,
"createdAt" : "2023-11-20T10:23:36.515Z" ,
"updatedAt" : "2024-01-23T09:57:04.846Z" ,
"statementDescriptor" : "abcde" ,
"image" : "https://storage.googleapis.com/ghl-test/3SwdhCsvxI8Au3KsPJt6/media/65af8d5df88bdb4b1022ee90.png" ,
"collectionIds" : [
"65d71377c326ea78e1c47df5" ,
"65d71377c326ea78e1c47d34"
],
"isTaxesEnabled" : true ,
"taxes" : [
"654492a4e6bef380114de15a"
],
"automaticTaxCategoryId" : "65d71377c326ea78e1c47df5" ,
"slug" : "washing-machine"
}
],
"total" : [
{
"total" : 20
}
]
}
422 - Unprocessable Entity
Ejemplo
curl -X GET 'https://services.leadconnectorhq.com/products/' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28'