{info} Usar el token obtenido en la autenticación.
METHOD | PATH | HEADERS |
---|---|---|
POST | /api/facturas/emitir |
Content-Type:application/json |
NAME | TYPE | DESCRIPTION | CONDITION |
---|---|---|---|
token | STRING |
Content-Type:application/json | |
receptor.tipo | INTEGER |
Content-Type:application/json | |
receptor.razonSocial | STRING |
Content-Type:application/json | |
receptor.nro | STRING |
Content-Type:application/json | |
numero | INTEGER |
Content-Type:application/json | |
serie | STRING |
Content-Type:application/json | |
tipoMoneda | STRING |
Content-Type:application/json | |
totalVentaGravada | DECIMAL |
Content-Type:application/json | |
totalVentaExonerada | DECIMAL |
Content-Type:application/json | |
totalVentaInafecta | DECIMAL |
Content-Type:application/json | |
sumatoriaIgv | DECIMAL |
Content-Type:application/json | |
importeTotal | DECIMAL |
Content-Type:application/json | |
tipoOperacion | STRING |
Content-Type:application/json | |
montoTotalImpuestos | DECIMAL |
Content-Type:application/json | |
items | /api/facturas/emitir |
Content-Type:application/json | |
POST | /api/facturas/emitir |
Content-Type:application/json | |
POST | /api/facturas/emitir |
Content-Type:application/json |
{
"token": "string|hash",
"receptor": {
"tipo": integer,
"razonSocial": "string",
"nro": "string"
},
"numero": integer,
"serie": "string",
"tipoMoneda": "string",
"totalVentaGravada": "double",
"totalVentaExonerada": "double",
"totalVentaInafecta": "double",
"sumatoriaIgv": "double",
"importeTotal": "double",
"tipoOperacion": "string",
"montoTotalImpuestos": double,
"items": [{
"unidadMedidaCantidad": "string",
"cantidad": integer,
"descripcion": "string",
"valorUnitario": "double",
"precioVentaUnitario": "double",
"tipoPrecioVentaUnitario": "string",
"montoTotalImpuestosItem": "double",
"baseAfectacionIgv": "double",
"porcentajeImpuesto": integer,
"codigoProducto": "string",
"montoAfectacionIgv": "double",
"codigoTributo": "string",
"codigoProductoSunat": "string",
"valorVenta": "double",
"tipoAfectacionIgv": "integer"
}]
}
{success} Solicitud Aceptada
HTTP_CODE 200
{
"success": 1,
"invoice": "string|hashed"
}
{danger} Solicitud no aceptada
HTTP_CODE 500
{
"success": 0,
"msg": "string|description"
}