{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"f8f2afe1-3d91-41a1-870a-0e0cfd55d106","name":"Hageman - REST API","description":"The Hageman REST API is a collection of multiple datasources that can be accessed by various requests using a `formdata` or `json` format.\n\n# Authentication\n\nPlease add your authentication to the header of each request:  \n`api-key`: The username to connect to  \n`api-secret`: A SHA-265 encoded password to access the username  \n`api-administration`: The administration to be used  \n`cache-control` no-cache\n\n# Requests\n\nA collection can have one or more of the following request types:\n\n- `GET`: for reading data\n    - URL only, no body required\n        \n- `POST`: for creating data\n    - `formdata` or `json` body format\n        \n- `PATCH`: for updating data\n    - `json` body format\n        \n    - _Or use the_ `_POST_` _type and manipulate by adding_ `_'_method' => 'PATCH'_` _to your_ `_formdata_`\n        \n\n# List requests\n\nList requests can be sent with additional GET parameters:\n\n- `page`: the page to request\n    \n- `pageSize`: size of pagination to return (min: 10 | max: 100)\n    \n- `_filter`: filter to apply to the request - see Filtering & Sorting\n    \n- `_sort`: sort to apply to the request - see Filtering & Sorting\n    \n\nIn the response of a list request will always have the following entries:\n\n- `rows`: the paginated result of entries\n    \n- `total`: the total of entries\n    \n- `_page`: the requested page\n    \n- `_pageSize`: the given size of the pagination\n    \n- `_lastPage`: the last page that has results\n    \n- `_nextPage`: the number of the next page OR `null` of there is no next page\n    \n- `_filter`: the filter used on the request - see Filtering & Sorting\n    \n- `_sort`: the sort used on the request - see Filtering & Sorting\n    \n\n# Filtering & Sorting\n\nEach list request can be filtered and sorted. These should be `GET` parameters with the following format:\n\n## Filtering\n\nThe parameter for filtering is `_filter`  \nThe fields that can be filtered are the same as returned inside the `rows` array in the response.\n\nThe format for the `_filter` parameter is as follows:\n\n**Simple**\n\n```\n'_filter' => [  \n    {field} => {value}, \n    ...  \n]  \n\n ```\n\n**Advanced**\n\n```\n'_filter' => [  \n    {field} => [  \n        {operator} => {value}  \n    ],  \n    ...\n]  \n\n ```\n\nA filtered field can hold multiple operators and values. This will be implemented as `'{field} {operator[1]} {value[1]} AND {field} {operator[2]} {value[2]}'`, in other words a field has to meet ALL conditions.  \nIf a field should meet ANY condition a listed value on the operator should be provided. This will be implemented, when no operator provided, as: `'{field} in {listed value}'` or if an operator is provided: `'{field} {operator} {listed value 1} OR {field} {operator} {listed value 2}'`.\n\nIf a field is an object in the response, it should be in dotted format in the `_filter` parameter, for example:\n\n```\n...'date': { \n    'invoice': '2020-01-01 12:00:00' \n    ...\n}\n\n ```\n\nshould be requested as:  \n\\[`_filter`\\]\\[`date.invoice`\\]\\[`equals`\\]=`2020-01-01 12:00:00`\n\nIf a field is a list of objects (multidimentsional) in the response, it should be in dotted **singular** format in the `_filter` parameter, for example:\n\n```\n...'items' [ \n    { \n        'type': 'product', \n        'number': 'TST_001'\n        ... \n    } \n]...  \n\n ```\n\nshould be requested as:  \n\\[`_filter`\\]\\[`item.type`\\]\\[`equals`\\]=`product`\n\n### Value types\n\n- a simple (search) string: `'search'` | _default operator_ `_matches_`\n    \n- a listed string: `'value1, value2, value3'` | _default operator_ `_in_`\n    \n- a null search: `'_NULL_'` | _default operator_ `_IS NULL_`\n    \n- an empty search: `'_EMPTY_'` | _default operator_ `_equals_` _search for_ `_''_`\n    \n- a boolean search (`true`/`false`): `_TRUE_`/`_FALSE_` | _default operator_ `_equals_`\n    \n\n### Operators\n\n**ranges**\n\n- `between`: requires a listed string with exactly 2 values (from, till) | _verifies that a column's value is between two values_\n    \n- `notBetween`: requires a listed string with exactly 2 values (from, till) | _verifies that a column's value is NOT between two values_\n    \n\n**general**\n\n- `endsWith`: _verify that a column's value ends with a specific value_\n    \n- `startsWith`: _verify that a column's value starts with a specific value_\n    \n- `matches`: _verify that a column's value contains a specific value_\n    \n- `equals`: _verify that a column's value is equal to a specific value_\n    \n- `not`: _verify that a column's value is NOT equal to a specific value_\n    \n- `gt`: _verify that a column's value is greater than a specific value_\n    \n- `gte`: _verify that a column's value is greater than- or equal to a specific value_\n    \n- `lt`: _verify that a column's value is lower than a specific value_\n    \n- `lte`: _verify that a column's value is lower than- or equal to a specific value_\n    \n\n**special**\n\n- `column`: requires value (column name) | _verify that a column's value is equal to another column's value_\n    \n- `gtColumn`: requires value (column name) | _verify that a column's value is greater than another column's value_\n    \n- `gteColumn`: requires value (column name) | _verify that a column's value is greater than- or equal to another column's value_\n    \n- `ltColumn`: requires value (column name) | _verify that a column's value is lower than another column's value_\n    \n- `lteColumn`: requires value (column name) | _verify that a column's value is lower than- or equal to another column's value_\n    \n- `date`: requires value (yyyy-mm-dd) | _compare a column's value against a date_\n    \n- `gtDate`: requires value (yyyy-mm-dd) | _verify that a column's value is greater than a specific date_\n    \n- `gteDate`: requires value (yyyy-mm-dd) | _verify that a column's value is greater than- or equal to a specific date_\n    \n- `ltDate`: requires value (yyyy-mm-dd) | _verify that a column's value is lower than a specific date_\n    \n- `lteDate`: requires value (yyyy-mm-dd) | _verify that a column's value is lower than- or equal to a specific date_\n    \n- `day`: requires value (01_31) | _compare a column's value against a specific day of a month_\n    \n- `gtDay`: requires value (01_31) | _verify that a column's value is greater than a specific day of a month_\n    \n- `gteDay`: requires value (01_31) | _verify that a column's value is greater than- or equal to a specific day of a month_\n    \n- `ltDay`: requires value (01_31) | _verify that a column's value is lower than a specific day of a month_\n    \n- `lteDay`: requires value (01_31) | _verify that a column's value is lower than- or equal to a specific day of a month_\n    \n- `month`: requires value (01_12) | _compare a column's value against a specific month of a year_\n    \n- `gtMonth`: requires value (01_12) | _verify that a column's value is greater than a specific month of a year_\n    \n- `gteMonth`: requires value (01_12) | _verify that a column's value is greater than- or equal to a specific month of a year_\n    \n- `ltMonth`: requires value (01_12) | _verify that a column's value is lower than a specific month of a year_\n    \n- `lteMonth`: requires value (01_12) | _verify that a column's value is lower than- or equal to a specific month of a year_\n    \n- `time`: requires value (hh:mm) | _compare a column's value against a specific time_\n    \n- `gtTime`: requires value (hh:mm) | _verify that a column's value is greater than a specific time_\n    \n- `gteTime`: requires value (hh:mm) | _verify that a column's value is greater than- or equal to a specific time_\n    \n- `ltTime`: requires value (hh:mm) | _verify that a column's value is lower than a specific time_\n    \n- `lteTime`: requires value (hh:mm) | _verify that a column's value is lower than- or equal to a specific time_\n    \n- `year`: requires value (year) | _compare a column's value against a specific year_\n    \n- `gtYear`: requires value (year) | _verify that a column's value is greater than a specific year_\n    \n- `gteYear`: requires value (year) | _verify that a column's value is greater than- or equal to a specific year_\n    \n- `ltYear`: requires value (year) | _verify that a column's value is lower than a specific year_\n    \n- `lteYear`: requires value (year) | _verify that a column's value is lower than- or equal to a specific year_\n    \n\n## Sorting\n\nThe parameter for sorting is `_sort`  \nThe fields that can be sorted are the same as returned inside the `rows` array in the response.\n\nThe format for the `_sort` parameter is as follows:\n\n**Simple**\n\n```\n'_sort' => {field} \n\n ```\n\n**Advanced**\n\n```\n'_sort' => [  \n    {field} => {direction},  \n    {field},  \n    ...\n]  \n\n ```\n\nIt is possible to do a simple sort. The single field will then be sorted as ascending (default).  \nIt is also possible to do an advanced sort. An array of fields to sort on with a direction, which is default ascending if a direction is not provided. So when an array of just fields is provided these fields will all be sorted ascending.\n\n# Error Codes\n\nThe REST API returns the general HTTP status codes together with response:\n\n- `200` (OK) result based on request - see 'response examples' below\n    \n- `204` (No content) always empty\n    \n- `401` (Unauthorized) `error` entry\n    \n- `403` (Forbidden) `error` entry\n    \n- `422` (Unprocessable Entity) `error` entries\n    \n\n# Rate limit\n\nThere is currently no limit to the number of requests a user can send. However, the question is to deal with this responsibly.  \nInstead of a limit a bottleneck is used. This means that per request that is sent consecutively, there will be a higher delay.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"9162076","team":1356352,"collectionId":"f8f2afe1-3d91-41a1-870a-0e0cfd55d106","publishedId":"TWDTNK5X","public":true,"publicUrl":"https://documenter-api.postman.tech/view/9162076/TWDTNK5X","privateUrl":"https://go.postman.co/documentation/9162076-f8f2afe1-3d91-41a1-870a-0e0cfd55d106","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.12.12","publishDate":"2021-02-16T07:46:17.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/8bcfde1a20995986e8d9eec1eb2f8d2edcb69105f9dbac28717f233f0d09938a","favicon":"https://res.cloudinary.com/postman/image/upload/v1638875912/team/r7rvbovgbl7ml0npc2j4.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/TWDTNK5X"}