NAV
JavaScript cURL Schema

Getting Started

Environments

Currently, there are 2 publicly accessible environments for Navarik Bridge. These are differentiable by the baseURL and this is set as a variable in the collection (read below).

  1. DEMO - For learning and demonstrating capabilities of Bridge API's. Available to anyone using a test API key ().
  2. PRODUCTION - Live production environment with client's real data. Available only to authenticated users using their unique API keys.

Example code

There are JavaScript and cURL examples for each API call, which you can access via the tabs in the right sidebar. Also, for objects that you can create, there will be Schema entries available for each object creation API call.

The object creation schema use a concise JavaScript format with the following field types:

Type Description
string JSON-compatible string
int Integer
float Floating point number
boolean true or false
datetime ISO 8601 date and time, as a string
reference ID value of another entity, typically as a UUID string

All API objects are transmitted in JSON format, so any limitations of JSON types apply here.

Authentication

Most of the Navarik Bridge APIs require authentication. Identity information is provided to the APIs via a Authorization header with an API key as a Bearer token.

Please contact Navarik Support to obtain a demo API key.

How to use bearer tokens for calls

For API endpoints which a bearer token is required, please ensure you have supplied your bearer token in the header for the call to be successful.

Authorization: Bearer cfe516b8-7b6d-4e2e-a8b6-1286ea1429e4

HTTP Status Code Summary

This API documentation is organized in the following format for each call:

Error Code Meaning
200 Successful response -- Good call on GET calls.
201 Created -- Successful POST or PUT.
400 Bad Request -- Check the request to ensure it matches the schema expected.
401 Unauthorized -- No bearer token.
403 Forbidden -- Successful authorization to Navarik Bridge but unable to access the data requested.
404 Not Found -- Bad request.
500 Internal Server Error
503 Service Unavailable

Service Health

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/health'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://api.navarik.com/bridge/v1/health',
  'headers': {
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "transport": "healthy",
    "metadataStore": "healthy",
    "dataStore": "healthy"
}

Checks the health of the API server.

GET https://api.navarik.com/bridge/v1/health

Route Parameters

None

Query Parameters

None

Headers

None

Submit Inspection Job

Example request

curl -X PUT https://api.navarik.com/bridge/v1/data/jobs \
  -H 'Authorization: Bearer {token}'
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Accept-Version: 1.0'
const inputBody = '{
  "jobType": "SAMPLE_AND_ANALYSIS",
  "status": "ACTIVE",
  "refNumber": "FTF100500",
  "tripNumber": "TRIP456",
  "region":  "EMEA",
  "activity": "SAMPLE",
  "sampleDate": "2019-06-28T15:00:00.000Z",
  "coordinator": "A Person <a.person@navarik.com",
  "operator": "A Nother <a.nother@navarik.com>",
  "inspectors": [
      {
          "role": "inspector",
          "inspector": "B Person <b.person@navarik.com>"
      },
      {
          "role": "sampler",
          "inspector": "C Worthy <c.worthy@navarik.com>"
      }
  ],
  "vendor": {
      "name": "Test Inspection, Inc.",
      "xref": "12345"
  },
  "client": {
      "name": "Something Something Oil corp.",
      "xref": "67890"
  },
  "inspectionObjects": [
      {
          "object": {
              "type": "BARGE",
              "name": "Nameless Barge",
              "imo": "0",
              "imoValid": true
          },
          "location": {
              "type": "PORT",
              "name": "Finnart",
              "country": "United Kingdom"
          }
      }
  ],
  "cargoes": [
      {
          "number": 1,
          "product": {
              "xref": "123-312",
              "type": "Crude",
              "name": "Baobab",
              "sensitive": true
          }
      }
  ]
}';

const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'Accept-Version':'1.0'
};

fetch('https://api.navarik.com/bridge/v1/data/jobs',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

Body parameter

{ 
  "parent": "reference",
  "jobType": "string, required",
  "status": "string, required",
  "refNumber": "string, required",
  "tripNumber": "string, required",
  "region":  "string, required",
  "activity": "string, required",
  "international": "boolean",
  "eta": "datetime",
  "etc": "datetime",
  "notes": "string",
  "retain": "boolean",
  "retainDays": "int",
  "sampleDate": "datetime, required",
  "coordinator": "string, required",
  "operator": "string, required",
  "split": "float",
  "inspectors": [{
    "role": "string, required",
    "inspector": "string, required"
  }],
  "confirmedWith": "string",
  "vendor": {
    "name": "string, required",
    "xref": "string"
  },
  "client": {
    "name": "string, required",
    "xref": "string"
  },
  "inspectionObjects": [{
    "object": {
      "xref": "string, required",
      "name": "string, required",
      "type": "string, required",
      "imo": "string, required",
      "imoValid": "boolean, required"
    },
    "location": {
      "xref": "string, required",
      "type": "string, required",
      "name": "string, required",
      "country": "string, required"
    }
  }],
  "cargoes": [{
    "number": "int, required",
    "product": {
      "xref": "string, required",
      "type": "string, required",
      "name": "string, required",
      "code": "string",
      "description": "string",
      "sensitive": "boolean, required"
    },
    "volume": {
      "value": "float",
      "uom": {
        "xref": "string",
        "name": "string",
        "abbr": "string"
      }
    },
    "volumeType": "string",
    "tolerance": "string",
    "vcfTable": "string",
  }]
}

Parameters

Name In Type Required Description
clientCode path string true Resource client code
body body Location true none

Example responses

200 Response

{
"tbc": 0
}

Responses

Status Meaning Description Schema
201 Created Resource Created Location

Jobs

Get job list

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs?limit=2&offset=0&sort=body.refNumber:desc' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs?limit=2&offset=0&sort=body.refNumber:desc',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

[
    {
        "id": "56dac9fb-b3e0-489b-a3f8-254b4dccb69f",
        "version_id": "03ba3855-41a0-5d16-a018-bad1b5dca50a",
        "parent_id": null,
        "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "created_at": "2020-10-09T18:33:53.820Z",
        "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "modified_at": "2020-10-09T18:33:53.820Z",
        "type": "navarik.inspection.job",
        "body": {
            "parent": null,
            "xref": null,
            "refNumber": "uyu877gjghjui",
            "tripNumber": "",
            "jobType": "MARINE",
            "status": "",
            "activity": "LOAD",
            "eta": "2020-10-19T14:00:00.000Z",
            "etc": "2020-10-19T14:00:00.000Z",
            "notes": "string",
            "location": {
                "id": null,
                "xref": null,
                "name": "ANBERRA",
                "type": "PORT",
                "region": "REGION 1",
                "country": "ITALY"
            },
            "transports": [
                {
                    "type": "TANKER",
                    "id": null,
                    "xref": "123ABC-DEF456",
                    "name": null
                }
            ],
            "cargo": {
                "product": {
                    "id": null,
                    "xref": null,
                    "name": "CRUDE OIL",
                    "type": "CRUDE"
                },
                "quantity": {
                    "value": 12276,
                    "uom": {
                        "id": null,
                        "xref": null,
                        "name": "bbl"
                    }
                },
                "description": "string",
                "sensitive": false
            },
            "requested": {
                "quality": true,
                "quantity": false,
                "timelog": false
            },
            "client": {
                "id": null,
                "xref": null,
                "name": "ExxonMobil"
            },
            "vendor": {
                "id": null,
                "xref": null,
                "name": "SGS OIL CORP"
            },
            "assignees": [
                {
                    "role": "Operator",
                    "user": "John Watson"
                }
            ]
        },
        "meta": {},
        "schema": "2ea14438-d8dd-55a4-9a6b-934eda0db53e"
    },
    {
        "id": "b759e626-7af5-451e-b570-ed90e1312959",
        "version_id": "590e678f-ee10-564e-b91a-10a8ac41eee7",
        "parent_id": null,
        "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "created_at": "2020-10-09T21:10:53.576Z",
        "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "modified_at": "2020-10-09T21:10:53.576Z",
        "type": "navarik.inspection.job",
        "body": {
            "parent": null,
            "xref": null,
            "refNumber": "uyf77gjgfkkghf4ghghjui",
            "tripNumber": "",
            "jobType": "MARINE",
            "status": "",
            "activity": "LOAD",
            "eta": "2020-10-19T14:00:00.000Z",
            "etc": "2020-10-19T14:00:00.000Z",
            "notes": "string",
            "location": {
                "id": null,
                "xref": null,
                "name": "ANBERRA",
                "type": "PORT",
                "region": "REGION 1",
                "country": "ITALY"
            },
            "transports": [
                {
                    "type": "TANKER",
                    "id": null,
                    "xref": "123ABC-DEF456",
                    "name": null
                }
            ],
            "cargo": {
                "product": {
                    "id": null,
                    "xref": null,
                    "name": "CRUDE OIL",
                    "type": "CRUDE"
                },
                "quantity": {
                    "value": 12276,
                    "uom": {
                        "id": null,
                        "xref": null,
                        "name": "bbl"
                    }
                },
                "description": "string",
                "sensitive": false
            },
            "requested": {
                "quality": true,
                "quantity": false,
                "timelog": false
            },
            "client": {
                "id": null,
                "xref": null,
                "name": "ExxonMobil"
            },
            "vendor": {
                "id": null,
                "xref": null,
                "name": "SGS OIL CORP"
            },
            "assignees": [
                {
                    "role": "Operator",
                    "user": "John Watson"
                }
            ]
        },
        "meta": {},
        "schema": "2ea14438-d8dd-55a4-9a6b-934eda0db53e"
    }
]

Returns a list of all jobs. Optional query parameters can be used for paginating and sorting.

GET https://api.navarik.com/bridge/v1/data/jobs

Route Parameters

None

Query Parameters

Parameter Default Description
limit null pagination, page size
offset 0 pagination, start from
sort null sort by. eg. body.refNumber:desc

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Create job

Example request

curl --request POST 'https://api.navarik.com/bridge/v1/data/jobs/' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
    "refNumber": "usdfsdsdd7776hf4ghghjui",
    "tripNumber": "",
    "jobType": "MARINE",
    "status": "",
    "activity": "LOAD",
    "eta": "2020-10-19T14:00:00.000Z",
    "etc": "2020-10-19T14:00:00.000Z",
    "notes": "string",
    "location": {
      "name": "ANBERRA",   
      "type": "PORT",
      "region": "REGION 1",
      "country": "ITALY"
    },
    "transports": [{
      "type": "TANKER",
      "xref": "123ABC-DEF456"  
    }],
    "cargo": {
      "product": {
        "name": "CRUDE OIL",
        "type": "CRUDE"
      },
      "quantity": {
        "value": 12276,
        "uom": {
          "name": "bbl"
        }
      },
      "description": "string",
      "sensitive": false
    },
    "requested": {
      "quality": true,
      "quantity": false,
      "timelog": false
    },
    "client": {
      "name": "ExxonMobil"
    },
    "vendor": {
      "name": "SGS OIL CORP"
    },
    "assignees": [{
      "role": "Operator",
      "user": "John Watson"
    }]
  }'
