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.
API to bulk edit products and their associated prices (max 30 entities)
POST https://services.leadconnectorhq.com/products/bulk-update/edit
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.
Body
altId
string
default:"6578278e879ad2646715ba9c"
required
Account Id or Agency Id
Posibles valores: ‘account’
Array of products to update. Note: The total count includes all prices within each product.
_id
string
default:"64a1b2c3d4e5f67890123456"
required
Product ID
name
string
default:"Premium Product"
Product name
image
string
default:"https://example.com/product-image.jpg"
Product image
Product availability in store
Array of price variants for the product
_id
string
default:"64a1b2c3d4e5f67890123456"
required
Price ID
name
string
default:"Standard Plan"
Price name
Allow out of stock purchases
SEO metadata for the product
slug
string
default:"premium-product"
Product URL slug
automaticTaxCategoryId
string
default:"64a1b2c3d4e5f67890123460"
Automatic tax category ID
Respuestas
201 - Products and prices updated successfully
message
string
default:"Products updated successfully"
required
Success message
status
boolean
default:"True"
required
Operation status
updatedCount
number
default:"5"
required
Number of products updated
{
"message": "Products updated successfully",
"status": true,
"updatedCount": 5
}
422 - Unprocessable Entity
Ejemplo
curl -X POST 'https://services.leadconnectorhq.com/products/bulk-update/edit' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28' \
-H 'Content-Type: application/json' \
-d '{
"altId": "6578278e879ad2646715ba9c",
"altType": "account",
"products": [
{
"_id": "64a1b2c3d4e5f67890123456",
"name": "Premium Product",
"description": "A high-quality premium product with excellent features and durability",
"image": "https://example.com/product-image.jpg",
"availableInStore": true,
"prices": [
{}
],
"collectionIds": [
"64a1b2c3d4e5f67890123458",
"64a1b2c3d4e5f67890123459"
],
"isLabelEnabled": true,
"isTaxesEnabled": true,
"slug": "premium-product",
"automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
"taxInclusive": false,
"taxes": [
{}
],
"medias": [
{}
],
"label": {}
}
]
}'