{
  "info": {
    "name": "tefacturo API (Sandbox/Prod)",
    "description": "Colección para probar tefacturo API (facturación electrónica SUNAT). Configura variables: baseUrl, token, ruc, serie, numero.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://jarvis.tefacturo.pe"
    },
    {
      "key": "token",
      "value": ""
    },
    {
      "key": "usuario",
      "value": ""
    },
    {
      "key": "clave",
      "value": ""
    },
    {
      "key": "ruc",
      "value": "20133795724"
    },
    {
      "key": "serie",
      "value": "FFA6"
    },
    {
      "key": "numero",
      "value": "1"
    },
    {
      "key": "tipoComprobante",
      "value": "01"
    }
  ],
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Generate token",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "try {",
                  "  const j = pm.response.json();",
                  "  if (j && j.c2uToken) {",
                  "    pm.collectionVariables.set(\"token\", j.c2uToken);",
                  "    console.log(\"Token guardado en {{token}}\");",
                  "  }",
                  "} catch (e) {",
                  "  console.log(\"No se pudo leer c2uToken:\", e);",
                  "}"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/tokenapi/secure/v2/login/token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tokenapi",
                "secure",
                "v2",
                "login",
                "token"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"aplicacion\": { \"codigo\": \"1\" },\n  \"clave\": \"{{clave}}\",\n  \"mail\": \"{{usuario}}\",\n  \"ruc\": \"{{ruc}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Genera JWT (c2uToken). La colección lo guarda automáticamente en la variable {{token}}."
          }
        }
      ]
    },
    {
      "name": "Emitir",
      "item": [
        {
          "name": "Factura gravada",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/factura-api/invoice2u/integracion/factura/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "factura-api",
                "invoice2u",
                "integracion",
                "factura",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFA6\",\n    \"numero\": 1,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"DEPOSITO_CUENTA\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": \"observaciones\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Factura crédito",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/factura-api/invoice2u/integracion/factura/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "factura-api",
                "invoice2u",
                "integracion",
                "factura",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFA6\",\n    \"numero\": 4,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-15\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CREDITO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"condicionPago\": \"CREDITO\",\n    \"ordencompra\": null,\n    \"glosa\": \"observaciones\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"cuotas\": [\n    {\n      \"monto\": \"118\",\n      \"fecha\": \"2025-04-15\",\n      \"numero\": \"001\",\n      \"moneda\": \"PEN\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Factura exonerada",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/factura-api/invoice2u/integracion/factura/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "factura-api",
                "invoice2u",
                "integracion",
                "factura",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFA6\",\n    \"numero\": 10,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"DEPOSITO_CUENTA\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": \"Venta gravada básica\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO EXONERADO A\",\n      \"tipoAfectacion\": \"EXONERADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Factura gratuita",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/factura-api/invoice2u/integracion/factura/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "factura-api",
                "invoice2u",
                "integracion",
                "factura",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"anticipos\": [],\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFA6\",\n    \"numero\": 1,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2026-01-28\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": \"Venta gratuita prueba\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRATUITO A\",\n      \"tipoAfectacion\": \"EXONERADO_TRANSFERENCIA_GRATUITA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"tipoDocumentoIdentidad\": \"RUC\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"nombreComercial\": \"ALFA PLUS S.A.C.\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"manriquejorgew@gmail.com\",\n    \"correoCopia\": \"\",\n    \"domicilioFiscal\": {\n      \"direccion\": \" AV. 5 ESQUINAS NRO. 350 - UCAYALI CORONEL PORTILLO CALLERIA\",\n      \"ubigeo\": \"250101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Boleta gravada",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/boleta-api/invoice2u/integracion/boleta/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "boleta-api",
                "invoice2u",
                "integracion",
                "boleta",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"BBV5\",\n    \"numero\": 4,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": null\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"cliente.final@gmail.com\",\n    \"correoCopia\": null,\n    \"domicilioFiscal\": {\n      \"direccion\": \"JR. LOS OLIVOS 456 - LIMA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"JUAN PEREZ\",\n    \"nombreLegal\": \"JUAN PEREZ GARCIA\",\n    \"numeroDocumentoIdentidad\": \"12345678\",\n    \"tipoDocumentoIdentidad\": \"DOC_NACIONAL_DE_IDENTIDAD\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Boleta inafecta",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/boleta-api/invoice2u/integracion/boleta/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "boleta-api",
                "invoice2u",
                "integracion",
                "boleta",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"BBV5\",\n    \"numero\": 2,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2026-05-15\",\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"TRANSFERENCIA_FONDOS\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": null\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO INAFECTO A\",\n      \"tipoAfectacion\": \"INAFECTO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"cliente.final@gmail.com\",\n    \"correoCopia\": null,\n    \"domicilioFiscal\": {\n      \"direccion\": \"JR. LOS OLIVOS 456 - LIMA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"ORELLANA VILA MAYELI FLOR\",\n    \"nombreLegal\": \"ORELLANA VILA MAYELI FLOR\",\n    \"numeroDocumentoIdentidad\": \"75452299\",\n    \"tipoDocumentoIdentidad\": \"DOC_NACIONAL_DE_IDENTIDAD\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Boleta gratuita",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/boleta-api/invoice2u/integracion/boleta/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "boleta-api",
                "invoice2u",
                "integracion",
                "boleta",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"BBV5\",\n    \"numero\": 1,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2026-01-28\",\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": null\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRATUITO A\",\n      \"tipoAfectacion\": \"EXONERADO_TRANSFERENCIA_GRATUITA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"tipoDocumentoIdentidad\": \"RUC\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"nombreComercial\": \"ALFA PLUS S.A.C.\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"vendedor\": \"Pruebas Integración Test\",\n    \"coVendedor\": \"pruebasintegraciontest@gmail.com\"\n  },\n  \"receptor\": {\n    \"correo\": \"manriquejorgew@gmail.com\",\n    \"correoCopia\": \"\",\n    \"domicilioFiscal\": {\n      \"direccion\": \" AV. 5 ESQUINAS NRO. 350 - UCAYALI CORONEL PORTILLO CALLERIA\",\n      \"ubigeo\": \"250101\"\n    },\n    \"nombreComercial\": \"ARROYO ELESCANO ANDREA DEL ROCIO\",\n    \"nombreLegal\": \"ARROYO ELESCANO ANDREA DEL ROCIO\",\n    \"numeroDocumentoIdentidad\": \"75452290\",\n    \"tipoDocumentoIdentidad\": \"DOC_NACIONAL_DE_IDENTIDAD\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Nota de Crédito sobre Factura",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/notacredito-api/invoice2u/integracion/nota-credito/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "notacredito-api",
                "invoice2u",
                "integracion",
                "nota-credito",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"comprobanteAjustado\": {\n    \"serie\": \"FFA5\",\n    \"numero\": 1,\n    \"tipoComprobante\": \"01\",\n    \"fechaEmision\": \"2025-04-16\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFC5\",\n    \"numero\": 6,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-17\",\n    \"horaEmision\": \"01:13:07\",\n    \"motivo\": \"ANULACION_OPERACION\",\n    \"glosa\": \"Anulación\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": 1,\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": null,\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"departamento\": null,\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Nota de Crédito sobre Boleta",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/notacredito-api/invoice2u/integracion/nota-credito/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "notacredito-api",
                "invoice2u",
                "integracion",
                "nota-credito",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"comprobanteAjustado\": {\n    \"serie\": \"BBV5\",\n    \"numero\": 4,\n    \"tipoComprobante\": \"03\",\n    \"fechaEmision\": \"2025-04-16\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"BBC5\",\n    \"numero\": 6,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-17\",\n    \"horaEmision\": \"01:13:07\",\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"glosa\": \"Anulación\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": 1,\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"motivo\": \"ANULACION_OPERACION\",\n  \"receptor\": {\n    \"correo\": \"cliente.final@gmail.com\",\n    \"correoCopia\": null,\n    \"domicilioFiscal\": {\n      \"direccion\": \"JR. LOS OLIVOS 456 - LIMA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"JUAN PEREZ\",\n    \"nombreLegal\": \"JUAN PEREZ GARCIA\",\n    \"numeroDocumentoIdentidad\": \"12345678\",\n    \"tipoDocumentoIdentidad\": \"DOC_NACIONAL_DE_IDENTIDAD\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Nota de crédito – Motivo Ajuste fecha de pago",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/notacredito-api/invoice2u/integracion/nota-credito/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "notacredito-api",
                "invoice2u",
                "integracion",
                "nota-credito",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"comprobanteAjustado\": {\n    \"serie\": \"FFA1\",\n    \"numero\": 31,\n    \"tipoDocumento\": \"FACTURA\",\n    \"fechaEmision\": \"2025-09-09\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFC1\",\n    \"numero\": 1,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-09-09\",\n    \"horaEmision\": \"07:00:23\",\n    \"formaPago\": \"CREDITO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"glosa\": \"Ejemplo de Glosa\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": 1,\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"tipoDocumentoIdentidad\": \"RUC\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"nombreComercial\": \"ALFA PLUS S.A.C.\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"vendedor\": \"Pruebas Integración Test\",\n    \"coVendedor\": \"pruebasintegraciontest@gmail.com\"\n  },\n  \"motivo\": \"AJUSTES_MONTOS_FECHA_PAGO\",\n  \"receptor\": {\n    \"correo\": \"manriquejorgew@gmail.com\",\n    \"correoCopia\": \"\",\n    \"domicilioFiscal\": {\n      \"direccion\": \" AV. 5 ESQUINAS NRO. 350 - UCAYALI CORONEL PORTILLO CALLERIA\",\n      \"ubigeo\": \"250101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"cuotas\": [\n    {\n      \"monto\": 118,\n      \"fecha\": \"2025-10-10\",\n      \"numero\": \"001\",\n      \"moneda\": \"PEN\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Nota de Débito",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/notadebito-api/invoice2u/integracion/nota-debito/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "notadebito-api",
                "invoice2u",
                "integracion",
                "nota-debito",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"anticipos\": [],\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"comprobanteAjustado\": {\n    \"serie\": \"FFA5\",\n    \"numero\": 10,\n    \"tipoComprobante\": \"01\",\n    \"fechaEmision\": \"2025-04-16\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFD1\",\n    \"numero\": 2,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-17\",\n    \"horaEmision\": \"01:13:07\",\n    \"motivo\": \"AUMENTO_EN_EL_VALOR\",\n    \"glosa\": \"Aumento en el valor\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": 1,\n      \"valorVentaUnitarioItem\": 20\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegracion1@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": null,\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"departamento\": null,\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Guía Remitente",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/guiaremitente-api/invoice2u/integracion/guia-remision/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "guiaremitente-api",
                "invoice2u",
                "integracion",
                "guia-remision",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"T001\",\n    \"numero\": 1,\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"glosa\": \"Traslado de mercadería a sucursal\"\n  },\n  \"motivoTraslado\": \"VENTA\",\n  \"modalidadTransporte\": \"TRANSPORTE_PRIVADO\",\n  \"fechaInicioTraslado\": \"2025-04-17\",\n  \"pesoBrutoTotal\": 50.5,\n  \"unidadPeso\": \"KGM\",\n  \"numeroBultos\": 5,\n  \"puntoLlegada\": {\n    \"ubigeo\": \"150101\",\n    \"direccion\": \"AV. DESTINO NRO. 456 - LIMA\"\n  },\n  \"puntoPartida\": {\n    \"ubigeo\": \"150132\",\n    \"direccion\": \"AV. ORIGEN NRO. 123 - SAN JUAN DE LURIGANCHO\"\n  },\n  \"remitente\": {\n    \"correo\": \"empresa@gmail.com\",\n    \"nombreComercial\": \"MI EMPRESA SAC\",\n    \"nombreLegal\": \"MI EMPRESA S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20123456789\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"destinatario\": {\n    \"correo\": \"cliente@gmail.com\",\n    \"nombreComercial\": \"CLIENTE EMPRESA\",\n    \"nombreLegal\": \"CLIENTE EMPRESA E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20987654321\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"conductor\": {\n    \"nombreCompleto\": \"CARLOS RODRIGUEZ GARCIA\",\n    \"numeroDocumentoIdentidad\": \"12345678\",\n    \"tipoDocumentoIdentidad\": \"DNI\",\n    \"licenciaConducir\": \"Q12345678\"\n  },\n  \"vehiculo\": {\n    \"placa\": \"ABC-123\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"PROD001\",\n      \"descripcion\": \"PRODUCTO A - LOTE 2025\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"10\"\n    },\n    {\n      \"codigoProducto\": \"PROD002\",\n      \"descripcion\": \"PRODUCTO B - LOTE 2025\",\n      \"unidadMedida\": \"KILOGRAMO\",\n      \"cantidad\": \"40.5\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Guía Transportista",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/guiatransportista-api/invoice2u/integracion/guia-remision/transportista/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "guiatransportista-api",
                "invoice2u",
                "integracion",
                "guia-remision",
                "transportista",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"V001\",\n    \"numero\": 1,\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"glosa\": \"Servicio de transporte de carga\"\n  },\n  \"motivoTraslado\": \"VENTA\",\n  \"modalidadTransporte\": \"TRANSPORTE_PUBLICO\",\n  \"fechaInicioTraslado\": \"2025-04-17\",\n  \"pesoBrutoTotal\": 120,\n  \"unidadPeso\": \"KGM\",\n  \"numeroBultos\": 12,\n  \"puntoLlegada\": {\n    \"ubigeo\": \"040101\",\n    \"direccion\": \"AV. DESTINO NRO. 789 - AREQUIPA\"\n  },\n  \"puntoPartida\": {\n    \"ubigeo\": \"150101\",\n    \"direccion\": \"AV. ORIGEN NRO. 123 - LIMA\"\n  },\n  \"transportista\": {\n    \"correo\": \"transportes@gmail.com\",\n    \"nombreComercial\": \"TRANSPORTES PERU SAC\",\n    \"nombreLegal\": \"TRANSPORTES PERU S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20111222333\",\n    \"tipoDocumentoIdentidad\": \"RUC\",\n    \"registroMTC\": \"0001234567\"\n  },\n  \"remitente\": {\n    \"correo\": \"empresa@gmail.com\",\n    \"nombreComercial\": \"MI EMPRESA SAC\",\n    \"nombreLegal\": \"MI EMPRESA S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20123456789\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"destinatario\": {\n    \"correo\": \"cliente@gmail.com\",\n    \"nombreComercial\": \"CLIENTE EMPRESA\",\n    \"nombreLegal\": \"CLIENTE EMPRESA E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20987654321\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"conductores\": [\n    {\n      \"nombreCompleto\": \"CARLOS RODRIGUEZ GARCIA\",\n      \"numeroDocumentoIdentidad\": \"12345678\",\n      \"tipoDocumentoIdentidad\": \"DNI\",\n      \"licenciaConducir\": \"Q12345678\",\n      \"principal\": true\n    },\n    {\n      \"nombreCompleto\": \"PEDRO MARTINEZ LOPEZ\",\n      \"numeroDocumentoIdentidad\": \"87654321\",\n      \"tipoDocumentoIdentidad\": \"DNI\",\n      \"licenciaConducir\": \"Q87654321\",\n      \"principal\": false\n    }\n  ],\n  \"vehiculos\": [\n    {\n      \"placa\": \"ABC-123\",\n      \"principal\": true\n    },\n    {\n      \"placa\": \"DEF-456\",\n      \"principal\": false\n    }\n  ],\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"PROD001\",\n      \"descripcion\": \"CARGA GENERAL - LOTE A\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"50\"\n    },\n    {\n      \"codigoProducto\": \"PROD002\",\n      \"descripcion\": \"CARGA GENERAL - LOTE B\",\n      \"unidadMedida\": \"KILOGRAMO\",\n      \"cantidad\": \"70\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Resumen de Baja",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/resumen-api/invoice2u/integracion/resumen-baja/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "resumen-api",
                "invoice2u",
                "integracion",
                "resumen-baja",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\"\n  },\n  \"emisor\": {\n    \"correo\": \"pruebasintegracion1@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"fechaGeneracion\": \"2025-04-17\",\n  \"fechaDocumentoBaja\": \"2025-04-16\",\n  \"resumenBajaItemList\": [\n    {\n      \"serie\": \"FFA2\",\n      \"numero\": 1,\n      \"tipoComprobante\": \"01\",\n      \"motivo\": \"Error en el documento emitido\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Consultas",
      "item": [
        {
          "name": "Consultar PDF",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pdfapi/pdfapi/consultarPdf/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pdfapi",
                "pdfapi",
                "consultarPdf",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"emisor\": \"{{ruc}}\",\n  \"numero\": {{numero}},\n  \"serie\": \"{{serie}}\",\n  \"tipoComprobante\": \"{{tipoComprobante}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Consultar XML",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/consulta-api/invoice2u/integracion/consultarXml/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "consulta-api",
                "invoice2u",
                "integracion",
                "consultarXml",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"emisor\": \"{{ruc}}\",\n  \"numero\": {{numero}},\n  \"serie\": \"{{serie}}\",\n  \"tipoComprobante\": \"{{tipoComprobante}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Consultar CDR (GET)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/comprobantesapi/comprobante/emisor/{{ruc}}/comprobante/{{serie}}/{{numero}}/{{tipoComprobante}}/archivo?tipo-archivo=4",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "comprobantesapi",
                "comprobante",
                "emisor",
                "{{ruc}}",
                "comprobante",
                "{{serie}}",
                "{{numero}}",
                "{{tipoComprobante}}",
                "archivo"
              ],
              "query": [
                {
                  "key": "tipo-archivo",
                  "value": "4"
                }
              ]
            }
          }
        },
        {
          "name": "Consultar Estados",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/consulta-api/invoice2u/integracion/consultarEstado/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "consulta-api",
                "invoice2u",
                "integracion",
                "consultarEstado",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"emisor\": \"{{ruc}}\",\n  \"numero\": {{numero}},\n  \"serie\": \"{{serie}}\",\n  \"tipoComprobante\": \"{{tipoComprobante}}\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Herramientas",
      "item": [
        {
          "name": "Vista Previa (Factura)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/preview-api/factura/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "preview-api",
                "factura",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFA6\",\n    \"numero\": 1,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"DEPOSITO_CUENTA\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": \"observaciones\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Vista Previa (Boleta)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/preview-api/boleta/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "preview-api",
                "boleta",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"BBV5\",\n    \"numero\": 4,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-16\",\n    \"horaEmision\": null,\n    \"formaPago\": \"CONTADO\",\n    \"medioPago\": \"EFECTIVO\",\n    \"condicionPago\": \"CONTADO\",\n    \"ordencompra\": null,\n    \"glosa\": null\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": \"1\",\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": \"VENTA_INTERNA\",\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"cliente.final@gmail.com\",\n    \"correoCopia\": null,\n    \"domicilioFiscal\": {\n      \"direccion\": \"JR. LOS OLIVOS 456 - LIMA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"JUAN PEREZ\",\n    \"nombreLegal\": \"JUAN PEREZ GARCIA\",\n    \"numeroDocumentoIdentidad\": \"12345678\",\n    \"tipoDocumentoIdentidad\": \"DOC_NACIONAL_DE_IDENTIDAD\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Vista Previa (Nota de Crédito sobre Factura)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/preview-api/nota-credito/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "preview-api",
                "nota-credito",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"comprobanteAjustado\": {\n    \"serie\": \"FFA5\",\n    \"numero\": 1,\n    \"tipoComprobante\": \"01\",\n    \"fechaEmision\": \"2025-04-16\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFC5\",\n    \"numero\": 6,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-17\",\n    \"horaEmision\": \"01:13:07\",\n    \"motivo\": \"ANULACION_OPERACION\",\n    \"glosa\": \"Anulación\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": 1,\n      \"valorVentaUnitarioItem\": 100\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegraciontest@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": null,\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"departamento\": null,\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Vista Previa (Nota de Débito)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{token}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/preview-api/nota-debito/{{ruc}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "preview-api",
                "nota-debito",
                "{{ruc}}"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"anticipos\": [],\n  \"close2u\": {\n    \"tipoIntegracion\": \"OFFLINE\",\n    \"tipoPlantilla\": \"01\",\n    \"tipoRegistro\": \"PRECIOS_SIN_IGV\"\n  },\n  \"comprobanteAjustado\": {\n    \"serie\": \"FFA5\",\n    \"numero\": 10,\n    \"tipoComprobante\": \"01\",\n    \"fechaEmision\": \"2025-04-16\"\n  },\n  \"datosDocumento\": {\n    \"serie\": \"FFD1\",\n    \"numero\": 2,\n    \"moneda\": \"PEN\",\n    \"fechaEmision\": \"2025-04-17\",\n    \"horaEmision\": \"01:13:07\",\n    \"motivo\": \"AUMENTO_EN_EL_VALOR\",\n    \"glosa\": \"Aumento en el valor\"\n  },\n  \"detalleDocumento\": [\n    {\n      \"codigoProducto\": \"ABC123\",\n      \"descripcion\": \"PRODUCTO GRAVADO A\",\n      \"tipoAfectacion\": \"GRAVADO_OPERACION_ONEROSA\",\n      \"unidadMedida\": \"UNIDAD_BIENES\",\n      \"cantidad\": 1,\n      \"valorVentaUnitarioItem\": 20\n    }\n  ],\n  \"emisor\": {\n    \"correo\": \"pruebasintegracion1@gmail.com\",\n    \"nombreComercial\": \"ALFA PLUS SAC\",\n    \"nombreLegal\": \"ALFA PLUS S.A.C.\",\n    \"numeroDocumentoIdentidad\": \"20133795724\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  },\n  \"informacionAdicional\": {\n    \"tipoOperacion\": null,\n    \"coVendedor\": \"AARROYO\"\n  },\n  \"receptor\": {\n    \"correo\": \"pruebatest@gmail.com\",\n    \"correoCopia\": \"andreatest768@gmail.com\",\n    \"domicilioFiscal\": {\n      \"departamento\": null,\n      \"direccion\": \"AV. PTE PIEDRA NRO. 386 - PRO - LIMA LIMA PUENTE PIEDRA\",\n      \"ubigeo\": \"150101\"\n    },\n    \"nombreComercial\": \"AIR SERVICE PUCALLPA TOURS\",\n    \"nombreLegal\": \"AIR SERVICE PUCALLPA TOURS E.I.R.L.\",\n    \"numeroDocumentoIdentidad\": \"20393663988\",\n    \"tipoDocumentoIdentidad\": \"RUC\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    }
  ]
}