const request = require('request');
const options = {
  method: 'POST',
  url: 'https://api.navarik.com/bridge/v1/data/jobs',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "refNumber": "usdfsdsdd7776hf4ghghjui",
    "tripNumber": "",
    "jobType": "MARINE",
    "status": "",
    "activity": "LOAD",
    "eta": "2020-10-19T14:00:00.000Z",
    "etc": "2020-10-19T14:00:00.000Z",
    "notes": "string",
    "location": {
      "name": "ANBERRA",
      "type": "PORT",
      "region": "REGION 1",
      "country": "ITALY"
    },
    "transports": [{ "type": "TANKER", "xref": "123ABC-DEF456" }],
    "cargo": {
      "product": { "name": "CRUDE OIL", "type": "CRUDE" },
      "quantity": { "value": 12276, "uom": { "name": "bbl" } },
      "description": "string",
      "sensitive": false
    },
    "requested": { "quality": true, "quantity": false, "timelog": false },
    "client": { "name": "ExxonMobil" },
    "vendor": { "name": "SGS OIL CORP" },
    "assignees": [{ "role": "Operator", "user": "John Watson" }]
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
const jobSchema = {
  parent: "reference",
  jobType: "string, required",
  status: "string, required",
  refNumber: "string, required",
  international: "boolean",
  eta: "datetime",
  etc: "datetime",
  notes: "string",
  retain: "boolean, required",
  retainDays: "int",
  coordinator: "string",
  inspectors: [{
    role: "string, required",
    inspector: "string, required"
  }],
  confirmedWith: "string",
  vendor: {
    name: "string, required",
    xref: "string, required"
  },
  client: {
    name: "string, required",
    xref: "string, required"
  },
  inspectionObjects: [{
    object: {
      xref: "string, required",
      name: "string, required",
      type: "string, required",
      imo: "string, required",
      imoValid: "boolean, required"
    },
    location: {
      xref: "string, required",
      type: "string, required",
      name: "string, required",
      country: "string, required"
    }
  }],
  cargoes: [{
    number: "int, required",
    product: {
      xref: "string, required",
      type: "string, required",
      name: "string, required",
      code: "string",
      description: "string",
      sensitive: "boolean, required"
    },
    volume: {
      value: "float",
      uom: {
        xref: "string",
        name: "string",
        abbr: "string"
      }
    },
    volumeType: "string",
    tolerance: "string",
    vcfTable: "string",
  }]
}

Example response

{
    "id": "69991dc8-56cf-48d3-b5bd-8369d9a3b73e",
    "version_id": "6a4b726f-f135-52a8-9299-bd12febd62c7",
    "parent_id": null,
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-14T18:15:25.402Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-14T18:15:25.402Z",
    "type": "navarik.inspection.job",
    "body": {
        "parent": null,
        "xref": null,
        "refNumber": "usdfsdsdd7776hf4ghghjui",
        "tripNumber": "",
        "jobType": "MARINE",
        "status": "",
        "activity": "LOAD",
        "eta": "2020-10-19T14:00:00.000Z",
        "etc": "2020-10-19T14:00:00.000Z",
        "notes": "string",
        "location": {
            "id": null,
            "xref": null,
            "name": "ANBERRA",
            "type": "PORT",
            "region": "REGION 1",
            "country": "ITALY"
        },
        "transports": [
            {
                "type": "TANKER",
                "id": null,
                "xref": "123ABC-DEF456",
                "name": null
            }
        ],
        "cargo": {
            "product": {
                "id": null,
                "xref": null,
                "name": "CRUDE OIL",
                "type": "CRUDE"
            },
            "quantity": {
                "value": 12276,
                "uom": {
                    "id": null,
                    "xref": null,
                    "name": "bbl"
                }
            },
            "description": "string",
            "sensitive": false
        },
        "requested": {
            "quality": true,
            "quantity": false,
            "timelog": false
        },
        "client": {
            "id": null,
            "xref": null,
            "name": "ExxonMobil"
        },
        "vendor": {
            "id": null,
            "xref": null,
            "name": "SGS OIL CORP"
        },
        "assignees": [
            {
                "role": "Operator",
                "user": "John Watson"
            }
        ]
    },
    "meta": {},
    "schema": "2ea14438-d8dd-55a4-9a6b-934eda0db53e"
}

Creates a new job and upon success returns that same data structure with a unique id field added that can be used to reference the job in subsequent requests.

POST https://api.navarik.com/bridge/v1/data/jobs

Route Parameters

None

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json

Get specific job

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/69991dc8-56cf-48d3-b5bd-8369d9a3b73e' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/69991dc8-56cf-48d3-b5bd-8369d9a3b73e',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "69991dc8-56cf-48d3-b5bd-8369d9a3b73e",
    "version_id": "6a4b726f-f135-52a8-9299-bd12febd62c7",
    "parent_id": null,
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-14T18:15:25.402Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-14T18:15:25.402Z",
    "type": "navarik.inspection.job",
    "body": {
        "parent": null,
        "xref": null,
        "refNumber": "usdfsdsdd7776hf4ghghjui",
        "tripNumber": "",
        "jobType": "MARINE",
        "status": "",
        "activity": "LOAD",
        "eta": "2020-10-19T14:00:00.000Z",
        "etc": "2020-10-19T14:00:00.000Z",
        "notes": "string",
        "location": {
            "id": null,
            "xref": null,
            "name": "ANBERRA",
            "type": "PORT",
            "region": "REGION 1",
            "country": "ITALY"
        },
        "transports": [
            {
                "type": "TANKER",
                "id": null,
                "xref": "123ABC-DEF456",
                "name": null
            }
        ],
        "cargo": {
            "product": {
                "id": null,
                "xref": null,
                "name": "CRUDE OIL",
                "type": "CRUDE"
            },
            "quantity": {
                "value": 12276,
                "uom": {
                    "id": null,
                    "xref": null,
                    "name": "bbl"
                }
            },
            "description": "string",
            "sensitive": false
        },
        "requested": {
            "quality": true,
            "quantity": false,
            "timelog": false
        },
        "client": {
            "id": null,
            "xref": null,
            "name": "ExxonMobil"
        },
        "vendor": {
            "id": null,
            "xref": null,
            "name": "SGS OIL CORP"
        },
        "assignees": [
            {
                "role": "Operator",
                "user": "John Watson"
            }
        ]
    },
    "meta": {},
    "schema": "2ea14438-d8dd-55a4-9a6b-934eda0db53e"
}

