Skip to main content

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 update products (price, availability, collections, delete)
POST https://services.leadconnectorhq.com/products/bulk-update

Autorizacion

Authorization
string
required
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
altType
string
required
Posibles valores: ‘account’
type
string
default:"bulk-update-price"
required
Type of bulk update operation Posibles valores: ‘bulk-update-price’, ‘bulk-update-availability’, ‘bulk-update-product-collection’, ‘bulk-delete-products’, ‘bulk-update-currency’
productIds
string[]
required
Array of product IDs
filters
object
Filters to apply when selectAll is true
price
object
Price update configuration
compareAtPrice
object
Compare at price update configuration
availability
boolean
New availability status
collectionIds
string[]
Array of collection IDs
currency
string
default:"USD"
Currency code

Respuestas

status
boolean
default:"True"
required
Status of api action
message
string
default:"Successfully created"
Success message
{
  "status": true,
  "message": "Successfully created"
}
{}
{}
{}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/products/bulk-update' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "altId": "6578278e879ad2646715ba9c",
  "altType": "account",
  "type": "bulk-update-price",
  "productIds": [
    "5f8d0d55b54764421b7156c1"
  ],
  "availability": true,
  "collectionIds": [
    "string"
  ],
  "currency": "USD"
}'