Update Product
Update product details including price, description, images, and metadata. Changes to UPC code will trigger a new eligibility check.Authentication
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Product ID |
Request Body
Parameters
All parameters are optional. Only include fields you want to update.| Parameter | Type | Description |
|---|---|---|
name | string | Product name (max 255 chars) |
tagline | string | Short description (max 255 chars) |
description | string | Full product description |
price_cents | integer | Price in cents |
currency | string | ISO 4217 currency code |
merchant_product_id | string | Your reference ID |
upc_code_or_gtin | string | UPC or GTIN (triggers eligibility re-check) |
status | enum | active, inactive, or archived |
images | array | Array of image URLs (replaces all existing images) |
metadata | object | Custom key-value pairs (merged with existing) |
Request
Response
Returns the updated product object:Examples
Update Price
Update Description
Mark as Inactive
With JavaScript
Use Cases
Price Updates
Inventory Management
Sync from E-commerce Platform
Bulk Price Update
Re-check Eligibility
Metadata Merging
Metadata updates are merged with existing values, not replaced:null:
Webhooks
Product updates trigger the following webhook event:Errors
| Status Code | Error Code | Description |
|---|---|---|
| 400 | invalid_request | Invalid parameters |
| 401 | unauthorized | Invalid or missing API key |
| 404 | not_found | Product not found |
| 422 | validation_error | Field validation failed |
| 429 | rate_limit_exceeded | Too many requests |
Best Practices
Partial Updates
Only send fields that changed to minimize payload size
Validate Before Update
Fetch product first to ensure it exists
Track Changes
Use metadata to store update history
Handle Webhooks
Listen for
product.updated eventsRelated Endpoints
- Create Product - POST /v2/products
- Get Product - GET /v2/products/
- List Products - GET /v2/products
- Check Eligibility - POST /v2/products/check-eligibility
