{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"1aa4805f-cc8d-42b0-bc5d-8cfafc700be9","name":"iPRO API","description":"This API can be used to connect to any iPRO site to retrieve a wide selection of data and perform actions such as creating a booking.\n\n## Authentication\n\niPRO sites use [OAuth 2.0](https://oauth.net/2/) with the client credentials grant. To get started, contact [iPRO Support](https://support.ipro-software.com/support/tickets/new) for a client ID and secret, and tell us which APIs you need. We can set up several clients with different levels of access for the same site, for example when different people need access to your site's API.\n\nIn Postman, put your client ID and secret in the environment variables for your site. From your own application, follow the steps below.\n\n### 1\\. Request an access token\n\n```\nPOST https://{your-site}/oauth/2.0/token\nAuthorization: Basic {base64(client_id:client_secret)}\nContent-Type: application/x-www-form-urlencoded\ngrant_type=client_credentials\n\n ```\n\n`{your-site}` is the site that gave you the client ID, e.g. `demo.ipro-software.com`.\n\nResponse:\n\n``` json\n{\n  \"access_token\": \"AAIAAHJLskbeXrmB…\",\n  \"token_type\": \"bearer\",\n  \"expires_in\": 86400\n}\n\n ```\n\n### 2\\. Call the API with it\n\n```\nAuthorization: Bearer {access_token}\n\n ```\n\n### How long a token lasts\n\n- A token lasts **24 hours** from when it was issued (`expires_in` is in seconds). Some sites are set differently, so always use `expires_in` from the response rather than assuming 24 hours.\n    \n- There are no refresh tokens. When a token expires, request a new one the same way, with your client ID and secret.\n    \n- Keep the token and reuse it until it is about to expire. Don't request a new token for every call.\n    \n- If a call returns **401**, request a new token and retry the call once.\n    \n\n### When a token stops working early\n\nA token is refused with a 401 before it expires when:\n\n- **It was issued by a different site.** A token works only on the site whose token endpoint issued it.\n    \n- **Your client secret was replaced.** Every token issued with the old secret stops working straight away. Request a new one with the new secret.\n    \n- **The site's security keys were replaced.** Tokens issued before that are refused. Request a new one.\n    \n\nThe 401 response says which of these it is.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"5756618","team":720291,"collectionId":"1aa4805f-cc8d-42b0-bc5d-8cfafc700be9","publishedId":"2s83ziQQ6K","public":true,"publicUrl":"https://api.ipro-software.com","privateUrl":"https://go.postman.co/documentation/5756618-1aa4805f-cc8d-42b0-bc5d-8cfafc700be9","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"3957d2"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/73a3f5eb-b791-4de4-9f5e-9500aabff1ee/bmV3bG9nby5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"3957d2"}},{"name":"light","logo":"https://content.pstmn.io/60e10660-1a02-4b72-8cf2-b67ae08571db/bmV3bG9nby5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"3957d2"}}]}},"version":"8.12.12","publishDate":"2025-08-08T10:36:08.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/60e10660-1a02-4b72-8cf2-b67ae08571db/bmV3bG9nby5wbmc=","logoDark":"https://content.pstmn.io/73a3f5eb-b791-4de4-9f5e-9500aabff1ee/bmV3bG9nby5wbmc="}},"statusCode":200},"environments":[{"name":"Example","id":"7efe9d46-b69c-4e6b-9afc-7a6ccb16b36e","owner":"5756618","values":[{"key":"base_url","value":"https://www.example.com","enabled":true,"type":"default"},{"key":"property_id","value":"{property_id}","enabled":true,"type":"default"},{"key":"booking_id","value":"{booking_id}","enabled":true,"type":"default"},{"key":"statement_id","value":"{statement_id}","enabled":true,"type":"default"},{"key":"client_id","value":"{client_id}","enabled":true,"type":"default"},{"key":"client_secret","value":"00000000000000000000000000000000","enabled":true,"type":"default"},{"key":"sitename","value":"example","enabled":true,"type":"default"},{"key":"access_token_url","value":"{{base_url}}/oauth/2.0/token","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/8a45ef560a96eff64289b7262e90f29d44b0445585cdf330edf73fc00cccb4a6","favicon":"https://ipro-software.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Example","value":"5756618-7efe9d46-b69c-4e6b-9afc-7a6ccb16b36e"}],"canonicalUrl":"https://api.ipro-software.com/view/metadata/2s83ziQQ6K"}