Consultar Factura

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


URL

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

Parámetros

Existen dos formas de buscar facturas, la primera es por identificador y la segunda es por nombre (concatenar serie,'-' y número).

Consulta por ID

{
    "token":"string|hash",
    "p":integer,
    "filtro":"id"
}

Consulta por NOMBRE

{
    "token":"string|hash",
    "p":"string",
    "filtro":"name"
}

Solicitud exitosa

{success} Solicitud Aceptada

HTTP_CODE 200

Contenido

{
    "success": 1,
    "msg": "Datos Recibidos",
    "response": {
        "idFactura": integer,
        "fechaEmision": "datetime",
        "fechaEmitido": "datetime",
        "tipoOperacion": "string",
        "serie": "alphanumeric",
        "numero": integer,
        "montoTotalImpuestos": double,
        "totalVentaGravada": double,
        "totalVentaInafecta": double,
        "totalVentaExonerada": double,
        "totalVentaGratuita": double,
        "totalVentaExportacion": double,
        "sumatoriaIgv": double,
        "sumatoriaIsc": double,
        "sumatoriaOtrosTributos": double,
        "sumatoriaOtrosCargos": double,
        "totalDescuento": double,
        "importeTotal": double,
        "totalValorVenta": double,
        "totalPrecioVenta": double,
        "tipoMoneda": "string",
        "guiasRelacionada": [],
        "docRelacionada": [],
        "leyendas": "string",
        "emitido": integer,
        "baja": integer,
        "digestValue": "hash/sha256",
        "signatureValue": "hash|sha256",
        "xml": "hash|base64",
        "adicional": "{
            'fechaVencimiento':'date',
            'codigoSunatEstablecimiento':'alphanumeric'
        }",
        "idUsuario": integer,
        "idEmisor": "string",
        "idReceptor": "string",
        "idConstancia": integer
    }
}

Solicitud no exitosa

{danger} Solicitud no aceptada

HTTP_CODE 500

Contenido

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