Create a product
post
https://api.mercadoe.com/v1/products
Creates a new product by providing the measurement unit, description, material category, and other details.
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.
Body
application/json
clientReferenceProductId
string
required
ME product code
clientProductId
string
required
ERP product code
description
string
required
Product short description
complement
string | null
Description complement
measurementUnit
string
required
Measurement unit
note
string | null
Note
estimatedPrice
double
required
Estimated price of the product
clientGroupId
string
required
Product group code
clientGroupDescription
string | null
Product group description
isService
boolean
required
Flag to indicate if this item is a service (true/false)
True = Service item
False = Product item
True = Service item
False = Product item
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
status
boolean
required
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
materialType
string | null
Material application code (tax usage)
applicationType
string | null
Application Type
materialCategory
string | null
Material accounting 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
taxInformation
object
List with the taxes applied in the country.
stockUnit
string | null
Stock Unit
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).
unitConversions
array of object | null
List of unit conversions for the product.
Responses
202
400
404
Accepted
Body
application/json
correlationId
string