{"info":{"_postman_id":"d738abee-1631-40ce-8548-a7102c60ced2","name":"RentiCar API","description":"<html><head></head><body><p>Be sure to do the following and provide the necessary information before you start using the services.</p>\n<ul>\n<li>Check that this document is the last published version.</li>\n<li>Provide username / password information required for user authentication.</li>\n<li>Make sure that the authorization descriptions are made in order to use the services.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Environment</strong></th>\n<th><strong>Endpoint</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Test</td>\n<td><a href=\"https://test-api.renticar.com/api/v1/\">https://test-api.renticar.com/api/v1/</a></td>\n</tr>\n<tr>\n<td>Production</td>\n<td><a href=\"https://api.renticar.com/api/v1/\">https://api.renticar.com/api/v1/</a></td>\n</tr>\n</tbody>\n</table>\n</div><p>Reservations in all environments will be forwarded to the rental companies as real reservations. Please cancel reservations after your tests.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"40725270","collectionId":"d738abee-1631-40ce-8548-a7102c60ced2","publishedId":"2sAYJ7feHs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"00457a"},"publishDate":"2024-12-31T07:47:12.000Z"},"item":[{"name":"Login","id":"db0ff1e7-02fb-4349-b0fe-9eea597f7bd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"api@renticar.com\",\n    \"password\" : \"Api5400!\"\n}","options":{"raw":{"language":"json"}}},"url":"https://test-api.renticar.com/api/v1/login","description":"<p>In order to access the services, you must first get tokens from the login service. The token validity period is 1 day. In all services, you must send it as \"Bearer $TOKEN\" in Authorization on the Header.</p>\n","urlObject":{"path":["login"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"db0ff1e7-02fb-4349-b0fe-9eea597f7bd1"},{"name":"Cars","id":"e40b822b-7110-4470-9c42-69a326f7f4d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]},"isInherited":false},"method":"GET","header":[],"url":"https://test-api.renticar.com/api/v1/cars","description":"<p>Lists all vehicle groups of RentiCar. Lists all vehicle groups of RentiCar. All information about the vehicles will also be sent to you while the available vehicles are listed in the Search service.</p>\n","urlObject":{"path":["cars"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e40b822b-7110-4470-9c42-69a326f7f4d2"},{"name":"Locations","id":"3871fc55-b711-4b5f-890b-0ce7f4ee4080","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]},"isInherited":false},"method":"GET","header":[],"url":"https://test-api.renticar.com/api/v1/locations","description":"<p>Lists all Renticar locations. You must submit the locationSlug field on Search method.</p>\n","urlObject":{"path":["locations"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3871fc55-b711-4b5f-890b-0ce7f4ee4080"},{"name":"Search","id":"b65d8a4c-4222-4965-bacd-e0ad54bb5e85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pickup_datetime\": \"2024-07-27T18:00:00\",\n    \"return_datetime\": \"2024-07-29T18:00:00\",\n    \"pickup_location\": \"kibris-lefkosa-ercan-uluslararasi-havalimani-ecn\",\n    \"return_location\": \"kibris-lefkosa-ercan-uluslararasi-havalimani-ecn\"\n}","options":{"raw":{"language":"json"}}},"url":"https://test-api.renticar.com/api/v1/search","description":"<p>You should send the locationSlug field that you get from the Location method. Each offer will be returned to you as an offerId. The offerId timeout is 30 minutes. After the timeout, a search should be made with the Search method again.</p>\n<p>Possible Error codes are as follows.</p>\n<p><code>{ result: \"error\", message: \"INVALID_PROMO_CODE\"}</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Code</strong></th>\n<th><strong>Detail</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>INVALID_PROMO_CODE</td>\n<td>If the promo code has been sent, your promo code is invalid.</td>\n</tr>\n<tr>\n<td>INVALID_PROMO_DATES</td>\n<td>If a promotional code has been sent, your code is not valid on these dates.</td>\n</tr>\n<tr>\n<td>INVALID_PICKUP_DATE</td>\n<td>Your pickup date is invalid.</td>\n</tr>\n<tr>\n<td>INVALID_DELIVERY_DATE</td>\n<td>Your dropoff date is invalid.</td>\n</tr>\n<tr>\n<td>ARAMA_TALEBI_OLUSTURULMADI</td>\n<td>The search request could not be created. System failure.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Example Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"success\",\n    \"search\": {\n        \"_id\": \"63480d06b60f2c6343520d54\",\n        \"pickup_location\": \"istanbul-sabiha-gokcen-havalimani-saw\",\n        \"pickup_location_name\": \"İstanbul Sabiha Gökçen Havalimanı (SAW)\",\n        \"pickup_datetime\": \"2022-11-15T20:30:00.000Z\",\n        \"return_location\": \"istanbul-sabiha-gokcen-havalimani-saw\",\n        \"return_location_name\": \"İstanbul Sabiha Gökçen Havalimanı (SAW)\",\n        \"return_datetime\": \"2022-11-17T20:30:00.000Z\",\n        \"day\": 2\n    },\n    \"offers\": [\n        {\n            \"offerId\": \"63480d11b60f2c6343520d6c\",\n            \"companySlug\": \"novacar\",\n            \"totalDays\": 2,\n            \"pickupOffice\": {\n                \"name\": \"Sabiha Gökçen Havalimanı\",\n                \"address\": \"Orhanlı Mahallesi Fettah Başaran Caddesi Kayalık sokak no :1  Orhanlı - TUZLA / İSTANBUL\",\n                \"city\": \"İstanbul\",\n                \"telephone\": \"0531 937 80 85\",\n                \"deliveryType\": \"vale\",\n                \"locationGeo\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        40.9116918,\n                        29.34301319999999\n                    ]\n                }\n            },\n            \"returnOffice\": {\n                \"name\": \"Sabiha Gökçen Havalimanı\",\n                \"address\": \"Orhanlı Mahallesi Fettah Başaran Caddesi Kayalık sokak no :1  Orhanlı - TUZLA / İSTANBUL\",\n                \"telephone\": \"0531 937 80 85\",\n                \"deliveryType\": \"vale\",\n                \"locationGeo\": {\n                    \"type\": \"Point\",\n                    \"coordinates\": [\n                        40.9116918,\n                        29.34301319999999\n                    ]\n                }\n            },\n            \"car\": {\n                \"carId\": \"603e50b60d7837393339fe6c\",\n                \"seat\": 5,\n                \"brand\": \"Peugeot\",\n                \"model\": \"208\",\n                \"class\": \"economic\",\n                \"segment\": \"B\",\n                \"size\": \"small\",\n                \"body\": \"hatchback\",\n                \"transmission\": \"manuel\",\n                \"fuel\": \"gas\",\n                \"fuelPolicy\": \"sameLevel\",\n                \"airCondition\": true,\n                \"sipp\": \"MVMV\"\n            },\n            \"rules\": {\n                \"dailyRangeLimit\": 400,\n                \"totalRangeLimit\": 400,\n                \"driverAge\": \"24\",\n                \"doubleCreditCard\": false,\n                \"licenseYears\": 3,\n                \"freeCancel\": true,\n                \"freeCancelTime\": 24,\n                \"cdw\": true,\n                \"thirdPartyCoverage\": true,\n                \"theftProtection\": true,\n                \"roadAssistance\": true,\n                \"unlimitedMileage\": false\n            },\n            \"pricing\": {\n                \"totalPrice\": {\n                    \"USD\": 38.66,\n                    \"EUR\": 39.81,\n                    \"TRY\": 719.04\n                },\n                \"dailyPrice\": {\n                    \"USD\": 19.33,\n                    \"EUR\": 19.91,\n                    \"TRY\": 359.52\n                },\n                \"vendorDay\": 2,\n                \"dropPrice\": {\n                    \"USD\": 0,\n                    \"EUR\": 0,\n                    \"TRY\": 0\n                },\n                \"provision\": {\n                    \"USD\": 40.33,\n                    \"EUR\": 41.53,\n                    \"TRY\": 750\n                }\n            },\n            \"createdAt\": \"2022-10-13T13:05:21.373Z\",\n            \"isFullCreditAvailable\": true\n        }\n    }]\n}\n\n</code></pre>\n","urlObject":{"path":["search"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b65d8a4c-4222-4965-bacd-e0ad54bb5e85"},{"name":"Extras","id":"fc00f4bc-e1d6-484f-a9de-c3620fcf3efb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"offerId\" : \"628a98a204776113ec0c2572\"\n}","options":{"raw":{"language":"json"}}},"url":"https://test-api.renticar.com/api/v1/extras","description":"<p>Provides listing of additional products belonging to the offer. Payment for additional products is made at the rental branch.</p>\n<p>You can send the \"code\" field of the additional products you have selected as a array in the Reservation method.</p>\n<p>Possible Error codes are as follows.</p>\n<p><code>{ result: \"error\", message: \"OFFERID_NOT_FOUND\"}</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Code</strong></th>\n<th><strong>Detail</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>OFFERID_NOT_FOUND</td>\n<td>Offer id not found.</td>\n</tr>\n<tr>\n<td>OFFERID_TIMEOUT</td>\n<td>Timeout error. System failure.</td>\n</tr>\n<tr>\n<td>EXTRAS_NOT_FOUND</td>\n<td>No additional product information could be found for this reservation.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["extras"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc00f4bc-e1d6-484f-a9de-c3620fcf3efb"},{"name":"Reservation","id":"1203bee9-c249-43ae-9d16-dab99073b662","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"offerId\": \"648842242f5ef110a2e5eece\",\n    \"driverInfo\": {\n        \"identity\": {\n            \"certificateType\": \"tc\",\n            \"value\": \"12345678901\"\n        },\n        \"name\": \"TEST\",\n        \"lastname\": \"PARTNER\",\n        \"birthday\": \"1987-03-29\",\n        \"email\": \"admin@renticar.com\",\n        \"phone\": \"5552000000\"\n    },\n    \"reservationType\": \"payOnArrival\", // OPTIONAL\n    \"newDailyPrice\" : \"1500\", // OPTIONAL\n    \"currency\": \"TRY\",\n    \"extras\": []\n}","options":{"raw":{"language":"json"}}},"url":"https://test-api.renticar.com/api/v1/reservation","description":"<p>It converts the offer you received before into a reservation and transmits it instantly to the supplier.</p>\n<p>Request parameters are described below.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>offerId</td>\n<td>String</td>\n<td>offerId from Search method orders.</td>\n</tr>\n<tr>\n<td>driverInfo.identity.certificateType</td>\n<td>String</td>\n<td>If the driver is a Turkish citizen, \"tc\" should be sent, otherwise \"passport\" should be sent.</td>\n</tr>\n<tr>\n<td>driverInfo.identity.value</td>\n<td>String</td>\n<td>Driver's citizenship number or passport number.</td>\n</tr>\n<tr>\n<td>driverInfo.name</td>\n<td>String</td>\n<td>Driver First name</td>\n</tr>\n<tr>\n<td>driverInfo.lastname</td>\n<td>String</td>\n<td>Driver Last name</td>\n</tr>\n<tr>\n<td>driverInfo.birthday</td>\n<td>String</td>\n<td>Driver Birthday  <br /><code>Format: YYYY-MM-DD</code></td>\n</tr>\n<tr>\n<td>driverInfo.email</td>\n<td>String</td>\n<td>Driver Email Address</td>\n</tr>\n<tr>\n<td>driverInfo.phone</td>\n<td>String</td>\n<td>Driver Mobile Phone number.  <br /><code>Format: +905302221122</code></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>TRY, EURO, USD</td>\n</tr>\n<tr>\n<td>reservationType</td>\n<td>String (Optional)  <br />default(normal)</td>\n<td><code>fullCredit</code>  <br /><code>normal</code>  <br /><code>payOnArrival</code>  <br />  <br />Example: you can send fullCredit if offers.$.isFullCreditAvailable is true on search method.</td>\n</tr>\n<tr>\n<td>extras</td>\n<td>Array</td>\n<td>Add the objects you selected from the list returned from the Extras method to the array.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Possible Error codes are as follows.</p>\n<p><code>{ result: \"error\", message: \"OFFER_ID_HAS_BEEN_USED_BEFORE\"}</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Code</strong></th>\n<th><strong>Detail</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>OFFER_ID_HAS_BEEN_USED_BEFORE</td>\n<td>Offer id used before. Please research</td>\n</tr>\n<tr>\n<td>ORDER_ID_TIMEOUT</td>\n<td>Typically, your time to convert an offer to a reservation is 30 minutes. Depending on the supplier, this time can be reduced to 20 minutes.</td>\n</tr>\n<tr>\n<td>OFFER_ID_NOT_FOUND</td>\n<td>Offer id not found. Please send offerId from Search method.</td>\n</tr>\n<tr>\n<td>RESERVATION_VENDOR_REQUEST_NOT_AVAILABLE</td>\n<td>Your reservation could not be forwarded to the supplier for some reason. Reservation failed. Try again with a new search.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["reservation"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1203bee9-c249-43ae-9d16-dab99073b662"},{"name":"Reservation Cancel","id":"f5c4a40c-a00e-41aa-9d31-0fc7ed0eca41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reservationId\" : \"6299c0d73387a00771159769\"\n}","options":{"raw":{"language":"json"}}},"url":"https://test-api.renticar.com/api/v1/reservation/cancel","description":"<p>This methods allows you to cancel the reservation if it has not started.</p>\n","urlObject":{"path":["reservation","cancel"],"host":["https://test-api.renticar.com/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5c4a40c-a00e-41aa-9d31-0fc7ed0eca41"}],"event":[{"listen":"prerequest","script":{"id":"b3d82f94-922e-4570-ad1a-4a86bbf848fd","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"7f132970-9c35-494f-a04a-d8eee0445d89","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"URL","value":"https://test-api.renticar.com/api/v1"},{"key":"TOKEN","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVySUQiOiI2NGQ0N2RlYzdiMWZjZTExMTExYWU2NjAiLCJfaWQiOiI2MzNkOTliMzIyYzM5MDY2M2FkYTJmOTMiLCJpYXQiOjE3MTE1MjUwNDUsImV4cCI6MTcxMTYxMTQ0NX0.7TlupN87Rt30GdoHzG5A8ZqCA7FjavS46VwE19Kd6e8"}]}