📄 MIPYME Documents
Creates a new product
POST
URL del endpoint
https://api-billing.koywe.com/V1/products
Adds a new product with the provided details.
Parámetros
Sin parámetros.
Cuerpo de la solicitud — campos
| Campo | Tipo | Obligatoriedad | Descripción |
|---|---|---|---|
name | string | Siempre obligatorio | — |
invoicing_details | string | Opcional | — |
additional_details | string | Opcional | — |
model | string | Opcional | — |
brand | string | Opcional | — |
status | integer | Siempre obligatorio | — |
sku | string | Opcional | — |
barcode | string | Opcional | — |
measure_unit | string | Opcional | — |
type | integer | Opcional | — |
embedded_quantity_barcode | integer | Opcional | — |
embedded_quantity_barcode_decimals | integer | Opcional | — |
additional_data_1 | string | Opcional | — |
additional_data_2 | string | Opcional | — |
additional_data_3 | string | Opcional | — |
favorite | integer | Opcional | — |
product_category_id | integer | Siempre obligatorio | — |
cost | object | Siempre obligatorio | — |
cost.currency_id | integer | Opcional | — |
cost.value | number | Opcional | — |
price | array<object> | Siempre obligatorio | — |
price[].price_list_id | integer | Opcional | — |
price[].unit_net | number | Opcional | — |
price[].unit_tax | number | Opcional | — |
price[].unit_total | number | Opcional | — |
price[].currency_id | integer | Opcional | — |
price[].sales_commission_percentage | number | Opcional | — |
price[].taxes | array<object> | Opcional | — |
price[].taxes[].tax_type_id | string | Opcional | — |
price[].taxes[].tax_percentage | number | Opcional | — |
price[].taxes[].tax_amount | number | Opcional | — |
inventories | object | Opcional | — |
inventories.total_available | number | Opcional | — |
inventories.total_reserved | number | Opcional | — |
inventories.details | array<object> | Opcional | — |
inventories.details[].product_location_id | string | Opcional | — |
inventories.details[].available_quantity | number | Opcional | — |
inventories.details[].reserved_quantity | number | Opcional | — |
Ejemplo JSON del cuerpo
{
"name": "string",
"invoicing_details": "string",
"additional_details": "string",
"model": "string",
"brand": "string",
"status": 0,
"sku": "string",
"barcode": "string",
"measure_unit": "string",
"type": 0,
"embedded_quantity_barcode": 0,
"embedded_quantity_barcode_decimals": 0,
"additional_data_1": "string",
"additional_data_2": "string",
"additional_data_3": "string",
"favorite": 0,
"product_category_id": 0,
"cost": {
"currency_id": 0,
"value": 0
},
"price": [
{
"price_list_id": 0,
"unit_net": 0,
"unit_tax": 0,
"unit_total": 0,
"currency_id": 0,
"sales_commission_percentage": 0,
"taxes": [
{
"tax_type_id": "...",
"tax_percentage": "...",
"tax_amount": "..."
}
]
}
],
"inventories": {
"total_available": 0,
"total_reserved": 0,
"details": [
{
"product_location_id": "string",
"available_quantity": 0,
"reserved_quantity": 0
}
]
}
}
Respuestas
201
Product created successfully.