Emitir Factura

{info} Usar el token obtenido en la autenticación.


URL

METHOD PATH HEADERS
POST /api/facturas/emitir Content-Type:application/json

Parámetros

NAME TYPE DESCRIPTION CONDITION
token STRING Content-Type:application/json required
receptor.tipo INTEGER Content-Type:application/json required
receptor.razonSocial STRING Content-Type:application/json required
receptor.nro STRING Content-Type:application/json required
numero INTEGER Content-Type:application/json optional
serie STRING Content-Type:application/json required
tipoMoneda STRING Content-Type:application/json required
totalVentaGravada DECIMAL Content-Type:application/json required
totalVentaExonerada DECIMAL Content-Type:application/json required
totalVentaInafecta DECIMAL Content-Type:application/json required
sumatoriaIgv DECIMAL Content-Type:application/json required
importeTotal DECIMAL Content-Type:application/json required
tipoOperacion STRING Content-Type:application/json required
montoTotalImpuestos DECIMAL Content-Type:application/json required
items /api/facturas/emitir Content-Type:application/json required
POST /api/facturas/emitir Content-Type:application/json required
POST /api/facturas/emitir Content-Type:application/json required
{   
    "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"
    }]  
}

Solicitud exitosa

{success} Solicitud Aceptada

HTTP_CODE 200

Contenido

{
    "success": 1,
    "invoice": "string|hashed"
}

Solicitud no exitosa

{danger} Solicitud no aceptada

HTTP_CODE 500

Contenido

{
    "success": 0,
    "msg": "string|description"
}