{
  "info": {
    "name": "NEXOSOLT · public",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Documentacion generada desde OpenAPI. Reemplazar dominio/IDs/datos y tokens. Persistir operation_key por operacion. Importar no ejecuta solicitudes. Las operaciones501 no estan disponibles."
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://olt.nexos.com.do/api/public/v1"
    },
    {
      "key": "csrf_token",
      "value": ""
    },
    {
      "key": "operation_key",
      "value": "REEMPLAZAR_ANTES_DE_LA_PRIMERA_LLAMADA"
    },
    {
      "key": "id",
      "value": "REEMPLAZAR"
    },
    {
      "key": "onu_external_id",
      "value": "REEMPLAZAR"
    }
  ],
  "item": [
    {
      "name": "GET /session",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/session",
        "description": ""
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "const value=pm.response.json();",
              "if(value.success && value.data.csrf_token) pm.collectionVariables.set(\"csrf_token\", value.data.csrf_token);"
            ]
          }
        }
      ]
    },
    {
      "name": "GET /plans",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/plans",
        "description": ""
      },
      "response": []
    },
    {
      "name": "POST /registrations",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-CSRF-Token",
            "value": "{{csrf_token}}"
          }
        ],
        "url": "{{base_url}}/registrations",
        "description": "Conservar cookie host-only de /session y enviar X-CSRF-Token. Origen del navegador permitido: https://olt.nexos.com.do. Desde servidor utilizar un cookie jar; no enviar un Origin de otro sitio.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"company_name\": \"REEMPLAZAR\",\n  \"name\": \"REEMPLAZAR\",\n  \"slug\": \"REEMPLAZAR\",\n  \"email\": \"REEMPLAZAR\",\n  \"password\": \"REEMPLAZAR\",\n  \"terms\": true\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    },
    {
      "name": "POST /verification/resend",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-CSRF-Token",
            "value": "{{csrf_token}}"
          }
        ],
        "url": "{{base_url}}/verification/resend",
        "description": "Conservar cookie host-only de /session y enviar X-CSRF-Token. Origen del navegador permitido: https://olt.nexos.com.do. Desde servidor utilizar un cookie jar; no enviar un Origin de otro sitio.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"REEMPLAZAR\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    },
    {
      "name": "POST /password-reset",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-CSRF-Token",
            "value": "{{csrf_token}}"
          }
        ],
        "url": "{{base_url}}/password-reset",
        "description": "Conservar cookie host-only de /session y enviar X-CSRF-Token. Origen del navegador permitido: https://olt.nexos.com.do. Desde servidor utilizar un cookie jar; no enviar un Origin de otro sitio.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"REEMPLAZAR\",\n  \"slug\": \"REEMPLAZAR\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    }
  ]
}