{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/djmplatform.com"
        }
    ],
    "info": {
        "name": "API Facturaci\u00f3n \u00b7 API de facturaci\u00f3n electr\u00f3nica SUNAT",
        "_postman_id": "e78cfa58-7855-460e-8529-41d8af2cc493",
        "description": "Emite facturas, boletas, notas, res\u00famenes, bajas y gu\u00edas de remisi\u00f3n electr\u00f3nicas (SUNAT, UBL 2.1) y consulta RUC\/DNI con JSON.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Cuenta",
            "description": "",
            "item": [
                {
                    "name": "Empresa y entorno del token.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/me",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/me"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Series activas de la empresa en el entorno del token.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/series",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/series"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Comprobantes",
            "description": "",
            "item": [
                {
                    "name": "Emitir y enviar a SUNAT.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoice\/send",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/invoice\/send"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tipo_doc\":\"01\",\"serie\":\"F001\",\"moneda\":\"PEN\",\"cliente\":{\"tipo_doc\":\"6\",\"num_doc\":\"20100070970\",\"razon_social\":\"SUPERMERCADOS PERUANOS S.A.\"},\"items\":[{\"descripcion\":\"Laptop 14\\\" Core i5\",\"cantidad\":\"2\",\"precio_unitario\":\"2500.00\",\"unidad\":\"NIU\",\"codigo\":\"LAP-001\",\"tipo_afectacion_igv\":\"10\"}]}"
                        },
                        "description": "Genera el XML UBL 2.1, lo firma, lo env\u00eda (sendBill) y devuelve el estado seg\u00fan el CDR.\nHeader opcional `Idempotency-Key` para reintentos seguros."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": \"9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10\",\n    \"tipo_doc\": \"01\",\n    \"serie\": \"F001\",\n    \"correlativo\": 1,\n    \"numero\": \"F001-1\",\n    \"fecha_emision\": \"2026-10-30T10:00:00-05:00\",\n    \"moneda\": \"PEN\",\n    \"cliente\": { \"tipo_doc\": \"6\", \"num_doc\": \"20100070970\", \"razon_social\": \"SUPERMERCADOS PERUANOS S.A.\" },\n    \"totales\": {\n      \"op_gravadas\": \"200.00\", \"op_exoneradas\": null, \"op_inafectas\": null, \"op_exportacion\": null, \"op_gratuitas\": null,\n      \"igv_gratuitas\": \"0.00\", \"base_ivap\": null, \"ivap\": \"0.00\", \"base_isc\": \"0.00\", \"isc\": \"0.00\", \"igv\": \"36.00\", \"icbper\": \"0.00\",\n      \"total_impuestos\": \"36.00\", \"valor_venta\": \"200.00\", \"precio_venta\": \"236.00\", \"descuento_global\": \"0.00\",\n      \"total_anticipos\": \"0.00\", \"importe_total\": \"236.00\", \"detraccion\": null, \"neto_pendiente\": \"236.00\"\n    },\n    \"estado\": \"aceptado\",\n    \"estado_descripcion\": \"Aceptado\",\n    \"hash\": \"0b6sN3m1yQb4Jm2bQ4r2v3xk9Ss=\",\n    \"intentos\": 1,\n    \"proximo_reintento\": null,\n    \"urls\": {\n      \"xml\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/xml?expires=...&signature=...\",\n      \"cdr\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/cdr?expires=...&signature=...\",\n      \"pdf\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/pdf?expires=...&signature=...\",\n      \"ticket\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/pdf?format=ticket&expires=...&signature=...\"\n    },\n    \"creado\": \"2026-10-30T10:00:02-05:00\"\n  },\n  \"sunat\": { \"code\": \"0\", \"description\": \"La Factura numero F001-1, ha sido aceptada\", \"notes\": [] },\n  \"errors\": null\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"success\": false,\n  \"data\": { \"id\": \"9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10\", \"numero\": \"F001-2\", \"estado\": \"rechazado\", \"estado_descripcion\": \"Rechazado\" },\n  \"sunat\": { \"code\": \"2800\", \"description\": \"El dato ingresado en el tipo de documento de identidad del receptor no esta permitido.\", \"notes\": [] },\n  \"errors\": { \"code\": \"SUNAT_REJECTED\", \"message\": \"El dato ingresado en el tipo de documento de identidad del receptor no esta permitido.\" }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "{\n  \"success\": false,\n  \"data\": null,\n  \"sunat\": null,\n  \"errors\": { \"code\": \"QUOTA_EXCEEDED\", \"message\": \"Alcanzaste el l\u00edmite de 100 comprobantes y gu\u00edas por mes del plan Free. Se renueva el 01\/11\/2026 00:00; para ampliarlo, cambia de plan.\" }\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Solo generar y firmar el XML (no persiste ni env\u00eda).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoice\/xml",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/invoice\/xml"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tipo_doc\":\"01\",\"serie\":\"F001\",\"moneda\":\"PEN\",\"cliente\":{\"tipo_doc\":\"6\",\"num_doc\":\"20100070970\",\"razon_social\":\"SUPERMERCADOS PERUANOS S.A.\"},\"items\":[{\"descripcion\":\"Laptop 14\\\" Core i5\",\"cantidad\":\"2\",\"precio_unitario\":\"2500.00\",\"unidad\":\"NIU\",\"codigo\":\"LAP-001\",\"tipo_afectacion_igv\":\"10\"}]}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Vista previa del PDF (no persiste). Query: format=a4|ticket.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/invoice\/pdf",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/invoice\/pdf"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tipo_doc\":\"01\",\"serie\":\"F001\",\"moneda\":\"PEN\",\"cliente\":{\"tipo_doc\":\"6\",\"num_doc\":\"20100070970\",\"razon_social\":\"SUPERMERCADOS PERUANOS S.A.\"},\"items\":[{\"descripcion\":\"Laptop 14\\\" Core i5\",\"cantidad\":\"2\",\"precio_unitario\":\"2500.00\",\"unidad\":\"NIU\",\"codigo\":\"LAP-001\",\"tipo_afectacion_igv\":\"10\"}]}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Emitir nota de cr\u00e9dito (07) o d\u00e9bito (08) y enviarla a SUNAT.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/note\/send",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/note\/send"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tipo_doc\":\"07\",\"serie\":\"FC01\",\"moneda\":\"PEN\",\"cliente\":{\"tipo_doc\":\"6\",\"num_doc\":\"20100070970\",\"razon_social\":\"SUPERMERCADOS PERUANOS S.A.\"},\"items\":[{\"descripcion\":\"Laptop 14\\\" Core i5\",\"cantidad\":\"2\",\"precio_unitario\":\"2500.00\",\"unidad\":\"NIU\",\"codigo\":\"LAP-001\",\"tipo_afectacion_igv\":\"10\"}],\"documento_afectado\":{\"tipo_doc\":\"01\",\"numero\":\"F001-125\"},\"motivo\":{\"codigo\":\"07\",\"descripcion\":\"Devoluci\u00f3n de 1 unidad\"}}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Reenviar a SUNAT un comprobante firmado o pendiente de reintento.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/documents\/:document_uuid\/resend",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/documents\/:document_uuid\/resend",
                            "variable": [
                                {
                                    "id": "document_uuid",
                                    "key": "document_uuid",
                                    "value": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Consultar un comprobante.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/documents\/:uuid",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/documents\/:uuid",
                            "variable": [
                                {
                                    "id": "uuid",
                                    "key": "uuid",
                                    "value": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": \"9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10\",\n    \"tipo_doc\": \"01\",\n    \"serie\": \"F001\",\n    \"correlativo\": 1,\n    \"numero\": \"F001-1\",\n    \"fecha_emision\": \"2026-10-30T10:00:00-05:00\",\n    \"moneda\": \"PEN\",\n    \"cliente\": { \"tipo_doc\": \"6\", \"num_doc\": \"20100070970\", \"razon_social\": \"SUPERMERCADOS PERUANOS S.A.\" },\n    \"totales\": {\n      \"op_gravadas\": \"200.00\", \"op_exoneradas\": null, \"op_inafectas\": null, \"op_exportacion\": null, \"op_gratuitas\": null,\n      \"igv_gratuitas\": \"0.00\", \"base_ivap\": null, \"ivap\": \"0.00\", \"base_isc\": \"0.00\", \"isc\": \"0.00\", \"igv\": \"36.00\", \"icbper\": \"0.00\",\n      \"total_impuestos\": \"36.00\", \"valor_venta\": \"200.00\", \"precio_venta\": \"236.00\", \"descuento_global\": \"0.00\",\n      \"total_anticipos\": \"0.00\", \"importe_total\": \"236.00\", \"detraccion\": null, \"neto_pendiente\": \"236.00\"\n    },\n    \"estado\": \"aceptado\",\n    \"estado_descripcion\": \"Aceptado\",\n    \"hash\": \"0b6sN3m1yQb4Jm2bQ4r2v3xk9Ss=\",\n    \"intentos\": 1,\n    \"proximo_reintento\": null,\n    \"urls\": {\n      \"xml\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/xml?expires=...&signature=...\",\n      \"cdr\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/cdr?expires=...&signature=...\",\n      \"pdf\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/pdf?expires=...&signature=...\",\n      \"ticket\": \"https:\/\/api.tudominio.pe\/descargas\/9f0c...\/pdf?format=ticket&expires=...&signature=...\"\n    },\n    \"creado\": \"2026-10-30T10:00:02-05:00\"\n  },\n  \"sunat\": { \"code\": \"0\", \"description\": \"La Factura numero F001-1, ha sido aceptada\", \"notes\": [] },\n  \"errors\": null\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Descargar XML firmado, CDR (zip) o PDF (format=a4|ticket).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/documents\/:document_uuid\/:type",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/documents\/:document_uuid\/:type",
                            "variable": [
                                {
                                    "id": "document_uuid",
                                    "key": "document_uuid",
                                    "value": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
                                    "description": ""
                                },
                                {
                                    "id": "type",
                                    "key": "type",
                                    "value": "xml|cdr|pdf",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Res\u00famenes y bajas",
            "description": "",
            "item": [
                {
                    "name": "Enviar Resumen Diario de boletas marcadas con \"envio\": \"resumen\".",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/summary\/send",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/summary\/send"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"fecha\":\"2022-11-25\"}"
                        },
                        "description": "Body opcional: {\"fecha\": \"2026-10-30\"} (fecha de emisi\u00f3n de las boletas)."
                    },
                    "response": []
                },
                {
                    "name": "Anular comprobantes aceptados (RA para facturas y notas F; RC con condici\u00f3n 3 para boletas y notas B).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/voided\/send",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/voided\/send"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"documentos\":[{\"id\":\"9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10\",\"motivo\":\"Error en el RUC del cliente\"}]}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Consultar un ticket de RC\/RA (getStatus) o de GRE (API REST). Actualiza los documentos afectados.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/status\/:ticket",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/status\/:ticket",
                            "variable": [
                                {
                                    "id": "ticket",
                                    "key": "ticket",
                                    "value": "vjrG8He",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Gu\u00edas de remisi\u00f3n",
            "description": "",
            "item": [
                {
                    "name": "Emitir y enviar una GRE. El env\u00edo es as\u00edncrono: responde con el ticket (202) o, si SUNAT ya lo\nproces\u00f3 en la consulta inmediata, con el resultado (200 \/ 422). Header opcional `Idempotency-Key`.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/despatch\/send",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/despatch\/send"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"tipo_doc\":\"09\",\"serie\":\"T001\",\"destinatario\":{\"tipo_doc\":\"6\",\"num_doc\":\"20100070970\",\"razon_social\":\"SUPERMERCADOS PERUANOS S.A.\"},\"envio\":{\"motivo\":\"01\",\"modalidad\":\"02\",\"fecha_traslado\":\"2026-10-31\",\"peso_total\":\"125.5\",\"unidad_peso\":\"KGM\",\"partida\":{\"ubigeo\":\"120601\",\"direccion\":\"Av. Marginal Km 4, Satipo\"},\"llegada\":{\"ubigeo\":\"150131\",\"direccion\":\"Av. Morro Solar 1086, Santiago de Surco\"},\"vehiculos\":[{\"placa\":\"ABC123\"}],\"conductores\":[{\"tipo_doc\":\"1\",\"num_doc\":\"45678912\",\"nombres\":\"JUAN\",\"apellidos\":\"PEREZ QUISPE\",\"licencia\":\"Q45678912\"}]},\"items\":[{\"codigo\":\"CAF-01\",\"descripcion\":\"Caf\u00e9 pergamino en sacos\",\"unidad\":\"KGM\",\"cantidad\":\"120.5\"}],\"documentos_relacionados\":[{\"tipo\":\"01\",\"numero\":\"F001-125\"}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": \"5d2f0b7e-2b8a-4c1e-9f3a-7c6b8e9d0a11\",\n    \"tipo_doc\": \"09\",\n    \"serie\": \"T001\",\n    \"correlativo\": 1,\n    \"numero\": \"T001-1\",\n    \"fecha_emision\": \"2026-10-31T10:00:00-05:00\",\n    \"fecha_traslado\": \"2026-10-31\",\n    \"motivo\": \"01\",\n    \"modalidad\": \"02\",\n    \"peso_total\": \"125.500\",\n    \"unidad_peso\": \"KGM\",\n    \"destinatario\": { \"tipo_doc\": \"6\", \"num_doc\": \"20100070970\", \"razon_social\": \"SUPERMERCADOS PERUANOS S.A.\" },\n    \"remitente\": null,\n    \"estado\": \"aceptado\",\n    \"estado_descripcion\": \"Aceptado\",\n    \"simulado\": false,\n    \"ticket\": \"3a30c282-53d9-4275-a1d4-f331afc9f90c\",\n    \"hash\": \"pZfJ7bE0tV1xq8m2kR9sYw3uNcA=\",\n    \"qr_url\": \"https:\/\/e-factura.sunat.gob.pe\/v1\/contribuyente\/gre\/comprobantes\/descargaqr?hashqr=\u2026\",\n    \"intentos\": 2,\n    \"proximo_reintento\": null,\n    \"proxima_consulta\": null,\n    \"urls\": {\n      \"xml\": \"https:\/\/djmplatform.com\/descargas\/guias\/5d2f0b7e-\u2026\/xml?expires=\u2026&signature=\u2026\",\n      \"cdr\": \"https:\/\/djmplatform.com\/descargas\/guias\/5d2f0b7e-\u2026\/cdr?expires=\u2026&signature=\u2026\",\n      \"pdf\": \"https:\/\/djmplatform.com\/descargas\/guias\/5d2f0b7e-\u2026\/pdf?expires=\u2026&signature=\u2026\"\n    },\n    \"creado\": \"2026-10-31T10:00:01-05:00\"\n  },\n  \"sunat\": { \"code\": \"0\", \"description\": \"La Guia numero T001-1, ha sido aceptada\", \"notes\": [] },\n  \"errors\": null\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\n  \"success\": false,\n  \"data\": null,\n  \"sunat\": null,\n  \"errors\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"Los datos enviados no son v\u00e1lidos.\",\n    \"fields\": { \"cliente.num_doc\": [\"El RUC del cliente no es v\u00e1lido.\"] }\n  }\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Reenviar una gu\u00eda firmada o pendiente (p. ej. tras corregir credenciales), o forzar la consulta del ticket.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/despatches\/:despatch_uuid\/resend",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/despatches\/:despatch_uuid\/resend",
                            "variable": [
                                {
                                    "id": "despatch_uuid",
                                    "key": "despatch_uuid",
                                    "value": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Consultar una gu\u00eda.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/despatches\/:uuid",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/despatches\/:uuid",
                            "variable": [
                                {
                                    "id": "uuid",
                                    "key": "uuid",
                                    "value": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"id\": \"5d2f0b7e-2b8a-4c1e-9f3a-7c6b8e9d0a11\",\n    \"tipo_doc\": \"09\",\n    \"serie\": \"T001\",\n    \"correlativo\": 1,\n    \"numero\": \"T001-1\",\n    \"fecha_emision\": \"2026-10-31T10:00:00-05:00\",\n    \"fecha_traslado\": \"2026-10-31\",\n    \"motivo\": \"01\",\n    \"modalidad\": \"02\",\n    \"peso_total\": \"125.500\",\n    \"unidad_peso\": \"KGM\",\n    \"destinatario\": { \"tipo_doc\": \"6\", \"num_doc\": \"20100070970\", \"razon_social\": \"SUPERMERCADOS PERUANOS S.A.\" },\n    \"remitente\": null,\n    \"estado\": \"aceptado\",\n    \"estado_descripcion\": \"Aceptado\",\n    \"simulado\": false,\n    \"ticket\": \"3a30c282-53d9-4275-a1d4-f331afc9f90c\",\n    \"hash\": \"pZfJ7bE0tV1xq8m2kR9sYw3uNcA=\",\n    \"qr_url\": \"https:\/\/e-factura.sunat.gob.pe\/v1\/contribuyente\/gre\/comprobantes\/descargaqr?hashqr=\u2026\",\n    \"intentos\": 2,\n    \"proximo_reintento\": null,\n    \"proxima_consulta\": null,\n    \"urls\": {\n      \"xml\": \"https:\/\/djmplatform.com\/descargas\/guias\/5d2f0b7e-\u2026\/xml?expires=\u2026&signature=\u2026\",\n      \"cdr\": \"https:\/\/djmplatform.com\/descargas\/guias\/5d2f0b7e-\u2026\/cdr?expires=\u2026&signature=\u2026\",\n      \"pdf\": \"https:\/\/djmplatform.com\/descargas\/guias\/5d2f0b7e-\u2026\/pdf?expires=\u2026&signature=\u2026\"\n    },\n    \"creado\": \"2026-10-31T10:00:01-05:00\"\n  },\n  \"sunat\": { \"code\": \"0\", \"description\": \"La Guia numero T001-1, ha sido aceptada\", \"notes\": [] },\n  \"errors\": null\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Descargar XML firmado, CDR (zip) o PDF.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/despatches\/:despatch_uuid\/:type",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/despatches\/:despatch_uuid\/:type",
                            "variable": [
                                {
                                    "id": "despatch_uuid",
                                    "key": "despatch_uuid",
                                    "value": "6ff8f7f6-1eb3-3525-be4a-3932c805afed",
                                    "description": ""
                                },
                                {
                                    "id": "type",
                                    "key": "type",
                                    "value": "xml|cdr|pdf",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Consultas",
            "description": "",
            "item": [
                {
                    "name": "Consultar RUC: raz\u00f3n social, estado, condici\u00f3n y domicilio fiscal. Cach\u00e9 24 h.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/lookup\/ruc\/:ruc",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/lookup\/ruc\/:ruc",
                            "variable": [
                                {
                                    "id": "ruc",
                                    "key": "ruc",
                                    "value": "\/^^^\/\/\/",
                                    "description": "The ruc."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"data\": {\n    \"ruc\": \"20131312955\",\n    \"razon_social\": \"SUPERINTENDENCIA NACIONAL DE ADUANAS Y DE ADMINISTRACION TRIBUTARIA - SUNAT\",\n    \"nombre_comercial\": null,\n    \"estado\": \"ACTIVO\",\n    \"condicion\": \"HABIDO\",\n    \"direccion\": \"AV. GARCILASO DE LA VEGA NRO 1472\",\n    \"ubigeo\": \"150101\",\n    \"departamento\": \"LIMA\",\n    \"provincia\": \"LIMA\",\n    \"distrito\": \"LIMA\",\n    \"activo_habido\": true,\n    \"consulta\": {\n      \"proveedor\": \"decolecta\",\n      \"cache\": true,\n      \"desactualizado\": false,\n      \"consultado_en\": \"2026-10-31T09:20:00-05:00\"\n    }\n  },\n  \"sunat\": null,\n  \"errors\": null\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Consultar DNI: nombres y apellidos. Cach\u00e9 30 d\u00edas.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/lookup\/dni\/:dni",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/lookup\/dni\/:dni",
                            "variable": [
                                {
                                    "id": "dni",
                                    "key": "dni",
                                    "value": "\/^^^\/\/\/",
                                    "description": "The dni."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Cat\u00e1logos",
            "description": "",
            "item": [
                {
                    "name": "\u00cdtems vigentes de un cat\u00e1logo SUNAT (ej. 06, 07, 09).",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/catalogs\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/catalogs\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "architecto",
                                    "description": "The ID of the catalog."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": []
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}