Criar produto
Unidade de medida: use `unit_of_measurement_id` (UUID) no topo do payload. Para compatibilidade, `br_data.unit_of_measure` (depreciado) ainda aceita o mesmo UUID ou um código de unidade (ex.: UN, CX) resolvido pelo país do tenant. Se ambos forem enviados, devem referir-se à mesma unidade; em conflito, a API retorna erro de validação. Veja os exemplos do corpo da requisição.
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.biterp.ai/products" \ -H "Content-Type: application/json" \ -d '{ "reference_code": "EXT-SKU-1001", "name": "Notebook", "type": "goods", "sale_price": "3499.990000", "unit_of_measurement_id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", "br_data": { "ncm_code": "84713012", "origin": "0" } }'{
"id": "string",
"reference_code": "string",
"name": "string",
"description": "string",
"tags": [
"string"
],
"type": "goods",
"sale_price": "99.900000",
"image_url": "string",
"is_blocked": true,
"metadata": {},
"unit_of_measurement": {
"id": "string",
"code": "string",
"symbol": "string"
},
"br_data": {
"ncm_code": "string",
"cest_code": "string",
"origin": "string",
"extipi": "string",
"ibs_cbs_cst": "string",
"ibs_cbs_classification": "string",
"ibs_cbs_operation_indicator_code": "string",
"ibs_cbs_is_personal_use": true
},
"us_data": {
"hts_code": "string",
"schedule_b_code": "string",
"eccn_code": "string",
"tax_code": "string",
"sales_tax_category": "string",
"country_of_origin": "string",
"upc_code": "string"
},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}{
"statusCode": 404,
"message": "Customer not found",
"error": "Not Found",
"code": "CUSTOMER_NOT_FOUND"
}{
"statusCode": 404,
"message": "Customer not found",
"error": "Not Found",
"code": "CUSTOMER_NOT_FOUND"
}{
"statusCode": 404,
"message": "Customer not found",
"error": "Not Found",
"code": "CUSTOMER_NOT_FOUND"
}{
"statusCode": 404,
"message": "Customer not found",
"error": "Not Found",
"code": "CUSTOMER_NOT_FOUND"
}
