{
  "info": {
    "name": "eCF Connect — Integration Sandbox (v1)",
    "description": "Contrato v1 del IssuerGateway. Sandbox sintético — NOT PRODUCTION. main c36a83abdac62f1130bc8de0b75bc04cea872966",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "http://51.8.80.173"
    },
    {
      "key": "sandbox_token",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Emitir e-CF 31 (factura)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Idempotency-Key",
            "value": "demo-{{$timestamp}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-Correlation-Id",
            "value": "postman-{{$randomUUID}}"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{sandbox_token}}",
              "type": "string"
            }
          ]
        },
        "url": {
          "raw": "{{base_url}}/api/v1/issuance/invoices",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "issuance",
            "invoices"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"merchantId\": \"comercio-demo-01\",\n  \"document\": {\n    \"issueDate\": \"2026-08-31\",\n    \"issuer\": {\n      \"rnc\": \"111111111\",\n      \"legalName\": \"Emisor Ficticio SRL\",\n      \"address\": \"Calle Ficticia 1, Santo Domingo\"\n    },\n    \"buyer\": {\n      \"rnc\": \"22222222222\",\n      \"legalName\": \"Comprador Ficticio SA\"\n    },\n    \"payment\": {\n      \"type\": \"Cash\"\n    },\n    \"incomeType\": \"OperatingIncome\",\n    \"taxIncludedPricing\": false,\n    \"lines\": [\n      {\n        \"lineNumber\": 1,\n        \"billingIndicator\": \"TaxedItbisRate1\",\n        \"description\": \"Servicio de integración (demo)\",\n        \"kind\": \"Service\",\n        \"quantity\": 1,\n        \"unitPrice\": 100.0,\n        \"declaredAmount\": 100.0\n      }\n    ]\n  }\n}"
        }
      }
    },
    {
      "name": "Emitir e-CF 34 (nota de crédito)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Idempotency-Key",
            "value": "demo-{{$timestamp}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-Correlation-Id",
            "value": "postman-{{$randomUUID}}"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{sandbox_token}}",
              "type": "string"
            }
          ]
        },
        "url": {
          "raw": "{{base_url}}/api/v1/issuance/credit-notes",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "issuance",
            "credit-notes"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"merchantId\": \"comercio-demo-01\",\n  \"document\": {\n    \"issueDate\": \"2026-08-31\",\n    \"issuer\": {\n      \"rnc\": \"111111111\",\n      \"legalName\": \"Emisor Ficticio SRL\",\n      \"address\": \"Calle Ficticia 1, Santo Domingo\"\n    },\n    \"buyer\": {\n      \"rnc\": \"22222222222\",\n      \"legalName\": \"Comprador Ficticio SA\"\n    },\n    \"payment\": {\n      \"type\": \"Cash\"\n    },\n    \"incomeType\": \"OperatingIncome\",\n    \"taxIncludedPricing\": false,\n    \"reference\": {\n      \"modifiedNcf\": \"E310000000001\",\n      \"modifiedOn\": \"2026-08-31\",\n      \"modificationCode\": \"AmountCorrection\",\n      \"reason\": \"Ajuste de demo\"\n    },\n    \"lines\": [\n      {\n        \"lineNumber\": 1,\n        \"billingIndicator\": \"TaxedItbisRate1\",\n        \"description\": \"Ajuste (demo)\",\n        \"kind\": \"Service\",\n        \"quantity\": 1,\n        \"unitPrice\": 10.0,\n        \"declaredAmount\": 10.0\n      }\n    ]\n  }\n}"
        }
      }
    },
    {
      "name": "Consultar estado del documento",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-Correlation-Id",
            "value": "postman-{{$randomUUID}}"
          }
        ],
        "auth": {
          "type": "bearer",
          "bearer": [
            {
              "key": "token",
              "value": "{{sandbox_token}}",
              "type": "string"
            }
          ]
        },
        "url": {
          "raw": "{{base_url}}/api/v1/issuance/document-status",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "v1",
            "issuance",
            "document-status"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"merchantId\": \"comercio-demo-01\",\n  \"electronicNcf\": \"E310000000001\"\n}"
        }
      }
    }
  ]
}