Skip to main content
The “Update Product by ID” API allows modifying information for a specific product using its unique identifier. Use this endpoint to update details for a single product based on the provided product ID.

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Path parameters

string
default:"6578278e879ad2646715ba9c"
required
ID or the slug of the product that needs to be returned

Body

string
default:"Awesome Product"
required
The name of the product.
string
default:"3SwdhCsvxI8Au3KsPJt6"
required
The unique identifier for the account.
string
default:"Product description goes here."
A brief description of the product.
string
required
Posibles valores: ‘DIGITAL’, ‘PHYSICAL’, ‘SERVICE’, ‘PHYSICAL/DIGITAL’
string
The URL for the product image.
string
default:"abcde"
The statement descriptor for the product.
boolean
default:"True"
Indicates whether the product is available in-store.
object[]
An array of medias for the product.
object[]
An array of variants for the product.
string[]
An array of category Ids for the product
boolean
default:"True"
Are there any taxes attached to the product. If this is true, taxes array cannot be empty.
string[]
List of ids of Taxes attached to the Product. If taxes are passed, isTaxesEnabled should be true.
string
default:"65d71377c326ea78e1c47df5"
Tax category ID for Automatic taxes calculation.
boolean
default:"True"
Is the product label enabled. If this is true, label object cannot be empty.
object
Details for Product Label
string
default:"awesome-product"
The slug using which the product navigation will be handled
object
SEO data for the product that will be displayed in the preview
boolean
default:"True"
Whether the taxes should be included in the purchase price
string[]
The prices of the product

Respuestas

string
default:"655b33a82209e60b6adb87a5"
required
The unique identifier for the product.
string
default:"This is a really awesome product"
product description
object[]
An array of variants for the product.
string
default:"3SwdhCsvxI8Au3KsPJt6"
required
The unique identifier for the account.
string
default:"Awesome Product"
required
The name of the product.
string
default:"PHYSICAL"
required
The type of the product (e.g., PHYSICAL).
boolean
default:"True"
Indicates whether the product is available in-store.
string
default:"2023-11-20T10:23:36.515Z"
required
The creation timestamp of the product.
string
default:"2024-01-23T09:57:04.846Z"
required
The last update timestamp of the product.
string
default:"abcde"
The statement descriptor for the product.
string
The URL for the product image.
string[]
An array of category Ids for the product
boolean
default:"True"
The field indicates whether taxes are enabled for the product or not.
string[]
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.
string
default:"65d71377c326ea78e1c47df5"
Tax category ID for Automatic taxes calculation.
object
The Product label details
string
default:"washing-machine"
The slug of the product by which the product will be navigated

Ejemplo