Saltar al contenido principal
Version: Pro7

FACTURA EXONERADA

POST 

/api/documents

Entendemos por exoneradas a aquellas operaciones que, no obstante encontrarse afectas en principio al impuesto, por mandato de la misma ley quedan liberadas del pago del tributo.

Ejemplo:

Request

Body

required

  1. JSON A ENVIAR
    serie_documentostringrequired
    Example: F001
    numero_documentostringrequired
    Example: #
    fecha_de_emisiondaterequired
    Example: 2018-10-09
    hora_de_emisiontimerequired
    Example: 10:11:11
    codigo_tipo_operacionstringrequired
    Example: 0101
    codigo_tipo_documentostringrequired
    Example: 01
    codigo_tipo_monedastringrequired
    Example: PEN
    fecha_de_vencimientodaterequired
    Example: 2018-08-30
    numero_orden_de_comprastring
    Example: 0045467898

    datos_del_cliente_o_receptor

    object

    required

    codigo_tipo_documento_identidadstring
    Example: 6
    numero_documentostring
    Example: 10414711225
    apellidos_y_nombres_o_razon_socialstring
    Example: EMPRESA XYZ S.A.
    codigo_paisstring
    Example: PE
    ubigeostring
    Example: 150101
    direccionstring
    Example: Av. 2 de Mayo
    correo_electronicostring
    Example: demo@gmail.com
    telefonostring
    Example: 427-1148

    totales

    object

    required

    total_exportacionfloat
    Example: 0
    total_operaciones_gravadasfloat
    Example: 0
    total_operaciones_inafectasfloat
    Example: 0
    total_operaciones_exoneradasfloat
    Example: 118
    total_operaciones_gratuitasfloat
    Example: 0
    total_igvfloat
    Example: 0
    total_impuestosfloat
    Example: 0
    total_valorfloat
    Example: 118
    total_ventafloat
    Example: 118

    items

    object[]

    required

  • Array [

  • codigo_internostring
    Example: P0121
    descripcionstring
    Example: Inca Kola 250 ml
    codigo_producto_sunatstring
    Example:
    codigo_producto_gslstring
    Example:
    unidad_de_medidastring
    Example: NIU
    cantidadint32
    Example: 2
    valor_unitariofloat
    Example: 59
    codigo_tipo_preciostring
    Example: 01
    precio_unitariofloat
    Example: 59
    codigo_tipo_afectacion_igvstring
    Example: 20
    total_base_igvfloat
    Example: 118
    porcentaje_igvfloat
    Example: 18
    total_igvfloat
    Example: 0
    total_impuestosfloat
    Example: 0
    total_valor_itemfloat
    Example: 118
    total_itemfloat
    Example: 118
  • ]

Responses

JSON RESPUESTA

Schema

    successboolean
    Example: true

    data

    object

    required

    numberstring
    Example: F001-30
    filenamestring
    Example: 20302019010-01-F001-30
    external_idstring
    Example: a40c1742-af1b-499e-aa4b-cd9638c97bd1
    state_type_idstring
    Example: 05
    state_type_descriptionstring
    Example: Aceptado
    number_to_letterstring
    Example: Ciento dieciocho con 00/100
    hashstring
    Example: CK+I8wCYZ5QG1VqwJzdYxCEPUIs=
    qrstring
    Example: iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAPO2pjwkM6EdAAAAAElFTkSuQmCC
    idinteger
    Example: 326

    links

    object

    xmlstring
    Example: https://demo.pro5.fastura.app/downloads/document/xml/a40c1742-af1b-499e-aa4b-cd9638c97bd1
    pdfstring
    Example: https://demo.pro5.fastura.app/downloads/document/pdf/a40c1742-af1b-499e-aa4b-cd9638c97bd1
    cdrstring
    Example: https://demo.pro5.fastura.app/downloads/document/cdr/a40c1742-af1b-499e-aa4b-cd9638c97bd1

    response

    object

    codestring
    Example: 0
    descriptionstring
    Example: La Factura numero F001-30, ha sido aceptada
    notesstring[]
    Example: []