{"info":{"_postman_id":"38f5550c-832d-4a82-9b4f-4a396b23c652","name":"Skypass","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"29502061","collectionId":"38f5550c-832d-4a82-9b4f-4a396b23c652","publishedId":"2sA3JRXe6C","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-29T12:10:57.000Z"},"item":[{"name":"Auth","id":"91880f26-be09-45c8-96aa-dc4a1bc4abd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"api_key","value":"","type":"text"},{"key":"api_secret","value":"","type":"text"}]},"url":"https://dev.skypass.pk/auth","description":"<p>This authentication API generates bearer tokens that are required for securing all subsequent API requests. Include the token in the header of your API calls to ensure secure access to resources.</p>\n","urlObject":{"protocol":"https","path":["auth"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"91880f26-be09-45c8-96aa-dc4a1bc4abd9"},{"name":"Filters","id":"3ca559aa-2393-463b-bd54-1367c204313f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dev.skypass.pk/airlines-sectors","description":"<p>This Filters API retrieves airlines and sectors with available group openings. Developers can group tickets based on specified filters and create searches based on these filters.</p>\n","urlObject":{"protocol":"https","path":["airlines-sectors"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ca559aa-2393-463b-bd54-1367c204313f"},{"name":"Tickets","id":"16b40787-31f3-4a7b-873d-51169a23e43b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dev.skypass.pk/tickets","description":"<p>This Tickets API retrieves all tickets or groups based on the specified filters, with options for pagination and limiting results per page.</p>\n","urlObject":{"protocol":"https","path":["tickets"],"host":["dev","skypass","pk"],"query":[{"disabled":true,"key":"airline_id","value":"1"},{"disabled":true,"key":"sector","value":"ISB-RUD"},{"disabled":true,"key":"top_filters","value":"All"},{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"16b40787-31f3-4a7b-873d-51169a23e43b"},{"name":"Ticket","id":"25f9c4dc-4a13-4738-a453-2eb36b92cada","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://dev.skypass.pk/ticket/{ticket_id}","description":"<p>This API retrieves details for a single ticket or group based on the ticket ID obtained from the Tickets API.</p>\n","urlObject":{"protocol":"https","path":["ticket","{ticket_id}"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"25f9c4dc-4a13-4738-a453-2eb36b92cada"},{"name":"Submit Booking","id":"5a43d3bb-6260-42e1-83bf-cbdfe5b31b9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ticket_id","value":"1234","type":"text"},{"key":"passengers[passengers_type][0]","value":"Adult","type":"text"},{"key":"passengers[title][0]","value":"Mr","type":"text"},{"key":"passengers[sur_name][0]","value":"John","type":"text"},{"key":"passengers[given_name][0]","value":"Doe","type":"text"},{"key":"passengers[passport_number][0]","value":"A123456","type":"text"},{"key":"passengers[dob][0]","value":"1985-01-01","type":"text"},{"key":"passengers[passport_expiry][0]","value":"2025-12-31","type":"text"},{"key":"passengers[nationality][0]","value":"Pakistan","type":"text"},{"key":"passengers[passengers_type][1]","value":"Infant","type":"text"},{"key":"passengers[title][1]","value":"Mr","type":"text"},{"key":"passengers[sur_name][1]","value":"John1","type":"text"},{"key":"passengers[given_name][1]","value":"Doe1","type":"text"},{"key":"passengers[passport_number][1]","value":"A1d23456","type":"text"},{"key":"passengers[dob][1]","value":"1985-01-01","type":"text"},{"key":"passengers[passport_expiry][1]","value":"2025-12-31","type":"text"},{"key":"passengers[nationality][1]","value":"Pakistan","type":"text"},{"key":"agent_details[id]","value":"1","type":"text"},{"key":"agent_details[name]","value":"Agent Name","type":"text"},{"key":"agent_details[email]","value":"agent@example.com","type":"text"}]},"url":"https://dev.skypass.pk/submit-booking","description":"<p>The Submit Booking API allows you to submit booking details, including all required fields listed below. Additionally, it requires adding the current user details from your portal.</p>\n","urlObject":{"protocol":"https","path":["submit-booking"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a43d3bb-6260-42e1-83bf-cbdfe5b31b9f"},{"name":"Hold Available Seats","id":"b023ba21-82a1-4237-9520-75c1d66d28ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ticket_id","value":"1234","type":"text"},{"key":"quantity","value":"3","type":"text"},{"key":"open_seats_slot","value":"5678","type":"text"}]},"url":"https://dev.skypass.pk/hold-available-seats","description":"<p>This API is used to check whether seats are available on Skypass. If seats are available, it holds the specified number of seats posted to this API. This API must be called before submitting a ticket; failure to do so will prevent ticket submission.</p>\n","urlObject":{"protocol":"https","path":["hold-available-seats"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"b023ba21-82a1-4237-9520-75c1d66d28ae"},{"name":"Release Seats","id":"0df5798d-ae77-4d17-ba4e-96a78c5c4248","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"ticket_id","value":"1234","type":"text"},{"key":"open_seats_slot","value":"5678","type":"text"}]},"url":"https://dev.skypass.pk/release-seats","description":"<p>This API is used to release seats that were previously held, before leaving the booking process.</p>\n","urlObject":{"protocol":"https","path":["release-seats"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"0df5798d-ae77-4d17-ba4e-96a78c5c4248"},{"name":"Bookings","id":"38d820d9-710b-45ed-a2c2-54eca1f64a6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dev.skypass.pk/bookings?start_date=2024-05-01&end_date=2024-05-30&booking_status=All&limit=10&page=1&filters[airline_pnr]=1OKZV6&filters[booking_id]=11111","description":"<p>This API retrieves all agent bookings. To filter bookings, you must send the parameters listed below with your request; otherwise, it will return all bookings. If you wish to apply filters, pass values in the filter parameter to obtain filtered bookings.</p>\n","urlObject":{"protocol":"https","path":["bookings"],"host":["dev","skypass","pk"],"query":[{"key":"start_date","value":"2024-05-01"},{"key":"end_date","value":"2024-05-30"},{"key":"booking_status","value":"All"},{"key":"limit","value":"10"},{"key":"page","value":"1"},{"key":"filters[airline_pnr]","value":"1OKZV6"},{"key":"filters[booking_id]","value":"11111"}],"variable":[]}},"response":[],"_postman_id":"38d820d9-710b-45ed-a2c2-54eca1f64a6e"},{"name":"Get Booking","id":"9cff439f-14fc-46f4-9dfa-e1db2db8fd9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dev.skypass.pk/booking/{booking_id}","description":"<p>This API request is used to retrieve details of a single booking based on the booking ID.</p>\n","urlObject":{"protocol":"https","path":["booking","{booking_id}"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cff439f-14fc-46f4-9dfa-e1db2db8fd9f"},{"name":"Cancel Booking","id":"1c3ee635-80b3-41c2-8aac-fa09918224fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"id","value":"111111","type":"text"}]},"url":"https://dev.skypass.pk/cancel-booking","description":"<p>This API request is used to cancel a booking if it is on hold; otherwise, it will return an error message.</p>\n","urlObject":{"protocol":"https","path":["cancel-booking"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c3ee635-80b3-41c2-8aac-fa09918224fe"},{"name":"Ledger","id":"b0f6e650-9f90-40d6-9901-3323fc1274f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://dev.skypass.pk/ledger?start_date=2024-05-01&end_date=2024-05-30","description":"<p>This API is used to retrieve the agent ledger for a specified date range, which must be passed as parameters.</p>\n","urlObject":{"protocol":"https","path":["ledger"],"host":["dev","skypass","pk"],"query":[{"key":"start_date","value":"2024-05-01"},{"key":"end_date","value":"2024-05-30"}],"variable":[]}},"response":[],"_postman_id":"b0f6e650-9f90-40d6-9901-3323fc1274f8"},{"name":"Get Tickets Status","id":"25e8614d-4d9a-4e63-aad3-d69fc8a2a138","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"tickets","value":"2317, 2298","type":"text"},{"key":"","value":"","type":"text","disabled":true}]},"url":"https://dev.skypass.pk/get-tickets-status","description":"<p>Get tickets status to check if the ticket inventory is closed or not. Post tickets number separated by commas. API will return whether the inventory is active or inactive.</p>\n","urlObject":{"protocol":"https","path":["get-tickets-status"],"host":["dev","skypass","pk"],"query":[],"variable":[]}},"response":[],"_postman_id":"25e8614d-4d9a-4e63-aad3-d69fc8a2a138"},{"name":"Update Booking","id":"6d33c001-3de1-4572-8bf9-0ce549c86071","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"passengers[row_id][]","value":"id you get in Get booking API","type":"text"},{"key":"passengers[sur_name][]","value":"","type":"text"},{"key":"passengers[given_name][]","value":"","type":"text"},{"key":"passengers[title][]","value":"","type":"text"},{"key":"passengers[passport_number][]","value":"","type":"text"},{"key":"passengers[passport_expiry][]","value":"","type":"text"},{"key":"passengers[dob][]","value":"","type":"text"},{"key":"passengers[nationality][]","value":"","type":"text"}]},"url":"https://dev.skypass.pk/update-booking/{booking_id}","description":"<p>The Update Booking API allows you to update booking details. Data should be posted in the same format as the Submit Booking API. Make sure you pass the correct <code>row_id</code>; otherwise, your data will not be updated.</p>\n","urlObject":{"protocol":"https","path":["update-booking","{booking_id}"],"host":["dev","skypass","pk"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"6d33c001-3de1-4572-8bf9-0ce549c86071"}]}