Gets a single job specified by the unique ID for that job. This id field can be found in the response received when creating or listing jobs.

GET https://api.navarik.com/bridge/v1/data/jobs/<id>

Route Parameters

Parameter Default Description
id null job id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Update job

Example request

curl --request PATCH 'https://api.navarik.com/bridge/v1/data/jobs/69991dc8-56cf-48d3-b5bd-8369d9a3b73e' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '  {
    "body": {
        "status": "PENDING",
        "notes": "Put on hold until further notice - PATCH test"
    }
  }'
const request = require('request');
const options = {
  method: 'PATCH',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/69991dc8-56cf-48d3-b5bd-8369d9a3b73e',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    body: {
      "status": "PENDING",
      "notes": "Put on hold until further notice - PATCH test"
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "69991dc8-56cf-48d3-b5bd-8369d9a3b73e",
    "version_id": "968d7d11-ec02-5cae-be3a-c5e17de08e9e",
    "parent_id": "6a4b726f-f135-52a8-9299-bd12febd62c7",
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-14T18:15:25.402Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-14T18:33:14.493Z",
    "type": "navarik.inspection.job",
    "body": {
        "parent": null,
        "xref": null,
        "refNumber": "usdfsdsdd7776hf4ghghjui",
        "tripNumber": "",
        "jobType": "MARINE",
        "status": "PENDING",
        "activity": "LOAD",
        "eta": "2020-10-19T14:00:00.000Z",
        "etc": "2020-10-19T14:00:00.000Z",
        "notes": "Put on hold until further notice - PATCH test",
        "location": {
            "id": null,
            "xref": null,
            "name": "ANBERRA",
            "type": "PORT",
            "region": "REGION 1",
            "country": "ITALY"
        },
        "transports": [
            {
                "type": "TANKER",
                "id": null,
                "xref": "123ABC-DEF456",
                "name": null
            }
        ],
        "cargo": {
            "product": {
                "id": null,
                "xref": null,
                "name": "CRUDE OIL",
                "type": "CRUDE"
            },
            "quantity": {
                "value": 12276,
                "uom": {
                    "id": null,
                    "xref": null,
                    "name": "bbl"
                }
            },
            "description": "string",
            "sensitive": false
        },
        "requested": {
            "quality": true,
            "quantity": false,
            "timelog": false
        },
        "client": {
            "id": null,
            "xref": null,
            "name": "ExxonMobil"
        },
        "vendor": {
            "id": null,
            "xref": null,
            "name": "SGS OIL CORP"
        },
        "assignees": [
            {
                "role": "Operator",
                "user": "John Watson"
            }
        ]
    },
    "meta": {},
    "schema": "2ea14438-d8dd-55a4-9a6b-934eda0db53e"
}

Updates a job specified by the unique ID for that job. This id field can be found in the response received when creating or listing jobs.

PATCH https://api.navarik.com/bridge/v1/data/jobs/<id>

Route Parameters

Parameter Default Description
id null job id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json

Documents

Get document list

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents?limit=2&offset=0&sort=type:asc',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

[
    {
        "id": "ed86ae29-91f9-4763-9357-2dc3df7eab86",
        "version_id": "af5a6137-aa69-5e10-a916-c4ba78bd137a",
        "parent_id": null,
        "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
        "created_at": "2020-08-26T21:54:03.682Z",
        "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
        "modified_at": "2020-08-26T21:54:03.682Z",
        "type": "navarik.inspection.timeLog",
        "body": {
            "parent": "d37c5051-2507-42f2-87c6-d703c83b1894",
            "pumpingRate": "0.07",
            "events": [
                {
                    "name": "Connect Hose",
                    "date": "2020-08-11",
                    "time": "07:51:19.956Z",
                    "remark": "Successful"
                },
                {
                    "name": "Discharge Cargo",
                    "date": "2020-08-12",
                    "time": "09:53:20.711Z",
                    "remark": null
                }
            ]
        },
        "meta": {},
        "schema": "4bac2fad-51b4-5956-a1a6-9c118e572ebe"
    }
]

Returns a list of all inspection documents of a job given that job's unique id. Optional query parameters can be used for paginating and sorting.

GET https://api.navarik.com/bridge/v1/data/jobs/<jobId>/documents

Route Parameters

Parameter Default Description
jobId null job id (required)

Query Parameters

Parameter Default Description
limit null pagination, page size
offset 0 pagination, start from
sort null sort by. eg. type:asc

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Create document

Example request

