Update a product
put
https://api.mercadoe.com/v1/products/{productId}
Updates the data of a product by entering the productId.
Request
Headers
X-ME-CORRELATION-ID
string
Internal client code to be identified in the webhook. It can be, for example, a product code in your ERP, an order number, etc.
Path Parameters
productId
int32
required
Body
application/json
description
string | null
Product short description
estimatedPrice
double | null
Estimated price of the product
status
boolean
The product statuses can be:
True = Active
False = Blocked
True = Active
False = Blocked
materialOrigin
string | null
Material origin:
1 = Domestic origin
2 = Foreign origin
1 = Domestic origin
2 = Foreign origin
isGeneric
boolean | null
Set this flag as follows:
True = Product without a code
False = Product with a code
True = Product without a code
False = Product with a code
complement
string | null
Description complement
note
string | null
Note
clientReferenceProductId
string | null
ME product code
measurementUnit
string
Measurement unit
clientGroupId
string | null
Product group code
clientGroupDescription
string | null
Product group description
isService
boolean
Flag to indicate if this item is a service (true/false)
True = Service item
False = Product item
True = Service item
False = Product item
materialType
string | null
Material application code (tax usage)
applicationType
string | null
Application Type
materialCategory
string | null
Material accounting code
clientProductId
string | null
ERP product code
productIdentificationCode
object
Fiscal classification code of the product: NCM (Nomenclatura Comum do Mercosul) for goods
or NBS (Nomenclatura Brasileira de Serviços) for services and intangible assets.
or NBS (Nomenclatura Brasileira de Serviços) for services and intangible assets.
businessOrganization
array of object | null
Business Organizations is a List consisting of the company code, description, delivery center code, delivery center description and entity type fields.
groups
array of object | null
Groups is a List consisting of the
clientGroupID, Description, IsVisiblePurchisingStucture and EnablesMasterRequest.ledgerAccountCode
string | null
Ledger Account Code
currency
string | null
Currency
stockUnit
string | null
Stock Unit
taxInformation
object
List with the taxes applied in the country.
estimatedDeadline
int32 | null
Estimated deadline of the product
purchasingGroup
string | null
Purchasing Group
tenantAttributes
array of object | null
A list of tenant(workflow) attributes, each consisting of a ‘Name’ and ‘Value’.
attributes
array of object | null
A list of specific attributes for this product.
Each attribute includes:Name, Type, Size, Description, IsRequired, IsVisibleToSupplier, Help, DefaultValue, Category
Each attribute includes:Name, Type, Size, Description, IsRequired, IsVisibleToSupplier, Help, DefaultValue, Category
isPermanentAsset
boolean | null
Indicates whether the product is classified as a permanent asset (fixed asset).
Responses
202
400
404
Accepted
Body
application/json
correlationId
string