Visit CSC-Chile Consultores Ltda.
Obtiene todas las lineas de detalles de un documento
GET dtem/emision/Documento/:tipo/:folio/Detalle
curl –header “Authentication: Bearer <your_access_token>” “https://erp.csc-chile.com/dtem/emision/Boleta/39/1234/Detalle"
Ejemplo de respuesta;
[ { "NroLinDet": 1, "NmbItem": "Nombre 2", "DscItem": "descrip 2", "QtyItem": 2, "PrcItem": 222 }, { "NroLinDet": 2, "NmbItem": "Nombre 3", "DscItem": "descrip 3", "QtyItem": 3, "PrcItem": 333 } ]
Obtiene una Linea de detalle
GET dtem/emision/Boleta/:tipo/:folio/Detalle/:numlin
curl –header “Authentication: Bearer <your_access_token>” “https://erp.csc-chile.com/dtem/emision/Boleta/39/1234/Detalle/2"
{ "NroLinDet": 2, "NmbItem": "Nombre 3", "DscItem": "descrip 3", "QtyItem": 3, "PrcItem": 333 }
Create una nueva Linea de Detalle
POST dtem/emision/Boleta/:tipo/:folio/Detalle
curl --request POST -H "Content-Type: application/json" \ -H "Authorization: Bearer <your_access_token>" \ --data '{"NmbItem": "Nombre 3","DscItem": "descrip 3","QtyItem": 3, "PrcItem": 333, "MontoItem": 30}' \ "https://erp.csc-chile.com/dtem/emision/Boleta/39/1234567/Detalle"
Modifica una Linea de Detalle
PUT dtem/emision/Boleta/:tipo/:folio/Detalle/:numlin
curl --request PUT -H "Content-Type: application/json" \ -H "Authorization: Bearer <your_access_token>" \ --data '{"NmbItem": "Nombre 3","DscItem": "descrip 3","QtyItem": 3, "PrcItem": 333, "MontoItem": 30}' \ "https://erp.csc-chile.com/dtem/emision/Boleta/39/1234567/Detalle/2"
Elimina una Linea de detalle de un documento
DELETE dtem/emision/Boleta/:tipo/:folio/Detalle/:numlin
curl --request DELETE -H "Authorization: Bearer <your_access_token>" \ "https://erp.csc-chile.com/dtem/emision/Boleta/39/1234567/Detalle/2"
Updated on 29 Dec 2018