{"info":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"34108325","collectionId":"c2bb7e01-ba51-4723-b30b-cf336acf2946","publishedId":"2sA3kd9GpM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-31T14:06:40.000Z"},"item":[{"name":"Auth","item":[{"name":"Authentication","event":[{"listen":"test","script":{"id":"1ae114c7-3798-448a-8a77-de7d8eea7724","exec":["// Parse response JSON\r","const responseJson = pm.response.json();\r","\r","// Test if the response has a 200 status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Check if the response has expected keys and types\r","pm.test(\"Response contains expected keys\", function () {\r","    pm.expect(responseJson).to.have.property(\"token_type\", \"Bearer\");\r","    pm.expect(responseJson).to.have.property(\"expires_in\").that.is.a(\"number\");\r","    pm.expect(responseJson).to.have.property(\"access_token\").that.is.a(\"string\");\r","});\r","\r","// Verify 'expires_in' has the correct format (number) and range\r","pm.test(\"Expires_in is a positive number\", function () {\r","    pm.expect(responseJson.expires_in).to.be.above(0);\r","});\r","\r","// Set environment variables for reuse in other requests\r","pm.environment.set(\"access_token\", responseJson.access_token);\r","pm.environment.set(\"token_type\", responseJson.token_type);\r","pm.environment.set(\"expires_in\", responseJson.expires_in);\r",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"0ff01bd0-0d60-4c85-a4ca-12917a1b4b0e","exec":[""],"type":"text/javascript","packages":{}}}],"id":"e590827e-0e82-4d47-a4d6-81d862f0293c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"client_id","value":"{{client_id}}","type":"text"},{"key":"client_secret","value":"{{client_secret}}","type":"text"},{"key":"scope","value":"*","type":"text"}]},"url":"http://127.0.0.1:8000/oauth/token","urlObject":{"path":["oauth","token"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e590827e-0e82-4d47-a4d6-81d862f0293c"},{"name":"Client","id":"3b994e98-ba38-443f-9791-d6ca7ffa8a91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/auth/client","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","auth","client"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b994e98-ba38-443f-9791-d6ca7ffa8a91"}],"id":"1934c42c-3be5-46e4-91d1-e353f2eba5aa","_postman_id":"1934c42c-3be5-46e4-91d1-e353f2eba5aa","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Properties","item":[{"name":"Find Deed","id":"0e5bd44e-7ccf-420b-992e-e0ee888b89b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"deed_id\":525416008427\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/properties/search-deed","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties","search-deed"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e5bd44e-7ccf-420b-992e-e0ee888b89b4"},{"name":"Sync Deed","id":"1394eee1-be39-4c21-a938-6cc0080f6ca8","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true}},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:8000/b2b/v1/properties/sync-deed/:property_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties","sync-deed",":property_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"2","key":"property_id"}]}},"response":[],"_postman_id":"1394eee1-be39-4c21-a938-6cc0080f6ca8"},{"name":"Find Deed Remote","id":"9efc7433-a2a7-444f-b110-5fb6047dd242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"deed_id\": 525416008427,\n    \"owner_id\": \"1061608236\", // Owner id_number nationality id fix it\n    \"date\": \"1404-09-06\" // Hijri TODO fix it\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/properties/search-deed/remote","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties","search-deed","remote"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"9efc7433-a2a7-444f-b110-5fb6047dd242"},{"name":"List All Properties","id":"4b8f805a-a48e-4efc-a5dd-a3cf206d24b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/properties","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties"],"host":["http://127.0.0.1:8000"],"query":[{"disabled":true,"key":"filters[property_number][$eq]","value":"AE001"},{"disabled":true,"key":"filters[document_number][$eq]","value":""},{"disabled":true,"key":"filters[party_number][$eq]","value":""},{"disabled":true,"key":"filters[region][$eq]","value":""},{"disabled":true,"key":"filters[city][$eq]","value":""},{"disabled":true,"key":"filters[property_type][$eq]","value":"building"},{"disabled":true,"key":"filters[property_name][$contains]","value":"محمد عبدالله العامري"}],"variable":[]}},"response":[],"_postman_id":"4b8f805a-a48e-4efc-a5dd-a3cf206d24b5"},{"name":"Find Property By Document Number","id":"13ef45db-844f-4e2d-b003-42fd3e3d659d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/properties/:documentNumber","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties",":documentNumber"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"525416008427","key":"documentNumber"}]}},"response":[],"_postman_id":"13ef45db-844f-4e2d-b003-42fd3e3d659d"},{"name":"Update Property","id":"4babd102-1d37-4a72-845b-e5d11a7c6c36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"property_name\": \"Your property name\",\r\n    \"property_number\": \"0\",\r\n    \"document_number\": \"525416008427\",\r\n    \"document_date\": \"1444-05-30\", // Date format YYYY-MM-DD\r\n    \"property_type\": \"building\", // Choose from: building, villa, plaza, shopping_mall, tower, land, other\r\n    \"ownership_document_type\": \"electronic_title_deed\", // Choose from: electronic_title_deed, paper_title_deed, hojjat, other, virtual\r\n    \"property_usage\": \"residential_families\", // Choose from: residential_families, residential_singles, commercial, mixed\r\n    \"property_total_floors\": 5,\r\n    \"property_units_per_floor\": 10,\r\n    \"address_region_id\": 2,\r\n    \"address_city_id\": 57,\r\n    \"address_building_number\": \"1234\",\r\n    \"address_postal_code\": \"12345\",\r\n    \"address_additional_number\": \"1234\",\r\n    \"wakeel_id_number\": \"1016690206\", //رقم الهوية\r\n    \"wakeel_date_of_birth_hijri\": \"\", //تاريخ الميلاد\r\n    \"facilities_parking_spaces\": 0,\r\n    \"facilities_elevators\": 0,\r\n    \"facilities_security_service\": 0,\r\n    \"facilities_transfer_service\": 0,\r\n    \"facilities_cafeteria\": 0,\r\n    \"facilities_laundry\": 0,\r\n    \"facilities_grocery_store\": 0,\r\n    \"facilities_baby_nursery\": 0,\r\n    \"facilities_children_playground\": 0,\r\n    \"facilities_games_room\": 0,\r\n    \"facilities_football_yard\": 0,\r\n    \"facilities_swimming_pool\": 0,\r\n    \"facilities_basketball_court\": 0,\r\n    \"facilities_volleyball_court\": 0,\r\n    \"facilities_banquet_hall\": 0,\r\n    \"facilities_tennis_court\": 0,\r\n    \"facilities_security_entries\": 0,\r\n    \"facilities_gyms_fitness_centers\": 0,\r\n    \"owner_id\": \"1016690206\" // id_number\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/properties/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"2","key":"id"}]}},"response":[],"_postman_id":"4babd102-1d37-4a72-845b-e5d11a7c6c36"},{"name":"Delete Property","id":"4f8a4537-1f54-4e30-ab3c-221dac57adbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/b2b/v1/properties/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","properties",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"1087","key":"id"}]}},"response":[],"_postman_id":"4f8a4537-1f54-4e30-ab3c-221dac57adbb"}],"id":"c000d797-03d3-4c4e-bae8-3e500bde6ef6","_postman_id":"c000d797-03d3-4c4e-bae8-3e500bde6ef6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Units","item":[{"name":"List By Property","id":"b38a6089-18ae-46cc-b8f4-f8bc2ed7ac16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/units/property/:property_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","units","property",":property_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"1","key":"property_id"}]}},"response":[],"_postman_id":"b38a6089-18ae-46cc-b8f4-f8bc2ed7ac16"},{"name":"Find Unit By ID","id":"33cde417-8e46-450a-8ce0-f57ff18f4bb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/units/:unit_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","units",":unit_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"150","key":"unit_id"}]}},"response":[],"_postman_id":"33cde417-8e46-450a-8ce0-f57ff18f4bb8"},{"name":"Update Unit","id":"80798cbd-72dc-4e47-9a25-b0a442039423","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  // Unit number is required and must be unique (replace with your unit number)\r\n  \"unit_number\": \"A-0005\",\r\n\r\n  // Floor number is required and must be numeric\r\n  \"floor_number\": 1,\r\n\r\n  // Number of rooms is required, numeric, and minimum 1\r\n  \"rooms\": 1,\r\n\r\n  // Unit usage is required and must be either 'residential_families' or 'residential_singles'\r\n  \"unit_usage\": \"residential_families\",\r\n\r\n  // Unit type is required and must be one of the listed options ['apartment', 'floor', 'villa', 'building', 'tower', 'duplex', 'studio', 'secondary_apartment', 'apartment_extension', 'floor_extension', 'penthouse_villa', 'drivers_room', 'land_lot', 'other']\r\n  \"unit_type\": \"apartment\",\r\n\r\n  // Electricity meter number must be numeric (optional)\r\n  \"utilities_electricity_meter\": null,\r\n\r\n  // Gas meter number must be numeric (optional)\r\n  \"utilities_gas_meter\": null,\r\n\r\n  // Water meter number must be numeric (optional)\r\n  \"utilities_water_meter\": null,\r\n\r\n  // Unit height must be numeric (optional)\r\n  \"dimensions_height\": 0,\r\n\r\n  // Unit length must be numeric (optional)\r\n  \"dimensions_length\": 0,\r\n\r\n  // Unit area must be numeric (optional)\r\n  \"area\": 200,\r\n\r\n  // Unit width must be numeric (optional)\r\n  \"dimensions_width\": 0,\r\n\r\n  // Unit finishing must be one of the listed options [0, 'shell', 'unfinished', 'finished']\r\n  \"unit_finishing\": \"unfinished\",\r\n\r\n  // Unit direction must be one of the listed options [0, 'north', 'east', 'south', 'west']\r\n  \"unit_direction\": \"north\",\r\n\r\n  // Unit furnishing status must be one of the listed options [0, 'furnish_new', 'furnish_used']\r\n  \"is_furnished\": \"furnish_new\",\r\n\r\n  // Number of full bathrooms must be numeric [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n  \"amenities_bathrooms_full\": 0,\r\n\r\n  // Number of bedrooms must be numeric [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n  \"amenities_bedrooms\": 3,\r\n\r\n  // Number of split AC units must be numeric (optional) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\r\n  \"amenities_split_unit\": 1,\r\n\r\n  // Number of central AC units must be numeric (optional) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\r\n  \"amenities_central_ac\": 0,\r\n\r\n  // Number of desert coolers must be numeric (optional) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]\r\n  \"amenities_desert_cooler\": 0,\r\n\r\n  // Number of halls must be numeric (optional) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n  \"amenities_halls\": 1,\r\n\r\n  // Kitchen presence must be numeric (optional) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n  \"amenities_kitchen\": 1,\r\n\r\n  // Majles presence must be numeric (optional) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\r\n  \"amenities_majles\": 0,\r\n\r\n  // Kitchen sink installation status must be one of the listed options [0, 1] (1 for yes, 0 for no)\r\n  \"amenities_is_kitchen_sink_installed\": 1,\r\n\r\n  // Cabinet installation status must be one of the listed options [0, 1] (1 for yes, 0 for no)\r\n  \"amenities_is_cabinet_installed\": 1,\r\n\r\n  // Maid room presence must be numeric (optional) [0, 1]  (1 for yes, 0 for no)\r\n  \"amenities_maid_room\": 0,\r\n\r\n  // Storeroom presence must be numeric (optional) [0, 1] (1 for yes, 0 for no)\r\n  \"amenities_storeroom\": 0,\r\n\r\n  // Mezzanine inclusion status must be one of the listed options [0, 1] (1 for yes, 0 for no)\r\n  \"include_mezzanine\": 0,\r\n\r\n  // Parking lot inclusion status must be one of the listed options [0, 1] (1 for yes, 0 for no)\r\n  \"include_number_of_parking_lots\": 1,\r\n\r\n  // Backyard presence must be numeric [0, 1] (1 for yes, 0 for no)\r\n  \"amenities_backyard\": 0,\r\n\r\n  // Established date must be in YYYY-MM-DD format (optional)\r\n  \"established_date\": null\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/units/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","units",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"4909","key":"id"}]}},"response":[],"_postman_id":"80798cbd-72dc-4e47-9a25-b0a442039423"},{"name":"Delete Unit","id":"315dabfa-20d6-48dc-9cd1-c55e09796804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/b2b/v1/units/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","units",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"8855","key":"id"}]}},"response":[],"_postman_id":"315dabfa-20d6-48dc-9cd1-c55e09796804"}],"id":"3fcf376d-c0a8-4f96-9265-c22ba1871827","_postman_id":"3fcf376d-c0a8-4f96-9265-c22ba1871827","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Cities","item":[{"name":"List All Cities","id":"457ae7bb-f6cd-423b-9b4e-5e3b283b46d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/cities","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","cities"],"host":["http://127.0.0.1:8000"],"query":[{"disabled":true,"key":"filters[name_ar][$contains]","value":"شقراء"},{"disabled":true,"key":"filters[region_id][$contains]","value":"2"}],"variable":[]}},"response":[],"_postman_id":"457ae7bb-f6cd-423b-9b4e-5e3b283b46d1"},{"name":"Find City By ID","id":"5fa5b3bc-4c14-4c01-81bb-e3a6d28af0d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/cities/:city_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","cities",":city_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"1","key":"city_id"}]}},"response":[],"_postman_id":"5fa5b3bc-4c14-4c01-81bb-e3a6d28af0d5"}],"id":"d80de685-f4e1-4e16-8486-b94522b37235","_postman_id":"d80de685-f4e1-4e16-8486-b94522b37235","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Wallet","item":[{"name":"List All transaction wallet","id":"936a17da-accb-4a52-af57-ac8223b7fe7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/wallet/transactions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","wallet","transactions"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"936a17da-accb-4a52-af57-ac8223b7fe7d"},{"name":"top-up-wallet","id":"d522cbd9-fee2-4ca6-8ff0-d665127afc57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\":\"10\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/wallet/top-up-wallet","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","wallet","top-up-wallet"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d522cbd9-fee2-4ca6-8ff0-d665127afc57"}],"id":"44114666-b0bd-49e3-930d-92121f32e19d","_postman_id":"44114666-b0bd-49e3-930d-92121f32e19d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Regions","item":[{"name":"List All regions","id":"33d283e9-1502-4c65-a002-b0e1cbf894f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/regions?filters[name][$contains]=ال","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","regions"],"host":["http://127.0.0.1:8000"],"query":[{"key":"filters[name][$contains]","value":"ال"}],"variable":[]}},"response":[],"_postman_id":"33d283e9-1502-4c65-a002-b0e1cbf894f6"},{"name":"Find Region By ID","id":"ed85bcdf-00fc-4458-b62b-d517bedc924e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/regions/:region_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","regions",":region_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"1","key":"region_id"}]}},"response":[],"_postman_id":"ed85bcdf-00fc-4458-b62b-d517bedc924e"}],"id":"a4627233-609e-4d44-b822-5a6da13c1353","_postman_id":"a4627233-609e-4d44-b822-5a6da13c1353","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Parties","item":[{"name":"Search Party","id":"c80ca9ac-c837-4e44-ae97-3ae9bc726dea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n\"id_number\": \"1016690206\", //required\r\n    \"birthday\": \"1975-02-14\" //required : YYYY-mm-dd\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/parties/search-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","parties","search-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c80ca9ac-c837-4e44-ae97-3ae9bc726dea"},{"name":"Delete Party","id":"1d471cbe-917e-4bb6-82b5-3810c215e736","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/b2b/v1/parties/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","parties",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"1d471cbe-917e-4bb6-82b5-3810c215e736"},{"name":"Update party","id":"5cb7b703-7034-41b8-ac1a-f2ed7e136a87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id_number\": \"1016690206\",\r\n    \"full_name\": \"فلان الفلاني تجريبي\",\r\n    \"phone_number\": \"+966567890317\",\r\n    \"date_of_birth\": \"1990-01-01\",\r\n    \"date_of_birth_hijri\": \"1410-05-12\",\r\n    \"region_id\": 2,\r\n    \"city_id\": 57,\r\n    \"district_id\": 779,\r\n    \"building_number\": \"8888\",\r\n    \"street_name\": \"Main Street\",\r\n    \"postal_code\": \"22525\",\r\n    \"additional_number\": \"6789\",\r\n    \"country_of_issue\": \"saudi_arabia\",\r\n    \"date_of_issue\": \"2000-10-10\",\r\n    \"date_of_expiration\": \"2001-10-12\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/parties/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","parties",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"5cb7b703-7034-41b8-ac1a-f2ed7e136a87"}],"id":"cdcb468c-de3a-4a01-bd39-42d92e68411d","_postman_id":"cdcb468c-de3a-4a01-bd39-42d92e68411d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Cotracts","item":[{"name":"Actions","item":[{"name":"Download PDF","id":"9a8c548d-9d16-4eab-8eb6-29baaf8972a0","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/contracts/download-pdf/:contract_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","download-pdf",":contract_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"9a8c548d-9d16-4eab-8eb6-29baaf8972a0"},{"name":"Sync Contract","id":"27d5a90d-58a0-4cbc-9f16-2937ef693fa9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/sync","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","sync"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"27d5a90d-58a0-4cbc-9f16-2937ef693fa9"},{"name":"Clone Contract","id":"c509725e-fa2f-41cc-b7f9-fafc8154495f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/clone","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","clone"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"c509725e-fa2f-41cc-b7f9-fafc8154495f"},{"name":"Change Contract Status","id":"b7a7f8fd-678d-4dfa-bafe-f93d014af25a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"status\":\"draft\" //draft,deleted\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","status"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"2141","key":"contract_id"}]}},"response":[],"_postman_id":"b7a7f8fd-678d-4dfa-bafe-f93d014af25a"},{"name":"Pay Contract With Wallet","id":"03d95d7e-a1ff-4ab5-8e9a-056a4ef1ba25","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"amount\":\"1\"//max =$payment->bo_office_net - $payment->saas_with_vat - $payment->bo_deductions_discount\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/pay-with-wallet","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","pay-with-wallet"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"03d95d7e-a1ff-4ab5-8e9a-056a4ef1ba25"},{"name":"Re Submit Contract","id":"c49af1a2-ad7c-4e0a-b5ad-99c93c98493e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/re-submit-contract","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","re-submit-contract"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"c49af1a2-ad7c-4e0a-b5ad-99c93c98493e"},{"name":"Send Contract Review Link","id":"30f0998b-a861-4657-bff3-044d329d76f7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \r\n    \"recipient\":\"owner\"//owner,tenant\r\n   \r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/send-contract-review-link","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","send-contract-review-link"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"30f0998b-a861-4657-bff3-044d329d76f7"},{"name":"Open Contract Link Live","id":"25159bc6-3438-4768-bdfc-4feda8dba0a4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/open-contract-link-live","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","open-contract-link-live"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"25159bc6-3438-4768-bdfc-4feda8dba0a4"},{"name":"Tax Invoice Contract","id":"d2ab7a36-04a4-41f9-9348-3ddb491385b3","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts/order-actions/:contract_id/tax-invoice-contract","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","order-actions",":contract_id","tax-invoice-contract"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"d2ab7a36-04a4-41f9-9348-3ddb491385b3"}],"id":"ae3168f9-9665-45a5-95ad-a3e3fc6454e5","_postman_id":"ae3168f9-9665-45a5-95ad-a3e3fc6454e5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Payments","item":[{"name":"List All Payments","id":"50c81aa9-1714-4aeb-a473-3360955bba48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/payments?page=1&per_page=10&collection_status=&order_status=&contract_number=&party_info=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","payments"],"host":["http://127.0.0.1:8000"],"query":[{"key":"page","value":"1"},{"key":"per_page","value":"10"},{"description":{"content":"<p>//not_collected,collected</p>\n","type":"text/plain"},"key":"collection_status","value":""},{"description":{"content":"<p>//paid,pending</p>\n","type":"text/plain"},"key":"order_status","value":""},{"key":"contract_number","value":""},{"key":"party_info","value":""}],"variable":[]}},"response":[],"_postman_id":"50c81aa9-1714-4aeb-a473-3360955bba48"},{"name":"Contract Installments","id":"0a36f05c-5d21-448b-babe-2a1317d1a2cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/:contract_id/installments","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1",":contract_id","installments"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6172","key":"contract_id"}]}},"response":[],"_postman_id":"0a36f05c-5d21-448b-babe-2a1317d1a2cd"},{"name":"Contract Invoices","id":"233977b0-8184-4441-98d9-b56e1291fb82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/:contract_id/invoices","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1",":contract_id","invoices"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"","key":"contract_id"}]}},"response":[],"_postman_id":"233977b0-8184-4441-98d9-b56e1291fb82"}],"id":"a6be8afa-46aa-459c-b7a9-51e0d73b9cd1","_postman_id":"a6be8afa-46aa-459c-b7a9-51e0d73b9cd1","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Download PDF","id":"69439bee-ebe7-45cf-b521-397fd5d91a18","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/b2b/v1/contracts/download-pdf/:contract_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts","download-pdf",":contract_id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"19","key":"contract_id"}]}},"response":[],"_postman_id":"69439bee-ebe7-45cf-b521-397fd5d91a18"},{"name":"List All Contracts","id":"4a4b4292-42be-4d93-8aa7-0ca8e9739a7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a4b4292-42be-4d93-8aa7-0ca8e9739a7a"},{"name":"Show Contract","id":"38c8390a-bb68-4c6f-a0c2-eaa4f0dd3ebc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"id"}]}},"response":[],"_postman_id":"38c8390a-bb68-4c6f-a0c2-eaa4f0dd3ebc"},{"name":"List All terms-template","id":"8408bc6a-c462-4e19-8ad2-d8b30844a743","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts/:contract_id/terms-template","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts",":contract_id","terms-template"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6197","key":"contract_id"}]}},"response":[],"_postman_id":"8408bc6a-c462-4e19-8ad2-d8b30844a743"},{"name":"Delete contract","id":"e6129a5d-fc40-48c6-b6bc-fed0c3455a32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/contracts/:contract_id?reason_template_id=1&other_reason=لا يوجد","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts",":contract_id"],"host":["http://127.0.0.1:8000"],"query":[{"key":"reason_template_id","value":"1"},{"key":"other_reason","value":"لا يوجد"}],"variable":[{"type":"any","value":"13","key":"contract_id"}]}},"response":[],"_postman_id":"e6129a5d-fc40-48c6-b6bc-fed0c3455a32"},{"name":"Add Contract (Residential)","id":"c886aac4-8ca5-4606-b82f-ea285fa532f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    // Contract details\r\n    \"duration\": 1, //Type in years \r\n    \"duration_type\": \"year\",\r\n    \"contract_type\": \"residential\", // Type of contract (options: residential, commercial)\r\n    // Parties involved\r\n    \"parties\": [\r\n        {\r\n            \"role\": \"tenant\", // Role of the party (options:  tenant)\r\n            \"id\": 5 // Unique identifier for the party\r\n        }\r\n    ],\r\n    // Unit and property details\r\n    \"unit_id\": \"4909\", // Identifier for the unit\r\n    \"data_financial\": {\r\n        \"rental_fees_id\": null, //for only update\r\n        \"total_units_rent\": \"3000\",\r\n        \"billing_type\": \"monthly\", // Billing type (options: monthly, quarterly, bi-annual, annual, one_time_pay)\r\n        \"extra_options\": 1,\r\n        \"security_deposit_required\": 0,\r\n        \"security_deposit_fee\": 125,\r\n        \"late_fees_charged_required\": 0,\r\n        \"late_fees_charged_fee\": \"1\",\r\n        \"retainer_required\": 0,\r\n        \"retainer_fee\": \"200\",\r\n        \"brokerage_required\": 0,\r\n        \"brokerage_fee\": \"2\",\r\n        \"brokerage_fee_paid_by\": \"tenant\", //'tenant', 'owner', 'both'\r\n        \"brokerage_fee_due_date\": \"2025-06-01\",\r\n        \"iban_id\":1\r\n    },\r\n    \"data_terms\": {\r\n        \"type\": \"contract_terms\",\r\n        \"attributes\": {\r\n            \"term_type\": \"residential\",\r\n            \"ejar_fees_paid_by\": \"brokerage_office\"\r\n        },\r\n        \"relationships\": {\r\n            \"contract_term_answers\": {\r\n                \"data\": [\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 36,\r\n                            \"term_template_key\": \"tenant_can_sublease\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 39,\r\n                            \"term_template_key\": \"residential_followup_with_authorities\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 40,\r\n                            \"term_template_key\": \"renovations_and_improvements_rental_unit\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 41,\r\n                            \"term_template_key\": \"modification_rental_unit\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 42,\r\n                            \"term_template_key\": \"governing_law_and_dispute_resolution\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"governing_law_and_dispute_resolution_option\": \"real_estate_arbitration\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 33,\r\n                            \"term_template_key\": \"residential_auto_renewal\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"cancel_auto_renewal_notice_period_in_days\": 60\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    \"custom_terms\": [\r\n        {\r\n            \"body\": \"Custom Term 1\"\r\n        },\r\n        {\r\n            \"body\": \"Custom Term 2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/contracts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c886aac4-8ca5-4606-b82f-ea285fa532f7"},{"name":"Update Contract","id":"20d9f647-fd26-4063-9e45-5dc9b140e0ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    // Contract details\r\n    \"start_date\": \"2024-06-07\", //start date\r\n     \"end_date\": \"2024-06-07\" //end date\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/contracts/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts",":id"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6","key":"id"}]}},"response":[],"_postman_id":"20d9f647-fd26-4063-9e45-5dc9b140e0ce"},{"name":"Add Contract (Commercial)","id":"58c21405-352c-4de5-a2de-ed4a0a29b50f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    // Contract details\r\n    \"duration\": 1, //Type in years \r\n    \"duration_type\": \"year\",\r\n    \"contract_type\": \"commercial\", // Type of contract (options: residential, commercial)\r\n    // Parties involved\r\n    \"parties\": [\r\n        {\r\n            \"role\": \"tenant\", // Role of the party (options:  tenant)\r\n            \"id\": 2 // Unique identifier for the party\r\n        }\r\n    ],\r\n    // Unit and property details\r\n    \"unit_id\": \"1\", // Identifier for the unit\r\n    \"data_financial\": {\r\n        \"rental_fees_id\": null,//for only update\r\n        \"total_units_rent\": 2000,\r\n        \"billing_type\": \"monthly\", // Billing type (options: monthly, quarterly, bi-annual, annual, one_time_pay)\r\n        \"extra_options\": 1,\r\n        \"security_deposit_required\": 0, //1,0\r\n        \"security_deposit_fee\": 125,\r\n        \"late_fees_charged_required\": 0, //1,0\r\n        \"late_fees_charged_fee\": \"2\",\r\n        \"retainer_required\": 0, //1,0\r\n        \"retainer_fee\": \"10\",\r\n        \"brokerage_required\": 0, //1,0\r\n        \"brokerage_fee\": \"20\",\r\n        \"brokerage_fee_paid_by\": \"tenant\", //'tenant', 'lessor', 'both'\r\n        \"brokerage_fee_due_date\": null,\r\n        \"engineering_supervision_required\": 0, //1,0\r\n        \"engineering_supervision_fee\": \"5\",\r\n        \"unit_finishing_required\": 0, //1,0\r\n        \"unit_finishing_fee\": \"4\",\r\n        \"waste_removal_required\": 0, //1,0\r\n        \"waste_removal_fee\": \"3\",\r\n        \"iban_id\": 1, //iban owner\r\n        \"commercial_services_fees_required\": true,\r\n        \"dynamic_rent_required\": 0, //avalable for more 1 year duration\r\n        \"dynamic_rent\": {\r\n            \"dynamic_rent_type\": \"percentage\",\r\n            \"dynamic_rent_growth\": \"increasing\",\r\n            \"percentages\": []\r\n        },\r\n        \"utilities_on\": 0, //0,1\r\n        \"utilities_and_services_required\": false,\r\n        \"commercial_services_fees\": {\r\n            \"sewage_fees\": {\r\n                \"amount\": 5,\r\n                \"currency\": \"sar\"\r\n            },\r\n            \"maintenance\": {\r\n                \"amount\": 20,\r\n                \"currency\": \"sar\"\r\n            },\r\n            \"cleaning_services\": {\r\n                \"amount\": 10,\r\n                \"currency\": \"sar\"\r\n            },\r\n            \"security\": {\r\n                \"amount\": 30,\r\n                \"currency\": \"sar\"\r\n            }\r\n        },\r\n        \"dynamic_rent_data\": {\r\n            \"dynamic_rent_type\": \"percentage\",\r\n            \"dynamic_rent_growth\": \"increasing\",\r\n            \"percentages\": []\r\n        }\r\n    },\r\n   \r\n    \"data_terms\": {\r\n        \"type\": \"contract_terms\",\r\n        \"attributes\": {\r\n            \"term_type\": \"open_contract\",//open_contract,unified_contract\r\n            \"ejar_fees_paid_by\": \"brokerage_office\"//lessor,brokerage_office\r\n        },\r\n        \"relationships\": {\r\n            \"contract_term_answers\": {\r\n                \"data\": [\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 1,\r\n                            \"term_template_key\": \"subleasing_and_lease_transfer\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"sublease_type\": \"has_right_to_sublease_partially\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 2,\r\n                            \"term_template_key\": \"followup_with_authorities\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 35,\r\n                            \"term_template_key\": \"opening_and_termination_period_notices\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 25,\r\n                            \"term_template_key\": \"responsibility_of_paying_authorities_fees\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 26,\r\n                            \"term_template_key\": \"responsibility_of_providing_license_prerequisites\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 29,\r\n                            \"term_template_key\": \"conditional_contract\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"construction_completion_certificate\": 1,\r\n                                \"civil_defense_requirements\": 1,\r\n                                \"electricity_safety_requirements\": 1\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 31,\r\n                            \"term_template_key\": \"changing_commercial_activity\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 32,\r\n                            \"term_template_key\": \"dispute_settlement\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"dispute_settlement_type\": \"assigned_court_at_plaintiff_address\",\r\n                                \"dispute_resolution_period_in_days\": 60\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    \"custom_terms\": [\r\n        {\r\n            \"body\": \"Terms 1\"\r\n        },\r\n        {\r\n            \"body\": \"Terms 2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/contracts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","contracts"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"58c21405-352c-4de5-a2de-ed4a0a29b50f"}],"id":"9fe88429-87d7-4f74-9a8b-edc1e766c100","_postman_id":"9fe88429-87d7-4f74-9a8b-edc1e766c100","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Contract Steps","item":[{"name":"Commerical","item":[{"name":"Step 1","item":[{"name":"initail Contract","id":"2a7b0fe3-e503-4707-8447-e5b9335d34e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    // Contract details\r\n    \"duration\": 1, //Type in years \r\n    \"duration_type\": \"year\",\r\n    \"contract_type\": \"commercial\" // Type of contract (options: residential, commercial)\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/initial-contract","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order","initial-contract"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a7b0fe3-e503-4707-8447-e5b9335d34e6"}],"id":"73f64ac7-c297-4616-aed4-54a3dd770ce9","_postman_id":"73f64ac7-c297-4616-aed4-54a3dd770ce9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 2","item":[{"name":"Assign Property","id":"45c1ad35-4d4b-4a06-91c8-d48ebac48053","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"property_id\":1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/assign-property","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","assign-property"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"45c1ad35-4d4b-4a06-91c8-d48ebac48053"},{"name":"Assign Unit","id":"4f6a51f7-a869-4d06-8be5-cc639ae8b8ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"unit_id\":2575\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/assign-unit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","assign-unit"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"4f6a51f7-a869-4d06-8be5-cc639ae8b8ea"}],"id":"f507d76e-e1d5-4a87-adb4-ad1f2547c864","_postman_id":"f507d76e-e1d5-4a87-adb4-ad1f2547c864","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 3","item":[{"name":"Assign Party","id":"fe654e4c-ab19-479e-a755-353f5643fd67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"id_number\":\"1061608236\",\r\n   \"type\":\"tenant\"//owner,tenant,owner_rep,tenant_rep\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/assign-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","assign-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"fe654e4c-ab19-479e-a755-353f5643fd67"},{"name":"Delete Party","id":"24e691da-5b67-4d26-8702-713a4ecb4757","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"party_id\":2,\r\n   \"type\":\"owner\" //owner,tenant,owner_rep,tenant_rep\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/delete-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","delete-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"id":"d8d4a82d-c9d7-4ab5-a3f0-3e94ef4c09ba","type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"24e691da-5b67-4d26-8702-713a4ecb4757"},{"name":"Replace Party","id":"f896120d-c492-43c3-a807-608cdc7d1668","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"old_party_id\": 9310,\r\n    \"id_number\": \"1061608236\",\r\n    \"type\": \"tenant\" // tenant\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/replace-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","replace-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"id":"4d1d6d15-c089-4252-bcb0-2edd00cea4f3","type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"f896120d-c492-43c3-a807-608cdc7d1668"}],"id":"b1f951f6-793e-4e87-99b9-046620b6c00e","_postman_id":"b1f951f6-793e-4e87-99b9-046620b6c00e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 4","item":[{"name":"Add Update Finacial","id":"2bd0e8e2-257e-481b-b741-b7da8b27e502","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data_financial\": {\r\n        \"contract_id\": 6202,\r\n        \"rental_fees_id\": null,//for only update\r\n        \"total_units_rent\": 2000,\r\n        \"billing_type\": \"monthly\", // Billing type (options: monthly, quarterly, bi-annual, annual, one_time_pay)\r\n        \"extra_options\": 1,\r\n        \"security_deposit_required\": 0, //1,0\r\n        \"security_deposit_fee\": 125,\r\n        \"late_fees_charged_required\": 0, //1,0\r\n        \"late_fees_charged_fee\": \"2\",\r\n        \"retainer_required\": 0, //1,0\r\n        \"retainer_fee\": \"10\",\r\n        \"brokerage_required\": 0, //1,0\r\n        \"brokerage_fee\": \"20\",\r\n        \"brokerage_fee_paid_by\": \"tenant\", //'tenant', 'lessor', 'both'\r\n        \"brokerage_fee_due_date\": null,\r\n        \"engineering_supervision_required\": 0, //1,0\r\n        \"engineering_supervision_fee\": \"5\",\r\n        \"unit_finishing_required\": 0, //1,0\r\n        \"unit_finishing_fee\": \"4\",\r\n        \"waste_removal_required\": 0, //1,0\r\n        \"waste_removal_fee\": \"3\",\r\n        \"iban_id\": 1, //iban owner\r\n        \"commercial_services_fees_required\": true,\r\n        \"dynamic_rent_required\": 0, //avalable for more 1 year duration\r\n        \"dynamic_rent\": {\r\n            \"dynamic_rent_type\": \"percentage\",\r\n            \"dynamic_rent_growth\": \"increasing\",\r\n            \"percentages\": []\r\n        },\r\n        \"utilities_on\": 0, //0,1\r\n        \"utilities_and_services_required\": false,\r\n        \"commercial_services_fees\": {\r\n            \"sewage_fees\": {\r\n                \"amount\": 5,\r\n                \"currency\": \"sar\"\r\n            },\r\n            \"maintenance\": {\r\n                \"amount\": 20,\r\n                \"currency\": \"sar\"\r\n            },\r\n            \"cleaning_services\": {\r\n                \"amount\": 10,\r\n                \"currency\": \"sar\"\r\n            },\r\n            \"security\": {\r\n                \"amount\": 30,\r\n                \"currency\": \"sar\"\r\n            }\r\n        },\r\n        \"dynamic_rent_data\": {\r\n            \"dynamic_rent_type\": \"percentage\",\r\n            \"dynamic_rent_growth\": \"increasing\",\r\n            \"percentages\": []\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/add-update-financials","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","add-update-financials"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"2bd0e8e2-257e-481b-b741-b7da8b27e502"}],"id":"cf2d5154-dc39-4f81-84e7-2f938fde1923","_postman_id":"cf2d5154-dc39-4f81-84e7-2f938fde1923","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 5","item":[{"name":"Template Terms","id":"a521c8a0-a748-4baf-baef-3cbad0b9001e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/template-terms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","template-terms"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"a521c8a0-a748-4baf-baef-3cbad0b9001e"},{"name":"Add/Udate Terms (open_contract)","id":"f8a0adfb-9095-4d89-a6e6-26d29a24d7e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data_terms\": {\r\n        \"type\": \"contract_terms\",\r\n        \"attributes\": {\r\n            \"term_type\": \"open_contract\",//open_contract,unified_contract\r\n            \"ejar_fees_paid_by\": \"brokerage_office\"//lessor,brokerage_office\r\n        },\r\n        \"relationships\": {\r\n            \"contract_term_answers\": {\r\n                \"data\": [\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 1,\r\n                            \"term_template_key\": \"subleasing_and_lease_transfer\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"sublease_type\": \"has_right_to_sublease_partially\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 2,\r\n                            \"term_template_key\": \"followup_with_authorities\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 35,\r\n                            \"term_template_key\": \"opening_and_termination_period_notices\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 25,\r\n                            \"term_template_key\": \"responsibility_of_paying_authorities_fees\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 26,\r\n                            \"term_template_key\": \"responsibility_of_providing_license_prerequisites\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 29,\r\n                            \"term_template_key\": \"conditional_contract\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"construction_completion_certificate\": 1,\r\n                                \"civil_defense_requirements\": 1,\r\n                                \"electricity_safety_requirements\": 1\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 31,\r\n                            \"term_template_key\": \"changing_commercial_activity\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 32,\r\n                            \"term_template_key\": \"dispute_settlement\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"dispute_settlement_type\": \"assigned_court_at_plaintiff_address\",\r\n                                \"dispute_resolution_period_in_days\": 60\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    \"custom_terms\": [\r\n        {\r\n            \"body\": \"شرط 1\"\r\n        },\r\n        {\r\n            \"body\": \"شرط 2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/add-update-terms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","add-update-terms"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"f8a0adfb-9095-4d89-a6e6-26d29a24d7e8"},{"name":"Add/Udate Terms (unified_contract)","id":"3d3b85fe-be8b-4d13-9838-216277494d2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data_terms\": {\r\n        \"type\": \"contract_terms\",\r\n        \"attributes\": {\r\n            \"term_type\": \"unified_contract\",\r\n            \"ejar_fees_paid_by\": \"brokerage_office\"\r\n        },\r\n        \"relationships\": {\r\n            \"contract_term_answers\": {\r\n                \"data\": [\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 1,\r\n                            \"term_template_key\": \"subleasing_and_lease_transfer\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"sublease_type\": \"has_right_to_sublease_fully\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 2,\r\n                            \"term_template_key\": \"followup_with_authorities\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 3,\r\n                            \"term_template_key\": \"safety_and_security\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 4,\r\n                            \"term_template_key\": \"changes_on_unit\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 5,\r\n                            \"term_template_key\": \"interior_and_design_works\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 6,\r\n                            \"term_template_key\": \"daily_rent_on_late_opening\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"daily_amount\": {\r\n                                    \"amount\": \"5\",\r\n                                    \"currency\": \"sar\"\r\n                                }\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 7,\r\n                            \"term_template_key\": \"trademark_registration_proof\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 8,\r\n                            \"term_template_key\": \"insurance_policy\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 9,\r\n                            \"term_template_key\": \"maintaining_electrical_mechanical_infrastructures\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 11,\r\n                            \"term_template_key\": \"abide_with_non_smoking_zones\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 12,\r\n                            \"term_template_key\": \"waste_disposal\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 13,\r\n                            \"term_template_key\": \"permitted_unit_closing_period\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"continuous_closing_days\": 7,\r\n                                \"discontinuous_closing_days\": 10\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 14,\r\n                            \"term_template_key\": \"removal_of_additions_on_lease_expire\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"removal_of_additions_option\": \"can_remove_additions_on_lessor_consent\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 15,\r\n                            \"term_template_key\": \"municipality_license_cancellation\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"municipality_cancellation_option\": \"cancellation_with_daily_fine\",\r\n                                \"municipality_cancellation_delay_daily_rent\": {\r\n                                    \"amount\": \"20\",\r\n                                    \"currency\": \"sar\"\r\n                                }\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 16,\r\n                            \"term_template_key\": \"daily_rent_on_handover_delay\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"daily_amount\": {\r\n                                    \"amount\": \"2\",\r\n                                    \"currency\": \"sar\"\r\n                                }\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 34,\r\n                            \"term_template_key\": \"receipt_of_tenant_manual\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 35,\r\n                            \"term_template_key\": \"opening_and_termination_period_notices\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"unit_opening_period\": 5,\r\n                                \"notification_for_termination_period\": 10\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 17,\r\n                            \"term_template_key\": \"commit_to_tenants_guide\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 18,\r\n                            \"term_template_key\": \"commit_to_facility_working_hours\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 19,\r\n                            \"term_template_key\": \"promotion_announcement\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"promotion_announcement_option\": \"needs_written_approval_from_lessor\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 20,\r\n                            \"term_template_key\": \"floor_water_proof\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 21,\r\n                            \"term_template_key\": \"loading_zone_operations\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 22,\r\n                            \"term_template_key\": \"canceling_and_transfer_of_land_phone_lines\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 23,\r\n                            \"term_template_key\": \"changing_replacing_unit\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 24,\r\n                            \"term_template_key\": \"changing_unit_rent\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"rent_change_notification_period\": 10\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    \"custom_terms\": [\r\n        {\r\n            \"body\": \"شرط 1\"\r\n        },\r\n        {\r\n            \"body\": \"شرط 2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/add-update-terms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","add-update-terms"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6202","key":"contract_id"}]}},"response":[],"_postman_id":"3d3b85fe-be8b-4d13-9838-216277494d2e"}],"id":"c5d3044b-1211-464b-8f73-e88b9bdcb204","_postman_id":"c5d3044b-1211-464b-8f73-e88b9bdcb204","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 6","item":[{"name":"Submit Contract","id":"d0cc20a8-280c-4104-a242-9cfae6fe01ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"review\":0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/submit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","submit"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"id":"eb88dc3a-e71e-4414-bbf7-93026a010344","type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"d0cc20a8-280c-4104-a242-9cfae6fe01ec"}],"id":"682d80d5-5032-459c-9048-d7015fae271c","_postman_id":"682d80d5-5032-459c-9048-d7015fae271c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}}],"id":"05d4ae28-c6b2-4534-b93b-b15fbf38e76e","_postman_id":"05d4ae28-c6b2-4534-b93b-b15fbf38e76e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Resedinatial","item":[{"name":"Step 1","item":[{"name":"initail Contract","id":"d4ede228-2a64-4b98-a254-803403cd003a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    // Contract details\r\n    \"duration\": 2, //Type in years \r\n    \"duration_type\": \"year\",\r\n    \"contract_type\": \"residential\" // Type of contract (options: residential, commercial)\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/initial-contract","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order","initial-contract"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4ede228-2a64-4b98-a254-803403cd003a"}],"id":"bd5e4433-ed40-413d-94f1-4ed85dc5eb77","_postman_id":"bd5e4433-ed40-413d-94f1-4ed85dc5eb77","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 2","item":[{"name":"Assign Property","id":"cf367541-bda0-4ead-96a0-eec8cd17aad8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"property_id\":1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/assign-property","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","assign-property"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"cf367541-bda0-4ead-96a0-eec8cd17aad8"},{"name":"Assign Unit","id":"e2f2ac13-ced0-4398-b709-25352d3b29bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"unit_id\":9317\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/assign-unit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","assign-unit"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"e2f2ac13-ced0-4398-b709-25352d3b29bb"}],"id":"0324dbf8-b463-4dc9-9e69-0ef250b83d2f","_postman_id":"0324dbf8-b463-4dc9-9e69-0ef250b83d2f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 3","item":[{"name":"Assign Party","id":"121c7fe8-b27d-4e8a-85ee-f1a498708e71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"id_number\":\"1061608236\",\r\n   \"type\":\"tenant\"//tenant\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/assign-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","assign-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"121c7fe8-b27d-4e8a-85ee-f1a498708e71"},{"name":"Delete Party","id":"4c9e9027-c38b-4671-b317-b7debafd0e12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"party_id\":2,\r\n   \"type\":\"owner\" //owner,tenant,owner_rep,tenant_rep\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/delete-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","delete-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"4c9e9027-c38b-4671-b317-b7debafd0e12"},{"name":"Replace Party","id":"7aa76845-d7c4-4665-bc96-7b2868b10523","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"old_party_id\": 9310,\r\n    \"id_number\": \"1061608236\",\r\n    \"type\": \"tenant\" // tenant\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/replace-party","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","replace-party"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"7aa76845-d7c4-4665-bc96-7b2868b10523"}],"id":"c4163927-0c21-4a15-b9e9-8dde4d94003c","_postman_id":"c4163927-0c21-4a15-b9e9-8dde4d94003c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 4","item":[{"name":"Add Update Finacial","id":"15b1ab80-5746-4472-9474-f95ed2b21506","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\r\n    \"data_financial\": {\r\n        \"rental_fees_id\": 36266775, //for only update\r\n        \"total_units_rent\": \"3000\",\r\n        \"billing_type\": \"monthly\", // Billing type (options: monthly, quarterly, bi-annual, annual, one_time_pay)\r\n        \"extra_options\": 1,\r\n        \"security_deposit_required\": 0,\r\n        \"security_deposit_fee\": 125,\r\n        \"late_fees_charged_required\": 0,\r\n        \"late_fees_charged_fee\": \"1\",\r\n        \"retainer_required\": 0,\r\n        \"retainer_fee\": \"200\",\r\n        \"brokerage_required\": 0,\r\n        \"brokerage_fee\": \"2\",\r\n        \"brokerage_fee_paid_by\": \"tenant\", //'tenant', 'owner', 'both'\r\n        \"brokerage_fee_due_date\": \"2025-06-01\",\r\n    \r\n        \"iban_number\": \"SA0380000000608010167519\"//iban for owner\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/add-update-financials","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","add-update-financials"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"15b1ab80-5746-4472-9474-f95ed2b21506"}],"id":"d536283b-fb36-49ed-b8ff-22ade36c6be0","_postman_id":"d536283b-fb36-49ed-b8ff-22ade36c6be0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 5","item":[{"name":"Template Terms","id":"26226b02-5bb1-4929-8235-a0dfdac91bcc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/template-terms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","template-terms"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"26226b02-5bb1-4929-8235-a0dfdac91bcc"},{"name":"Add/Udate Terms","id":"6e435cc8-d94b-445d-9f82-34a256c48f3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data_terms\": {\r\n        \"type\": \"contract_terms\",\r\n        \"attributes\": {\r\n            \"term_type\": \"residential\",\r\n            \"ejar_fees_paid_by\": \"brokerage_office\"\r\n        },\r\n        \"relationships\": {\r\n            \"contract_term_answers\": {\r\n                \"data\": [\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 36,\r\n                            \"term_template_key\": \"tenant_can_sublease\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 39,\r\n                            \"term_template_key\": \"residential_followup_with_authorities\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 40,\r\n                            \"term_template_key\": \"renovations_and_improvements_rental_unit\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 41,\r\n                            \"term_template_key\": \"modification_rental_unit\",\r\n                            \"enabled\": true\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 42,\r\n                            \"term_template_key\": \"governing_law_and_dispute_resolution\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"governing_law_and_dispute_resolution_option\": \"real_estate_arbitration\"\r\n                            }\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": \"contract_term_answers\",\r\n                        \"attributes\": {\r\n                            \"term_template_id\": 33,\r\n                            \"term_template_key\": \"residential_auto_renewal\",\r\n                            \"enabled\": true,\r\n                            \"answers\": {\r\n                                \"cancel_auto_renewal_notice_period_in_days\": 60\r\n                            }\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    },\r\n    \"custom_terms\": [\r\n        {\r\n            \"body\": \"شرط 1\"\r\n        },\r\n        {\r\n            \"body\": \"شرط 2\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/add-update-terms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","add-update-terms"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6204","key":"contract_id"}]}},"response":[],"_postman_id":"6e435cc8-d94b-445d-9f82-34a256c48f3d"}],"id":"3510f182-3503-4b27-9c30-0267eb09269d","_postman_id":"3510f182-3503-4b27-9c30-0267eb09269d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}},{"name":"Step 6","item":[{"name":"Submit Contract","id":"957f1016-4d5e-486b-812e-634aac86396b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"review\":0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/b2b/v1/order/:contract_id/submit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}},"urlObject":{"path":["b2b","v1","order",":contract_id","submit"],"host":["http://127.0.0.1:8000"],"query":[],"variable":[{"type":"any","value":"6199","key":"contract_id"}]}},"response":[],"_postman_id":"957f1016-4d5e-486b-812e-634aac86396b"}],"id":"4a169ce8-bdee-45bf-ba3f-1b6955c96a08","_postman_id":"4a169ce8-bdee-45bf-ba3f-1b6955c96a08","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}}],"id":"444ae326-27ee-4a83-8b88-e86a93c43846","_postman_id":"444ae326-27ee-4a83-8b88-e86a93c43846","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}}],"id":"47a36774-1aae-42b5-85d5-a59477a1b969","_postman_id":"47a36774-1aae-42b5-85d5-a59477a1b969","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","id":"c2bb7e01-ba51-4723-b30b-cf336acf2946","name":"API B2B","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"f0561fd7-1029-4b45-9c7c-2b298a044170","type":"text/javascript","packages":{},"exec":["pm.request.headers.add({key: 'accept', value: 'application/json'});","pm.request.headers.add({key: 'Content-Type', value: 'application/json'});","","pm.request.headers.add({key: 'Accept-Language', value: pm.variables.get(\"lang_code\")});",""]}},{"listen":"test","script":{"id":"cb14d825-f1a7-4d69-ac6a-9d091db417d5","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"access_token","value":""},{"key":"refresh_token","value":""},{"key":"expires_in","value":""},{"key":"base_url","value":"http://127.0.0.1:8000","type":"string"},{"key":"lang_code","value":"en","type":"string"}]}