curl --request POST 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "type": "navarik.inspection.timeLog",
  "body": {
    "parent": "d37c5051-2507-42f2-87c6-d703c83b1894",
    "pumpingRate": "0.07",
    "events": [
      {"name": "Connect Hose",
      "date": "2020-08-11",
      "time": "07:51:19.956Z",
      "remark": "Successful"},
      {"name": "Discharge Cargo",
      "date": "2020-08-12",
      "time": "09:53:20.711Z",
      "remake": "No Remark"}
    ]
  },
  "schema": {
    "fields": {
    "parent": "reference, required",
    "pumpingRate": "string",
    "events": [{
      "name": "string",
      "date": "string",
      "time": "string",
      "remark": "string"
    }]
  }
  }
}'
const request = require('request');
const options = {
  method: 'POST',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "type": "navarik.inspection.timeLog",
    "body": {
      "parent": "d37c5051-2507-42f2-87c6-d703c83b1894",
      "pumpingRate": "0.07",
      "events": [
        {
          "name": "Connect Hose",
          "date": "2020-08-11",
          "time": "07:51:19.956Z",
          "remark": "Successful"
        }, {
          "name": "Discharge Cargo",
          "date": "2020-08-12",
          "time": "09:53:20.711Z",
          "remake": "No Remark"
        }
      ]
    },
    "schema": {
      "fields": {
        "parent": "reference, required",
        "pumpingRate": "string",
        "events": [
          {
            "name": "string",
            "date": "string",
            "time": "string",
            "remark": "string"
          }
        ]
      }
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "ed86ae29-91f9-4763-9357-2dc3df7eab86",
    "version_id": "af5a6137-aa69-5e10-a916-c4ba78bd137a",
    "parent_id": null,
    "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "created_at": "2020-08-26T21:54:03.682Z",
    "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "modified_at": "2020-08-26T21:54:03.682Z",
    "type": "navarik.inspection.timeLog",
    "body": {
        "parent": "d37c5051-2507-42f2-87c6-d703c83b1894",
        "pumpingRate": "0.07",
        "events": [
            {
                "name": "Connect Hose",
                "date": "2020-08-11",
                "time": "07:51:19.956Z",
                "remark": "Successful"
            },
            {
                "name": "Discharge Cargo",
                "date": "2020-08-12",
                "time": "09:53:20.711Z",
                "remark": null
            }
        ]
    },
    "meta": {},
    "schema": "4bac2fad-51b4-5956-a1a6-9c118e572ebe"
}

Creates a supporting inspection document for a job specified by that job's unique id.

POST https://api.navarik.com/bridge/v1/data/jobs/<jobId>/documents

Route Parameters

Parameter Default Description
jobId null job id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Get specific document

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents/ed86ae29-91f9-4763-9357-2dc3df7eab86' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents/ed86ae29-91f9-4763-9357-2dc3df7eab86',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "ed86ae29-91f9-4763-9357-2dc3df7eab86",
    "version_id": "af5a6137-aa69-5e10-a916-c4ba78bd137a",
    "parent_id": null,
    "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "created_at": "2020-08-26T21:54:03.682Z",
    "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "modified_at": "2020-08-26T21:54:03.682Z",
    "type": "navarik.inspection.timeLog",
    "body": {
        "parent": "d37c5051-2507-42f2-87c6-d703c83b1894",
        "pumpingRate": "0.07",
        "events": [
            {
                "name": "Connect Hose",
                "date": "2020-08-11",
                "time": "07:51:19.956Z",
                "remark": "Successful"
            },
            {
                "name": "Discharge Cargo",
                "date": "2020-08-12",
                "time": "09:53:20.711Z",
                "remark": null
            }
        ]
    },
    "meta": {},
    "schema": "4bac2fad-51b4-5956-a1a6-9c118e572ebe"
}

Gets a single inspection document given the document's id and the id of the job it belongs to.

GET https://api.navarik.com/bridge/v1/data/jobs/<jobId>/documents/<docId>

Route Parameters

Parameter Default Description
jobId null job id (required)
docId null document id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Update document

Example request

curl --request PATCH 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents/ed86ae29-91f9-4763-9357-2dc3df7eab86' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "body": {
    "pumpingRate": "0.8"
  }
}'
const request = require('request');
const options = {
  method: 'PATCH',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/d37c5051-2507-42f2-87c6-d703c83b1894/documents/ed86ae29-91f9-4763-9357-2dc3df7eab86',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "body": {
      "pumpingRate": "0.8"
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "ed86ae29-91f9-4763-9357-2dc3df7eab86",
    "version_id": "c7a24d19-c348-52e2-a44c-90b54f6de88d",
    "parent_id": "af5a6137-aa69-5e10-a916-c4ba78bd137a",
    "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "created_at": "2020-08-26T21:54:03.682Z",
    "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "modified_at": "2020-08-26T22:35:32.947Z",
    "type": "navarik.inspection.timeLog",
    "body": {
        "parent": "d37c5051-2507-42f2-87c6-d703c83b1894",
        "pumpingRate": "0.8",
        "events": [
            {
                "name": "Connect Hose",
                "date": "2020-08-11",
                "time": "07:51:19.956Z",
                "remark": "Successful"
            },
            {
                "name": "Discharge Cargo",
                "date": "2020-08-12",
                "time": "09:53:20.711Z",
                "remark": null
            }
        ]
    },
    "meta": {},
    "schema": "4bac2fad-51b4-5956-a1a6-9c118e572ebe"
}

Updates an inspection document given the document's id and the id of the job it belongs to.

PATCH https://api.navarik.com/bridge/v1/data/jobs/<jobId>/documents/<docId>

Route Parameters

Parameter Default Description
jobId null job id (required)
docId null document id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json

Invoices

Get invoice list

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/invoices' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/invoices',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

[
    {
        "id": "27a091a4-6ae2-411d-85d9-cdfc67f339a5",
        "version_id": "868999ae-6edb-5637-938a-afbea5ad1a7f",
        "parent_id": null,
        "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
        "created_at": "2020-08-11T07:29:59.975Z",
        "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
        "modified_at": "2020-08-11T07:29:59.975Z",
        "type": "navarik.invoice",
        "body": {
            "refNumber": "TI100300",
            "status": "PENDING",
            "baseDocument": null,
            "issueDate": "2019-07-20T17:00:00.000Z",
            "dueDate": "2019-08-31T17:00:00.000Z",
            "description": "Some very important information that nobody reads",
            "customer": {
                "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
                "address": null,
                "email": null,
                "name": "Something Something Oil corp.",
                "phone": null
            },
            "lines": [
                {
                    "amount": 100500.5,
                    "currency": "CAD",
                    "description": "Such doge",
                    "price": 100500.5,
                    "quantity": 1,
                    "taxes": [
                        {
                            "name": "WOW",
                            "rate": 0.5
                        }
                    ]
                },
                {
                    "amount": 100500.5,
                    "currency": "CAD",
                    "description": "Many Wow",
                    "price": 100500.5,
                    "quantity": 1,
                    "taxes": [
                        {
                            "name": "WOW",
                            "rate": 0.5
                        }
                    ]
                }
            ],
            "currency": "CAD",
            "subtotal": 201001,
            "tax": 100500.5,
            "total": 301500.5,
            "totalTax": [
                {
                    "name": "WOW",
                    "rate": 0.5
                }
            ],
            "credit": false,
            "amountDue": 301500.5,
            "amountPaid": 0,
            "amountRemaining": 301500.5
        },
        "meta": {
            "sc": "c389352c-54d8-400e-95e8-597b9a4410e8"
        },
        "schema": "e7b0b07b-db20-5c65-a1f3-a158f9c0b507"
    },
    {
        "id": "b0663db1-e4cf-43e7-aa01-935f9ca47825",
        "version_id": "49001eea-b416-5d5a-aa71-d5cef20bf345",
        "parent_id": null,
        "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
        "created_at": "2020-08-11T05:35:54.501Z",
        "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
        "modified_at": "2020-08-11T05:35:54.501Z",
        "type": "navarik.invoice",
        "body": {
            "refNumber": "TI100301",
            "status": "PAID",
            "baseDocument": "aa5589a3-cddd-416c-89d6-ea29851e4762",
            "issueDate": "2019-03-20T17:00:00.000Z",
            "dueDate": "2019-04-28T17:00:00.000Z",
            "description": "Some very important information that nobody reads",
            "customer": {
                "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
                "address": null,
                "email": null,
                "name": "Something Something Oil corp.",
                "phone": null
            },
            "lines": [
                {
                    "amount": 100500.5,
                    "currency": "CAD",
                    "description": "Such doge",
                    "price": 100500.5,
                    "quantity": 1,
                    "taxes": [
                        {
                            "name": "WOW",
                            "rate": 0.5
                        }
                    ]
                },
                {
                    "amount": 100500.5,
                    "currency": "CAD",
                    "description": "Many Wow",
                    "price": 100500.5,
                    "quantity": 1,
                    "taxes": [
                        {
                            "name": "WOW",
                            "rate": 0.5
                        }
                    ]
                }
            ],
            "currency": "CAD",
            "subtotal": 201001,
            "tax": 100500.5,
            "total": 301500.5,
            "totalTax": [
                {
                    "name": "WOW",
                    "rate": 0.5
                }
            ],
            "credit": false,
            "amountDue": 301500.5,
            "amountPaid": 301500.5,
            "amountRemaining": 0
        },
        "meta": {
            "sc": "23790864-b919-4314-a471-7133f30fd774"
        },
        "schema": "e7b0b07b-db20-5c65-a1f3-a158f9c0b507"
    }
]

