{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"ed7ae2f7-7727-466e-a019-2ee776cf6be3","name":"TravelerBuddy Public API","description":"Welcome to the TravelerBuddy API. Through this API you can either build a new app or add TravelerBuddy's features to your existing app.\n\n# How to work with TravelerBuddy\nTo be able to start using the API, please contact TravelerBuddy at sales@travelerbuddy.com in order to discuss the setup and agreement needed before you can receive your API key. In any case there are many options and solutions we can put in place depending on your setup and needs.\n\n# Authentication\nThere is a API key and a API secret used for authentication.\n\nThe API secret is like a password and needs to be handled as such:\n- Store it securely\n- Don't share it with anyone outside of your organization\n- Don't put it in any code on your website or in a Url that someone could find\n\nAvailable calls are:\n\n\tGET\tto retrieve information\n\tPOST   to post or update information\n\tDEL\tto remove information\n\t\nIn case an end user tries to connect via an unauthorized access, a page (browser, web and mobile) needs to be displayed using a URL of the app provider to avoid suspicion of phishing.\n\n# Setup / Environments\nDepending on your agreement with TravelerBuddy, you will be connecting to either an existing or a designated separate TravelerBuddy envrionment. The setup and agreements for that connection wil be defined in a spearate API services Level agreement.\n\n# Hint\nTo be consistent all over, we've built several API collections for specific data that is well curated and always updated by our teams. The following ones are available and can be used as drop-down lists, for validations and other purposes:\n\n- Currencies\n- Country\n- Airlines\n- Airport\n\n# Notes\nPlease note that some API calls are either used for both mobile app and web app or only for one of them. They are specifically marked in their title (app and/or web).\n\nTimestamps within this API (for all requests and responses) are in EPOCH time format\n\n# Pricing and Rates\nBefore receiving the API keys, an agreement regarding pricing and API rate limits will have to be established. For further information regarding the agreement, please contact sales@travelerbuddy.com\n\nFor any questions of technical nature, please contact us at apisupport@travelerbuddy.com\n\nEnjoy building\n\n# Message codes\nCodes | Message | Required action\n--- | --- | ---\n|||\n__General__ ||\n|||\n000000 | success | \n000001 | Access denied | Please add 'x-session' to headers, generated from register device and validate by login/signup\n000002 | Session expired | Please generate new 'x-session' by register device and login/signup\n000003 | Invalid Client ID or Client Secret | Please check 'x-client-id' and 'x-client-secret' headers, contact apisupport@travelerbuddy.com for more information\n000004 | API not found | Please check API url and parameters\n000005 | Internal server error | Please contact apisupport@travelerbuddy.com\n000006 | Body is required | Please add input data while request api\n000007 | File(s) is required | Please add input file while request api\n000008 | Failed save data | Please contact apisupport@travelerbuddy.com\n000009 | User not found | Please check 'user_id' and 'x-session', 'user_id' can be fetch while login/signup \n000010 | The request couldn\\'t be process | Please contact apisupport@travelerbuddy.com\n|||\n|||\n__Login and Registration__ ||\n|||\n001000 | gcm_regid field is required |\n001001 | email field is required |\n001002 | password field is required |\n001003 | type field is required |\n001004 | code field is required |\n001005 | id field is required |\n001006 | token field is required |\n|||\n001501 | Username/email address already in use |\n001502 | Your password should contain a min. of 8 characters, with a min. of 1 capital letter, 1 number and 1 special character |\n001503 | Sorry, this promo has expired |\n001504 | Invalid promo code. Please try again |\n001505 | Your account is locked. Please contact support@travelerbuddy.com |\n001506 | Please login via your Facebook account |\n001507 | Please login via your Google account |\n001508 | Please login via your LinkedIn account |\n001509 | Sorry, password does not match |\n001510 | Social account already in use |\n001511 | User already verified |\n001512 | Please verify email address |\n001513 | This Password cannot be used. Please ensure that the new Password is different from the previous three Passwords\n001514 | Invalid or expired token. Please request again using forgot password! |\n|||\n|||\n__Info__ ||\n|||\n002501 | Release notes not found |\n|||\n|||\n__Profile__ ||\n|||\n003000 | profile_name field is required |\n|||\n003501 | Card not found |\n003502 | Card image not found |\n003503 | Identification not found |\n003504 | Identification image not found |\n003505 | Insurance not found |\n003506 | Insurance image not found |\n003507 | Luggage not found |\n003508 | Luggage image not found |\n003509 | Passport not found |\n003510 | Passport image not found |\n003511 | Reward not found |\n003512 | Reward image not found |\n003513 | Visa not found |\n003514 | Visa image not found |\n|||\n|||\n__Settings__ ||\n|||\n004000 | pin field is required |\n004001 | reset_token field is required |\n004002 | date_format field is required |\n004003 | time_format field is required |\n004004 | secondary_emails field is required |\n|||\n|||\n__Trips__ ||\n|||\n005000 | trips_id field is required |\n005001 | notes field is required |\n005002 | trip_assign field is required |\n005003 | description field is required |\n005004 | trip_title field is required |\n005005 | trip_start_date field is required |\n005006 | trip_end_date field is required |\n005007 | trip_item_ids field is required |\n|||\n005501 | Trip not found |\n005502 | Trip item not found |\n005503 | Please select minimum 2 trip for combine |\n005504 | Trip note not found |\n005505 | Trip note image not found |\n005506 | Trip note attachment not found |\n005507 | Trip type attachment not found |\n005508 | Trip custom background image not found |\n|||\n|||\n__DocumentBox__ ||\n|||\n006000 | docboxs field is required |\n006001 | documentboxs field is required |\n006002 | documentboxs field format is invalid |\n006003 | documentboxs_id field is required |\n006004 | documentboxs_id field format is invalid |\n006005 | trip_docs_id field is required |\n006009 | trip_item_id field is required |\n|||\n006501 | Document not found |\n006502 | Trip not found |\n006503 | Trip item not found |\n|||\n|||\n__Pre-Travel Check__ ||\n|||\n007000 | traveldocs field is required |\n|||\n007501 | PTC not found |\n007502 | You do not have enough credit |\n007503 | Passport not found |\n007504 | Passport issue country not found |\n007505 | Departure country not found |\n007506 | Arrival country not foundd |\n|||\n|||\n__Currencies__ ||\n|||\n|||\n__Country__ ||\n|||\n|||\n__Airlines__ ||\n|||\n|||\n__Airport__ ||\n|||\n|||\n__Flight Stats__ ||\n|||\n012000 | flight_no field is required |\n012001 | departure_date field is required |\n|||\n|||\n__Share Trip__ ||\n|||\n013501 | Trip not found |\n|||\n|||\n__Sync Tracker__ ||\n|||\n014000 | id field is required |\n014001 | device_id field is required |\n|||\n014501 | SyncLog not found |\n|||\n|||\n__Immigration__ ||\n|||\n015000 | destination_country field is required |\n|||\n015501 | Trip not found |\n015502 | Trip item not found |\n|||\n|||\n__Notification__ ||\n|||\n016000 | notifications field is required |\n|||\n016501 | Notification not found |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"5762620","team":185195,"collectionId":"ed7ae2f7-7727-466e-a019-2ee776cf6be3","publishedId":"RzZ4q2AL","public":true,"publicUrl":"https://developers.travelerbuddy.com","privateUrl":"https://go.postman.co/documentation/5762620-ed7ae2f7-7727-466e-a019-2ee776cf6be3","customColor":{"top-bar":"072B43","right-sidebar":"303030","highlight":"ED4742"},"documentationLayout":"classic-double-column","version":"8.11.4","publishDate":"2018-11-02T07:17:14.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/2b767ea9ecf80e3d780c66a820224f74c1ce30337088f3d5967b9c47294e5bb4","favicon":"https://travelerbuddy.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"}],"canonicalUrl":"https://developers.travelerbuddy.com/view/metadata/RzZ4q2AL"}