{"info":{"_postman_id":"8093ea4c-81aa-d2f7-a7da-f2359ce821a9","name":"Wahdah Partner: Vehicle listing and saving booking data to Wahdah","description":"<html><head></head><body><p>Simple step to use Wahdah API and integrate to your own system.</p>\n<p>Here you can find how to get the listing for vehicle, get the spesific vehicle, and save the booking information entered in your system to Wahdah API.</p>\n<p>Note:\nPlease change '{some_value}' to meaningfull value.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2537030","collectionId":"8093ea4c-81aa-d2f7-a7da-f2359ce821a9","publishedId":"6n32ESL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2017-08-07T05:26:33.000Z"},"item":[{"name":"Get user access token","id":"c578f80c-2034-0588-a652-648c58586c32","request":{"method":"POST","header":[{"key":"Accept","value":"application/json","description":"<p>Content-Types that are acceptable for the response</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"{email}","description":"<p>Email (required)</p>\n","type":"text"},{"key":"password","value":"{password}","description":"<p>Password (required)</p>\n","type":"text"}]},"url":"https://api.wahdah.my/users/token","description":"<p>Request for user access token.</p>\n<h3 id=\"data-format\">Data Format</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Format</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Email</td>\n<td>string</td>\n<td><a href=\"mailto:name@email.me\">name@email.me</a></td>\n</tr>\n<tr>\n<td>Password</td>\n<td>string</td>\n<td>password123</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["users","token"],"host":["api","wahdah","my"],"query":[],"variable":[]}},"response":[],"_postman_id":"c578f80c-2034-0588-a652-648c58586c32"},{"name":"Get  vehicle","id":"f4b92023-637f-e116-15bf-e039c3c7698b","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","description":"<p>Authentication credentials for HTTP authentication</p>\n"},{"key":"Accept","value":"application/json","description":"<p>Content-Types that are acceptable for the response</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"addon_amount","value":"111","type":"text","disabled":true},{"key":"address","value":"test address","type":"text","disabled":true},{"key":"deposit_amount","value":"111","type":"text","disabled":true},{"key":"discount_amount","value":"111","type":"text","disabled":true},{"key":"email","value":"test@email.com","type":"text","disabled":true},{"key":"ic_no","value":"828584838588","type":"text","disabled":true},{"key":"mobile_number","value":"939393993939","type":"text","disabled":true},{"key":"name","value":"test name","type":"text","disabled":true},{"key":"note","value":"test note","type":"text","disabled":true},{"key":"pickup_location","value":"test pickup","type":"text","disabled":true},{"key":"pickup_return_fee","value":"88","type":"text","disabled":true},{"key":"rental_amount","value":"88","type":"text"},{"key":"return_location","value":"test return","type":"text","disabled":true},{"key":"rounding","value":"8","type":"text"},{"key":"tax_amount","value":"28","type":"text","disabled":true},{"key":"total_amount_before_tax","value":"39","type":"text","disabled":true},{"key":"total_amount","value":"99","type":"text","disabled":true},{"key":"vehicle_id","value":"6","type":"text","disabled":true},{"key":"start_time","value":"00:20:20","type":"text","disabled":true},{"key":"start_date","value":"2017-01-01","type":"text","disabled":true},{"key":"end_date","value":"2017-01-02","type":"text","disabled":true},{"key":"end_time","value":"00:01:20","type":"text","disabled":true}]},"url":"https://api.wahdah.my/partner/vehicles/{vehicle_partner_id}.json","description":"<p>Get the specific vehicle from partner. For example, in the following request,</p>\n<p><a href=\"https://api.wahdah.my/partner/vehicles/%7Bvehicle_partner_id%7D.json\">https://api.wahdah.my/partner/vehicles/{vehicle_partner_id}.json</a></p>\n<p>Change {vehicle_partner_id} to 123. So the request URL will be like this:</p>\n<p><a href=\"https://api.wahdah.my/partner/vehicles/123.json\">https://api.wahdah.my/partner/vehicles/123.json</a></p>\n","urlObject":{"protocol":"https","path":["partner","vehicles","{vehicle_partner_id}.json"],"host":["api","wahdah","my"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4b92023-637f-e116-15bf-e039c3c7698b"},{"name":"Get all vehicle","id":"da24037d-6619-0c33-1a28-6af0a638de6c","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {token}","description":"<p>Authentication credentials for HTTPS authentication</p>\n"},{"key":"Accept","value":"application/json","description":"<p>Content-Types that are acceptable for the response</p>\n"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.wahdah.my/partner/vehicles.json","description":"<p>Get all vehicle belongs to partner. Here you can find information about vehicle such as vehicle type, rental rates, vehicle image, vehicle specs.</p>\n","urlObject":{"protocol":"https","path":["partner","vehicles.json"],"host":["api","wahdah","my"],"query":[],"variable":[]}},"response":[],"_postman_id":"da24037d-6619-0c33-1a28-6af0a638de6c"},{"name":"Save Booking Info","id":"afa5d108-9b83-b526-ee4d-13541f128a01","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {token}","description":"<p>Authentication credentials for HTTPS authentication</p>\n"},{"key":"Accept","value":"application/json","description":"<p>Content-Types that are acceptable for the response</p>\n"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"{string}","description":"<p>Name (required)</p>\n","type":"text"},{"key":"email","value":"{string}","description":"<p>Email</p>\n","type":"text"},{"key":"address","value":"{string}","description":"<p>Address</p>\n","type":"text"},{"key":"ic_no","value":"{string}","description":"<p>IC Number</p>\n","type":"text"},{"key":"mobile_number","value":"{string}","description":"<p>Mobile Number </p>\n","type":"text"},{"key":"note","value":"{string}","description":"<p>Note</p>\n","type":"text"},{"key":"start_date","value":"{YYYY-MM-DD}","description":"<p>Start Booking Date (required)</p>\n","type":"text"},{"key":"start_time","value":"{HH:MM:SS}","description":"<p>Start Booking Time (required)</p>\n","type":"text"},{"key":"end_date","value":"{YYYY-MM-DD}","description":"<p>End Booking Date (required)</p>\n","type":"text"},{"key":"end_time","value":"{HH:MM:SS}","description":"<p>End Booking Time (required)</p>\n","type":"text"},{"key":"vehicle_id","value":"{float}","description":"<p>Vehicle ID (required)</p>\n","type":"text"},{"key":"pickup_return_fee","value":"{float}","description":"<p>Pickup Return Fee (required)</p>\n","type":"text"},{"key":"rental_amount","value":"{float}","description":"<p>Rental Amount (required)</p>\n","type":"text"},{"key":"rounding","value":"{float}","description":"<p>Rounding (required)</p>\n","type":"text"},{"key":"addon_amount","value":"{float}","description":"<p>Add On Amount (required)</p>\n","type":"text"},{"key":"discount_amount","value":"{float}","description":"<p>Discount Amount (required)</p>\n","type":"text"},{"key":"deposit_amount","value":"{float}","description":"<p>Deposit Amount (required)</p>\n","type":"text"},{"key":"tax_amount","value":"{float}","description":"<p>Tax Amount (required)</p>\n","type":"text"},{"key":"total_amount_before_tax","value":"{float}","description":"<p>Total Amount Before Tax (required)</p>\n","type":"text"},{"key":"total_amount","value":"{float}","description":"<p>Total Amount (required)</p>\n","type":"text"},{"key":"pickup_location","value":"{string}","description":"<p>Pickup Location (required)</p>\n","type":"text"},{"key":"return_location","value":"{string}","description":"<p>Return Location (required)</p>\n","type":"text"}]},"url":"https://api.wahdah.my/partner/sales.json","description":"<p>Saving booking information for further action. </p>\n<h3 id=\"data-type\">Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Format</th>\n<th>Example</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>John Doe</td>\n<td>true</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td><a href=\"mailto:name@email.me\">name@email.me</a></td>\n<td>false</td>\n</tr>\n<tr>\n<td>address</td>\n<td>string</td>\n<td>No 123, Long Street</td>\n<td>false</td>\n</tr>\n<tr>\n<td>ic_no</td>\n<td>string</td>\n<td>123456574769</td>\n<td>false</td>\n</tr>\n<tr>\n<td>mobile_number</td>\n<td>string</td>\n<td>0123456789</td>\n<td>false</td>\n</tr>\n<tr>\n<td>note</td>\n<td>string</td>\n<td>my message here</td>\n<td>false</td>\n</tr>\n<tr>\n<td>start_date</td>\n<td>YYYY-MM-DD</td>\n<td>2017-01-31</td>\n<td>true</td>\n</tr>\n<tr>\n<td>start_time</td>\n<td>HH:MM:SS</td>\n<td>08:30:12</td>\n<td>true</td>\n</tr>\n<tr>\n<td>end_date</td>\n<td>YYYY-MM-DD</td>\n<td>2017-02-05</td>\n<td>true</td>\n</tr>\n<tr>\n<td>end_time</td>\n<td>HH:MM:SS</td>\n<td>12:30:12</td>\n<td>true</td>\n</tr>\n<tr>\n<td>vehicle_id</td>\n<td>integer</td>\n<td>32</td>\n<td>true</td>\n</tr>\n<tr>\n<td>pickup_return_fee</td>\n<td>float</td>\n<td>10</td>\n<td>true</td>\n</tr>\n<tr>\n<td>rental_amount</td>\n<td>float</td>\n<td>350</td>\n<td>true</td>\n</tr>\n<tr>\n<td>rounding</td>\n<td>float</td>\n<td>5</td>\n<td>true</td>\n</tr>\n<tr>\n<td>addon_amount</td>\n<td>float</td>\n<td>150</td>\n<td>true</td>\n</tr>\n<tr>\n<td>discount_amount</td>\n<td>float</td>\n<td>15</td>\n<td>true</td>\n</tr>\n<tr>\n<td>deposit_amount</td>\n<td>float</td>\n<td>300</td>\n<td>true</td>\n</tr>\n<tr>\n<td>tax_amount</td>\n<td>float</td>\n<td>15.5</td>\n<td>true</td>\n</tr>\n<tr>\n<td>total_amount_before_tax</td>\n<td>float</td>\n<td>15</td>\n<td>true</td>\n</tr>\n<tr>\n<td>total_amount</td>\n<td>float</td>\n<td>500</td>\n<td>true</td>\n</tr>\n<tr>\n<td>pickup_location</td>\n<td>string</td>\n<td>Jalan 1, Jalan Duta</td>\n<td>true</td>\n</tr>\n<tr>\n<td>return_location</td>\n<td>string</td>\n<td>Jalan 1, Jalan Duta</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["partner","sales.json"],"host":["api","wahdah","my"],"query":[],"variable":[]}},"response":[],"_postman_id":"afa5d108-9b83-b526-ee4d-13541f128a01"}]}