Returns a list of all invoices. Optional query parameters can be used for paginating and sorting.

GET https://api.navarik.com/bridge/v1/data/invoices

Route Parameters

None

Query Parameters

Parameter Default Description
limit null pagination, page size
offset 0 pagination, start from
sort null sort by. eg. body.refNumber:desc

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Create invoice

Example request

curl --request POST 'https://api.navarik.com/bridge/v1/data/invoices/' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "refNumber": "TI100300",
  "status": "PENDING",
  "issueDate": "2019-07-20T17:00:00.000Z",
  "dueDate": "2019-08-31T17:00:00.000Z",
  "baseDocument": null,
  "description": "Some very important information that nobody reads",
  "customer": {
    "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
    "name": "Something Something Oil corp.",
    "address": null,
    "phone": null,
    "email": null
  },
  "lines": [
    {
        "amount": 100500.50,
        "currency": "CAD",
        "description": "Such doge",
        "price": 100500.50,
        "quantity": 1,
        "taxes": [
        {
          "name": "WOW",
          "rate": 0.5
        }
      ]
    },
    {
      "amount": 100500.50,
      "currency": "CAD",
      "description": "Many Wow",
      "price": 100500.50,
      "quantity": 1,
      "taxes": [
        {
          "name": "WOW",
          "rate": 0.5
        }
      ]
    }
  ],
  "currency": "CAD",
  "subtotal": 201001,
  "tax": 100500.5,
  "total": 301500.5,
  "totalTax": [
    {
      "name": "WOW",
      "rate": 0.5
    }
  ],
  "credit": false,
  "amountDue": 301500.5,
  "amountPaid": 0,
  "amountRemaining": 301500.5
}'
const request = require('request');
const options = {
  method: 'POST',
  url: 'https://api.navarik.com/bridge/v1/data/invoices',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
  "refNumber": "TI100300",
  "status": "PENDING",
  "issueDate": "2019-07-20T17:00:00.000Z",
  "dueDate": "2019-08-31T17:00:00.000Z",
  "baseDocument": null,
  "description": "Some very important information that nobody reads",
  "customer": {
    "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
    "name": "Something Something Oil corp.",
    "address": null,
    "phone": null,
    "email": null
  },
  "lines": [
    {
      "amount": 100500.50,
      "currency": "CAD",
      "description": "Such doge",
      "price": 100500.50,
      "quantity": 1,
      "taxes": [
        {
          "name": "WOW",
          "rate": 0.5
        }
      ]
    },
    {
      "amount": 100500.50,
      "currency": "CAD",
      "description": "Many Wow",
      "price": 100500.50,
      "quantity": 1,
      "taxes": [
        {
          "name": "WOW",
          "rate": 0.5
        }
      ]
    }
  ],
  "currency": "CAD",
  "subtotal": 201001,
  "tax": 100500.5,
  "total": 301500.5,
  "totalTax": [
    {
      "name": "WOW",
      "rate": 0.5
    }
  ],
  "credit": false,
  "amountDue": 301500.5,
  "amountPaid": 0,
  "amountRemaining": 301500.5
}


};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "27a091a4-6ae2-411d-85d9-cdfc67f339a5",
    "version_id": "868999ae-6edb-5637-938a-afbea5ad1a7f",
    "parent_id": null,
    "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "created_at": "2020-08-11T07:29:59.975Z",
    "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "modified_at": "2020-08-11T07:29:59.975Z",
    "type": "navarik.invoice",
    "body": {
        "refNumber": "TI100300",
        "status": "PENDING",
        "baseDocument": null,
        "issueDate": "2019-07-20T17:00:00.000Z",
        "dueDate": "2019-08-31T17:00:00.000Z",
        "description": "Some very important information that nobody reads",
        "customer": {
            "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
            "address": null,
            "email": null,
            "name": "Something Something Oil corp.",
            "phone": null
        },
        "lines": [
            {
                "amount": 100500.5,
                "currency": "CAD",
                "description": "Such doge",
                "price": 100500.5,
                "quantity": 1,
                "taxes": [
                    {
                        "name": "WOW",
                        "rate": 0.5
                    }
                ]
            },
            {
                "amount": 100500.5,
                "currency": "CAD",
                "description": "Many Wow",
                "price": 100500.5,
                "quantity": 1,
                "taxes": [
                    {
                        "name": "WOW",
                        "rate": 0.5
                    }
                ]
            }
        ],
        "currency": "CAD",
        "subtotal": 201001,
        "tax": 100500.5,
        "total": 301500.5,
        "totalTax": [
            {
                "name": "WOW",
                "rate": 0.5
            }
        ],
        "credit": false,
        "amountDue": 301500.5,
        "amountPaid": 0,
        "amountRemaining": 301500.5
    },
    "meta": {
        "sc": "c389352c-54d8-400e-95e8-597b9a4410e8"
    },
    "schema": "e7b0b07b-db20-5c65-a1f3-a158f9c0b507"
}

Creates an invoice and upon success returns that same data structure with a unique id field added that can be used to reference the job in subsequent requests.

POST https://api.navarik.com/bridge/v1/data/invoices

Route Parameters

None

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json

