Create or update products
curl --request POST \
--url https://api.lulacommerce.com/v1/products/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"products": [
{
"external_id": "<string>",
"name": "<string>",
"upc": "<string>",
"description": "<string>",
"brand": "<string>",
"category": "<string>",
"images": [
"<string>"
],
"allergens": [
"<string>"
],
"ingredients_statement": "<string>",
"nutrition": {
"serving_size": "1 bag (28 g)",
"calories": 123,
"total_fat_g": 123,
"saturated_fat_g": 123,
"sodium_mg": 123,
"total_carbohydrate_g": 123,
"total_sugars_g": 123,
"protein_g": 123
},
"components": [
"<string>"
]
}
]
}
'import requests
url = "https://api.lulacommerce.com/v1/products/batch"
payload = { "products": [
{
"external_id": "<string>",
"name": "<string>",
"upc": "<string>",
"description": "<string>",
"brand": "<string>",
"category": "<string>",
"images": ["<string>"],
"allergens": ["<string>"],
"ingredients_statement": "<string>",
"nutrition": {
"serving_size": "1 bag (28 g)",
"calories": 123,
"total_fat_g": 123,
"saturated_fat_g": 123,
"sodium_mg": 123,
"total_carbohydrate_g": 123,
"total_sugars_g": 123,
"protein_g": 123
},
"components": ["<string>"]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
products: [
{
external_id: '<string>',
name: '<string>',
upc: '<string>',
description: '<string>',
brand: '<string>',
category: '<string>',
images: ['<string>'],
allergens: ['<string>'],
ingredients_statement: '<string>',
nutrition: {
serving_size: '1 bag (28 g)',
calories: 123,
total_fat_g: 123,
saturated_fat_g: 123,
sodium_mg: 123,
total_carbohydrate_g: 123,
total_sugars_g: 123,
protein_g: 123
},
components: ['<string>']
}
]
})
};
fetch('https://api.lulacommerce.com/v1/products/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "job_01JA0A7C0D4E",
"type": "product_upsert",
"status": "queued",
"total": 123,
"processed": 123,
"failed": 123,
"errors": [
{
"index": 123,
"external_id": "<string>",
"message": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}Catalog
Create or update products
Create or update up to 5,000 products per request, matched on
external_id. Processed asynchronously; returns a job you can poll or
receive as a job.completed webhook. Products not included in the
request are never removed.
POST
/
products
/
batch
Create or update products
curl --request POST \
--url https://api.lulacommerce.com/v1/products/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"products": [
{
"external_id": "<string>",
"name": "<string>",
"upc": "<string>",
"description": "<string>",
"brand": "<string>",
"category": "<string>",
"images": [
"<string>"
],
"allergens": [
"<string>"
],
"ingredients_statement": "<string>",
"nutrition": {
"serving_size": "1 bag (28 g)",
"calories": 123,
"total_fat_g": 123,
"saturated_fat_g": 123,
"sodium_mg": 123,
"total_carbohydrate_g": 123,
"total_sugars_g": 123,
"protein_g": 123
},
"components": [
"<string>"
]
}
]
}
'import requests
url = "https://api.lulacommerce.com/v1/products/batch"
payload = { "products": [
{
"external_id": "<string>",
"name": "<string>",
"upc": "<string>",
"description": "<string>",
"brand": "<string>",
"category": "<string>",
"images": ["<string>"],
"allergens": ["<string>"],
"ingredients_statement": "<string>",
"nutrition": {
"serving_size": "1 bag (28 g)",
"calories": 123,
"total_fat_g": 123,
"saturated_fat_g": 123,
"sodium_mg": 123,
"total_carbohydrate_g": 123,
"total_sugars_g": 123,
"protein_g": 123
},
"components": ["<string>"]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
products: [
{
external_id: '<string>',
name: '<string>',
upc: '<string>',
description: '<string>',
brand: '<string>',
category: '<string>',
images: ['<string>'],
allergens: ['<string>'],
ingredients_statement: '<string>',
nutrition: {
serving_size: '1 bag (28 g)',
calories: 123,
total_fat_g: 123,
saturated_fat_g: 123,
sodium_mg: 123,
total_carbohydrate_g: 123,
total_sugars_g: 123,
protein_g: 123
},
components: ['<string>']
}
]
})
};
fetch('https://api.lulacommerce.com/v1/products/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "job_01JA0A7C0D4E",
"type": "product_upsert",
"status": "queued",
"total": 123,
"processed": 123,
"failed": 123,
"errors": [
{
"index": 123,
"external_id": "<string>",
"message": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}Authorizations
Headers
Response
202 - application/json
Job accepted.

