REGISTRAR PRODUCTOS
POST/api/item
Para registrar productos debe enviar hacia:
Ejemplo:
- URL: https://empresa1.demo3pro6.ibu.pe/api/item
- TOKEN: HOHYgwd4atPalTxqi2IIspythpLAU7eP239oByfjk9VuveiOpfUTm4Yg0Szt
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
- JSON A ENVIAR
idnumber
Example:
null
item_type_idstring
Example:
01
internal_idstring
Example:
rrr
item_codestring
Example:
null
item_code_gs1string
Example:
null
descriptionstring
Example:
apk
namestring
Example:
apk
second_namestring
Example:
null
unit_type_idstring
Example:
NIU
currency_type_idstring
Example:
PEN
sale_unit_pricestring
Example:
500
purchase_unit_pricenumber
Example:
0
has_iscboolean
Example:
false
system_isc_type_idstring
Example:
null
percentage_iscnumber
Example:
0
suggested_pricenumber
Example:
0
sale_affectation_igv_type_idstring
Example:
10
purchase_affectation_igv_type_idstring
Example:
10
calculate_quantityboolean
Example:
false
stocknumber
Example:
0
stock_minnumber
Example:
0
has_igvboolean
Example:
true
has_perceptionboolean
Example:
false
item_unit_typesstring[]
Example:
[]
percentage_of_profitnumber
Example:
0
percentage_perceptionnumber
Example:
0
imagestring
Example:
null
image_urlstring
Example:
null
temp_pathstring
Example:
null
is_setboolean
Example:
false
account_idstring
Example:
null
category_idstring
Example:
null
brand_idstring
Example:
null
date_of_duestring
Example:
null
lot_codestring
Example:
null
lots_enabledboolean
Example:
false
lotsstring[]
Example:
[]
Body
required
- JSON A ENVIAR
idnumber
Example:
null
item_type_idstring
Example:
01
internal_idstring
Example:
rrr
item_codestring
Example:
null
item_code_gs1string
Example:
null
descriptionstring
Example:
apk
namestring
Example:
apk
second_namestring
Example:
null
unit_type_idstring
Example:
NIU
currency_type_idstring
Example:
PEN
sale_unit_pricestring
Example:
500
purchase_unit_pricenumber
Example:
0
has_iscboolean
Example:
false
system_isc_type_idstring
Example:
null
percentage_iscnumber
Example:
0
suggested_pricenumber
Example:
0
sale_affectation_igv_type_idstring
Example:
10
purchase_affectation_igv_type_idstring
Example:
10
calculate_quantityboolean
Example:
false
stocknumber
Example:
0
stock_minnumber
Example:
0
has_igvboolean
Example:
true
has_perceptionboolean
Example:
false
item_unit_typesstring[]
Example:
[]
percentage_of_profitnumber
Example:
0
percentage_perceptionnumber
Example:
0
imagestring
Example:
null
image_urlstring
Example:
null
temp_pathstring
Example:
null
is_setboolean
Example:
false
account_idstring
Example:
null
category_idstring
Example:
null
brand_idstring
Example:
null
date_of_duestring
Example:
null
lot_codestring
Example:
null
lots_enabledboolean
Example:
false
lotsstring[]
Example:
[]
Body
required
- JSON A ENVIAR
idnumber
Example:
null
item_type_idstring
Example:
01
internal_idstring
Example:
rrr
item_codestring
Example:
null
item_code_gs1string
Example:
null
descriptionstring
Example:
apk
namestring
Example:
apk
second_namestring
Example:
null
unit_type_idstring
Example:
NIU
currency_type_idstring
Example:
PEN
sale_unit_pricestring
Example:
500
purchase_unit_pricenumber
Example:
0
has_iscboolean
Example:
false
system_isc_type_idstring
Example:
null
percentage_iscnumber
Example:
0
suggested_pricenumber
Example:
0
sale_affectation_igv_type_idstring
Example:
10
purchase_affectation_igv_type_idstring
Example:
10
calculate_quantityboolean
Example:
false
stocknumber
Example:
0
stock_minnumber
Example:
0
has_igvboolean
Example:
true
has_perceptionboolean
Example:
false
item_unit_typesstring[]
Example:
[]
percentage_of_profitnumber
Example:
0
percentage_perceptionnumber
Example:
0
imagestring
Example:
null
image_urlstring
Example:
null
temp_pathstring
Example:
null
is_setboolean
Example:
false
account_idstring
Example:
null
category_idstring
Example:
null
brand_idstring
Example:
null
date_of_duestring
Example:
null
lot_codestring
Example:
null
lots_enabledboolean
Example:
false
lotsstring[]
Example:
[]
Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
msgstring
Example:
Producto registrado con éxito
data
object
idnumber
Example:
290
item_idnumber
Example:
290
namestring
Example:
apk
full_descriptionstring
Example:
j2 - apk
descriptionstring
Example:
apk
currency_type_idstring
Example:
PEN
internal_idstring
Example:
j2
item_codestring
Example:
null
barcodestring
Example:
null
currency_type_symbolstring
Example:
S/
sale_unit_pricestring
Example:
500.00
purchase_unit_pricenumber
Example:
0
unit_type_idstring
Example:
NIU
sale_affectation_igv_type_idstring
Example:
10
purchase_affectation_igv_type_idstring
Example:
10
calculate_quantityboolean
Example:
false
has_igvboolean
Example:
true
is_setboolean
Example:
false
aux_quantitynumber
Example:
1
{
"success": true,
"msg": "Producto registrado con éxito",
"data": {
"id": 290,
"item_id": 290,
"name": "apk",
"full_description": "j2 - apk",
"description": "apk",
"currency_type_id": "PEN",
"internal_id": "j2",
"item_code": null,
"barcode": null,
"currency_type_symbol": "S/",
"sale_unit_price": "500.00",
"purchase_unit_price": 0,
"unit_type_id": "NIU",
"sale_affectation_igv_type_id": "10",
"purchase_affectation_igv_type_id": "10",
"calculate_quantity": false,
"has_igv": true,
"is_set": false,
"aux_quantity": 1
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
msgstring
Example:
Producto registrado con éxito
data
object
idnumber
Example:
290
item_idnumber
Example:
290
namestring
Example:
apk
full_descriptionstring
Example:
j2 - apk
descriptionstring
Example:
apk
currency_type_idstring
Example:
PEN
internal_idstring
Example:
j2
item_codestring
Example:
null
barcodestring
Example:
null
currency_type_symbolstring
Example:
S/
sale_unit_pricestring
Example:
500.00
purchase_unit_pricenumber
Example:
0
unit_type_idstring
Example:
NIU
sale_affectation_igv_type_idstring
Example:
10
purchase_affectation_igv_type_idstring
Example:
10
calculate_quantityboolean
Example:
false
has_igvboolean
Example:
true
is_setboolean
Example:
false
aux_quantitynumber
Example:
1
<root>
<success>true</success>
<msg>Producto registrado con éxito</msg>
<data>
<id>290</id>
<item_id>290</item_id>
<name>apk</name>
<full_description>j2 - apk</full_description>
<description>apk</description>
<currency_type_id>PEN</currency_type_id>
<internal_id>j2</internal_id>
<item_code/>
<barcode/>
<currency_type_symbol>S/</currency_type_symbol>
<sale_unit_price>500.00</sale_unit_price>
<purchase_unit_price>0</purchase_unit_price>
<unit_type_id>NIU</unit_type_id>
<sale_affectation_igv_type_id>10</sale_affectation_igv_type_id>
<purchase_affectation_igv_type_id>10</purchase_affectation_igv_type_id>
<calculate_quantity>false</calculate_quantity>
<has_igv>true</has_igv>
<is_set>false</is_set>
<aux_quantity>1</aux_quantity>
</data>
</root>
Invalid input
Validation exception