Get specific invoice

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/invoices/1d2e1b7e-12cc-45b8-97c1-54fead899d18' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/invoices/1d2e1b7e-12cc-45b8-97c1-54fead899d18',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "1d2e1b7e-12cc-45b8-97c1-54fead899d18",
    "version_id": "e124e34c-48d3-5e28-b9c4-17f445afa27e",
    "parent_id": null,
    "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "created_at": "2020-08-26T19:27:20.444Z",
    "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "modified_at": "2020-08-26T19:27:20.444Z",
    "type": "navarik.invoice",
    "body": {
        "refNumber": "TI100300",
        "status": "PENDING",
        "baseDocument": null,
        "issueDate": "2019-07-20T17:00:00.000Z",
        "dueDate": "2019-08-31T17:00:00.000Z",
        "description": "Some very important information that nobody reads",
        "customer": {
            "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
            "address": null,
            "email": null,
            "name": "Something Something Oil corp.",
            "phone": null
        },
        "lines": [
            {
                "amount": 100500.5,
                "currency": "CAD",
                "description": "Such doge",
                "price": 100500.5,
                "quantity": 1,
                "taxes": [
                    {
                        "name": "WOW",
                        "rate": 0.5
                    }
                ]
            },
            {
                "amount": 100500.5,
                "currency": "CAD",
                "description": "Many Wow",
                "price": 100500.5,
                "quantity": 1,
                "taxes": [
                    {
                        "name": "WOW",
                        "rate": 0.5
                    }
                ]
            }
        ],
        "currency": "CAD",
        "subtotal": 201001,
        "tax": 100500.5,
        "total": 301500.5,
        "totalTax": [
            {
                "name": "WOW",
                "rate": 0.5
            }
        ],
        "credit": false,
        "amountDue": 301500.5,
        "amountPaid": 0,
        "amountRemaining": 301500.5
    },
    "meta": {},
    "schema": "e7b0b07b-db20-5c65-a1f3-a158f9c0b507"
}

Gets a single invoice specified by the unique ID for that job. This id field can be found in the response received when creating or listing jobs.

GET https://api.navarik.com/bridge/v1/data/invoices/<id>

Route Parameters

Parameter Default Description
id null invoice id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Update invoice

Example request

curl --request PATCH 'https://api.navarik.com/bridge/v1/data/invoices/1d2e1b7e-12cc-45b8-97c1-54fead899d18' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "body": {
    "status": "PAID",
    "amountPaid": 301500.5,
    "amountRemaining": 0
  }
}'
const request = require('request');
const options = {
  method: 'PATCH',
  url: 'https://api.navarik.com/bridge/v1/data/invoices/1d2e1b7e-12cc-45b8-97c1-54fead899d18',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "body": {
      "status":"PAID",
      "amountPaid":301500.5,
      "amountRemaining":0
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "1d2e1b7e-12cc-45b8-97c1-54fead899d18",
    "version_id": "074dd4df-faf3-518e-854a-02dcd24208ec",
    "parent_id": "e124e34c-48d3-5e28-b9c4-17f445afa27e",
    "created_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "created_at": "2020-08-26T19:27:20.444Z",
    "modified_by": "17b704ab-8b16-5517-bd38-11714f3aab85",
    "modified_at": "2020-08-26T20:15:28.987Z",
    "type": "navarik.invoice",
    "body": {
        "refNumber": "TI100300",
        "status": "PAID",
        "baseDocument": null,
        "issueDate": "2019-07-20T17:00:00.000Z",
        "dueDate": "2019-08-31T17:00:00.000Z",
        "description": "Some very important information that nobody reads",
        "customer": {
            "id": "aa5589a3-cddd-416c-89d6-ea29851e4762",
            "address": null,
            "email": null,
            "name": "Something Something Oil corp.",
            "phone": null
        },
        "lines": [
            {
                "amount": 100500.5,
                "currency": "CAD",
                "description": "Such doge",
                "price": 100500.5,
                "quantity": 1,
                "taxes": [
                    {
                        "name": "WOW",
                        "rate": 0.5
                    }
                ]
            },
            {
                "amount": 100500.5,
                "currency": "CAD",
                "description": "Many Wow",
                "price": 100500.5,
                "quantity": 1,
                "taxes": [
                    {
                        "name": "WOW",
                        "rate": 0.5
                    }
                ]
            }
        ],
        "currency": "CAD",
        "subtotal": 201001,
        "tax": 100500.5,
        "total": 301500.5,
        "totalTax": [
            {
                "name": "WOW",
                "rate": 0.5
            }
        ],
        "credit": false,
        "amountDue": 301500.5,
        "amountPaid": 301500.5,
        "amountRemaining": 0
    },
    "meta": {},
    "schema": "e7b0b07b-db20-5c65-a1f3-a158f9c0b507"
}

Updates an invoice

PATCH https://api.navarik.com/bridge/v1/data/invoices/<id>

Parameters

Parameter Default Description
id null invoice id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json

NI Quality Tests

Get quality test list

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality?limit=2&offset=0&sort=type:asc',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

[
    {
        "id": "76565299-a213-4059-a8bf-7ff5fd131778",
        "version_id": "a46125f1-9f67-5083-85e3-02dc2acda1ba",
        "parent_id": null,
        "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "created_at": "2020-10-09T21:56:04.054Z",
        "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "modified_at": "2020-10-09T21:56:04.054Z",
        "type": "navarik.inspection.qualityResult",
        "body": {
            "parent": "b759e626-7af5-451e-b570-ed90e1312959",
            "sample": {
                "id": null,
                "xref": null,
                "refNumber": "ABC 1234",
                "description": "something something",
                "sealNumber": "DEF 456",
                "location": "Vaut 13"
            },
            "test": {
                "id": null,
                "xref": "SOME-123-THING",
                "name": null
            },
            "method": {
                "id": null,
                "xref": null,
                "name": "observation"
            },
            "uom": {
                "id": null,
                "xref": null,
                "name": "bbl"
            },
            "testDate": "2019-06-28T14:00:00.000Z",
            "result": "much amaze!",
            "comment": "wow such much",
            "isRetestNeeded": false,
            "isOffSpec": false,
            "isPreviouslySubmitted": false,
            "isPerformed": null,
            "isPassed": true
        },
        "meta": {},
        "schema": "6e34d00e-9f21-5fcb-841b-38a9c46f8ecc"
    }
]

Returns a list of all inspection quality test data for a job given that job's unique id. Optional query parameters can be used for paginating and sorting.

GET https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quality

Route Parameters

Parameter Default Description
jobId null job id (required)

Query Parameters

Parameter Default Description
limit null pagination, page size
offset 0 pagination, start from
sort null sort by. eg. type:asc

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Create quality test

Example request

curl --request POST 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "sample": {
    "refNumber": "ABC 1234",
    "description": "something something",
    "sealNumber": "DEF 456",
    "location": "Vaut 13"
  },
  "test": {
    "xref": "SOME-123-THING"
  },
  "method": {
    "name": "observation"
  },
  "uom": {
    "name": "bbl"
  },
  "testDate": "2019-06-28T14:00:00.000Z",
  "result": "much amaze!",
  "comment": "wow such much",
  "isRetestNeeded": false,
  "isOffSpec": false,
  "isPreviouslySubmitted": false,
  "isPerfomed": true,
  "isPassed": true
}'
const request = require('request');
const options = {
  method: 'POST',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
  "sample": {
    "refNumber": "ABC 1234",
    "description": "something something",
    "sealNumber": "DEF 456",
    "location": "Vaut 13"
  },
  "test": {
    "xref": "SOME-123-THING"
  },
  "method": {
    "name": "observation"
  },
  "uom": {
    "name": "bbl"
  },
  "testDate": "2019-06-28T14:00:00.000Z",
  "result": "much amaze!",
  "comment": "wow such much",
  "isRetestNeeded": false,
  "isOffSpec": false,
  "isPreviouslySubmitted": false,
  "isPerfomed": true,
  "isPassed": true
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "76565299-a213-4059-a8bf-7ff5fd131778",
    "version_id": "a46125f1-9f67-5083-85e3-02dc2acda1ba",
    "parent_id": null,
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-09T21:56:04.054Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-09T21:56:04.054Z",
    "type": "navarik.inspection.qualityResult",
    "body": {
        "parent": "b759e626-7af5-451e-b570-ed90e1312959",
        "sample": {
            "id": null,
            "xref": null,
            "refNumber": "ABC 1234",
            "description": "something something",
            "sealNumber": "DEF 456",
            "location": "Vaut 13"
        },
        "test": {
            "id": null,
            "xref": "SOME-123-THING",
            "name": null
        },
        "method": {
            "id": null,
            "xref": null,
            "name": "observation"
        },
        "uom": {
            "id": null,
            "xref": null,
            "name": "bbl"
        },
        "testDate": "2019-06-28T14:00:00.000Z",
        "result": "much amaze!",
        "comment": "wow such much",
        "isRetestNeeded": false,
        "isOffSpec": false,
        "isPreviouslySubmitted": false,
        "isPerformed": null,
        "isPassed": true
    },
    "meta": {},
    "schema": "6e34d00e-9f21-5fcb-841b-38a9c46f8ecc"
}

