POST /v1/documents.json
{
"codeSii": 39,
"officeId": "1",
"emissionDate": 1462527931,
"details": [
{
"netUnitValue": 10916,
"quantity": 1,
"comment": "el nombre del producto que voy a vender",
"taxes": [
{
"code": 14,
"percentage": 19
}
]
}
]
}
POST /v1/returns.json
{
"codeSii": 61,
"officeId": 1,
"expirationDate": 1565096212,
"emissionDate": 1565096212,
"referenceDocumentId": 1031,
"motive": "Devolución de productos",
"priceAdjustment": 0,
"editTexts": 0,
"type": 1,
"client": {
"code": "1-9",
"city": "Puerto Varas",
"municipality": "comuna",
"activity": "giro",
"address": "direccion"
},
"details": [
{
"documentDetailId": 1405,
"quantity": 1,
"unitValue": 0
}
]
}