{
  "info": {
    "_postman_id": "ef6bb236-e7ae-4197-bd56-bc21f9571f58",
    "name": "BCS PA - D - Flow Service API AFNOR 1.2.0",
    "description": "Collection Postman pour l'API Flow Service conforme AFNOR 1.2.0, avec authentification OAuth2 client_credentials via Keycloak BCSolutions.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "50267719",
    "_collection_link": "https://go.postman.co/collection/50267719-ef6bb236-e7ae-4197-bd56-bc21f9571f58?source=collection_link"
  },
  "item": [
    {
      "name": "1/ Auth - Get OAuth2 token",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "pm.test('Status code is 200', function () {",
              "    pm.response.to.have.status(200);",
              "});",
              "const json = pm.response.json();",
              "pm.test('Response contains access_token', function () {",
              "    pm.expect(json.access_token).to.exist;",
              "});",
              "pm.collectionVariables.set('access_token', json.access_token);",
              "if (json.token_type) pm.collectionVariables.set('token_type', json.token_type);",
              "if (json.expires_in) pm.collectionVariables.set('token_expires_in', String(json.expires_in));",
              "console.log('access_token env =', pm.environment.get('access_token'));",
              "console.log('access_token collection =', pm.collectionVariables.get('access_token'));"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/x-www-form-urlencoded"
          },
          {
            "key": "User-Agent",
            "value": "BCSolutions",
            "type": "text"
          }
        ],
        "body": {
          "mode": "urlencoded",
          "urlencoded": [
            {
              "key": "grant_type",
              "value": "client_credentials",
              "type": "text"
            },
            {
              "key": "client_id",
              "value": "{{client_id}}",
              "type": "text"
            },
            {
              "key": "client_secret",
              "value": "{{client_secret}}",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{oauth_token_url}}",
          "host": [
            "{{oauth_token_url}}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "2/ Flow - Submit flow - Invoice (Factur-X)",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "pm.test('Submit returns 202', function () { pm.response.to.have.status(202); });",
              "const json = pm.response.json();",
              "if (json.flowId) { pm.collectionVariables.set('flow_id', json.flowId); }"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "function generateTrackingId() {\r",
              "    return crypto.randomUUID();\r",
              "}\r",
              "\r",
              "const trackingId = generateTrackingId();\r",
              "\r",
              "pm.collectionVariables.set(\"trackingId\", trackingId);\r",
              "\r",
              "console.log(\"trackingId:\", trackingId);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {}
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "src": "urba24/INV-URBA-2026-000002.pdf"
            },
            {
              "key": "flowInfo",
              "value": "{\"name\":\"INV-URBA-2026-000002.pdf\",\"flowSyntax\": \"Factur-X\"}",
              "type": "text",
              "uuid": "f5f53b63-6808-46f5-ba3f-e0abcda199d6"
            }
          ]
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows"
          ]
        }
      },
      "response": []
    },
    {
      "name": "2/ Flow - Submit flow - Invoice (CII)",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "pm.test('Submit returns 202', function () { pm.response.to.have.status(202); });",
              "const json = pm.response.json();",
              "if (json.flowId) { pm.collectionVariables.set('flow_id', json.flowId); }"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "function generateTrackingId() {\r",
              "    return crypto.randomUUID();\r",
              "}\r",
              "\r",
              "const trackingId = generateTrackingId();\r",
              "\r",
              "pm.collectionVariables.set(\"trackingId\", trackingId);\r",
              "\r",
              "console.log(\"trackingId:\", trackingId);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {}
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "src": "p-p1f2-ppi73i3iwr/INV-VAL-2026-000026-cii.xml"
            },
            {
              "key": "flowInfo",
              "value": "{\"name\":\"INV-URBA-2026-000026\",\"flowSyntax\": \"CII\"}",
              "type": "text",
              "uuid": "f5f53b63-6808-46f5-ba3f-e0abcda199d6"
            }
          ]
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows"
          ]
        }
      },
      "response": []
    },
    {
      "name": "2/ Flow - Submit flow - Invoice (UBL)",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "pm.test('Submit returns 202', function () { pm.response.to.have.status(202); });",
              "const json = pm.response.json();",
              "if (json.flowId) { pm.collectionVariables.set('flow_id', json.flowId); }"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "function generateTrackingId() {\r",
              "    return crypto.randomUUID();\r",
              "}\r",
              "\r",
              "const trackingId = generateTrackingId();\r",
              "\r",
              "pm.collectionVariables.set(\"trackingId\", trackingId);\r",
              "\r",
              "console.log(\"trackingId:\", trackingId);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {}
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "src": "p-p1f2-ppi73i3iwr/INV-VAL-2026-000025-ubl.xml"
            },
            {
              "key": "flowInfo",
              "value": "{\"name\":\"INV-URBA-2026-000025\",\"flowSyntax\": \"UBL\"}",
              "type": "text",
              "uuid": "f5f53b63-6808-46f5-ba3f-e0abcda199d6"
            }
          ]
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows"
          ]
        }
      },
      "response": []
    },
    {
      "name": "2/ Flow - Submit flow - Statut (CDAR)",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              "pm.test('Submit returns 202', function () { pm.response.to.have.status(202); });",
              "const json = pm.response.json();",
              "if (json.flowId) { pm.collectionVariables.set('flow_id', json.flowId); }"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "function generateTrackingId() {\r",
              "    return crypto.randomUUID();\r",
              "}\r",
              "\r",
              "const trackingId = generateTrackingId();\r",
              "\r",
              "pm.collectionVariables.set(\"trackingId\", trackingId);\r",
              "\r",
              "console.log(\"trackingId:\", trackingId);"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {}
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "src": "/C:/sources/test-afnor/generated-status/cdar-211-INV-VAL-2026-000010.xml"
            },
            {
              "key": "flowInfo",
              "value": "{\"name\":\"cdar-211-INV-VAL-2026-000010\",\"flowSyntax\":\"CDAR\"}",
              "type": "text",
              "uuid": "f5f53b63-6808-46f5-ba3f-e0abcda199d6"
            }
          ]
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows"
          ]
        }
      },
      "response": []
    },
    {
      "name": "3/ Flow - Search flows - Factures émises",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "const trackingId = pm.collectionVariables.get(\"trackingId\");\r",
              "\r",
              "// Si absent ou invalide, on génère un UUID valide\r",
              "const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\r",
              "\r",
              "if (!trackingId || !uuidRegex.test(trackingId)) {\r",
              "    const newTrackingId = crypto.randomUUID();\r",
              "    pm.collectionVariables.set(\"trackingId\", newTrackingId);\r",
              "    console.log(\"New trackingId:\", newTrackingId);\r",
              "} else {\r",
              "    console.log(\"Existing trackingId:\", trackingId);\r",
              "}"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {
          "content-type": true
        }
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"where\": {\n        \"updatedAfter\": \"2026-08-12T00:07:26.175Z\",\n        \"flowType\": [\"CustomerInvoice\"],\n        \"flowDirection\": [\"Out\"]\n    },\n    \"limit\": 100\n}"
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/search",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "search"
          ]
        }
      },
      "response": []
    },
    {
      "name": "3/ Flow - Search flows - Factures reçues",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "const trackingId = pm.collectionVariables.get(\"trackingId\");\r",
              "\r",
              "// Si absent ou invalide, on génère un UUID valide\r",
              "const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\r",
              "\r",
              "if (!trackingId || !uuidRegex.test(trackingId)) {\r",
              "    const newTrackingId = crypto.randomUUID();\r",
              "    pm.collectionVariables.set(\"trackingId\", newTrackingId);\r",
              "    console.log(\"New trackingId:\", newTrackingId);\r",
              "} else {\r",
              "    console.log(\"Existing trackingId:\", trackingId);\r",
              "}\r",
              "\r",
              "console.log(\"=== DIAGNOSTIC AUTHORIZATION ===\");\r",
              "\r",
              "const authHeader = pm.request.headers.get(\"Authorization\");\r",
              "\r",
              "if (authHeader) {\r",
              "    console.log(\"Authorization présent dans les headers\");\r",
              "\r",
              "    if (authHeader.startsWith(\"Bearer \")) {\r",
              "        const token = authHeader.substring(7);\r",
              "\r",
              "        console.log(\r",
              "            \"Bearer token : \" +\r",
              "            token.substring(0, 20) +\r",
              "            \"...\" +\r",
              "            token.substring(token.length - 8)\r",
              "        );\r",
              "\r",
              "        console.log(\"Longueur token :\", token.length);\r",
              "    } else {\r",
              "        console.log(\"Authorization :\", authHeader);\r",
              "    }\r",
              "} else {\r",
              "    console.log(\"ATTENTION : Authorization absent de pm.request.headers\");\r",
              "}"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {
          "content-type": true
        }
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"where\": {\n        \"updatedAfter\": \"2024-06-26T12:08:26.175Z\",\n        \"flowType\": [\"SupplierInvoice\"],\n        \"ackStatus\": \"Ok\"\n    },\n    \"limit\": 100\n}"
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/search",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "search"
          ]
        }
      },
      "response": []
    },
    {
      "name": "4/ Flow - Get metadata",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=Metadata",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "Metadata"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "4/ Flow - Download Original",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=Original",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "Original"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "4/ Flow - Download ReadableView",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=ReadableView",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "ReadableView"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "4/ Flow - Download Converted",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=Converted",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "Converted"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "4/ Flow - Download Ubl",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=Ubl",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "Ubl"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "5/ Flow - Search flows - Statuts émis sur Facture  émise",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "const trackingId = pm.collectionVariables.get(\"trackingId\");\r",
              "\r",
              "// Si absent ou invalide, on génère un UUID valide\r",
              "const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\r",
              "\r",
              "if (!trackingId || !uuidRegex.test(trackingId)) {\r",
              "    const newTrackingId = crypto.randomUUID();\r",
              "    pm.collectionVariables.set(\"trackingId\", newTrackingId);\r",
              "    console.log(\"New trackingId:\", newTrackingId);\r",
              "} else {\r",
              "    console.log(\"Existing trackingId:\", trackingId);\r",
              "}"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {
          "content-type": true
        }
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"where\": {\n        \"updatedAfter\": \"2024-01-27T12:08:26.175Z\",\n        \"flowType\": [\"CustomerInvoiceLC\"],\n        \"flowDirection\": [\"Out\"]\n    },\n    \"limit\": 100\n}"
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/search",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "search"
          ]
        }
      },
      "response": []
    },
    {
      "name": "5/ Flow - Search flows - Statuts reçus sur facture émise",
      "event": [
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              "const trackingId = pm.collectionVariables.get(\"trackingId\");\r",
              "\r",
              "// Si absent ou invalide, on génère un UUID valide\r",
              "const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\r",
              "\r",
              "if (!trackingId || !uuidRegex.test(trackingId)) {\r",
              "    const newTrackingId = crypto.randomUUID();\r",
              "    pm.collectionVariables.set(\"trackingId\", newTrackingId);\r",
              "    console.log(\"New trackingId:\", newTrackingId);\r",
              "} else {\r",
              "    console.log(\"Existing trackingId:\", trackingId);\r",
              "}"
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "protocolProfileBehavior": {
        "disabledSystemHeaders": {
          "content-type": true
        }
      },
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"where\": {\n        \"updatedAfter\": \"2026-08-07T17:00:00.175Z\",\n        \"flowType\": [\"SupplierInvoiceLC\"],\n        \"flowDirection\" : [\"In\"]\n    },\n    \"limit\": 100\n}"
        },
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/search",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "search"
          ]
        }
      },
      "response": []
    },
    {
      "name": "6/ Flow - Get metadata du Statut",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=Metadata",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "Metadata"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "5/ Flow - Download Original du Statut (CDAR)",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/flows/{{flow_id}}?docType=Original",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "flows",
            "{{flow_id}}"
          ],
          "query": [
            {
              "key": "docType",
              "value": "Original"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "Supervisor - Healthcheck",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "Bearer {{access_token}}"
          },
          {
            "key": "Organization-Id",
            "value": "{{tenantSlug}}",
            "type": "text"
          }
        ],
        "url": {
          "raw": "{{tenant_public_api_url}}/v1/healthcheck",
          "host": [
            "{{tenant_public_api_url}}"
          ],
          "path": [
            "v1",
            "healthcheck"
          ]
        }
      },
      "response": []
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "token_type",
      "value": ""
    },
    {
      "key": "token_expires_in",
      "value": ""
    },
    {
      "key": "trackingId",
      "value": ""
    },
    {
      "key": "access_token",
      "value": ""
    }
  ]
}