Saltar al contenido principal
Version: ProX

GENERAR COMPROBANTE DE RETENCIÓN

POST 

/api/retentions

Es una constancia de que alguna persona moral te retuvo algún tipo de impuesto, (relativo al Impuesto Sobre la Renta), y sirve para demostrar que dicho impuesto te fue retenido, y presentarlo a la autoridad fiscal en caso que te sea requerido.

Para generar un comprobante de retención puede usar el siguiente servicio, necesitará la url, el token, y los datos del documento.

Ejemplo:

Request

Body

required

  1. JSON A ENVIAR
    serie_documentostring
    Example: R001
    numero_documentostring
    Example: #
    fecha_de_emisiondate
    Example: 2018-10-09
    hora_de_emisiontime
    Example: 10:11:11
    codigo_tipo_documentostring
    Example: 20

    datos_del_emisor

    object

    codigo_paisstring
    Example: PE
    ubigeostring
    Example: 150101
    direccionstring
    Example: Av. 2 de Mayo
    correo_electronicostring
    Example: demo@gmail.com
    telefonostring
    Example: 427-1148
    codigo_del_domicilio_fiscalstring
    Example: 0000

    datos_del_proveedor

    object

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

    totales

    object

    total_retenidofloat
    Example: 30
    total_pagadofloat
    Example: 1000

    documentos

    object[]

  • Array [

  • codigo_tipo_documentostring
    Example: 01
    serie_documentostring
    Example: F001
    numero_documentostring
    Example: 3
    fecha_de_emisiondate
    Example: 2018-10-09
    codigo_tipo_monedastring
    Example: PEN

    pagos

    object[]

  • Array [

  • fecha_de_pagodate
    Example: 2018-10-09
    total_pagofloat
    Example: 200
    codigo_tipo_monedastring
    Example: PEN
  • ]

  • tipo_de_cambio

    object

    codigo_tipo_moneda_referenciastring
    Example: PEN
    codigo_tipo_moneda_objetivostring
    Example: PEN
    factorfloat
    Example: 1
    fecha_tipo_de_cambiodate
    Example: 2018-10-09
    fecha_de_retenciondate
    Example: 2018-10-09
    total_documentofloat
    Example: 400
    total_retenidofloat
    Example: 12
    total_a_pagarfloat
    Example: 412
    total_pagadofloat
    Example: 412
  • ]

Responses

JSON RESPUESTA

Schema

    successboolean
    Example: true

    data

    object

    numberstring
    Example: R001-3
    filenamestring
    Example: 11111111111-20-R001-3
    external_idstring
    Example: 9d997b38-92a6-42f2-b827-4b73ec5ca1a3

    links

    object

    xmluri
    Example: https://empresa1.demo3pro6.ibu.pe/downloads/retention/xml/9d997b38-92a6-42f2-b827-4b73ec5ca1a3
    pdfuri
    Example: https://empresa1.demo3pro6.ibu.pe/downloads/retention/pdf/9d997b38-92a6-42f2-b827-4b73ec5ca1a3
    cdruri
    Example: https://empresa1.demo3pro6.ibu.pe/downloads/retention/cdr/9d997b38-92a6-42f2-b827-4b73ec5ca1a3

    response

    object

    codestring
    Example: 0
    descriptionstring
    Example: El Comprobante numero R001-3 ha sido aceptado
    notesstring[]