Creates a supporting inspection quality test for a job specified by that job's unique id.

POST https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quality

Route Parameters

Parameter Default Description
jobId null job id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Get specific quality test

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality/76565299-a213-4059-a8bf-7ff5fd131778' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality/76565299-a213-4059-a8bf-7ff5fd131778',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "76565299-a213-4059-a8bf-7ff5fd131778",
    "version_id": "a46125f1-9f67-5083-85e3-02dc2acda1ba",
    "parent_id": null,
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-09T21:56:04.054Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-09T21:56:04.054Z",
    "type": "navarik.inspection.qualityResult",
    "body": {
        "parent": "b759e626-7af5-451e-b570-ed90e1312959",
        "sample": {
            "id": null,
            "xref": null,
            "refNumber": "ABC 1234",
            "description": "something something",
            "sealNumber": "DEF 456",
            "location": "Vaut 13"
        },
        "test": {
            "id": null,
            "xref": "SOME-123-THING",
            "name": null
        },
        "method": {
            "id": null,
            "xref": null,
            "name": "observation"
        },
        "uom": {
            "id": null,
            "xref": null,
            "name": "bbl"
        },
        "testDate": "2019-06-28T14:00:00.000Z",
        "result": "much amaze!",
        "comment": "wow such much",
        "isRetestNeeded": false,
        "isOffSpec": false,
        "isPreviouslySubmitted": false,
        "isPerformed": null,
        "isPassed": true
    },
    "meta": {},
    "schema": "6e34d00e-9f21-5fcb-841b-38a9c46f8ecc"
}

Gets a single inspection quality test given the quality test's id and the id of the job it belongs to.

GET https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quality/<qualityId>

Route Parameters

Parameter Default Description
jobId null job id (required)
qualityId null quality test id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Update quality test

Example request

curl --request PATCH 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality/76565299-a213-4059-a8bf-7ff5fd131778' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "body": {
    "result": "Huge quality success"
  }
}'
const request = require('request');
const options = {
  method: 'PATCH',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quality/76565299-a213-4059-a8bf-7ff5fd131778',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "body": {
      "result": "Huge quality success"
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "76565299-a213-4059-a8bf-7ff5fd131778",
    "version_id": "540077e1-183c-5439-b3ee-3e9799224e54",
    "parent_id": "a46125f1-9f67-5083-85e3-02dc2acda1ba",
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-09T21:56:04.054Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-09T22:11:29.382Z",
    "type": "navarik.inspection.qualityResult",
    "body": {
        "parent": "b759e626-7af5-451e-b570-ed90e1312959",
        "sample": {
            "id": null,
            "xref": null,
            "refNumber": "ABC 1234",
            "description": "something something",
            "sealNumber": "DEF 456",
            "location": "Vaut 13"
        },
        "test": {
            "id": null,
            "xref": "SOME-123-THING",
            "name": null
        },
        "method": {
            "id": null,
            "xref": null,
            "name": "observation"
        },
        "uom": {
            "id": null,
            "xref": null,
            "name": "bbl"
        },
        "testDate": "2019-06-28T14:00:00.000Z",
        "result": "Huge quality success",
        "comment": "wow such much",
        "isRetestNeeded": false,
        "isOffSpec": false,
        "isPreviouslySubmitted": false,
        "isPerformed": null,
        "isPassed": true
    },
    "meta": {},
    "schema": "6e34d00e-9f21-5fcb-841b-38a9c46f8ecc"
}

Updates an inspection quality test given the quality test's id and the id of the job it belongs to.

PATCH https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quality/<qualityId>

Route Parameters

Parameter Default Description
jobId null job id (required)
qualityId null quality test id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json

NI Quantity Tests

Get quantity test list

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity?limit=2&offset=0&sort=type:asc',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

[
    {
        "id": "038469c2-13c2-4012-b4c3-a63511f2fdb2",
        "version_id": "ebcbc159-7d34-5d95-8806-916980a654ce",
        "parent_id": null,
        "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "created_at": "2020-10-09T21:11:09.112Z",
        "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
        "modified_at": "2020-10-09T21:11:09.112Z",
        "type": "navarik.inspection.quantityResult",
        "body": {
            "parent": "b759e626-7af5-451e-b570-ed90e1312959",
            "date": "2020-10-08T22:14:13.897Z",
            "direction": "Source",
            "activeShoreTank": false,
            "measurements": [
                {
                    "code": "12345",
                    "name": "Measurement 1",
                    "results": [
                        {
                            "value": "1200",
                            "uom": {
                                "id": null,
                                "xref": null,
                                "name": "bbl"
                            }
                        }
                    ]
                }
            ],
            "waterMethod": "Water Method 1",
            "waterPerc": 123,
            "sedimentMethod": "Sediment Method 1",
            "sedimentPerc": 456.1199951171875,
            "densityMethod": "Density Method 1",
            "density15c": 12,
            "sedimentWaterPerc": 0.012000000104308128,
            "meanTemp": {
                "value": "12",
                "uom": {
                    "id": null,
                    "xref": null,
                    "name": "Celsius"
                }
            },
            "vcfTable": "6D",
            "api": 23.649999618530273
        },
        "meta": {},
        "schema": "d85bf6ac-1897-51b0-af8e-82ce3c6ed1da"
    }
]

Returns a list of all inspection quantity test data for a job given that job's unique id. Optional query parameters can be used for paginating and sorting.

GET https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quantity

Route Parameters

Parameter Default Description
jobId null job id (required)

Query Parameters

Parameter Default Description
limit null pagination, page size
offset 0 pagination, start from
sort null sort by. eg. type:asc

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Create quantity test

Example request

