{
  "info": {
    "description": "Sandbox examples. Set ci_key to your test key and client_ref to your own reference.",
    "name": "Capture Intelligence API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Lookup by address",
      "request": {
        "body": {
          "mode": "raw",
          "options": {
            "raw": {
              "language": "json"
            }
          },
          "raw": "{\n  \"address\": \"1 Sandbox Street, Testville\",\n  \"view\": \"full\"\n}"
        },
        "header": [
          {
            "key": "x-ci-key",
            "type": "text",
            "value": "{{ci_key}}"
          },
          {
            "key": "x-client-ref",
            "type": "text",
            "value": "{{client_ref}}"
          },
          {
            "key": "content-type",
            "type": "text",
            "value": "application/json"
          }
        ],
        "method": "POST",
        "url": {
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v1",
            "lookup"
          ],
          "raw": "{{base_url}}/v1/lookup"
        }
      }
    },
    {
      "name": "Lookup by CV + address",
      "request": {
        "body": {
          "mode": "raw",
          "options": {
            "raw": {
              "language": "json"
            }
          },
          "raw": "{\n  \"address\": \"4 Sandbox Street, Testville\",\n  \"order_id\": \"CV900004\"\n}"
        },
        "header": [
          {
            "key": "x-ci-key",
            "type": "text",
            "value": "{{ci_key}}"
          },
          {
            "key": "x-client-ref",
            "type": "text",
            "value": "{{client_ref}}"
          },
          {
            "key": "content-type",
            "type": "text",
            "value": "application/json"
          }
        ],
        "method": "POST",
        "url": {
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v1",
            "lookup"
          ],
          "raw": "{{base_url}}/v1/lookup"
        }
      }
    },
    {
      "name": "Lookup with unit",
      "request": {
        "body": {
          "mode": "raw",
          "options": {
            "raw": {
              "language": "json"
            }
          },
          "raw": "{\n  \"address\": \"2 Sandbox Street, Testville\",\n  \"unit\": \"1\"\n}"
        },
        "header": [
          {
            "key": "x-ci-key",
            "type": "text",
            "value": "{{ci_key}}"
          },
          {
            "key": "x-client-ref",
            "type": "text",
            "value": "{{client_ref}}"
          },
          {
            "key": "content-type",
            "type": "text",
            "value": "application/json"
          }
        ],
        "method": "POST",
        "url": {
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v1",
            "lookup"
          ],
          "raw": "{{base_url}}/v1/lookup"
        }
      }
    },
    {
      "name": "Insurance report link",
      "request": {
        "header": [
          {
            "key": "x-ci-key",
            "type": "text",
            "value": "{{ci_key}}"
          },
          {
            "key": "x-client-ref",
            "type": "text",
            "value": "{{client_ref}}"
          }
        ],
        "method": "GET",
        "url": {
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v1",
            "orders",
            ":cv",
            "report",
            ":kind"
          ],
          "raw": "{{base_url}}/v1/orders/:cv/report/:kind",
          "variable": [
            {
              "key": "cv",
              "value": "CV900001"
            },
            {
              "key": "kind",
              "value": "insurance"
            }
          ]
        }
      }
    },
    {
      "name": "Bank report link",
      "request": {
        "header": [
          {
            "key": "x-ci-key",
            "type": "text",
            "value": "{{ci_key}}"
          },
          {
            "key": "x-client-ref",
            "type": "text",
            "value": "{{client_ref}}"
          }
        ],
        "method": "GET",
        "url": {
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v1",
            "orders",
            ":cv",
            "report",
            ":kind"
          ],
          "raw": "{{base_url}}/v1/orders/:cv/report/:kind",
          "variable": [
            {
              "key": "cv",
              "value": "CV900001"
            },
            {
              "key": "kind",
              "value": "bank"
            }
          ]
        }
      }
    },
    {
      "name": "Photo link",
      "request": {
        "header": [
          {
            "key": "x-ci-key",
            "type": "text",
            "value": "{{ci_key}}"
          },
          {
            "key": "x-client-ref",
            "type": "text",
            "value": "{{client_ref}}"
          }
        ],
        "method": "GET",
        "url": {
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "v1",
            "orders",
            ":cv",
            "photos",
            ":ref"
          ],
          "raw": "{{base_url}}/v1/orders/:cv/photos/:ref",
          "variable": [
            {
              "key": "cv",
              "value": "CV900001"
            },
            {
              "key": "ref",
              "value": "p01"
            }
          ]
        }
      }
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.adminit.org.za"
    },
    {
      "key": "ci_key",
      "value": ""
    },
    {
      "key": "client_ref",
      "value": "postman"
    }
  ]
}
