{"info":{"_postman_id":"517d81f2-ce92-b598-752a-30b52d6296ac","name":"Beebeeboard RESTful API","description":"<html><head></head><body><h1 id=\"getting-started\">Getting started</h1>\n<p>Our RESTful API lets you interact with Beebeeboard using JSON over HTTPS.</p>\n<p>The following resources will help you get up to speed.</p>\n\n<h2 id=\"beebeeboard-api-endpoints\">Beebeeboard API Endpoints</h2>\n<p>The API is accessed via <code>https://{{organization}}.beebeeboard.com/api/v1</code> and speaks JSON over HTTPS.</p>\n\n<h2 id=\"general-pointers\">General Pointers</h2>\n<ul>\n<li><strong>HTTPS only</strong>: All requests are done over HTTPS.</li>\n<li><strong>UTF-8 encoding</strong>: All strings are sent and received in UTF-8.</li>\n<li><strong>JSON in, JSON out</strong>: Data is sent and received as JSON (although some endpoints return CSV or PDF documents).</li>\n<li><strong>Schemas</strong>: We're using the <a href=\"http://jsonapi.org/\">JSON API</a> format.</li>\n<li><strong>ISO Date format</strong>: Dates and DateTimes are in ISO 8601 format:<ul>\n<li>Date: <code>2013-07-18</code></li>\n<li>DateTime: <code>2018-07-18T19:30:06.445Z</code> OR <code>2018-07-18T19:30:06Z</code> (with or without milliseconds).</li>\n</ul>\n</li>\n</ul>\n\n<h2 id=\"http-methods\">HTTP Methods</h2>\n<p>We're trying to keep our URLs as RESTful as possible.\nThis means that every resource endpoint may support one or more of the following HTTP methods:</p>\n<ul>\n<li><code>GET</code> Retrieves information about a resource.</li>\n<li><code>POST</code> Creates a resource.</li>\n<li><code>PATCH</code> Partially updates a resource; only include the properties to be updated.</li>\n<li><code>DELETE</code> Deletes a resource.</li>\n</ul>\n\n<h2 id=\"errors\">Errors</h2>\n<p>The API uses standard HTTP status codes to indicate that a request has gone wrong.</p>\n<p>Additionally, the body of the response always contains a error (JSON) describing the issue in more detail.</p>\n<h3 id=\"-400-bad-request\"><code>400</code> Bad Request</h3>\n<p>HTTP Status <code>400</code> is returned when:</p>\n<ul>\n<li>You send invalid JSON, that does not conform to the schema for the endpoint.</li>\n<li>Business rules prevent the operation you are attempting.</li>\n</ul>\n\n<h3 id=\"-403-forbidden\"><code>403</code> Forbidden</h3>\n<p>HTTP Status <code>403</code> is returned when:</p>\n<ul>\n<li>You did not provide an access token in the query string: <code>?access_token=ACCESS_TOKEN</code> \nor as an <code>Authorization Bearer</code> HTTP header</li>\n<li>The token you are supplying has been revoked or is invalid. In this case stop calling the API with that token</li>\n</ul>\n\n<h3 id=\"-404-not-found\"><code>404</code> Not Found</h3>\n<p>The resource could not be found.</p>\n\n<h3 id=\"-500-internal-server-error\"><code>500</code> Internal Server Error</h3>\n<p>All endpoints can also return HTTP Status <code>500</code> (Internal server error)\nif there is a problem on the server. Most likely retrying the same\nrequest will return a <code>500</code> again.\n\n</p><h3 id=\"-503-service-unavailable\"><code>503</code> Service Unavailable</h3>\n<p>All endpoints can also return HTTP Status <code>503</code> (Service unavailble)\nif there is a temporary problem on the server. Often you can retry\nthe same request and have it succeed.</p>\n\n<h2 id=\"testing-the-api\">Testing the API</h2>\n<p>If you want to test your API calls we recommend using curl.\nAdditionally the API is CORS-enabled, so you can also use your browser as a sandbox for experimenting.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting started","slug":"getting-started"}],"owner":"5473091","collectionId":"517d81f2-ce92-b598-752a-30b52d6296ac","publishedId":"RWgm3ggv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-06-05T14:59:01.000Z"},"item":[{"name":"Contacts","item":[{"name":"List contacts","event":[{"listen":"test","script":{"id":"042d56d5-c06d-4232-932a-b27d4dcbf1cf","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return contacts\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('contacts');","});"]}}],"id":"0d95c15f-af01-bba9-704d-6290699296b6","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/contacts?all_any=any&pag=1&q=&sort=name&status=","description":"<p>List contacts</p>\n","urlObject":{"protocol":"https","path":["api","v1","contacts"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"name"},{"key":"status","value":""}],"variable":[]}},"response":[],"_postman_id":"0d95c15f-af01-bba9-704d-6290699296b6"},{"name":"Get contact","event":[{"listen":"test","script":{"id":"154c4ea2-e132-4270-8c14-dc069d6fcbf4","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return contacts\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('contacts');","});"]}}],"id":"68e1677b-25ba-413d-9929-e6c351e33e31","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/contacts/{{contact_id}}","description":"<p>Get contact</p>\n","urlObject":{"protocol":"https","path":["api","v1","contacts","{{contact_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"68e1677b-25ba-413d-9929-e6c351e33e31"},{"name":"Save contact","event":[{"listen":"test","script":{"id":"63927ae6-a786-4af1-b4af-499521ae78dd","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is contact\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('contacts');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.name).to.eql('Postman Postman');","});"]}}],"id":"993b6f40-7f5d-4c37-ac0d-d7e2ad5a0701","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"organization_admin\": null,\n        \"username\": null,\n        \"first_name\": \"Postman\",\n        \"last_name\": \"Postman\",\n        \"sesso\": true,\n        \"data_nascita\": \"1970-01-01T00:00:00+01:00\",\n        \"luogo_nascita\": \"Aosta\",\n        \"mail\": null,\n        \"contact\": null,\n        \"telephone\": null,\n        \"mobile\": null,\n        \"fax\": null,\n        \"web_site\": null,\n        \"set_event_color\": null,\n        \"color\": null,\n        \"notes\": null,\n        \"credit\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"lang\": null,\n        \"total_files_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_payments_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_contacts_number\": 0,\n        \"from_mail_message\": null,\n        \"mail_message\": null,\n        \"cc_mail_message\": null,\n        \"calendar_step_minute\": null,\n        \"calendar_default_view\": null,\n        \"calendar_first_hour\": null,\n        \"calendar_last_hour\": null,\n        \"start_yearmonth\": null,\n        \"start_yearday\": null,\n        \"piva\": \"PSTPTM70A01A326O\",\n        \"piva_name\": null,\n        \"invoice_from\": null,\n        \"invoice_notes\": null,\n        \"invoice_piva\": null,\n        \"paypal\": null,\n        \"terms\": null,\n        \"socket_room\": null,\n        \"time_zone\": null,\n        \"google_login\": null,\n        \"google_cal\": null\n    },\n    \"relationships\":\n    {\n        \"contact_state\": \"131\",\n        \"custom_fields\": [\n        {\n            \"id\": null,\n            \"organization_custom_field_id\": \"301\",\n            \"attributes\":\n            {\n                \"value\": null,\n                \"number_value\": null,\n                \"boolean_value\": null\n            }\n        },\n        {\n            \"id\": null,\n            \"organization_custom_field_id\": \"300\",\n            \"attributes\":\n            {\n                \"value\": null,\n                \"number_value\": null,\n                \"boolean_value\": null\n            }\n        }],\n        \"contacts\": [],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/contacts_all","description":"<p>Save a new contact</p>\n","urlObject":{"protocol":"https","path":["api","v1","contacts_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"993b6f40-7f5d-4c37-ac0d-d7e2ad5a0701"},{"name":"Update contact","event":[{"listen":"test","script":{"id":"da630704-94e8-438e-b13c-8f24b15ca8d2","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is contact\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('contacts');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.name).to.eql('Postman Updated');","});"]}}],"id":"cc9c40ec-146e-401c-ae2e-795a0dc26214","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{contact_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"organization_admin\": null,\n        \"username\": null,\n        \"first_name\": \"Postman\",\n        \"last_name\": \"Updated\",\n        \"sesso\": true,\n        \"data_nascita\": \"1980-01-01T00:00:00+01:00\",\n        \"luogo_nascita\": \"Aosta\",\n        \"mail\": null,\n        \"contact\": null,\n        \"telephone\": null,\n        \"mobile\": null,\n        \"fax\": null,\n        \"web_site\": null,\n        \"set_event_color\": null,\n        \"color\": null,\n        \"notes\": null,\n        \"credit\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"lang\": null,\n        \"total_files_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_payments_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_contacts_number\": 0,\n        \"from_mail_message\": null,\n        \"mail_message\": null,\n        \"cc_mail_message\": null,\n        \"calendar_step_minute\": null,\n        \"calendar_default_view\": null,\n        \"calendar_first_hour\": null,\n        \"calendar_last_hour\": null,\n        \"start_yearmonth\": null,\n        \"start_yearday\": null,\n        \"piva\": \"PSTPTM70A01A326O\",\n        \"piva_name\": null,\n        \"invoice_from\": null,\n        \"invoice_notes\": null,\n        \"invoice_piva\": null,\n        \"paypal\": null,\n        \"terms\": null,\n        \"socket_room\": null,\n        \"time_zone\": null,\n        \"google_login\": null,\n        \"google_cal\": null\n    },\n    \"relationships\":\n    {\n        \"contact_state\": \"131\",\n        \"custom_fields\": [\n        {\n            \"id\": null,\n            \"organization_custom_field_id\": \"301\",\n            \"attributes\":\n            {\n                \"value\": null,\n                \"number_value\": null,\n                \"boolean_value\": null\n            }\n        },\n        {\n            \"id\": null,\n            \"organization_custom_field_id\": \"300\",\n            \"attributes\":\n            {\n                \"value\": null,\n                \"number_value\": null,\n                \"boolean_value\": null\n            }\n        }],\n        \"contacts\": [],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/contacts_all","description":"<p>Update a contact</p>\n","urlObject":{"protocol":"https","path":["api","v1","contacts_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc9c40ec-146e-401c-ae2e-795a0dc26214"},{"name":"Delete contact","event":[{"listen":"test","script":{"id":"59aab10f-b040-477a-afd5-268aa60bb109","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""]}}],"id":"1e9dff0a-16ad-4afa-a013-686897b5ddd0","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/contacts/{{contact_id}}","description":"<p>Delete contact</p>\n","urlObject":{"protocol":"https","path":["api","v1","contacts","{{contact_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e9dff0a-16ad-4afa-a013-686897b5ddd0"},{"name":"Calcola codice fiscale","event":[{"listen":"test","script":{"id":"3c35c2e4-7ce8-4ab9-97d9-f969cf110e19","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check codice fiscale\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.cf).to.eql('PSTPTM70A41A326S');","});"]}}],"id":"af746eb5-247e-49bb-af12-663d3ce4acc5","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"first_name\": \"Postman\",\n\t\"last_name\":\"Postman\",\n\t\"sex\":true,\n\t\"birthDateDay\":\"01/01/1970\",\n\t\"placeOfBirth\":\"Aosta\"\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/contacts/codice_fiscale","description":"<p>Calcola il codice fiscale</p>\n","urlObject":{"protocol":"https","path":["api","v1","contacts","codice_fiscale"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"af746eb5-247e-49bb-af12-663d3ce4acc5"}],"id":"f4767d0b-40eb-4b18-88e6-739dce2005e4","_postman_id":"f4767d0b-40eb-4b18-88e6-739dce2005e4","description":""},{"name":"Products","item":[{"name":"List products","event":[{"listen":"test","script":{"id":"ecd88202-d1ed-4022-8c17-a349a2953085","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return products\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('products');","});"]}}],"id":"434a1d20-f834-479c-a60d-bc4be2c1b3d6","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/products?all_any=any&pag=1&q=&sort=name&status=","description":"<p>List products</p>\n","urlObject":{"protocol":"https","path":["api","v1","products"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"name"},{"key":"status","value":""}],"variable":[]}},"response":[],"_postman_id":"434a1d20-f834-479c-a60d-bc4be2c1b3d6"},{"name":"Get product","event":[{"listen":"test","script":{"id":"4ffc16e0-73c0-4758-9a5a-fc9849898f84","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return products\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('products');","});"]}}],"id":"16f5bf4e-6aee-4813-867b-c5d7d6d676a0","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/products/{{product_id}}","description":"<p>Get product</p>\n","urlObject":{"protocol":"https","path":["api","v1","products","{{product_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"16f5bf4e-6aee-4813-867b-c5d7d6d676a0"},{"name":"Save product","event":[{"listen":"test","script":{"id":"cda9c442-4421-425a-a72a-d88d0e81d09c","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is product\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('products');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.name).to.eql('Prodotto Postman');","});"]}}],"id":"15f200d0-fd49-435d-b826-4c79ac315526","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"name\": \"Prodotto Postman\",\n        \"description\": null,\n        \"price\": null,\n        \"cost\": null,\n        \"codice\": null,\n        \"dispo\": null,\n        \"larghezza\": null,\n        \"profondita\": null,\n        \"altezza\": null,\n        \"duration\": null,\n        \"set_event_color\": null,\n        \"color\": null,\n        \"over_price\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"option\": null,\n        \"notes\": null,\n        \"total_files_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_payments_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_products_number\": 0,\n        \"enable_trello\": null,\n        \"trello_board\": null\n    },\n    \"relationships\":\n    {\n        \"product_state\": \"138\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/products_all","description":"<p>Save a new product</p>\n","urlObject":{"protocol":"https","path":["api","v1","products_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"15f200d0-fd49-435d-b826-4c79ac315526"},{"name":"Update product","event":[{"listen":"test","script":{"id":"97229ee5-ee9d-474b-bd85-0b6ee474e82f","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is product\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('products');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.name).to.eql('Prodotto Postman Updated');","});"]}}],"id":"e4c60f1c-21d0-4ede-9c35-61424378e484","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{product_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"name\": \"Prodotto Postman Updated\",\n        \"description\": null,\n        \"price\": null,\n        \"cost\": null,\n        \"codice\": null,\n        \"dispo\": null,\n        \"larghezza\": null,\n        \"profondita\": null,\n        \"altezza\": null,\n        \"duration\": null,\n        \"set_event_color\": null,\n        \"color\": null,\n        \"over_price\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"option\": null,\n        \"notes\": null,\n        \"total_files_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_contacts_number\": 1,\n        \"total_payments_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_products_number\": 0,\n        \"enable_trello\": null,\n        \"trello_board\": null\n    },\n    \"relationships\":\n    {\n        \"product_state\": \"138\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/products_all","description":"<p>Update a product</p>\n","urlObject":{"protocol":"https","path":["api","v1","products_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4c60f1c-21d0-4ede-9c35-61424378e484"},{"name":"Delete product","event":[{"listen":"test","script":{"id":"4ffc16e0-73c0-4758-9a5a-fc9849898f84","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return products\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('products');","});"]}}],"id":"2e3f18ed-cda4-4e79-bbf4-8d27e2c6780c","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/products/{{product_id}}","description":"<p>Delete product</p>\n","urlObject":{"protocol":"https","path":["api","v1","products","{{product_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e3f18ed-cda4-4e79-bbf4-8d27e2c6780c"}],"id":"0b417fd5-b70b-44e8-8317-810d66288192","_postman_id":"0b417fd5-b70b-44e8-8317-810d66288192","description":""},{"name":"Projects","item":[{"name":"List projects","event":[{"listen":"test","script":{"id":"6cfdaccc-0601-4d94-8a6c-ecede58d77d6","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return projects\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('projects');","});"]}}],"id":"e9012fbe-c93f-45f7-8177-bd8c1c589551","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/projects?all_any=any&from_date=&pag=1&q=&sort=name&status=&success=&to_date=","description":"<p>List projects</p>\n","urlObject":{"protocol":"https","path":["api","v1","projects"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"from_date","value":""},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"name"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":""}],"variable":[]}},"response":[],"_postman_id":"e9012fbe-c93f-45f7-8177-bd8c1c589551"},{"name":"Get project","event":[{"listen":"test","script":{"id":"b2a2b6e7-5e48-4856-b827-14cadf933a65","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return project\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('projects');","});"]}}],"id":"41ef7553-bd53-4edc-8c86-7236e07cca74","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/projects/{{project_id}}","description":"<p>Get project</p>\n","urlObject":{"protocol":"https","path":["api","v1","projects","{{project_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"41ef7553-bd53-4edc-8c86-7236e07cca74"},{"name":"Save project","event":[{"listen":"test","script":{"id":"a1375c74-0196-41d0-a591-e5bc45903c65","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is project\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('projects');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.name).to.eql('Progetto Postman');","});"]}}],"id":"783b1873-1502-4a87-b86a-c7436564acd7","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"name\": \"Progetto Postman\",\n        \"description\": null,\n        \"start_date\": \"2018-09-28T09:00+02:00\",\n        \"end_date\": \"2018-09-28T10:00+02:00\",\n        \"price\": null,\n        \"cost\": null,\n        \"duration\": null,\n        \"set_event_color\": null,\n        \"color\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"notes\": null,\n        \"total_files_number\": 0,\n        \"total_products_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_payments_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_projects_number\": 0,\n        \"enable_trello\": null,\n        \"trello_board\": null\n    },\n    \"relationships\":\n    {\n        \"project_state\": \"114\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/projects_all","description":"<p>Save a new project</p>\n","urlObject":{"protocol":"https","path":["api","v1","projects_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"783b1873-1502-4a87-b86a-c7436564acd7"},{"name":"Update project","event":[{"listen":"test","script":{"id":"09f767b1-b1f6-4600-a112-8dfc1a698674","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is project\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('projects');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.name).to.eql('Progetto Postman Updated');","});"]}}],"id":"c3c7023c-e61c-40c6-89ff-d880ba924570","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{project_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"name\": \"Progetto Postman Updated\",\n        \"description\": null,\n        \"start_date\": \"2018-09-28T07:00:00+00:00\",\n        \"end_date\": \"2018-09-28T08:00:00+00:00\",\n        \"price\": null,\n        \"cost\": null,\n        \"duration\": null,\n        \"set_event_color\": null,\n        \"color\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"notes\": null,\n        \"total_files_number\": 0,\n        \"total_products_number\": 0,\n        \"total_contacts_number\": 1,\n        \"total_payments_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_projects_number\": 0,\n        \"enable_trello\": null,\n        \"trello_board\": null\n    },\n    \"relationships\":\n    {\n        \"project_state\": \"114\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/projects_all","description":"<p>Update a project</p>\n","urlObject":{"protocol":"https","path":["api","v1","projects_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3c7023c-e61c-40c6-89ff-d880ba924570"},{"name":"Delete project","event":[{"listen":"test","script":{"id":"b2a2b6e7-5e48-4856-b827-14cadf933a65","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return project\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('projects');","});"]}}],"id":"6a7927e8-c365-4278-a44c-8aae73e603f1","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/projects/{{project_id}}","description":"<p>Delete project</p>\n","urlObject":{"protocol":"https","path":["api","v1","projects","{{project_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a7927e8-c365-4278-a44c-8aae73e603f1"}],"id":"e413c0f2-eb08-413d-b011-91df1d217f0c","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"e413c0f2-eb08-413d-b011-91df1d217f0c","description":""},{"name":"Events","item":[{"name":"List events","event":[{"listen":"test","script":{"id":"d036b433-add4-417d-92f1-efdc385f248c","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return events\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('events');","});"]}}],"id":"4315115b-aa83-4582-8dc0-4bc2bddc1077","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/events?all_any=any&direction=desc&from_date=2018-01-01 00:00&pag=1&q=&sort=start_date&status=&to_date=2018-12-31 00:00","description":"<p>List events</p>\n","urlObject":{"protocol":"https","path":["api","v1","events"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"start_date"},{"key":"status","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"4315115b-aa83-4582-8dc0-4bc2bddc1077"},{"name":"Get event","event":[{"listen":"test","script":{"id":"a20b78d6-aef9-43a6-9bda-18322f17e4c9","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return events\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('events');","});"]}}],"id":"63683e2e-9937-40e6-826f-a4cbd6e3bc9c","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/events/{{event_id}}","description":"<p>Get event</p>\n","urlObject":{"protocol":"https","path":["api","v1","events","{{event_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"63683e2e-9937-40e6-826f-a4cbd6e3bc9c"},{"name":"Save event","event":[{"listen":"test","script":{"id":"38a181ba-933a-4b57-b74f-3aec59d293a1","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is event\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('events');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.title).to.eql('Evento Postman');","});"]}}],"id":"85b78ca5-173b-4053-95c2-fc066f9dbe71","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"is_dispo\": null,\n        \"title\": \"Evento Postman\",\n        \"description\": null,\n        \"all_day\": null,\n        \"start_date\": \"2018-09-28T11:00+02:00\",\n        \"end_date\": \"2018-09-28T12:00+02:00\",\n        \"color\": null,\n        \"notes\": null,\n        \"players_number\": 1,\n        \"price\": null,\n        \"cost\": null,\n        \"recursive_pattern\": null,\n        \"recursive_rule\": null,\n        \"total_files_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_reminders_number\": 0,\n        \"total_workhours_number\": 0,\n        \"total_payments_number\": 0,\n        \"total_related_events_number\": 0\n    },\n    \"relationships\":\n    {\n        \"event_state\": \"218\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/events_all","description":"<p>Save a new event</p>\n","urlObject":{"protocol":"https","path":["api","v1","events_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"85b78ca5-173b-4053-95c2-fc066f9dbe71"},{"name":"Update event","event":[{"listen":"test","script":{"id":"44d63818-b25f-404b-a604-f6d7d22b513b","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is event\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('events');","});","","pm.test(\"Name is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.title).to.eql('Evento Postman Upadated');","});"]}}],"id":"16d7ec2e-c6fe-48da-b533-12950d795e88","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{event_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"is_dispo\": null,\n        \"title\": \"Evento Postman Upadated\",\n        \"description\": null,\n        \"all_day\": null,\n        \"start_date\": \"2018-09-28T11:00+02:00\",\n        \"end_date\": \"2018-09-28T12:00+02:00\",\n        \"color\": null,\n        \"notes\": null,\n        \"players_number\": 1,\n        \"price\": null,\n        \"cost\": 0,\n        \"recursive_pattern\": null,\n        \"recursive_rule\": null,\n        \"total_files_number\": 0,\n        \"total_contacts_number\": 1,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_reminders_number\": 0,\n        \"total_workhours_number\": 0,\n        \"total_payments_number\": 0,\n        \"total_related_events_number\": 0\n    },\n    \"relationships\":\n    {\n        \"event_state\": \"218\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/events_all","description":"<p>Update a event</p>\n","urlObject":{"protocol":"https","path":["api","v1","events_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"16d7ec2e-c6fe-48da-b533-12950d795e88"},{"name":"Delete event","event":[{"listen":"test","script":{"id":"a20b78d6-aef9-43a6-9bda-18322f17e4c9","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return events\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('events');","});"]}}],"id":"8612043b-bd20-4558-b8c9-5acdaa227545","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/events/{{event_id}}","description":"<p>Delete event</p>\n","urlObject":{"protocol":"https","path":["api","v1","events","{{event_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8612043b-bd20-4558-b8c9-5acdaa227545"}],"id":"59b74a1d-5e63-4d61-bad9-8180a420b2e9","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"59b74a1d-5e63-4d61-bad9-8180a420b2e9","description":""},{"name":"Workhours","item":[{"name":"List workhours","event":[{"listen":"test","script":{"id":"dbc540fb-772e-4d95-a7bd-7bb1d8d6af07","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return workhours\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('workhours');","});"]}}],"id":"2b6f0b28-08ac-4c55-b58c-83923f0a9b12","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/workhours?all_any=any&direction=desc&from_date=2018-01-01 00:00&pag=1&q=&sort=start_date&status=&to_date=2018-12-31 00:00","description":"<p>List workhours</p>\n","urlObject":{"protocol":"https","path":["api","v1","workhours"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"start_date"},{"key":"status","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"2b6f0b28-08ac-4c55-b58c-83923f0a9b12"},{"name":"Get workhour","event":[{"listen":"test","script":{"id":"35d50766-aff4-4597-80f6-538f80dd6f67","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return workhours\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('workhours');","});"]}}],"id":"a2824b48-896b-42d2-9157-2f4e76bab3dd","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/workhours/{{workhour_id}}","description":"<p>Get workhour</p>\n","urlObject":{"protocol":"https","path":["api","v1","workhours","{{workhour_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2824b48-896b-42d2-9157-2f4e76bab3dd"},{"name":"Save workhour","event":[{"listen":"test","script":{"id":"184acdc5-e760-47e2-9672-873310804971","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is workhour\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('workhours');","});","","pm.test(\"Text is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.text).to.eql('Test Postman');","});"]}}],"id":"80a14c13-7ee8-4870-b1b3-ad4dd4c28866","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"date\": \"2018-10-03 00:20\",\n        \"duration\": \"10.00\",\n        \"text\": \"Test Postman\",\n        \"notes\": null,\n        \"total_files_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_workhours_number\": 0\n    },\n    \"relationships\":\n    {\n        \"workhour_state\": \"103\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/workhours_all","description":"<p>Save a new workhour</p>\n","urlObject":{"protocol":"https","path":["api","v1","workhours_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"80a14c13-7ee8-4870-b1b3-ad4dd4c28866"},{"name":"Update workhour","event":[{"listen":"test","script":{"id":"f838f717-5ce2-48b5-bbbe-eb1828440b4f","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Type is workhour\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('workhours');","});","","pm.test(\"Text is correct\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.text).to.eql('Test Postman Upadated');","});"]}}],"id":"51f04e48-bfec-4152-bc98-67409f85b9c9","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{workhour_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"date\": \"2018-10-03 00:20\",\n        \"duration\": \"10.00\",\n        \"text\": \"Test Postman Upadated\",\n        \"notes\": null,\n        \"total_files_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_related_workhours_number\": 0\n    },\n    \"relationships\":\n    {\n        \"workhour_state\": \"103\",\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/workhours_all","description":"<p>Update a workhour</p>\n","urlObject":{"protocol":"https","path":["api","v1","workhours_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"51f04e48-bfec-4152-bc98-67409f85b9c9"},{"name":"Delete workhour","event":[{"listen":"test","script":{"id":"35d50766-aff4-4597-80f6-538f80dd6f67","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return workhours\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('workhours');","});"]}}],"id":"2f806599-43bf-4d81-9e70-1a025ae9f06f","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/workhours/{{workhour_id}}","description":"<p>Delete workhour</p>\n","urlObject":{"protocol":"https","path":["api","v1","workhours","{{workhour_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f806599-43bf-4d81-9e70-1a025ae9f06f"}],"id":"6acecfe4-3090-42cb-90ee-e961674d4603","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"6acecfe4-3090-42cb-90ee-e961674d4603","description":""},{"name":"Estimates","item":[{"name":"List estimates","event":[{"listen":"test","script":{"id":"3f8d0dc8-b6ff-403f-9d89-01259189b019","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('invoices');","});","","pm.test(\"Type estimate\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].attributes.document_type).to.eql('estimate');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"4fc411fd-326e-4b1a-accb-98efa25821e3","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices?all_any=any&direction=desc&document_type=estimate&from_date=2018-01-01 00:00&pag=1&q=&sort=number&status=&success=&to_date=2018-12-31 00:00","description":"<p>List estimates</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"estimate"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"number"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"4fc411fd-326e-4b1a-accb-98efa25821e3"},{"name":"Get estimate","event":[{"listen":"test","script":{"id":"a7a2dba1-504a-44b8-a901-7b6bb33a877d","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type estimate\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('estimate');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"1b2e63c9-fa2d-493b-9839-9fbe2315d8e4","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{estimate_id}}","description":"<p>Get estimate</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{estimate_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b2e63c9-fa2d-493b-9839-9fbe2315d8e4"},{"name":"Save estimate","event":[{"listen":"test","script":{"id":"574b46a0-3bfa-44f2-9004-c149be9de995","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type estimate\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('estimate');","});"]}}],"id":"2ca8dba0-4b96-429a-bd04-fe1dc63c5a46","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"document_type\": \"estimate\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03 00:30\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": \"10\",\n        \"discount_rate\": \"10\",\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"617.40\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Save a new estimate</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ca8dba0-4b96-429a-bd04-fe1dc63c5a46"},{"name":"Update estimate","event":[{"listen":"test","script":{"id":"f7d6a5e5-4b2e-47b9-afec-ac30edcd4e01","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type estimate\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('estimate');","});"]}}],"id":"6de5fde5-1997-485f-8086-5260f00067d1","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{estimate_id}},\n    \"attributes\":\n    {\n        \"document_type\": \"estimate\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": 10,\n        \"discount_rate\": 10,\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": \"76879\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": \"76880\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": \"3775\",\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura Modificata\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": \"8577\",\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": \"8578\",\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": \"1060\",\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": 617.4\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Update a estimate</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6de5fde5-1997-485f-8086-5260f00067d1"},{"name":"Delete estimate","event":[{"listen":"test","script":{"id":"a7a2dba1-504a-44b8-a901-7b6bb33a877d","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type estimate\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('estimate');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"3238b1ca-692e-415b-9c1e-fc454b9f1637","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{estimate_id}}","description":"<p>Delete estimate</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{estimate_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3238b1ca-692e-415b-9c1e-fc454b9f1637"},{"name":"Document number","event":[{"listen":"test","script":{"id":"6e9777df-c444-4ebf-8bcd-bf10225091a7","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"1e811ced-4298-40e8-a6f3-0b493c8a537e","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/document_type_number?document_type=estimate&user_id","description":"<p>Get next document number</p>\n","urlObject":{"protocol":"https","path":["api","v1","document_type_number"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"document_type","value":"estimate"},{"key":"user_id","value":null}],"variable":[]}},"response":[],"_postman_id":"1e811ced-4298-40e8-a6f3-0b493c8a537e"}],"id":"615715a2-a95e-4f46-9ea3-3cca7b6d8f44","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"615715a2-a95e-4f46-9ea3-3cca7b6d8f44","description":""},{"name":"Invoices","item":[{"name":"List invoices","event":[{"listen":"test","script":{"id":"b447e60c-fad9-4cac-88ed-533ea3e33b81","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('invoices');","});","","pm.test(\"Type invoice\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].attributes.document_type).to.eql('invoice');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"9ddea1bd-4d31-458f-a7d2-27bdbb9c094e","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices?all_any=any&direction=desc&document_type=invoice&from_date=2018-01-01 00:00&pag=1&q=&sort=number&status=&success=&to_date=2018-12-31 00:00","description":"<p>List invoices</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"invoice"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"number"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"9ddea1bd-4d31-458f-a7d2-27bdbb9c094e"},{"name":"Get invoice","event":[{"listen":"test","script":{"id":"7d101c78-2e4a-4019-8b55-0e3d4f07e9f2","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type invoice\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('invoice');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"2194d8fe-77c6-41e3-b9f5-efa3460fba9f","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{invoice_id}}","description":"<p>Get invoice</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{invoice_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2194d8fe-77c6-41e3-b9f5-efa3460fba9f"},{"name":"Save invoice","event":[{"listen":"test","script":{"id":"f7cac9fc-6789-497f-86b9-2d0547029f92","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type invoice\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('invoice');","});"]}}],"id":"761702af-1e83-4d29-a960-0522caca3e83","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"document_type\": \"invoice\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03 00:30\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": \"10\",\n        \"discount_rate\": \"10\",\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"617.40\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Save a new invoice</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"761702af-1e83-4d29-a960-0522caca3e83"},{"name":"Update invoice","event":[{"listen":"test","script":{"id":"c8cb4626-c0b2-4c33-a07e-3c96a9e1fddc","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type invoice\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('invoice');","});"]}}],"id":"8d5ec9e3-b228-40ff-a798-f683a609b3d6","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{invoice_id}},\n    \"attributes\":\n    {\n        \"document_type\": \"invoice\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": 10,\n        \"discount_rate\": 10,\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": \"76879\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": \"76880\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": \"3775\",\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura Modificata\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": \"8577\",\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": \"8578\",\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": \"1060\",\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": 617.4\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Update a invoice</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d5ec9e3-b228-40ff-a798-f683a609b3d6"},{"name":"Delete invoice","event":[{"listen":"test","script":{"id":"7d101c78-2e4a-4019-8b55-0e3d4f07e9f2","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type invoice\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('invoice');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"25e33621-dfea-493b-a2ea-b5d4a679d2e1","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{invoice_id}}","description":"<p>Delete invoice</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{invoice_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"25e33621-dfea-493b-a2ea-b5d4a679d2e1"},{"name":"Document number","event":[{"listen":"test","script":{"id":"6e9777df-c444-4ebf-8bcd-bf10225091a7","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"78e97801-0b38-476c-95c9-477547877a05","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/document_type_number?document_type=invoice&user_id","description":"<p>Get next document number</p>\n","urlObject":{"protocol":"https","path":["api","v1","document_type_number"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"document_type","value":"invoice"},{"key":"user_id","value":null}],"variable":[]}},"response":[],"_postman_id":"78e97801-0b38-476c-95c9-477547877a05"}],"id":"6693baa7-b45c-4cf2-83f4-20a10a06763b","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"6693baa7-b45c-4cf2-83f4-20a10a06763b","description":""},{"name":"Orders","item":[{"name":"List orders","event":[{"listen":"test","script":{"id":"b485c87a-45da-49cf-967c-8992b532a40c","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('invoices');","});","","pm.test(\"Type order\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].attributes.document_type).to.eql('order');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"9c337dd0-4fb4-41f1-b170-195d2139b29e","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices?all_any=any&direction=desc&document_type=order&from_date=2018-01-01 00:00&pag=1&q=&sort=number&status=&success=&to_date=2018-12-31 00:00","description":"<p>List orders</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"order"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"number"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"9c337dd0-4fb4-41f1-b170-195d2139b29e"},{"name":"Get order","event":[{"listen":"test","script":{"id":"9ab90c5a-c6cd-44f9-b5e1-1adf5c1b93c3","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type order\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('order');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"5b070d4a-8e90-4bf8-8dc6-9288adbbf455","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{order_id}}","description":"<p>Get order</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{order_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b070d4a-8e90-4bf8-8dc6-9288adbbf455"},{"name":"Save order","event":[{"listen":"test","script":{"id":"bb216fc9-5024-4fd0-8d70-37abc1cd03da","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type order\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('order');","});"]}}],"id":"460fb16c-b7e4-4dc9-b9ac-0d2d8c6ffb70","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"document_type\": \"order\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03 00:30\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": \"10\",\n        \"discount_rate\": \"10\",\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"617.40\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Save a new order</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"460fb16c-b7e4-4dc9-b9ac-0d2d8c6ffb70"},{"name":"Update order","event":[{"listen":"test","script":{"id":"ec3c8053-1c08-416e-9d8a-8049a7698aa4","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type order\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('order');","});"]}}],"id":"416bd376-a95f-4e33-9738-d77ff229e68f","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{order_id}},\n    \"attributes\":\n    {\n        \"document_type\": \"order\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 0,\n        \"total\": null,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": 10,\n        \"discount_rate\": 10,\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": \"76879\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": \"76880\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [],\n        \"expire_dates\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Update a order</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"416bd376-a95f-4e33-9738-d77ff229e68f"},{"name":"Delete order","event":[{"listen":"test","script":{"id":"9ab90c5a-c6cd-44f9-b5e1-1adf5c1b93c3","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type order\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('order');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"cf5d5f8c-88f6-460e-a84e-ca558068c147","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{order_id}}","description":"<p>Delete order</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{order_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf5d5f8c-88f6-460e-a84e-ca558068c147"},{"name":"Document number","event":[{"listen":"test","script":{"id":"6e9777df-c444-4ebf-8bcd-bf10225091a7","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"4679328a-5598-49d3-9e8a-8be9293e69f5","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/document_type_number?document_type=order&user_id","description":"<p>Get next document number</p>\n","urlObject":{"protocol":"https","path":["api","v1","document_type_number"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"document_type","value":"order"},{"key":"user_id","value":null}],"variable":[]}},"response":[],"_postman_id":"4679328a-5598-49d3-9e8a-8be9293e69f5"}],"id":"746b76db-532e-4962-908e-a0673d734dee","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"746b76db-532e-4962-908e-a0673d734dee","description":""},{"name":"Contracts","item":[{"name":"List contract","event":[{"listen":"test","script":{"id":"de836ad4-9865-4743-be00-93ff6c998178","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('invoices');","});","","pm.test(\"Type contract\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].attributes.document_type).to.eql('contract');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"d6c641ae-f9c6-49c9-aa2a-b52e3d452cd4","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices?all_any=any&direction=desc&document_type=contract&from_date=2018-01-01 00:00&pag=1&q=&sort=number&status=&success=&to_date=2018-12-31 00:00","description":"<p>List contract</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"contract"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"number"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"d6c641ae-f9c6-49c9-aa2a-b52e3d452cd4"},{"name":"Get contract","event":[{"listen":"test","script":{"id":"330c8cd6-6099-401e-9a01-0fc54cc6ed52","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type contract\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('contract');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"5f2907ff-cab2-419f-af1d-95b7b4c1fab6","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{contract_id}}","description":"<p>Get contract</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{contract_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f2907ff-cab2-419f-af1d-95b7b4c1fab6"},{"name":"Save contract","event":[{"listen":"test","script":{"id":"52817176-9621-4a54-927e-9bbcc679c795","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type contract\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('contract');","});"]}}],"id":"1504935e-5ff2-4531-b269-a11de7436111","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"document_type\": \"contract\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03 00:30\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": \"10\",\n        \"discount_rate\": \"10\",\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"617.40\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Save a new contract</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1504935e-5ff2-4531-b269-a11de7436111"},{"name":"Update contract","event":[{"listen":"test","script":{"id":"77cd3d97-e511-47e3-a89b-930ce1fb0685","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type contract\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('contract');","});"]}}],"id":"46cf7a5e-a490-452b-b55a-9a7fb728ef5c","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{contract_id}},\n    \"attributes\":\n    {\n        \"document_type\": \"contract\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": 10,\n        \"discount_rate\": 10,\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": \"76899\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": \"76900\",\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": \"3785\",\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": \"8597\",\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": \"8598\",\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": \"1070\",\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": 617.4\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Update a contract</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"46cf7a5e-a490-452b-b55a-9a7fb728ef5c"},{"name":"Delete contract","event":[{"listen":"test","script":{"id":"330c8cd6-6099-401e-9a01-0fc54cc6ed52","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type contract\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('contract');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"eaafc63f-7855-4ae8-a56c-00ea29d0149f","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{contract_id}}","description":"<p>Delete contract</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{contract_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eaafc63f-7855-4ae8-a56c-00ea29d0149f"},{"name":"Document number","event":[{"listen":"test","script":{"id":"6e9777df-c444-4ebf-8bcd-bf10225091a7","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"06acf8e2-7d92-47b5-8fb6-45839bab98e5","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/document_type_number?document_type=contract&user_id","description":"<p>Get next document number</p>\n","urlObject":{"protocol":"https","path":["api","v1","document_type_number"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"document_type","value":"contract"},{"key":"user_id","value":null}],"variable":[]}},"response":[],"_postman_id":"06acf8e2-7d92-47b5-8fb6-45839bab98e5"}],"id":"d68a9ccd-6f21-4a4b-9ea6-f533677642dc","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"d68a9ccd-6f21-4a4b-9ea6-f533677642dc","description":""},{"name":"Ddt","item":[{"name":"List ddt","event":[{"listen":"test","script":{"id":"1307fcb2-2e6a-44b1-bb0a-09ed6d2001d4","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('invoices');","});","","pm.test(\"Type ddt\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].attributes.document_type).to.eql('ddt');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"e58d9e62-82ad-4894-8a97-0ae06ec362aa","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices?all_any=any&direction=desc&document_type=ddt&from_date=2018-01-01 00:00&pag=1&q=&sort=number&status=&success=&to_date=2018-12-31 00:00","description":"<p>List ddt</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"ddt"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"number"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"e58d9e62-82ad-4894-8a97-0ae06ec362aa"},{"name":"Get ddt","event":[{"listen":"test","script":{"id":"98de7eed-63a0-4f22-85fd-30ec1eac045c","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type ddt\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('ddt');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"b708a915-a41b-458b-a7dd-902eb684364e","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{ddt_id}}","description":"<p>Get ddt</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{ddt_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b708a915-a41b-458b-a7dd-902eb684364e"},{"name":"Save ddt","event":[{"listen":"test","script":{"id":"27d08f81-ef77-4343-9fcd-894741a4665b","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type ddt\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('ddt');","});"]}}],"id":"4eb160cc-3c51-4e41-af40-936749d55eac","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"document_type\": \"ddt\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-10-03 00:30\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"IT00123456\",\n        \"imponibile\": 500,\n        \"total\": 617.4,\n        \"status\": \"wait\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": \"10\",\n        \"discount_rate\": \"10\",\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"Utente Test\",\n        \"contact_piva\": \"IT00123456\",\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 0\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": \"2\",\n        \"user\": \"44975\",\n        \"contact\": \"44975\",\n        \"contact_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"name\": \"Via Giuseppe Garibaldi, 20\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuMDczMztsb249Ny42NzkzO249VmlhK0dpdXNlcHBlK0dhcmliYWxkaSUyQysyMDtubGF0PTQ1LjA3MzI3O25sb249Ny42NzkyODtoPTVmMTczMw\",\n                \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVZpYStHaXVzZXBwZStHYXJpYmFsZGklMkMrMjA7bGFuZz1pdDtsYXQ9NDUuMDczMjk5NDA3OTU4OTg0O2xvbj03LjY3OTI5OTgzMTM5MDM4MTtzdHJlZXQ9VmlhK0dpdXNlcHBlK0dhcmliYWxkaTtob3VzZT0yMDtjaXR5PVRvcmlubztwb3N0YWxDb2RlPTEwMTIyO2NvdW50cnk9SVRBO2Rpc3RyaWN0PUNlbnRybztzdGF0ZT1QaWVtb250ZTtjb3VudHk9VG9yaW5vO2NhdGVnb3J5SWQ9YnVpbGRpbmc7c291cmNlU3lzdGVtPWludGVybmFsO25sYXQ9NDUuMDczMjY4ODkwMzgwODY7bmxvbj03LjY3OTI3OTgwNDIyOTczNjtwZHNDYXRlZ29yeUlkPTkwMC05MzAwLTAwMDA\",\n                \"location_position_lat\": 45.073299,\n                \"location_position_lng\": 7.6793,\n                \"location_address_text\": \"Via Giuseppe Garibaldi, 20<br/>10122 Torino<br/>Italia\",\n                \"location_address_house\": \"20\",\n                \"location_address_street\": \"Via Giuseppe Garibaldi\",\n                \"location_address_postal_code\": \"10122\",\n                \"location_address_city\": \"Torino\",\n                \"location_address_county\": \"Torino\",\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"building\",\n                \"categories_title\": \"Edificio\",\n                \"type\": null,\n                \"is_invoice\": true,\n                \"accuracy\": null,\n                \"heading\": null\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"IVA\",\n                \"rate\": 22,\n                \"imponibile\": 490,\n                \"total\": 107.8,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        },\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 2,\n                \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                \"rate\": 4,\n                \"imponibile\": 490,\n                \"total\": 19.6,\n                \"gt\": null,\n                \"sum\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"Riga Fattura\",\n                \"description\": null,\n                \"price\": 500,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": 500,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": [\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"IVA\",\n                        \"rate\": 22,\n                        \"rank\": 1,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                },\n                {\n                    \"id\": null,\n                    \"attributes\":\n                    {\n                        \"name\": \"Rivalsa (legge 8 Agosto '95 N 335)\",\n                        \"rate\": 4,\n                        \"rank\": 2,\n                        \"editable\": null,\n                        \"bind\": null,\n                        \"is_bollo\": null,\n                        \"tot_bollo\": null,\n                        \"gt\": null,\n                        \"sum\": null,\n                        \"is_active\": true\n                    },\n                    \"relationships\":\n                    {\n                        \"contact\": null,\n                        \"product\": null,\n                        \"project\": null,\n                        \"event\": null,\n                        \"invoiceproducts\": [],\n                        \"cumulable_invoiceproduct_taxes\": []\n                    }\n                }]\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"617.40\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": []\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Save a new ddt</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4eb160cc-3c51-4e41-af40-936749d55eac"},{"name":"Update ddt","event":[{"listen":"test","script":{"id":"d0a7487a-0e48-4074-83c3-5176a2631ee8","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type ddt\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('ddt');","});"]}}],"id":"77a21ce0-ddcd-4f6d-9336-bd8002e85728","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{ddt_id}},\n    \"attributes\":\n    {\n        \"document_type\": \"ddt\",\n        \"estimate\": null,\n        \"advanced\": null,\n        \"archivied\": null,\n        \"number\": \"2\",\n        \"date\": \"2018-08-24\",\n        \"society\": \"Demo Srl\",\n        \"society_piva_name\": \"P.IVA\",\n        \"society_piva\": \"12345\",\n        \"imponibile\": 0,\n        \"total\": 0,\n        \"status\": \"active\",\n        \"lordo\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_invoicenumber\": null,\n        \"creditnote_invoicedate\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"fixed_price_type\": null,\n        \"fixed_price\": null,\n        \"discount\": null,\n        \"discount_rate\": null,\n        \"discount_type\": null,\n        \"causale\": null,\n        \"ditta\": null,\n        \"mezzo\": null,\n        \"data_consegna\": null,\n        \"peso\": null,\n        \"colli\": null,\n        \"contact_name\": \"prova nuobo\",\n        \"contact_piva\": null,\n        \"total_files_number\": 0,\n        \"total_payments\": 0,\n        \"total_payments_number\": 0,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_events_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_estimates_number\": 0,\n        \"total_ddts_number\": 0,\n        \"total_orders_number\": 0,\n        \"total_contracts_number\": 1\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": null,\n        \"user\": \"44975\",\n        \"contact\": null,\n        \"contact_address\": [\n        {\n            \"id\": \"76854\",\n            \"attributes\":\n            {\n                \"name\": null,\n                \"icon\": null,\n                \"view\": null,\n                \"place_id\": null,\n                \"location_position_lat\": null,\n                \"location_position_lng\": null,\n                \"location_address_text\": null,\n                \"location_address_house\": null,\n                \"location_address_street\": null,\n                \"location_address_postal_code\": null,\n                \"location_address_city\": null,\n                \"location_address_county\": null,\n                \"location_address_state\": null,\n                \"location_address_country\": null,\n                \"location_address_country_code\": null,\n                \"categories_id\": null,\n                \"categories_title\": null,\n                \"type\": null,\n                \"is_invoice\": false\n            }\n        }],\n        \"society_address\": [\n        {\n            \"id\": \"76855\",\n            \"attributes\":\n            {\n                \"name\": \"Piazza Dante\",\n                \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/10.icon\",\n                \"view\": \"https://share.here.com/p/s-Yz1zaWdodHMtbXVzZXVtcztpZD0zODBzcjYway0wOGRjNTg3MWZiNzg0NTJlYmJkZTlkODI1MTlkMmFiNDtsYXQ9NDAuODQ5MDE7bG9uPTE0LjI0OTg3O249UGlhenphK0RhbnRlO25sYXQ9NDAuODQ5MDE7bmxvbj0xNC4yNDk4NztoPTVhNWUwMg\",\n                \"place_id\": \"380sr60k-08dc5871fb78452ebbde9d82519d2ab4\",\n                \"location_position_lat\": 40.84901,\n                \"location_position_lng\": 14.24987,\n                \"location_address_text\": \"Piazza Dante<br/>80135 Napoli<br/>Italia\",\n                \"location_address_house\": null,\n                \"location_address_street\": \"Piazza Dante\",\n                \"location_address_postal_code\": \"80135\",\n                \"location_address_city\": \"Napoli\",\n                \"location_address_county\": null,\n                \"location_address_state\": null,\n                \"location_address_country\": \"Italia\",\n                \"location_address_country_code\": \"ITA\",\n                \"categories_id\": \"sights-museums\",\n                \"categories_title\": \"Luoghi turistici e musei\",\n                \"type\": null,\n                \"is_invoice\": true\n            }\n        }],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"invoicetaxes\": [],\n        \"invoicegroups\": [],\n        \"invoiceproducts\": [\n        {\n            \"id\": \"3766\",\n            \"attributes\":\n            {\n                \"rank\": 1,\n                \"name\": \"prova articolo\",\n                \"description\": null,\n                \"price\": null,\n                \"qta\": 1,\n                \"unit\": \"pezzo\",\n                \"importo\": null,\n                \"codice\": null,\n                \"larghezza\": null,\n                \"profondita\": null,\n                \"altezza\": null\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"invoiceproducts\": [],\n                \"invoiceproduct_taxes\": []\n            }\n        }],\n        \"expire_dates\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices_all","description":"<p>Update a ddt</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"77a21ce0-ddcd-4f6d-9336-bd8002e85728"},{"name":"Delete ddt","event":[{"listen":"test","script":{"id":"98de7eed-63a0-4f22-85fd-30ec1eac045c","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return invoices\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('invoice');","});","","pm.test(\"Type ddt\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.attributes.document_type).to.eql('ddt');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"cb8aef14-3218-4e44-bfb4-c32bcf421730","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/invoices/{{ddt_id}}","description":"<p>Delete ddt</p>\n","urlObject":{"protocol":"https","path":["api","v1","invoices","{{ddt_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb8aef14-3218-4e44-bfb4-c32bcf421730"},{"name":"Document number","event":[{"listen":"test","script":{"id":"6e9777df-c444-4ebf-8bcd-bf10225091a7","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"id":"dc2066c8-aa69-40c4-aac4-3420760dcace","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/document_type_number?document_type=order&user_id","description":"<p>Get next document number</p>\n","urlObject":{"protocol":"https","path":["api","v1","document_type_number"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"document_type","value":"order"},{"key":"user_id","value":null}],"variable":[]}},"response":[],"_postman_id":"dc2066c8-aa69-40c4-aac4-3420760dcace"}],"id":"ca98d257-7a0b-4ab6-a432-27d0d95b3379","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"ca98d257-7a0b-4ab6-a432-27d0d95b3379","description":""},{"name":"Expenses","item":[{"name":"List expenses","event":[{"listen":"test","script":{"id":"d2753089-8952-4c3c-9cfe-e7dd38f65f9f","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return expenses\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('expenses');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"b04f88b8-0ded-460f-840f-1863c57a9411","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/expenses?all_any=any&direction=desc&document_type=expense&from_date=2018-01-01 00:00&pag=1&q=&sort=date&status=&success=&to_date=2018-12-31 00:00","description":"<p>List expenses</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"expense"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sort","value":"date"},{"key":"status","value":""},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"b04f88b8-0ded-460f-840f-1863c57a9411"},{"name":"Get expense","event":[{"listen":"test","script":{"id":"120cc092-8fdf-43b7-85a7-b7ba61fd05fc","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return expense\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('expenses');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"bc8b4563-25d9-4e6b-94d0-53a28d3d849b","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/expenses/{{expense_id}}","description":"<p>Get expense</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses","{{expense_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bc8b4563-25d9-4e6b-94d0-53a28d3d849b"},{"name":"Save expense","event":[{"listen":"test","script":{"id":"20bf2317-de74-4776-ae82-48fda3f6e292","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return expenses\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('expenses');","});"]}}],"id":"ef4c97e4-5d57-4f01-8d34-a741ebd2b683","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"date\": \"2018-10-03 01:23\",\n        \"ref_number\": \"1\",\n        \"status\": null,\n        \"recursive\": null,\n        \"recursive_period\": null,\n        \"recursive_human\": null,\n        \"first_rate\": null,\n        \"first_rate_included\": null,\n        \"description\": null,\n        \"total\": 100,\n        \"is_paid\": null,\n        \"paid_date\": null,\n        \"fourth_rate\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_expesenumber\": null,\n        \"creditnote_expesedate\": null,\n        \"expensecategory\": null,\n        \"expensecategory_name\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"total_files_number\": null,\n        \"total_payments\": null,\n        \"total_payments_number\": null,\n        \"total_contacts_number\": null,\n        \"total_products_number\": null,\n        \"total_projects_number\": null,\n        \"total_events_number\": null,\n        \"total_related_expenses_number\": null\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": null,\n        \"society\": \"44975\",\n        \"contact\": null,\n        \"addresses\": [],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"related_expenses\": [],\n        \"expensearticles\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"description\": \"Articolo 1\",\n                \"importo\": \"100.00\",\n                \"first_rate\": \"22\",\n                \"first_rate_included\": true\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"category\": \"373\",\n                \"sub_category\": \"1911\"\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"100.00\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"category\": null,\n                \"sub_category\": null\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/expenses_all","description":"<p>Save a new expense</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef4c97e4-5d57-4f01-8d34-a741ebd2b683"},{"name":"Update expense","event":[{"listen":"test","script":{"id":"dbdaaccc-30bf-4077-9025-01124ac97f6d","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return expenses\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('expenses');","});"]}}],"id":"858af9ae-c190-4899-b5fa-aa4156a34f19","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{expense_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"date\": \"2018-10-03 01:23\",\n        \"ref_number\": \"1\",\n        \"status\": null,\n        \"recursive\": null,\n        \"recursive_period\": null,\n        \"recursive_human\": null,\n        \"first_rate\": null,\n        \"first_rate_included\": null,\n        \"description\": null,\n        \"total\": 100,\n        \"is_paid\": null,\n        \"paid_date\": null,\n        \"fourth_rate\": null,\n        \"notes\": null,\n        \"is_creditnote\": null,\n        \"creditnote_expesenumber\": null,\n        \"creditnote_expesedate\": null,\n        \"expensecategory\": null,\n        \"expensecategory_name\": null,\n        \"thumbnail_url\": null,\n        \"thumbnail_name\": null,\n        \"thumbnail_etag\": null,\n        \"thumbnail_type\": null,\n        \"total_files_number\": null,\n        \"total_payments\": null,\n        \"total_payments_number\": null,\n        \"total_contacts_number\": null,\n        \"total_products_number\": null,\n        \"total_projects_number\": null,\n        \"total_events_number\": null,\n        \"total_related_expenses_number\": null\n    },\n    \"relationships\":\n    {\n        \"invoice_style\": null,\n        \"society\": \"44975\",\n        \"contact\": null,\n        \"addresses\": [],\n        \"contacts\": [\"44975\"],\n        \"products\": [],\n        \"projects\": [],\n        \"events\": [],\n        \"payments\": [],\n        \"related_expenses\": [],\n        \"expensearticles\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"description\": \"Articolo 1\",\n                \"importo\": \"100.00\",\n                \"first_rate\": \"22\",\n                \"first_rate_included\": true\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"category\": \"373\",\n                \"sub_category\": \"1911\"\n            }\n        }],\n        \"expire_dates\": [\n        {\n            \"id\": null,\n            \"attributes\":\n            {\n                \"expire_date\": \"2018-11-02\",\n                \"total\": \"100.00\"\n            },\n            \"relationships\":\n            {\n                \"contact\": null,\n                \"product\": null,\n                \"project\": null,\n                \"event\": null,\n                \"category\": null,\n                \"sub_category\": null\n            }\n        }]\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/expenses_all","description":"<p>Update a expense</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"858af9ae-c190-4899-b5fa-aa4156a34f19"},{"name":"Delete expense","event":[{"listen":"test","script":{"id":"120cc092-8fdf-43b7-85a7-b7ba61fd05fc","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return expense\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('expenses');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"c64ad1a8-fee7-4eb2-8ec0-b278bce37bdc","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/expenses/{{expense_id}}","description":"<p>Delete expense</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses","{{expense_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c64ad1a8-fee7-4eb2-8ec0-b278bce37bdc"}],"id":"b1a9c18a-48c3-4463-94d8-05f76c02d41d","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"b1a9c18a-48c3-4463-94d8-05f76c02d41d","description":""},{"name":"Payments","item":[{"name":"List payments","event":[{"listen":"test","script":{"id":"0f133f65-10dd-4267-89d3-24d2337f93c4","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return payments\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data[0].type).to.eql('payments');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"5fbebfe5-424c-44e6-9193-4de888b4145b","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/payments?all_any=any&direction=desc&document_type=payment&from_date=2018-01-01 00:00&pag=1&q=&sent=false&sort=date&success=&to_date=2018-12-31 00:00","description":"<p>List payments</p>\n","urlObject":{"protocol":"https","path":["api","v1","payments"],"host":["{{organization}}","beebeeboard","com"],"query":[{"key":"all_any","value":"any"},{"key":"direction","value":"desc"},{"key":"document_type","value":"payment"},{"key":"from_date","value":"2018-01-01 00:00"},{"key":"pag","value":"1"},{"key":"q","value":""},{"key":"sent","value":"false"},{"key":"sort","value":"date"},{"key":"success","value":""},{"key":"to_date","value":"2018-12-31 00:00"}],"variable":[]}},"response":[],"_postman_id":"5fbebfe5-424c-44e6-9193-4de888b4145b"},{"name":"Get payment","event":[{"listen":"test","script":{"id":"d9a4b948-1e34-41c8-a600-3512542580d2","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return payments\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('payments');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"4f569e2f-cb53-4591-9175-84399fe1818d","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/payments/{{payment_id}}","description":"<p>Get payment</p>\n","urlObject":{"protocol":"https","path":["api","v1","payments","{{payment_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f569e2f-cb53-4591-9175-84399fe1818d"},{"name":"Save payment","event":[{"listen":"test","script":{"id":"8a22fdc4-3987-4263-bd02-b0a5efca87ec","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return payments\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('payments');","});"]}}],"id":"2d41bb27-9c9f-4d3e-b63f-ca46022cf519","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": null,\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"date\": \"2018-10-03 01:28\",\n        \"sent\": null,\n        \"status\": null,\n        \"total\": 100,\n        \"residuo\": null,\n        \"payment_method\": \"Contanti\",\n        \"error\": null,\n        \"success\": true,\n        \"transaction_type\": null,\n        \"transaction_id\": null,\n        \"transaction_ref\": null,\n        \"currency\": null,\n        \"payment_id\": null,\n        \"enr_status\": null,\n        \"auth_status\": null,\n        \"tran_bank_id\": null,\n        \"total_files_number\": null,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_expenses_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_events_number\": 0\n    },\n    \"relationships\":\n    {\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/payments_all","description":"<p>Save a new payment</p>\n","urlObject":{"protocol":"https","path":["api","v1","payments_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d41bb27-9c9f-4d3e-b63f-ca46022cf519"},{"name":"Update payment","event":[{"listen":"test","script":{"id":"ebc88e05-f828-4f28-aa95-58a54bf76540","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return payments\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('payments');","});"]}}],"id":"aa684c26-3565-4a24-a714-77770db16b9b","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": {{payment_id}},\n    \"attributes\":\n    {\n        \"archivied\": null,\n        \"date\": \"2018-10-03 01:28\",\n        \"sent\": null,\n        \"status\": null,\n        \"total\": 100,\n        \"residuo\": null,\n        \"payment_method\": \"Contanti\",\n        \"error\": null,\n        \"success\": true,\n        \"transaction_type\": null,\n        \"transaction_id\": null,\n        \"transaction_ref\": null,\n        \"currency\": null,\n        \"payment_id\": null,\n        \"enr_status\": null,\n        \"auth_status\": null,\n        \"tran_bank_id\": null,\n        \"total_files_number\": null,\n        \"total_contacts_number\": 0,\n        \"total_products_number\": 0,\n        \"total_projects_number\": 0,\n        \"total_expenses_number\": 0,\n        \"total_invoices_number\": 0,\n        \"total_events_number\": 0\n    },\n    \"relationships\":\n    {\n        \"custom_fields\": [],\n        \"contacts\": [\"44975\"],\n        \"related_contacts\": [],\n        \"products\": [],\n        \"related_products\": [],\n        \"projects\": [],\n        \"related_projects\": [],\n        \"events\": [],\n        \"related_events\": [],\n        \"payments\": [],\n        \"workhours\": [],\n        \"related_workhours\": [],\n        \"addresses\": [],\n        \"expenses\": [],\n        \"invoices\": [],\n        \"reminders\": [],\n        \"todolists\": []\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/payments_all","description":"<p>Update a payment</p>\n","urlObject":{"protocol":"https","path":["api","v1","payments_all"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa684c26-3565-4a24-a714-77770db16b9b"},{"name":"Delete payment","event":[{"listen":"test","script":{"id":"d9a4b948-1e34-41c8-a600-3512542580d2","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check return payments\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('payments');","});"]}},{"listen":"prerequest","script":{"id":"f79b423a-73df-454d-8af0-aed3649df063","type":"text/javascript","exec":[""]}}],"id":"aaa2b060-e1a9-44ed-b313-411ec2fa8efe","request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{organization}}.beebeeboard.com/api/v1/payments/{{payment_id}}","description":"<p>Delete payment</p>\n","urlObject":{"protocol":"https","path":["api","v1","payments","{{payment_id}}"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aaa2b060-e1a9-44ed-b313-411ec2fa8efe"}],"id":"387ab158-77a9-45e9-93dd-dcf0430883dd","event":[{"listen":"prerequest","script":{"id":"3d6e2e63-3765-47ee-9a0a-7634c93ba27a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e5d3203-1f3b-4788-a90a-f54f3e3081ed","type":"text/javascript","exec":[""]}}],"_postman_id":"387ab158-77a9-45e9-93dd-dcf0430883dd","description":""},{"name":"Login","id":"147c0545-8f5a-4a85-a066-d567b3ba9fac","request":{"method":"POST","header":[{"key":"Authorization","value":"Basic YWJjMTIzOnNzaC1zZWNyZXQ="},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"grant_type\": \"password\",\n\t\"password\": {{password}},\n\t\"username\": {{username}}\n}"},"url":"https://{{organization}}.beebeeboard.com/api/oauth/token","urlObject":{"protocol":"https","path":["api","oauth","token"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"147c0545-8f5a-4a85-a066-d567b3ba9fac"},{"name":"Add new address","event":[{"listen":"test","script":{"id":"f8d2d656-adb2-4582-aa70-e16c3a3a0030","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Check codice fiscale\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.data.type).to.eql('addresses');","});"]}}],"id":"afe85604-cb72-4c58-a359-2bf0e9ed04ba","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"data\":\n    {\n        \"attributes\":\n        {\n            \"name\": \"Piazza Emilio Chanoux, 28\",\n            \"icon\": \"https://download.vcdn.data.here.com/p/d/places2/icons/categories/06.icon\",\n            \"view\": \"https://share.here.com/p/s-Yz1idWlsZGluZztsYXQ9NDUuNzM2ODc7bG9uPTcuMzE5OTtuPVBpYXp6YStFbWlsaW8rQ2hhbm91eCUyQysyODtubGF0PTQ1LjczNjkxO25sb249Ny4zMTk4NjtoPTFjMzkxNA\",\n            \"place_id\": \"loc-dmVyc2lvbj0xO3RpdGxlPVBpYXp6YStFbWlsaW8rQ2hhbm91eCUyQysyODtsYW5nPWl0O2xhdD00NS43MzY4Njk4MTIwMTE3Mjtsb249Ny4zMTk5MDAwMzU4NTgxNTQ7c3RyZWV0PVBpYXp6YStFbWlsaW8rQ2hhbm91eDtob3VzZT0yODtjaXR5PUFvc3RhO3Bvc3RhbENvZGU9MTExMDA7Y291bnRyeT1JVEE7c3RhdGU9VmFsbGUrZCUyN0Fvc3RhO2NvdW50eT1Bb3N0YTtjYXRlZ29yeUlkPWJ1aWxkaW5nO3NvdXJjZVN5c3RlbT1pbnRlcm5hbDtubGF0PTQ1LjczNjkxMTc3MzY4MTY0O25sb249Ny4zMTk4NTk5ODE1MzY4NjU7cGRzQ2F0ZWdvcnlJZD05MDAtOTMwMC0wMDAw\",\n            \"location_position_lat\": 45.73687,\n            \"location_position_lng\": 7.3199,\n            \"location_address_text\": \"Piazza Emilio Chanoux, 28<br/>11100 Aosta<br/>Italia\",\n            \"location_address_house\": \"28\",\n            \"location_address_street\": \"Piazza Emilio Chanoux\",\n            \"location_address_postal_code\": \"11100\",\n            \"location_address_city\": \"Aosta\",\n            \"location_address_county\": \"Aosta\",\n            \"location_address_state\": \"Valle d'Aosta\",\n            \"location_address_country\": \"Italia\",\n            \"location_address_country_code\": \"ITA\",\n            \"categories_id\": \"building\",\n            \"categories_title\": \"Edificio\",\n            \"type\": null,\n            \"is_invoice\": true,\n            \"accuracy\": null,\n            \"heading\": null\n        },\n        \"type\": \"addresses\"\n    }\n}"},"url":"https://{{organization}}.beebeeboard.com/api/v1/addresses","description":"<p>Add new address</p>\n","urlObject":{"protocol":"https","path":["api","v1","addresses"],"host":["{{organization}}","beebeeboard","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"afe85604-cb72-4c58-a359-2bf0e9ed04ba"}],"event":[{"listen":"prerequest","script":{"id":"f7cd76fc-3adc-4342-bb97-58d2483dc46e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"13806a34-d315-4c25-96c4-408fbae5cd91","type":"text/javascript","exec":[""]}}]}