curl --request POST 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
    "date": "2020-10-08T22:14:13.897Z",
    "direction": "Source", 
    "activeShoreTank": false,
    "measurements": [{
      "code": "12345",
      "name": "Measurement 1",
      "results": [{
        "value": "1200",
        "uom": {
          "name": "bbl"
        }
      }]
    }],
    "waterMethod": "Water Method 1",
    "waterPerc": 123.0,
    "sedimentMethod": "Sediment Method 1",
    "sedimentPerc": 456.12,
    "densityMethod": "Density Method 1",
    "density15c": 12.0,
    "sedimentWaterPerc": 0.012,
    "meanTemp": {
      "value": "12",
      "uom": {
        "name": "Celsius"
      }
    },
    "vcfTable": "6D",
    "api": 23.65
}'
const request = require('request');
const options = {
  method: 'POST',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "date": "2020-10-08T22:14:13.897Z",
    "direction": "Source", 
    "activeShoreTank": false,
    "measurements": [{
      "code": "12345",
      "name": "Measurement 1",
      "results": [{
        "value": "1200",
        "uom": {
          "name": "bbl"
        }
      }]
    }],
    "waterMethod": "Water Method 1",
    "waterPerc": 123.0,
    "sedimentMethod": "Sediment Method 1",
    "sedimentPerc": 456.12,
    "densityMethod": "Density Method 1",
    "density15c": 12.0,
    "sedimentWaterPerc": 0.012,
    "meanTemp": {
      "value": "12",
      "uom": {
        "name": "Celsius"
      }
    },
    "vcfTable": "6D",
    "api": 23.65
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "2e5b7364-3b87-48fc-994f-44bcb355d140",
    "version_id": "8bba43a3-5ec8-5329-ae4c-cc7e2e3ee8e8",
    "parent_id": null,
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-09T21:25:52.210Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-09T21:25:52.210Z",
    "type": "navarik.inspection.quantityResult",
    "body": {
        "parent": "b759e626-7af5-451e-b570-ed90e1312959",
        "date": "2020-10-08T22:14:13.897Z",
        "direction": "Source",
        "activeShoreTank": false,
        "measurements": [
            {
                "code": "12345",
                "name": "Measurement 1",
                "results": [
                    {
                        "value": "1200",
                        "uom": {
                            "id": null,
                            "xref": null,
                            "name": "bbl"
                        }
                    }
                ]
            }
        ],
        "waterMethod": "Water Method 1",
        "waterPerc": 123,
        "sedimentMethod": "Sediment Method 1",
        "sedimentPerc": 456.1199951171875,
        "densityMethod": "Density Method 1",
        "density15c": 12,
        "sedimentWaterPerc": 0.012000000104308128,
        "meanTemp": {
            "value": "12",
            "uom": {
                "id": null,
                "xref": null,
                "name": "Celsius"
            }
        },
        "vcfTable": "6D",
        "api": 23.649999618530273
    },
    "meta": {},
    "schema": "d85bf6ac-1897-51b0-af8e-82ce3c6ed1da"
}

Creates a supporting inspection quantity test for a job specified by that job's unique id.

POST https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quantity

Route Parameters

Parameter Default Description
jobId null job id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Get specific quantity test

Example request

curl --request GET 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity/2e5b7364-3b87-48fc-994f-44bcb355d140' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey'
const request = require('request');
const options = {
  method: 'GET',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity/2e5b7364-3b87-48fc-994f-44bcb355d140',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "2e5b7364-3b87-48fc-994f-44bcb355d140",
    "version_id": "8bba43a3-5ec8-5329-ae4c-cc7e2e3ee8e8",
    "parent_id": null,
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-09T21:25:52.210Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-09T21:25:52.210Z",
    "type": "navarik.inspection.quantityResult",
    "body": {
        "parent": "b759e626-7af5-451e-b570-ed90e1312959",
        "date": "2020-10-08T22:14:13.897Z",
        "direction": "Source",
        "activeShoreTank": false,
        "measurements": [
            {
                "code": "12345",
                "name": "Measurement 1",
                "results": [
                    {
                        "value": "1200",
                        "uom": {
                            "id": null,
                            "xref": null,
                            "name": "bbl"
                        }
                    }
                ]
            }
        ],
        "waterMethod": "Water Method 1",
        "waterPerc": 123,
        "sedimentMethod": "Sediment Method 1",
        "sedimentPerc": 456.1199951171875,
        "densityMethod": "Density Method 1",
        "density15c": 12,
        "sedimentWaterPerc": 0.012000000104308128,
        "meanTemp": {
            "value": "12",
            "uom": {
                "id": null,
                "xref": null,
                "name": "Celsius"
            }
        },
        "vcfTable": "6D",
        "api": 23.649999618530273
    },
    "meta": {},
    "schema": "d85bf6ac-1897-51b0-af8e-82ce3c6ed1da"
}

Gets a single inspection quantity test given the quantity test's id and the id of the job it belongs to.

GET https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quantity/<quantityId>

Route Parameters

Parameter Default Description
jobId null job id (required)
quantityId null quantity test id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}

Update quantity test

Example request

curl --request PATCH 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity/2e5b7364-3b87-48fc-994f-44bcb355d140' \
--header 'Accept-Version: 1.0' \
--header 'Authorization: Bearer yourApiKey' \
--header 'Content-Type: application/json' \
--data-raw '{
  "body": {
    "density15c": 777
  }
}'
const request = require('request');
const options = {
  method: 'PATCH',
  url: 'https://api.navarik.com/bridge/v1/data/jobs/b759e626-7af5-451e-b570-ed90e1312959/quantity/2e5b7364-3b87-48fc-994f-44bcb355d140',
  headers: {
    'Accept-Version': '1.0',
    'Authorization': 'Bearer yourApiKey',
    'Content-Type': 'application/json',
  },
  json: {
    "body": {
      "density15c": 777
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Example response

{
    "id": "2e5b7364-3b87-48fc-994f-44bcb355d140",
    "version_id": "c1c517b8-4947-5f02-8efc-317470decdec",
    "parent_id": "8bba43a3-5ec8-5329-ae4c-cc7e2e3ee8e8",
    "created_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "created_at": "2020-10-09T21:25:52.210Z",
    "modified_by": "52baf3fd-7b5d-5fd4-ba5f-a6daee9e42fc",
    "modified_at": "2020-10-09T21:50:04.699Z",
    "type": "navarik.inspection.quantityResult",
    "body": {
        "parent": "b759e626-7af5-451e-b570-ed90e1312959",
        "date": "2020-10-08T22:14:13.897Z",
        "direction": "Source",
        "activeShoreTank": false,
        "measurements": [
            {
                "code": "12345",
                "name": "Measurement 1",
                "results": [
                    {
                        "value": "1200",
                        "uom": {
                            "id": null,
                            "xref": null,
                            "name": "bbl"
                        }
                    }
                ]
            }
        ],
        "waterMethod": "Water Method 1",
        "waterPerc": 123,
        "sedimentMethod": "Sediment Method 1",
        "sedimentPerc": 456.1199951171875,
        "densityMethod": "Density Method 1",
        "density15c": 777,
        "sedimentWaterPerc": 0.012000000104308128,
        "meanTemp": {
            "value": "12",
            "uom": {
                "id": null,
                "xref": null,
                "name": "Celsius"
            }
        },
        "vcfTable": "6D",
        "api": 23.649999618530273
    },
    "meta": {},
    "schema": "d85bf6ac-1897-51b0-af8e-82ce3c6ed1da"
}

Updates an inspection quantity given the quantity's id and the id of the job it belongs to.

PATCH https://api.navarik.com/bridge/v1/data/jobs/<jobId>/quantity/<quantityId>

Route Parameters

Parameter Default Description
jobId null job id (required)
quantityId null quantity id (required)

Query Parameters

None

Headers

Key Value
Accept-Version 1.0
Authorization Bearer {{accessToken}}
Content-Type application/json