{"info":{"_postman_id":"59fc75ca-cbf5-4bdf-b41e-f0196af4cb7f","name":"Portal API  - BETA","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3100119","collectionId":"59fc75ca-cbf5-4bdf-b41e-f0196af4cb7f","publishedId":"U16ev8Xx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-03T08:55:38.000Z"},"item":[{"name":"JSON API","item":[{"name":"Portal Post Work Order JSON - Prod","id":"0e9f7de4-3f37-414c-b40a-4cecc379bfcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"orders\":[{\"order_nr\":\"\",\"workorder_nr\":\"Werkordertest2311-2\",\"reference\":\"Referentie\",\"external_reference\":\"ExtReferentie2\",\"project_nr\":\"123\",\"external_project_nr\":\"456\",\"job_nr\":\"\",\"type_of_work\":\"Plaatsing alarm\",\"work_finished\":0,\"work_description\":\"Test\",\"internal_work_description\":\"\",\"short_work_description\":\"\",\"status\":\"Klaargezet\",\"deadline\":\"\",\"duration\":0,\"work_status\":\"\",\"comment\":\"\",\"signature\":\"\",\"signed_by\":\"\",\"signature_contact_person\":\"\",\"date_work_start\":\"19-10-2021\",\"time_work_start\":\"\",\"date_work_end\":\"\",\"time_work_end\":\"\",\"WorkAddress\":{\"adr_id\":null,\"adr_name\":\"Test adres\",\"adr_line_1\":\"Prinses Christinalaan 24\",\"adr_zip\":\"1234AB\",\"adr_city\":\"Utrecht\",\"adr_country\":\"Nederland\",\"adr_remark\":\"Test Remark\"},\"ContactPerson\":{\"cpn_id\":null,\"cpn_email\":\"klant@werkadres.com\",\"cpn_name\":\"Test naam\",\"cpn_phone\":\"0612345678\"},\"invoice_customer_name\":\"Rekeningbetaler\",\"invoice_customer_debtor_nr\":\"24\",\"invoice_customer_street\":\"Spoorven 1\",\"invoice_customer_email\":\"klant@betaler.com\",\"invoice_customer_zip\":\"3511DE\",\"invoice_customer_city\":\"Utrecht\",\"invoice_customer_country\":\"\",\"invoice_customer_contact_person\":\"\",\"invoice_customer_phone\":\"0612345678\",\"invoice_customer_remark\":\"\",\"payment_method\":\"\",\"created_at\":\"\",\"updated_at\":\"\",\"created_by\":\"piet@gmail.com\",\"updated_by\":\"piet@gmail.com\",\"registration_date\":null,\"udid\":\"\",\"client_id\":0,\"moneybird_sent\":0,\"employee_nr\":\"\",\"employee_name\":\"\",\"archived\":4,\"imported\":0,\"parent_customer_id\":0,\"worksheet_rec_id\":0,\"rec_worksheet_id\":0,\"contact_person_code\":\"\",\"invoice_contact_person_code\":\"\",\"address_code\":\"\",\"error_code\":\"\",\"error_message\":\"\",\"solution_code\":\"\",\"solution_message\":\"\",\"priority_code\":\"\",\"priority_message\":\"\",\"minimum_hours\":\"0.00\",\"rounding_amount\":\"0.00\",\"pickup_planning\":0,\"web_planning\":0,\"planning_locked\":0,\"planning_flagged\":0,\"layout\":\"PDF\",\"force_layout\":null,\"project_activity_nr\":\"\",\"warranty_code\":\"\",\"pgp_code\":null,\"accountmanager\":null,\"contract_number\":\"\",\"sla_code\":\"\",\"overnight_stay\":0,\"customFields\":{\"val_value_1\":\"Alleen bij geen gehoor klant\",\"val_value_2\":\"4\",\"val_value_3\":\"Mobiele Alarmering (GPS)\",\"val_value_50\":\"123456\"}}]}","options":{"raw":{"language":"json"}}},"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/work-orders","description":"<p>PORTAL_NAME should be replaced with the portal name.</p>\n","urlObject":{"protocol":"https","path":["portal-new","{{PORTAL_NAME}}","api","work-orders"],"host":["office","out-smart","com"],"query":[],"variable":[]}},"response":[{"id":"6b4fd48a-f5b7-4dd5-80cf-5c07c3d7e4fa","name":"Succesfull request - Saved succesfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n  \"orders\": [\r\n    {\r\n      \"order_nr\": \"\",\r\n      \"workorder_nr\": \"REFERENCE1\",\r\n      \"reference\": \"\",\r\n      \"external_reference\": \"\",\r\n      \"project_nr\": \"\",\r\n      \"external_project_nr\": \"\",\r\n      \"job_nr\": \"\",\r\n      \"type_of_work\": \"Standaard\",\r\n      \"work_finished\": 0,\r\n      \"work_description\": \"Test\",\r\n      \"internal_work_description\": \"\",\r\n      \"short_work_description\": \"\",\r\n      \"status\": \"Klaargezet\",\r\n      \"deadline\": \"\",\r\n      \"duration\": 0,\r\n      \"work_status\": \"\",\r\n      \"comment\": \"\",\r\n      \"signature\": \"\",\r\n      \"signed_by\": \"\",\r\n      \"signature_contact_person\": \"\",\r\n      \"date_work_start\": \"19-10-2021\",\r\n      \"time_work_start\": \"\",\r\n      \"date_work_end\": \"\",\r\n      \"time_work_end\": \"\",\r\n      \"customer_name\": \"Test adres\",\r\n      \"customer_debtor_nr\": \"24\",\r\n      \"customer_street\": \"Prinses Christinalaan\",\r\n      \"customer_email\": \"yoran122@gmail.com\",\r\n      \"customer_zip\": \"3454AM\",\r\n      \"customer_city\": \"Utrecht\",\r\n      \"customer_country\": \"Nederland\",\r\n      \"customer_contact_person\": \"Test contact\",\r\n      \"customer_phone\": \"06463221418\",\r\n      \"customer_remark\": \"\",\r\n      \"customer_latitude\": null,\r\n      \"customer_longitude\": null,\r\n      \"invoice_customer_name\": \"Sportmart\",\r\n      \"invoice_customer_debtor_nr\": \"24\",\r\n      \"invoice_customer_street\": \"walter kollolaan 206\",\r\n      \"invoice_customer_email\": \"yoran122@gmail.com\",\r\n      \"invoice_customer_zip\": \"3511DE\",\r\n      \"invoice_customer_city\": \"Utrecht\",\r\n      \"invoice_customer_country\": \"\",\r\n      \"invoice_customer_contact_person\": \"\",\r\n      \"invoice_customer_phone\": \"0612345678\",\r\n      \"invoice_customer_remark\": \"\",\r\n      \"payment_method\": \"\",\r\n      \"created_at\": \"2021-10-19T14:06:33.000000Z\",\r\n      \"updated_at\": \"2021-10-19T14:06:33.000000Z\",\r\n      \"created_by\": \"yoran122@gmail.com\",\r\n      \"updated_by\": \"yoran122@gmail.com\",\r\n      \"registration_date\": null,\r\n      \"udid\": \"\",\r\n      \"client_id\": 0,\r\n      \"moneybird_sent\": 0,\r\n      \"employee_nr\": \"\",\r\n      \"employee_name\": \"\",\r\n      \"archived\": 4,\r\n      \"imported\": 0,\r\n      \"parent_customer_id\": 0,\r\n      \"worksheet_rec_id\": 0,\r\n      \"rec_worksheet_id\": 0,\r\n      \"contact_person_code\": \"\",\r\n      \"invoice_contact_person_code\": \"\",\r\n      \"address_code\": \"\",\r\n      \"error_code\": \"\",\r\n      \"error_message\": \"\",\r\n      \"solution_code\": \"\",\r\n      \"solution_message\": \"\",\r\n      \"priority_code\": \"\",\r\n      \"priority_message\": \"\",\r\n      \"minimum_hours\": \"0.00\",\r\n      \"rounding_amount\": \"0.00\",\r\n      \"pickup_planning\": 0,\r\n      \"web_planning\": 0,\r\n      \"planning_locked\": 0,\r\n      \"planning_flagged\": 0,\r\n      \"layout\": \"PDF\",\r\n      \"force_layout\": null,\r\n      \"project_activity_nr\": \"\",\r\n      \"warranty_code\": \"\",\r\n      \"pgp_code\": null,\r\n      \"accountmanager\": null,\r\n      \"contract_number\": \"\",\r\n      \"sla_code\": \"\",\r\n      \"overnight_stay\": 0,\r\n      \"dayparts\": {\r\n          \"type\": \"daypart-calendar\",\r\n          \"data\": [\r\n              {\r\n                  \"code\": \"MORNING\",\r\n                  \"date\": \"2021-10-26\",\r\n                  \"available\": true\r\n              },\r\n              {\r\n                  \"code\": \"DAY\",\r\n                  \"date\": \"2021-10-26\",\r\n                  \"available\": false\r\n              }\r\n          ]\r\n      },\r\n      \"customFields\": {\r\n        \"val_value_1\": \"Test value 1\",\r\n        \"val_value_2\": \"Test value 2\",\r\n        \"referenced_field_3\": \"Test value 3\"\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/work-orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Sep 2021 09:03:21 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization,Accept-Encoding"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkFkVjhDallJNkw1WHVZM3dML052TFE9PSIsInZhbHVlIjoiMnNNZnl5eWhadlp0WXF6WFJVRmtvSUNGRmhESUk2Q0NyNDZCUUFmWmFFU2Q0Ny95dFJWYmlKWnY3Qzh0U1Jmc0FNU0NGQ2Z4MStrbml4UTBnOWYwbGFkR3drRXlKaW1qU1QrUC9ta01sZzJRRGJDOWdxNEU1cHRoWWl5OURZNFoiLCJtYWMiOiI5YWY5OThmMTIxNmM0OTQ2MDQ1ZTdhMGM0MzY1NjgwYjRmNzliNmMxNWY5ZTY2ODMwOGZiMjljYWU0OTRmMjgwIn0%3D; expires=Fri, 03-Sep-2021 11:03:22 GMT; Max-Age=7200; path=/portal-new/WerkbonAppp; samesite=lax"},{"key":"Set-Cookie","value":"outsmart_session=eyJpdiI6ImsybFBUR0NTYnU4SlZrcGVsTnFTcnc9PSIsInZhbHVlIjoieC9IdmNqQzNEcFZmMUhGZVdIN0NhQ3ZEQ0pwZjRGS1l6bEN4Nkh6cCtaNCswT0NPTDcxR1BTemNRSUNzNTVVTGkwaXRVRWxvYXJoa0JUZU5XcVRVaFZzV0FGRkpzekp0VndNWDJ6K0VsTUhQVVl5SlBFUXdPZkEvUjZPcXQvYUUiLCJtYWMiOiJkMmQ4OTc2ODllN2ExYjU2MzQ4NzA0NjlkNmZiZjEyNjA4Zjc2OGIyODMyYWY5MGUyZWQwMGMxZjg3ZDFiMzlmIn0%3D; expires=Fri, 03-Sep-2021 11:03:22 GMT; Max-Age=7200; path=/portal-new/WerkbonAppp; httponly; samesite=lax"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"128"},{"key":"Keep-Alive","value":"timeout=15, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"results\": [\n            {\n                \"status\": \"success\",\n                \"workorder_nr\": \"REFERENCE1\",\n                \"message\": \"Workorder with WorkorderNo REFERENCE1 saved\"\n            }\n        ]\n    },\n    \"message\": \"\"\n}"},{"id":"f5b73645-2aaa-4782-a46d-1568b196ac5c","name":"Succesfull request - Reference exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n  \"orders\": [\r\n    {\r\n      \"order_nr\": \"\",\r\n      \"workorder_nr\": \"REFERENCE1\",\r\n      \"reference\": \"\",\r\n      \"external_reference\": \"\",\r\n      \"project_nr\": \"\",\r\n      \"external_project_nr\": \"\",\r\n      \"job_nr\": \"\",\r\n      \"type_of_work\": \"Standaard\",\r\n      \"work_finished\": 0,\r\n      \"work_description\": \"Test\",\r\n      \"internal_work_description\": \"\",\r\n      \"short_work_description\": \"\",\r\n      \"status\": \"Klaargezet\",\r\n      \"deadline\": \"\",\r\n      \"duration\": 0,\r\n      \"work_status\": \"\",\r\n      \"comment\": \"\",\r\n      \"signature\": \"\",\r\n      \"signed_by\": \"\",\r\n      \"signature_contact_person\": \"\",\r\n      \"date_work_start\": \"19-10-2021\",\r\n      \"time_work_start\": \"\",\r\n      \"date_work_end\": \"\",\r\n      \"time_work_end\": \"\",\r\n      \"customer_name\": \"Test adres\",\r\n      \"customer_debtor_nr\": \"24\",\r\n      \"customer_street\": \"Prinses Christinalaan\",\r\n      \"customer_email\": \"yoran122@gmail.com\",\r\n      \"customer_zip\": \"3454AM\",\r\n      \"customer_city\": \"Utrecht\",\r\n      \"customer_country\": \"Nederland\",\r\n      \"customer_contact_person\": \"Test contact\",\r\n      \"customer_phone\": \"06463221418\",\r\n      \"customer_remark\": \"\",\r\n      \"customer_latitude\": null,\r\n      \"customer_longitude\": null,\r\n      \"invoice_customer_name\": \"Sportmart\",\r\n      \"invoice_customer_debtor_nr\": \"24\",\r\n      \"invoice_customer_street\": \"walter kollolaan 206\",\r\n      \"invoice_customer_email\": \"yoran122@gmail.com\",\r\n      \"invoice_customer_zip\": \"3511DE\",\r\n      \"invoice_customer_city\": \"Utrecht\",\r\n      \"invoice_customer_country\": \"\",\r\n      \"invoice_customer_contact_person\": \"\",\r\n      \"invoice_customer_phone\": \"0612345678\",\r\n      \"invoice_customer_remark\": \"\",\r\n      \"payment_method\": \"\",\r\n      \"created_at\": \"2021-10-19T14:06:33.000000Z\",\r\n      \"updated_at\": \"2021-10-19T14:06:33.000000Z\",\r\n      \"created_by\": \"yoran122@gmail.com\",\r\n      \"updated_by\": \"yoran122@gmail.com\",\r\n      \"registration_date\": null,\r\n      \"udid\": \"\",\r\n      \"client_id\": 0,\r\n      \"moneybird_sent\": 0,\r\n      \"employee_nr\": \"\",\r\n      \"employee_name\": \"\",\r\n      \"archived\": 4,\r\n      \"imported\": 0,\r\n      \"parent_customer_id\": 0,\r\n      \"worksheet_rec_id\": 0,\r\n      \"rec_worksheet_id\": 0,\r\n      \"contact_person_code\": \"\",\r\n      \"invoice_contact_person_code\": \"\",\r\n      \"address_code\": \"\",\r\n      \"error_code\": \"\",\r\n      \"error_message\": \"\",\r\n      \"solution_code\": \"\",\r\n      \"solution_message\": \"\",\r\n      \"priority_code\": \"\",\r\n      \"priority_message\": \"\",\r\n      \"minimum_hours\": \"0.00\",\r\n      \"rounding_amount\": \"0.00\",\r\n      \"pickup_planning\": 0,\r\n      \"web_planning\": 0,\r\n      \"planning_locked\": 0,\r\n      \"planning_flagged\": 0,\r\n      \"layout\": \"PDF\",\r\n      \"force_layout\": null,\r\n      \"project_activity_nr\": \"\",\r\n      \"warranty_code\": \"\",\r\n      \"pgp_code\": null,\r\n      \"accountmanager\": null,\r\n      \"contract_number\": \"\",\r\n      \"sla_code\": \"\",\r\n      \"overnight_stay\": 0,\r\n      \"dayparts\": {\r\n          \"type\": \"daypart-calendar\",\r\n          \"data\": [\r\n              {\r\n                  \"code\": \"MORNING\",\r\n                  \"date\": \"2021-10-26\",\r\n                  \"available\": true\r\n              },\r\n              {\r\n                  \"code\": \"DAY\",\r\n                  \"date\": \"2021-10-26\",\r\n                  \"available\": false\r\n              }\r\n          ]\r\n      },\r\n      \"customFields\": {\r\n        \"val_value_1\": \"Test value 1\",\r\n        \"val_value_2\": \"Test value 2\",\r\n        \"referenced_field_3\": \"Test value 3\"\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/work-orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Sep 2021 09:03:42 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization,Accept-Encoding"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Content-Type","value":"application/json"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6Imxua1R4V1BDZUJLMWt1ODd2RXJUOGc9PSIsInZhbHVlIjoiRjhwSHRTMjUzbi81Smx0TlBkbzJVSEptQS92QW1yRXQxMTUrWFY3WTVHeDNIcU5CVzBhWEpneFZtQldTT2twQjJ4NlBDUmZ0SXZOVUM4YVVQNHlZL2NvTFVvdHZCRGJ5QTk2S0JONG9COGlrc3lKdTU0WkxJL1dHWUs1cjBCcEQiLCJtYWMiOiI3Y2M1NzM4MDZmMTAxMTNiNGQ2NjIwNzMwNThhNDg5NTVmYWJiNDZjYzQ0ZTViNGQxOTYzMWQ3YmNlOGQyMzEyIn0%3D; expires=Fri, 03-Sep-2021 11:03:42 GMT; Max-Age=7200; path=/portal-new/WerkbonAppp; samesite=lax"},{"key":"Set-Cookie","value":"outsmart_session=eyJpdiI6InVyUGxBVVluNkNUYzFXRStUeDY0V0E9PSIsInZhbHVlIjoiMkJ2OUo5ekhsVCtjRkdQQUEyKy9zeFN3bGhZeHE4K2IvOGlFRnR5b2lkejVSQnBGblk3bC82VkcvTTN3bnNYWHpSVlQzREpycFRFTWdoTTU1ZEJybGlnQ21yak10Uk5qYzhaeUJtUXlEbTVMaGVHeTRvNEtFZnF1NDdTY3BrdUgiLCJtYWMiOiJiNjMxZGM3YTlhZmFiZDZlOGY3NTljYmRkZDVhNDU1ZjYwMDJmZDM4OTQ4OTRlZmFmZmIxN2M2M2NmNzljZmEzIn0%3D; expires=Fri, 03-Sep-2021 11:03:42 GMT; Max-Age=7200; path=/portal-new/WerkbonAppp; httponly; samesite=lax"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"130"},{"key":"Keep-Alive","value":"timeout=15, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"results\": [\n            {\n                \"status\": \"error\",\n                \"workorder_nr\": \"REFERENCE1\",\n                \"message\": \"Workorder with workorder_nr REFERENCE1 exists\"\n            }\n        ]\n    },\n    \"message\": \"\"\n}"}],"_postman_id":"0e9f7de4-3f37-414c-b40a-4cecc379bfcc"},{"name":"Portal Get Work Order JSON","id":"1daeef1f-f63d-4067-856f-e468582c8f2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/work-orders/REFERENCE12","urlObject":{"protocol":"https","path":["portal-new","{{PORTAL_NAME}}","api","work-orders","REFERENCE12"],"host":["office","out-smart","com"],"query":[],"variable":[]}},"response":[{"id":"54400f2b-161e-4f8b-8691-478b1ea29a80","name":"Portal Get Work Order JSON","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/work-orders/REFERENCE1232422222"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Sep 2021 07:10:08 GMT"},{"key":"Server","value":"Apache/2.4.46 (Win64) PHP/7.3.21"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IkxqOVI5WTFlRUsxUEJLTVFXblFNOXc9PSIsInZhbHVlIjoiZDA1b0F3WWNCQmVvMEkxdjZRUHpoZCtBOGtJWVFIZlI3QjByMUcwZjA4TzlKQU0vVzlYZHhNd21XU2VBMVV6S2t1UExIejA5cEJ2NzRFV1Qyc3hUQlZqQXdaeXkwMXRNZlZ0aHZXeXVWYlhOdkI4T21JMit4dTdPOUQ2SCt6U0MiLCJtYWMiOiJhYjYxMTI5Y2M5MWM1ZWZhYzc4NmE1NjdiODNmNzI5MWYyNTZjZTcyOGIxODcwMTFlMjJkMjFmYjgzOGExMjJiIn0%3D; expires=Thu, 16-Sep-2021 09:10:09 GMT; Max-Age=7200; path=/portal-new/OutSmart; samesite=lax"},{"key":"Set-Cookie","value":"outsmart_session=eyJpdiI6IktrT0VDNW0wYWhWMTVoMnNWd3E5NlE9PSIsInZhbHVlIjoiaHEzalJaWEMyeml1QzYvV0w2VVorNlAwM2R3dThySnl4VVRjUHhHK2JQVUtTVFBxVC9VN0F6Q2xkTHFEdnI2RlNtQlNmZTIxSjhYeXdVU0lxUGZUc1REN1ArclZBU3d3eXlCVlA1QVFyeEsvREtsYmpVdlhIa05hT1ZxNzI5UDIiLCJtYWMiOiJkODZlN2YxNWI1OWFmZWQ1ODM3NmUxOTgxY2FhNTFiNzAxNDgxZDEwZjNkMDg0M2RjNmRiOTQ1ZjM0MTZmN2E2In0%3D; expires=Thu, 16-Sep-2021 09:10:09 GMT; Max-Age=7200; path=/portal-new/OutSmart; httponly; samesite=lax"},{"key":"Content-Length","value":"2258"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"results\": {\n            \"id\": 1,\n            \"customer_id\": 78,\n            \"route_event_id\": null,\n            \"order_nr\": \"\",\n            \"workorder_nr\": \"REFERENCE1\",\n            \"reference\": \"\",\n            \"external_reference\": \"\",\n            \"project_nr\": \"\",\n            \"external_project_nr\": \"\",\n            \"job_nr\": \"\",\n            \"type_of_work\": \"Standaard\",\n            \"work_finished\": 0,\n            \"work_description\": \"Test\",\n            \"internal_work_description\": \"\",\n            \"short_work_description\": \"\",\n            \"status\": \"Klaargezet\",\n            \"deadline\": \"\",\n            \"duration\": 0,\n            \"work_status\": \"\",\n            \"comment\": \"\",\n            \"signature\": \"\",\n            \"signed_by\": \"\",\n            \"signature_contact_person\": \"\",\n            \"date_work_start\": \"19-10-2021\",\n            \"time_work_start\": \"\",\n            \"date_work_end\": \"20-10-2021\",\n            \"time_work_end\": \"\",\n            \"customer_client_id_invoice\": 3080860,\n            \"customer_client_id_delivery\": 3080860,\n            \"customer_name\": \"Sportmart\",\n            \"customer_debtor_nr\": \"24\",\n            \"customer_street\": \"walter kollolaan 206\",\n            \"customer_email\": \"yoran122@gmail.com\",\n            \"customer_zip\": \"3511DE\",\n            \"customer_city\": \"Utrecht\",\n            \"customer_country\": \"\",\n            \"customer_contact_person\": \"\",\n            \"customer_phone\": \"0612345678\",\n            \"customer_remark\": \"\",\n            \"customer_latitude\": null,\n            \"customer_longitude\": null,\n            \"invoice_customer_name\": \"Sportmart\",\n            \"invoice_customer_debtor_nr\": \"24\",\n            \"invoice_customer_street\": \"walter kollolaan 206\",\n            \"invoice_customer_email\": \"yoran122@gmail.com\",\n            \"invoice_customer_zip\": \"3511DE\",\n            \"invoice_customer_city\": \"Utrecht\",\n            \"invoice_customer_country\": \"\",\n            \"invoice_customer_contact_person\": \"\",\n            \"invoice_customer_phone\": \"0612345678\",\n            \"invoice_customer_remark\": \"\",\n            \"payment_method\": \"\",\n            \"created_at\": \"2021-10-20T12:44:57.000000Z\",\n            \"updated_at\": \"2021-10-20T12:44:57.000000Z\",\n            \"created_by\": \"yoran122@gmail.com\",\n            \"updated_by\": \"yoran122@gmail.com\",\n            \"registration_date\": null,\n            \"udid\": \"\",\n            \"client_id\": 0,\n            \"moneybird_sent\": 0,\n            \"employee_nr\": \"\",\n            \"employee_name\": \"\",\n            \"archived\": 4,\n            \"imported\": 0,\n            \"parent_customer_id\": 0,\n            \"worksheet_rec_id\": 0,\n            \"rec_worksheet_id\": 0,\n            \"contact_person_code\": \"\",\n            \"invoice_contact_person_code\": \"\",\n            \"address_code\": \"\",\n            \"error_code\": \"\",\n            \"error_message\": \"\",\n            \"solution_code\": \"\",\n            \"solution_message\": \"\",\n            \"priority_code\": \"\",\n            \"priority_message\": \"\",\n            \"minimum_hours\": \"0.00\",\n            \"rounding_amount\": \"0.00\",\n            \"pickup_planning\": 0,\n            \"web_planning\": 0,\n            \"planning_locked\": 0,\n            \"planning_flagged\": 0,\n            \"layout\": \"PDF\",\n            \"force_layout\": null,\n            \"project_activity_nr\": \"\",\n            \"warranty_code\": \"\",\n            \"pgp_code\": null,\n            \"accountmanager\": null,\n            \"contract_number\": \"\",\n            \"sla_code\": \"\",\n            \"overnight_stay\": 0,\n            \"dayparts\": []\n        }\n    },\n    \"message\": \"\"\n}"}],"_postman_id":"1daeef1f-f63d-4067-856f-e468582c8f2e"},{"name":"Portal Get Notes JSON","id":"367a6d2c-1c2a-469e-9122-6c5b6c8fc557","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/notes/REF1","urlObject":{"protocol":"https","path":["portal-new","{{PORTAL_NAME}}","api","notes","REF1"],"host":["office","out-smart","com"],"query":[],"variable":[]}},"response":[{"id":"cabc2671-695a-4af7-bc24-5b1ee78d33fa","name":"Portal Get Notes JSON","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/notes/REF1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Sep 2021 11:11:57 GMT"},{"key":"Server","value":"Apache/2.4.46 (Win64) PHP/7.3.21"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6ImtBY3hnek9aL3UrSUZVUUw2ZS9iRUE9PSIsInZhbHVlIjoibHZCakRsaXlsbjZtR1JSU3VjV2owRFB0V3dpeUZpMXd2UEIxczNzbTdHQXFQRGxjbjM5L21taXQ5RGExQk5iUWhvekFsVjBGWHlKUU8rb1ZpQlhjK1hxNkZRMWkyQ0t3ZDFpZGxCc1hXSzdLNkkrZ2h4QU9XMVp4QnlYVUdmOHkiLCJtYWMiOiI4MWM4MWVlOTRjNDAwMTYxZTE2ZmM0NzE1YjliMGYyMDU4NjUyMGRlZWQwYTRiZjliNGQzMjExNzFhYzM0YzE4In0%3D; expires=Thu, 16-Sep-2021 13:11:58 GMT; Max-Age=7200; path=/portal-new/OutSmart; samesite=lax"},{"key":"Set-Cookie","value":"outsmart_session=eyJpdiI6InZraGlRVmJvVzdRdkUydE1YZjQ5R1E9PSIsInZhbHVlIjoiem1mbnRjOHZlZ1YrSWdWN1pmbU5vOHdTazNobllhZExkSEhwczMzRHliRkZoTTlGN25lMUE3RllCZkxqRExKbXNSbjNUU21MdHNaWElaS1B2Yk9VRFI1Nnk1Q09BWDFMSGlPT0Z1a3IyMkUwYnpaSENUMWVKWHpRUVBsTWxUa2EiLCJtYWMiOiIyNTdkNzYyYzZkNjg4MTU3N2ZlNDgzNGU2YzBlYzQ0MjcxNTJhNjNkMzBmYzA2NTQ2MDVhYWVjYzgxZjdmMTI1In0%3D; expires=Thu, 16-Sep-2021 13:11:58 GMT; Max-Age=7200; path=/portal-new/OutSmart; httponly; samesite=lax"},{"key":"Content-Length","value":"392"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"results\": {\n            \"nte_id\": 10,\n            \"nte_cus_id\": 78,\n            \"nte_entity\": \"worksheets\",\n            \"nte_column\": \"OrderNr\",\n            \"nte_primary\": \"100\",\n            \"nte_content\": \"This is a note.\",\n            \"nte_created_by\": \"PORTAL_USER\",\n            \"nte_modified_by\": \"PORTAL_USER\",\n            \"nte_timestamp_created\": \"2021-09-16T09:15:27.000000Z\",\n            \"nte_timestamp_modified\": \"0000-00-00 00:00:00\",\n            \"nte_reference\": \"REF1\",\n            \"nte_timestamp_read\": null\n        }\n    },\n    \"message\": \"\"\n}"}],"_postman_id":"367a6d2c-1c2a-469e-9122-6c5b6c8fc557"},{"name":"Portal Post Notes JSON","id":"117145d7-2650-436c-acee-3f503d9935e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"notes\": [\r\n        {\r\n            \"nte_entity\": \"worksheets\",\r\n            \"nte_column\": \"OrderNr\",\r\n            \"nte_primary\": \"100\",\r\n            \"nte_content\": \"This is a note.\",\r\n            \"nte_reference\": \"REF1\"\r\n        },\r\n        {\r\n            \"nte_entity\": \"worksheets\",\r\n            \"nte_column\": \"WorkorderNo\",\r\n            \"nte_primary\": \"REFERENCE1232422222\",\r\n            \"nte_content\": \"This is another note.\",\r\n            \"nte_reference\": \"REF2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/notes","urlObject":{"protocol":"https","path":["portal-new","{{PORTAL_NAME}}","api","notes"],"host":["office","out-smart","com"],"query":[],"variable":[]}},"response":[{"id":"d54d8208-627d-4d8a-8ff1-f8bea62fc1a7","name":"Portal Post Notes JSON","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"notes\": [\r\n        {\r\n            \"nte_entity\": \"worksheets\",\r\n            \"nte_column\": \"OrderNr\",\r\n            \"nte_primary\": \"100\",\r\n            \"nte_content\": \"This is a note.\",\r\n            \"nte_reference\": \"REF1\"\r\n        },\r\n        {\r\n            \"nte_entity\": \"worksheets\",\r\n            \"nte_column\": \"WorkorderNo\",\r\n            \"nte_primary\": \"REFERENCE1232422222\",\r\n            \"nte_content\": \"This is another note.\",\r\n            \"nte_reference\": \"REF2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://office.out-smart.com/portal-new/{{PORTAL_NAME}}/api/notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Sep 2021 11:11:46 GMT"},{"key":"Server","value":"Apache/2.4.46 (Win64) PHP/7.3.21"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.3.21"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Set-Cookie","value":"XSRF-TOKEN=eyJpdiI6IklJdXVhK2VzZ3ROUVlybjhVdUUzVlE9PSIsInZhbHVlIjoicWdSQmtKdFZjYVpwYURzeDI3Z0JZUXdwaEFrYUhUQTBkc0JQeE9CNFpHVkdaU1o2QmRTSlhiUkVLRkFxSHVJdXpBTGJiYnh3aUZ0WjhjaFZSWXExV2EwZk8ybVVaL1NMVXVnYklNZzlOU3ZGM29KY1hMTm1ha1RnaDRTMXJIcXEiLCJtYWMiOiJiYWZmZGYyNWQ2Yjc5ZWE5ZTMzNmY0MWNhYTEwZjA0ZTY5ZjEzYTkxMGQ0NTM0ZTI0ZWE1ZTBhNjNmNTI0Y2M0In0%3D; expires=Thu, 16-Sep-2021 13:11:46 GMT; Max-Age=7200; path=/portal-new/OutSmart; samesite=lax"},{"key":"Set-Cookie","value":"outsmart_session=eyJpdiI6ImtXZEpXRGRhSm0zNlNJak5ycjRiY0E9PSIsInZhbHVlIjoiNERKZjgzWDBSWU0zSnQ0bzIrQnJvcDRtWmI3MXlyWlFCSXUraGFRY0gyTXZHME1HalNCQ0VLeXF0NndXTEFEU2FCb3Z2eEFCUlZnNjI1cVdLSno3aTZTMSszcjhnWlNPanYrajBiN0FBQmtRWStsa1BCVXB3TmErWm5QQnU1ZEgiLCJtYWMiOiJmYzBlOWU5ODE0MWUwODZhYTMwZTAzMzU1YmQ2Zjk4MTdhZWJjMjFkOTZjOWMyYzI5NTliYjU5OTQ2ODRlODdkIn0%3D; expires=Thu, 16-Sep-2021 13:11:46 GMT; Max-Age=7200; path=/portal-new/OutSmart; httponly; samesite=lax"},{"key":"Content-Length","value":"210"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"results\": [\n            {\n                \"OrderNr\": \"100\",\n                \"message\": \"worksheets with OrderNr 100 saved\"\n            },\n            {\n                \"OrderNr\": \"REFERENCE1232422222\",\n                \"message\": \"worksheets with OrderNr REFERENCE1232422222 saved\"\n            }\n        ]\n    },\n    \"message\": \"\"\n}"}],"_postman_id":"117145d7-2650-436c-acee-3f503d9935e5"}],"id":"7e28f9ed-8f18-4e83-a7b7-6c0172959da2","description":"<p>This api can be used to generate orders through the portal gateway. Authorization is done through http basic auth using the credentials used to login the portal. Disabling a user or resetting a password will prevent the api from functioning. The global api can be enabled through the backoffice portal settings.</p>\n","_postman_id":"7e28f9ed-8f18-4e83-a7b7-6c0172959da2"}]}