{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"081d9e51-44a5-4ead-bd15-5d6c28be7721","name":"B2B KAI","description":"API B2B digunakan untuk komunikasi antar aplikasi mitra dengan core system ticketing PT Kereta Api Indonesia (Persero) untuk dapat melakukan penjualan tiket Kereta Api. Adapun fitur didalamnya antara lain: lihat jadwal dan ketersediaan tiket KA Antarkota, pemesanan tiket KA, pindah kursi, pembatalan tiket yang telah dipesan sebelumnya, pembayaran dan check in online.\n\nThe B2B API is used for communication between partner applications and the core ticketing system of PT Kereta Api Indonesia (Persero) to be able to book train tickets. The features include: viewing schedules and availability of Intercity train tickets, booking train tickets, changing seats, canceling pre-booked tickets, paying and online check-in.\n\n**PRELIMENARY**\n\n1. Sebelum mencoba web service ini, pastikan anda telah mendaftarkan IP Address dan menerima User ID dari team KAI.\n    \n2. Base URL environtment development dan production disampaikan pada media terpisah.\n    \n3. Contoh-contoh yang dipakai di dokumentasi ini adalah dengan menggunakan Postmant REST.\n    \n4. Kode-kode booking dalam contoh-contoh yang ada adalah kode booking fiksi dan tidak bisa langsung digunakan.\n    \n5. Data yang dihasilkan oleh web service berupa format json ([http://www.json.org](http://www.json.org))\n    \n6. Data type Date mempunyai format yyyy-MM-dd. Contoh : 2017-06-01 untuk menuliskan 1 Juni 2017.\n    \n7. Data type Time mempunyai format hhnn. Contoh : 0705 untuk menuliskan jam 7 lewat 5 menit.\n    \n8. Data type Datetime mempunyai format yyyy-MM-dd hh:mm:ss. Contoh : 2017-11-22 15:13:55 untuk menuliskan tanggal 22 November 2017, pukul 12 lewat 53 menit 20 detik.\n    \n\n**PRELIMENARY**\n\n1. Before trying this web service, make sure you have registered the IP Address and received an User ID from KAI team.\n    \n2. Web service URLdev/production environment delivered on separated media\n    \n3. The examples used in this docummentation are by using Postmant REST.\n    \n4. The booking codes in the examples are fictitious booking codes and cannot be userd directly.\n    \n5. The data generated by the web service is in json format ([http://www.json.org](http://www.json.org))\n    \n6. Data type date has a format yyyy-MM-dd. Contoh : 2017-06-01 to write 1 June 2017\n    \n7. Data type time has a format hhnn. Example: 0705 to write down 5 minutes past 7 o’clock\n    \n8. Data type Datetime has a format yyyy-MM-dd hh:mm:ss. Example : 2017-11- 22 15:13:55 to write 22 November 2017, 15 past 13 minutes 55 seconds.\n    \n\n**API FLOW**\n\n<img src=\"https://content.pstmn.io/569562af-eba4-4a6a-84a8-36644112c224/YjJiLnBuZw==\" width=\"322\" height=\"285\">\n\n<img src=\"https://content.pstmn.io/e38a5b55-1a9b-46d1-a605-018b0a18b4dc/aW1hZ2UucG5n\" width=\"100\" height=\"84\">","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"9769867","team":3752696,"collectionId":"081d9e51-44a5-4ead-bd15-5d6c28be7721","publishedId":"VUqrPcvB","public":true,"publicUrl":"https://b2b-apidoc.kai.id","privateUrl":"https://go.postman.co/documentation/9769867-081d9e51-44a5-4ead-bd15-5d6c28be7721","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"}}]}},"version":"8.10.1","publishDate":"2024-11-01T07:13:30.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[{"name":"Development","id":"6e9e9f2c-1935-40da-97fd-32055adb6878","owner":"9769867","values":[{"key":"base_url","value":"https://resapib2bdev.kai.id","enabled":true,"type":"default"},{"key":"uid","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJDX1VTRVJBR0VOVF9OQU1FIjoiQVlPQ09OTkVUQ1QgREVWIiwiQ19VTklUX0lEIjo1NjUsIkNfVU5JVF9DT0RFIjoiQVlPQ09OTkVDVF9ERVYiLCJDX1VOSVRfU0hJRlRfSUQiOjEwOTE3LCJDX0NIQU5ORUxfQ09ERSI6IkIyQiIsIkNfQUdFTlRfSUQiOjczMiwiaWF0IjoxNjM3NTYxNzQ5LCJhdWQiOiJVU1JBIiwiaXNzIjoiQjJCS0FJIn0.q5tycXzmhT95bu3LllsrLnwgCoj8pZIYa6lY5Z1U3LM","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://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/31cf115bf137b2021343dd8eeeedb9934a754f27fcb772ff329b38281f831455","favicon":"https://kai.id/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":"Development","value":"9769867-6e9e9f2c-1935-40da-97fd-32055adb6878"}],"canonicalUrl":"https://b2b-apidoc.kai.id/view/metadata/VUqrPcvB"}