{"servers":[{"url":"/"}],"tags":[{"name":"EKBC"},{"name":"SOLE"},{"name":"KCCI"},{"name":"PACI"},{"name":"PACI STATS"},{"name":"BALADIA"},{"name":"TENDER SITES"},{"name":"AAMALY"},{"name":"EMAGAZINE"},{"name":"EAUTH"},{"name":"GIS"},{"name":"Sijilat"},{"name":"TALABAT"},{"name":"NOON"},{"name":"LULU"},{"name":"XCITE"},{"name":"RATHAAN"},{"name":"Translate"},{"name":"Normalize"}],"x-tagGroups":[{"name":"Kuwait","tags":["EKBC","SOLE","KCCI","PACI","PACI STATS","BALADIA","TENDER SITES"]},{"name":"Saudi Arabia","tags":["AAMALY","EMAGAZINE","EAUTH","GIS"]},{"name":"Bahrain","tags":["Sijilat"]},{"name":"Shops","tags":["TALABAT","NOON","LULU","XCITE","RATHAAN"]},{"name":"Tools","tags":["Translate","Normalize"]}],"info":{"title":"APIs","version":"1.0.7","description":"This is based on the OpenAPI 3.0 specification."},"openapi":"3.1.1","paths":{"/aamaly/registers":{"get":{"operationId":"aamalyRouter.Registers","summary":"Find Saudi registers by unified number or name","description":"Looks a Saudi register up by its unified number (700…) or finds registers by Arabic name: first in the registry mirror (`aamaly.entity`), then in the Ministry of Commerce gazette for registers not yet banked. Each row carries the head / branch / peer role the filings imply.","tags":["AAMALY"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"registers":{"type":"array","items":{"type":"object","properties":{"registration_no":{"type":"string"},"cr_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"registration_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"publications":{"type":"number"},"banked":{"type":"boolean"},"role":{"enum":["single","head","branch","peer","unknown"],"type":"string"},"head_registration_no":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["registration_no","cr_number","name_ar","status","registration_date","publications","banked","role","head_registration_no"]}},"gazette_checked":{"type":"boolean"}},"required":["registers","gazette_checked"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/aamaly/companies":{"get":{"operationId":"aamalyRouter.SearchCompanies","summary":"Search Saudi companies by name, register or unified number","description":"Searches the registry mirror and the Ministry of Commerce gazette and groups what it finds into companies. `gazette_complete` is false when the gazette part was cut short by the time budget.","tags":["AAMALY"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"companies":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name_ar":{"type":"string"},"registers":{"type":"array","items":{"type":"string"}},"head":{"anyOf":[{"type":"string"},{"type":"null"}]},"in_mirror":{"type":"boolean"},"gazette_hits":{"type":"number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","name_ar","registers","head","in_mirror","gazette_hits","status","city"]}},"gazette_complete":{"type":"boolean"}},"required":["companies","gazette_complete"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/aamaly/companies/file-jobs":{"post":{"operationId":"aamalyRouter.SubmitFileJob","summary":"Start gathering a Saudi company's file","description":"Gathering takes minutes (longer than the 100 s edge cutoff), so it is a background job: poll `/companies/file-jobs/{id}`. A recent job for the same company is reused.","tags":["AAMALY"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2},"requested_by":{"type":"string","format":"email"}},"required":["name"]}}}},"responses":{"202":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"enum":["pending","running","done","failed"],"type":"string"}},"required":["jobId","status"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/aamaly/companies/file-jobs/{id}":{"get":{"operationId":"aamalyRouter.GetFileJob","summary":"Read a company file job","description":"Status, progress and, once `done`, the gathered company file.","tags":["AAMALY"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["pending","running","done","failed"],"type":"string"},"progress":{"anyOf":[{"type":"object","properties":{"done":{"type":"number"},"total":{"type":"number"},"label":{"type":"string"}},"required":["done","total","label"]},{"type":"null"}]},"result":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"query":{"type":"string"},"registered_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"head":{"anyOf":[{"type":"string"},{"type":"null"}]},"registers":{"type":"array","items":{"type":"object","properties":{"registration_no":{"type":"string"},"role":{"enum":["head","same_name"],"type":"string"},"details":{"anyOf":[{"type":"object","properties":{"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}]},"registered_on":{"anyOf":[{"type":"string"},{"type":"null"}]},"capital":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"website":{"anyOf":[{"type":"string"},{"type":"null"}]},"annual_confirmation_due":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name_ar","legal_form","registered_on","capital","status","city","phone","email","website","annual_confirmation_due"]},{"type":"null"}]},"details_as_of":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["registration_no","role","details","details_as_of"]}},"filings":{"type":"array","items":{"type":"object","properties":{"publish_ref_id":{"type":"string"},"published_on":{"type":"string","format":"date"},"published_hijri":{"type":"string"},"service_ar":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"registration_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"names":{"type":"array","items":{"type":"string"}},"text":{"type":"string"},"pdf":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"code":{"type":"string"}},"required":["key","code"]},{"type":"null"}]}},"required":["publish_ref_id","published_on","published_hijri","service_ar","title","registration_no","names","text","pdf"]}},"capital_history":{"type":"array","items":{"type":"object","properties":{"registration_no":{"type":"string"},"as_of":{"type":"string","format":"date"},"capital":{"anyOf":[{"type":"number"},{"type":"null"}]},"legal_form":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["registration_no","as_of","capital","legal_form"]}},"not_ours":{"type":"number"},"in_mirror":{"type":"boolean"},"mirror":{"anyOf":[{"type":"object","properties":{"entity":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"activities":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"capital_history":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"managers":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"owners_person":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"owners_company":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"cr_records":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["entity","activities","capital_history","managers","owners_person","owners_company","cr_records"]},{"type":"null"}]},"fetch_jobs":{"type":"array","items":{"type":"object","properties":{"searchText":{"type":"string"},"ids":{"type":"array","items":{"type":"string"}}},"required":["searchText","ids"]}}},"required":["name","query","registered_name","head","registers","filings","capital_history","not_ours","in_mirror","mirror","fetch_jobs"]},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","progress","result","error"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/aamaly/companies/queue":{"post":{"operationId":"aamalyRouter.QueueCompany","summary":"Queue a Saudi company's gazette filings for banking","description":"Mints the fetch jobs a person then drains. Answers `banked` when the company is already in the mirror and `already_queued` when its jobs exist and `nothing_to_queue` when the plan has no filing to read. Pass `file_job_id` to reuse the plan of a finished file job.","tags":["AAMALY"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2},"requested_by":{"type":"string","format":"email"},"file_job_id":{"type":"string","format":"uuid"}},"required":["name","requested_by"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"enum":["queued","banked","already_queued","nothing_to_queue"],"type":"string"},"job_ids":{"type":"array","items":{"type":"string"}}},"required":["outcome","job_ids"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/aamaly/publications/{publishRefId}/pdf":{"get":{"operationId":"aamalyRouter.PublicationPdf","summary":"Download a gazette filing's PDF","description":"The banked copy when the filing is in the mirror, otherwise read live from the gazette with the `key` and `code` its details give.","tags":["AAMALY"],"parameters":[{"name":"publishRefId","in":"path","required":true,"schema":{"type":"string"}},{"name":"key","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"code","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/baladia/shop-transaction":{"get":{"operationId":"baladiaRouter.shopTransaction","tags":["BALADIA"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0,"description":"Shop-licence transaction number (رقم المعاملة)."},"allowEmptyValue":true,"allowReserved":true,"description":"Shop-licence transaction number (رقم المعاملة)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"kmId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"found":{"type":"boolean"},"engineer":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerName":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownerCivilId":{"anyOf":[{"type":"string"},{"type":"null"}]},"tradeName":{"anyOf":[{"type":"string"},{"type":"null"}]},"governorate":{"anyOf":[{"type":"string"},{"type":"null"}]},"gisno":{"anyOf":[{"type":"string"},{"type":"null"}]},"blockNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"plotNo":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"cells":{"type":"array","items":{"type":"string"}}},"required":["kmId","found","engineer","notes","ownerName","ownerCivilId","tradeName","governorate","gisno","blockNo","plotNo","status","cells"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/search":{"get":{"operationId":"ekbcRouter.search","tags":["EKBC"],"parameters":[{"name":"P_COMM_NAME","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_COMM_BOOK_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CENTRAL_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_COMM_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_OWNER_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_ROWS_COUNT","in":"query","schema":{"type":"string","default":"0"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"EST_RECID":{"type":"string"},"LICN_CENTRAL_NO":{"type":"string"},"COMPANY_NAME":{"type":"string"},"COMM_BOOK_NO":{"type":"string"},"REG_COMM_DATE":{"type":"string"},"LEGAL_STRACTURE":{"type":"string"},"LEGAL_STRACTURE_DESC":{"type":"string"},"TRADE_NAME":{"type":"string"},"STATUS_DESC":{"enum":["فعالة","ملغيه","موقوفة"],"type":"string"},"TENANT_ID":{"enum":["STOCK","INC","SOLE"],"type":"string"},"TENANT_DESC":{"enum":["النظام الالي لتراخيص المؤسسات الفردية","بوابة النظام الالي لتراخيص الشركات","بوابة النظام الالي لتراخيص الشركات المساهمة"],"type":"string"},"LICN_CIVIL_ID":{"type":"string"},"LICN_NO":{"type":"string"}},"required":["EST_RECID","LICN_CENTRAL_NO","COMPANY_NAME","REG_COMM_DATE","LEGAL_STRACTURE","LEGAL_STRACTURE_DESC","STATUS_DESC","TENANT_ID","TENANT_DESC"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/searchByName":{"get":{"operationId":"ekbcRouter.searchByName","tags":["EKBC"],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"rows_count","in":"query","required":false,"schema":{"type":"string","default":"0"},"allowEmptyValue":true,"allowReserved":true},{"name":"by_exact_name_flag","in":"query","required":false,"schema":{"type":"string","default":"undefined"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/legacySearch":{"get":{"operationId":"ekbcRouter.legacySearch","deprecated":true,"tags":["EKBC"],"parameters":[{"name":"P_LICN_CENTRAL_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_COMM_BOOK_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/legacyFullDetails":{"get":{"operationId":"ekbcRouter.legacyFullDetails","tags":["EKBC"],"parameters":[{"name":"P_COMM_NAME","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_COMM_BOOK_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CENTRAL_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_COMM_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_OWNER_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_ROWS_COUNT","in":"query","schema":{"type":"string","default":"0"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/eappByLcid":{"get":{"operationId":"ekbcRouter.eappByLcid","tags":["EKBC"],"parameters":[{"name":"lcid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/detailsByCrNumber":{"get":{"operationId":"ekbcRouter.detailsByCrNumber","tags":["EKBC"],"parameters":[{"name":"P_COMM_BOOK_NO","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/personByCivilId":{"get":{"operationId":"ekbcRouter.personByCivilId","tags":["EKBC"],"parameters":[{"name":"civilId","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/raw_details":{"get":{"operationId":"ekbcRouter.rawDetails","tags":["EKBC"],"parameters":[{"name":"P_COMM_NAME","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_COMM_BOOK_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CENTRAL_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_COMM_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_OWNER_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_ROWS_COUNT","in":"query","schema":{"type":"string","default":"0"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/formated_details":{"get":{"operationId":"ekbcRouter.formatedDetails","tags":["EKBC"],"parameters":[{"name":"P_COMM_NAME","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_COMM_BOOK_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CENTRAL_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_COMM_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_OWNER_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_ROWS_COUNT","in":"query","schema":{"type":"string","default":"0"},"allowEmptyValue":true,"allowReserved":true},{"name":"trade_license_number","in":"query","schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"anyOf":[{"type":"object","properties":{"address":{"type":"object","properties":{"address_auto_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"governorate":{"anyOf":[{"type":"string"},{"type":"null"}]},"area":{"anyOf":[{"type":"string"},{"type":"null"}]},"block":{"anyOf":[{"type":"string"},{"type":"null"}]},"floor":{"anyOf":[{"type":"string"},{"type":"null"}]},"street":{"anyOf":[{"type":"string"},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit_no":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}]},"KC_registration_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"CR_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"license_civil_id":{"anyOf":[{"type":"number"},{"type":"null"}]},"trade_license_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"establishment_date":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"capital_currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"CR_status":{"anyOf":[{"enum":["Cancelled","Active","Suspended","Banned"],"type":"string"},{"type":"null"}]},"activities":{"type":"array","items":{"type":"string"}},"partners":{"type":"array","items":{"type":"object","properties":{"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"authority":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"other_ownerships":{"anyOf":[{"type":"string"},{"type":"null"}]},"expired_waived_count":{"anyOf":[{"type":"number"},{"type":"null"}]}}}},"bankruptcy":{"type":"boolean"},"historical_flags":{"type":"boolean"},"collateral":{"type":"boolean"},"company_termination":{"type":"boolean"},"execution_seizure":{"type":"boolean"},"ownership_transfer":{"type":"boolean"},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"details":{"type":"string"}},"required":["type","details"]}},"has_office":{"type":"boolean"},"office_PACI_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"authorized_capital":{"anyOf":[{"type":"number"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"lost_50p_stock":{"type":"boolean","default":false},"lost_75p_stock":{"type":"boolean","default":false},"staff_estimate":{"type":"number"},"branches_and_offices_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"shouldChangeStatus":{"type":"boolean","default":false}},"required":["address","activities","partners","bankruptcy","historical_flags","collateral","company_termination","execution_seizure","ownership_transfer","contacts","has_office"]},{"type":"null"}]},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/formated_details/jobs":{"post":{"operationId":"ekbcRouter.submitFormatedDetailsJob","tags":["EKBC"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"P_COMM_NAME":{"type":"string","default":""},"P_COMM_BOOK_NO":{"type":"string","default":""},"P_LICN_CENTRAL_NO":{"type":"string","default":""},"P_LICN_CIVIL_ID":{"type":"string","default":""},"P_LICN_COMM_NO":{"type":"string","default":""},"P_OWNER_CIVIL_ID":{"type":"string","default":""},"P_ROWS_COUNT":{"type":"string","default":"0"},"trade_license_number":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"enum":["pending","running","done","failed"],"type":"string"}},"required":["jobId","status"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/formated_details/jobs/{id}":{"get":{"operationId":"ekbcRouter.getFormatedDetailsJob","tags":["EKBC"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["pending","running","done","failed"],"type":"string"},"result":{"anyOf":[{"anyOf":[{"type":"object","properties":{"address":{"type":"object","properties":{"address_auto_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"governorate":{"anyOf":[{"type":"string"},{"type":"null"}]},"area":{"anyOf":[{"type":"string"},{"type":"null"}]},"block":{"anyOf":[{"type":"string"},{"type":"null"}]},"floor":{"anyOf":[{"type":"string"},{"type":"null"}]},"street":{"anyOf":[{"type":"string"},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit_no":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}]},"KC_registration_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"CR_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"license_civil_id":{"anyOf":[{"type":"number"},{"type":"null"}]},"trade_license_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"establishment_date":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"capital_currency":{"anyOf":[{"type":"string"},{"type":"null"}]},"CR_status":{"anyOf":[{"enum":["Cancelled","Active","Suspended","Banned"],"type":"string"},{"type":"null"}]},"activities":{"type":"array","items":{"type":"string"}},"partners":{"type":"array","items":{"type":"object","properties":{"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"authority":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"other_ownerships":{"anyOf":[{"type":"string"},{"type":"null"}]},"expired_waived_count":{"anyOf":[{"type":"number"},{"type":"null"}]}}}},"bankruptcy":{"type":"boolean"},"historical_flags":{"type":"boolean"},"collateral":{"type":"boolean"},"company_termination":{"type":"boolean"},"execution_seizure":{"type":"boolean"},"ownership_transfer":{"type":"boolean"},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"details":{"type":"string"}},"required":["type","details"]}},"has_office":{"type":"boolean"},"office_PACI_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"authorized_capital":{"anyOf":[{"type":"number"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}]},"lost_50p_stock":{"type":"boolean","default":false},"lost_75p_stock":{"type":"boolean","default":false},"staff_estimate":{"type":"number"},"branches_and_offices_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"shouldChangeStatus":{"type":"boolean","default":false}},"required":["address","activities","partners","bankruptcy","historical_flags","collateral","company_termination","execution_seizure","ownership_transfer","contacts","has_office"]},{"type":"null"}]},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","error"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/company_details":{"get":{"operationId":"ekbcRouter.companyDetails","tags":["EKBC"],"parameters":[{"name":"P_COMM_NAME","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_COMM_BOOK_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CENTRAL_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_LICN_COMM_NO","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_OWNER_CIVIL_ID","in":"query","schema":{"type":"string","default":""},"allowEmptyValue":true,"allowReserved":true},{"name":"P_ROWS_COUNT","in":"query","schema":{"type":"string","default":"0"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"est_recid":{"anyOf":[{"type":"number"},{"type":"null"}]},"info_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}]},"trade_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"establishment_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"status_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"liquidation_status":{"anyOf":[{"enum":["Under Liquidation","Liquidated"],"type":"string"},{"type":"null"}]},"legal_structure_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_target_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_type_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"capital":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"shares_number":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"license":{"type":"object","properties":{"registry_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"central_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_civil_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"rec_id":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"commerce_chamber":{"anyOf":[{"type":"object","properties":{"membership_number":{"type":"string"},"registration_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["membership_number"]},{"type":"null"}]},"activities":{"type":"array","items":{"type":"object","properties":{"code":{"anyOf":[{"type":"number"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"flags":{"type":"array","items":{"type":"object","properties":{"desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_active":{"type":"boolean"}},"required":["is_active"]}},"licenses":{"type":"array","items":{"type":"object","properties":{"licns_recid":{"anyOf":[{"type":"number"},{"type":"null"}]},"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_main":{"type":"boolean"},"is_branch":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"branch_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_civil_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"registry_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["is_main"]}},"stops":{"type":"array","items":{"type":"object","properties":{"level":{"enum":["establishment","license"],"type":"string"},"source_recid":{"type":"number"},"licns_recid":{"anyOf":[{"type":"number"},{"type":"null"}]},"stop_type_recid":{"type":"number"},"stop_type_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"stop_cancel_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"stop_date":{"type":"string"},"is_active":{"type":"boolean"},"deactive_stop_type_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"deactive_stop_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["level","source_recid","stop_type_recid","stop_date","is_active"]}},"offices":{"type":"array","items":{"type":"object","properties":{"paci_number":{"type":"string"},"unit_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"building_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"floor":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_closed":{"type":"boolean"}},"required":["paci_number","is_closed"]}},"branches":{"type":"array","items":{"type":"object","properties":{"licns_recid":{"type":"number"},"branch_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"issue_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"activities":{"type":"array","items":{"type":"object","properties":{"code":{"anyOf":[{"type":"number"},{"type":"null"}]},"name":{"type":"string"}},"required":["code","name"]}},"premises":{"type":"array","items":{"type":"object","properties":{"paci_number":{"type":"string"},"unit_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"building_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"floor":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_closed":{"type":"boolean"}},"required":["paci_number","is_closed"]}}},"required":["licns_recid","activities","premises"]}},"owners":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["person","company"],"type":"string"},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"civil_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"share_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"share_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"still_partner":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_partner":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_manager":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_liquidator":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"license_owner":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"board_authorization":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"board_start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"board_end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"mobile_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"passport_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"passport_issue_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"passport_expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind"]}},"representatives":{"type":"array","items":{"type":"object","properties":{"owner_civil_id":{"type":"string"},"civil_id":{"type":"string"},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorization":{"type":"array","items":{"type":"string"}}},"required":["owner_civil_id","civil_id","authorization"]}}},"required":["capital","license","activities","flags","licenses","stops","offices","branches","owners","representatives"]},{"type":"null"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ekbc/company_details_by_owner":{"get":{"operationId":"ekbcRouter.companyDetailsByOwner","tags":["EKBC"],"parameters":[{"name":"P_OWNER_CIVIL_ID","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"est_recid":{"anyOf":[{"type":"number"},{"type":"null"}]},"info_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}]},"trade_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"establishment_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"status_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"liquidation_status":{"anyOf":[{"enum":["Under Liquidation","Liquidated"],"type":"string"},{"type":"null"}]},"legal_structure_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_target_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_type_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"capital":{"type":"object","properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}]},"shares_number":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"license":{"type":"object","properties":{"registry_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"central_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_civil_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"rec_id":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"commerce_chamber":{"anyOf":[{"type":"object","properties":{"membership_number":{"type":"string"},"registration_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["membership_number"]},{"type":"null"}]},"activities":{"type":"array","items":{"type":"object","properties":{"code":{"anyOf":[{"type":"number"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"flags":{"type":"array","items":{"type":"object","properties":{"desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_active":{"type":"boolean"}},"required":["is_active"]}},"licenses":{"type":"array","items":{"type":"object","properties":{"licns_recid":{"anyOf":[{"type":"number"},{"type":"null"}]},"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_main":{"type":"boolean"},"is_branch":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"branch_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_civil_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"registry_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["is_main"]}},"stops":{"type":"array","items":{"type":"object","properties":{"level":{"enum":["establishment","license"],"type":"string"},"source_recid":{"type":"number"},"licns_recid":{"anyOf":[{"type":"number"},{"type":"null"}]},"stop_type_recid":{"type":"number"},"stop_type_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"stop_cancel_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"stop_date":{"type":"string"},"is_active":{"type":"boolean"},"deactive_stop_type_desc":{"anyOf":[{"type":"string"},{"type":"null"}]},"deactive_stop_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["level","source_recid","stop_type_recid","stop_date","is_active"]}},"offices":{"type":"array","items":{"type":"object","properties":{"paci_number":{"type":"string"},"unit_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"building_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"floor":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_closed":{"type":"boolean"}},"required":["paci_number","is_closed"]}},"branches":{"type":"array","items":{"type":"object","properties":{"licns_recid":{"type":"number"},"branch_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"name_en":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"issue_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"license_end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"activities":{"type":"array","items":{"type":"object","properties":{"code":{"anyOf":[{"type":"number"},{"type":"null"}]},"name":{"type":"string"}},"required":["code","name"]}},"premises":{"type":"array","items":{"type":"object","properties":{"paci_number":{"type":"string"},"unit_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"building_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"floor":{"anyOf":[{"type":"string"},{"type":"null"}]},"unit_type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_closed":{"type":"boolean"}},"required":["paci_number","is_closed"]}}},"required":["licns_recid","activities","premises"]}},"owners":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["person","company"],"type":"string"},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"civil_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"share_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"share_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"still_partner":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_partner":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_manager":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_liquidator":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"license_owner":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"board_authorization":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"board_start_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"board_end_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"licn_central_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"mobile_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"passport_no":{"anyOf":[{"type":"string"},{"type":"null"}]},"passport_issue_date":{"anyOf":[{"type":"string"},{"type":"null"}]},"passport_expiry_date":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["kind"]}},"representatives":{"type":"array","items":{"type":"object","properties":{"owner_civil_id":{"type":"string"},"civil_id":{"type":"string"},"name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorization":{"type":"array","items":{"type":"string"}}},"required":["owner_civil_id","civil_id","authorization"]}}},"required":["capital","license","activities","flags","licenses","stops","offices","branches","owners","representatives"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/eauth/lookup":{"get":{"operationId":"eauthRouter.lookup","summary":"Look up one eAuth certificate number","description":"Searches the number and, when a certificate has it, reads its details. A number nobody holds is `outcome: \"miss\"`, not an error. Rows are returned as the registry sent them.","tags":["EAUTH"],"parameters":[{"name":"number","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":9999999999},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CAPTCHA_FAILED"},"status":{"const":500},"message":{"type":"string","default":"The registry's captcha check failed or was rejected."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_TIMEOUT"},"status":{"const":500},"message":{"type":"string","default":"The registry did not answer in time."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_NETWORK"},"status":{"const":500},"message":{"type":"string","default":"The registry could not be reached."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNEXPECTED_RESPONSE"},"status":{"const":500},"message":{"type":"string","default":"The registry answered with something this client does not understand."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"WAF_BLOCKED"},"status":{"const":503},"message":{"type":"string","default":"The registry's firewall refused the request."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/eauth/unified":{"get":{"operationId":"eauthRouter.unified","summary":"List a company's eAuth certificates","description":"Each row carries a short-lived `token`; pass it to /eauth/unified-details to read that certificate without searching again.","tags":["EAUTH"],"parameters":[{"name":"unified","in":"query","required":true,"schema":{"type":"string","pattern":"^7\\d{9}$","description":"Unified National Number: 10 digits starting with 7."},"allowEmptyValue":true,"allowReserved":true,"description":"Unified National Number: 10 digits starting with 7."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CAPTCHA_FAILED"},"status":{"const":500},"message":{"type":"string","default":"The registry's captcha check failed or was rejected."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_TIMEOUT"},"status":{"const":500},"message":{"type":"string","default":"The registry did not answer in time."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_NETWORK"},"status":{"const":500},"message":{"type":"string","default":"The registry could not be reached."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNEXPECTED_RESPONSE"},"status":{"const":500},"message":{"type":"string","default":"The registry answered with something this client does not understand."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"WAF_BLOCKED"},"status":{"const":503},"message":{"type":"string","default":"The registry's firewall refused the request."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/eauth/unified-details":{"get":{"operationId":"eauthRouter.unifiedDetails","summary":"Read one of a company's eAuth certificates","description":"With `token` (from an /eauth/unified call just made) it reads the details directly and `row` is null. Without one it searches again for a fresh token and returns that row too; `details` is null when the company no longer lists the certificate.","tags":["EAUTH"],"parameters":[{"name":"unified","in":"query","required":true,"schema":{"type":"string","pattern":"^7\\d{9}$","description":"Unified National Number: 10 digits starting with 7."},"allowEmptyValue":true,"allowReserved":true,"description":"Unified National Number: 10 digits starting with 7."},{"name":"eAuthNumber","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{10}$"},"allowEmptyValue":true,"allowReserved":true},{"name":"token","in":"query","required":false,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CAPTCHA_FAILED"},"status":{"const":500},"message":{"type":"string","default":"The registry's captcha check failed or was rejected."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_TIMEOUT"},"status":{"const":500},"message":{"type":"string","default":"The registry did not answer in time."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_NETWORK"},"status":{"const":500},"message":{"type":"string","default":"The registry could not be reached."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNEXPECTED_RESPONSE"},"status":{"const":500},"message":{"type":"string","default":"The registry answered with something this client does not understand."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"WAF_BLOCKED"},"status":{"const":503},"message":{"type":"string","default":"The registry's firewall refused the request."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/sijilat/search":{"get":{"operationId":"sijilatRouter.search","tags":["Sijilat"],"parameters":[{"name":"cr_no","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"CR number"},"allowEmptyValue":true,"allowReserved":true,"description":"CR number"},{"name":"name_en","in":"query","schema":{"type":"string","minLength":2,"description":"English commercial name keyword"},"allowEmptyValue":true,"allowReserved":true,"description":"English commercial name keyword"},{"name":"name_ar","in":"query","schema":{"type":"string","minLength":2,"description":"Arabic commercial name keyword"},"allowEmptyValue":true,"allowReserved":true,"description":"Arabic commercial name keyword"},{"name":"reg_date_from","in":"query","schema":{"type":"string","pattern":"^\\d{2}\\/\\d{2}\\/\\d{4}$","description":"Registration date in Sijilat's dd/mm/yyyy format"},"allowEmptyValue":true,"allowReserved":true,"description":"Registration date in Sijilat's dd/mm/yyyy format"},{"name":"reg_date_to","in":"query","schema":{"type":"string","pattern":"^\\d{2}\\/\\d{2}\\/\\d{4}$","description":"Registration date in Sijilat's dd/mm/yyyy format"},"allowEmptyValue":true,"allowReserved":true,"description":"Registration date in Sijilat's dd/mm/yyyy format"},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1},"allowEmptyValue":true,"allowReserved":true},{"name":"page_size","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/sijilat/details":{"get":{"operationId":"sijilatRouter.details","tags":["Sijilat"],"parameters":[{"name":"cr_no","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d+$","description":"CR number"},"allowEmptyValue":true,"allowReserved":true,"description":"CR number"},{"name":"branch_no","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d+$","default":"1","description":"Branch number (1 = main)"},"allowEmptyValue":true,"allowReserved":true,"description":"Branch number (1 = main)"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"cr_no":{"type":"string"},"branch_no":{"type":"string"},"fetched_at":{"type":"string","format":"date-time","x-native-type":"date"},"from_cache":{"type":"boolean"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"CompleteCRDetails in English"},"data_ar":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"CompleteCRDetails in Arabic (localized descriptions: status, company type, activities, ...)"}},"required":["cr_no","branch_no","fetched_at","from_cache","data","data_ar"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/kcci/search":{"get":{"operationId":"kcciRouter.Search","tags":["KCCI"],"parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"language","in":"query","required":false,"schema":{"enum":["english","arabic"],"type":"string","default":"english"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"member_no":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"address":{"type":"string"},"phone_or_fax":{"type":"string"},"email":{"type":"string"},"website":{"type":"string"},"trade_cr_no":{"type":"string"},"authorized_capital":{"type":"string"},"payment_date":{"type":"string"},"permit_expiry":{"type":"string"},"membership_no":{"type":"string"},"registration_date":{"type":"string"},"activities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"}},"required":["name","code"]}},"ownerships":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"nationality":{"type":"string"},"position":{"type":"string"}},"required":["name","nationality","position"]}}},"required":["activities","ownerships"]},{"type":"null"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/kcci/members":{"get":{"operationId":"kcciRouter.Members","summary":"List KCCI members","description":"Search member listings, 50 per page. Does not fetch individual company details.","tags":["KCCI"],"parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Company name or member number; KCCI does not accept an empty search."},"allowEmptyValue":true,"allowReserved":true,"description":"Company name or member number; KCCI does not accept an empty search."},{"name":"language","in":"query","required":false,"schema":{"enum":["english","arabic"],"type":"string","default":"english"},"allowEmptyValue":true,"allowReserved":true},{"name":"search_by","in":"query","required":false,"schema":{"enum":["auto","name","member_no"],"type":"string","default":"auto","description":"Auto searches numeric text as a member number and other text as a company name."},"allowEmptyValue":true,"allowReserved":true,"description":"Auto searches numeric text as a member number and other text as a company name."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000000,"default":1,"description":"One-based results page. KCCI returns 50 members per page."},"allowEmptyValue":true,"allowReserved":true,"description":"One-based results page. KCCI returns 50 members per page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"member_no":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"address":{"type":"string"},"phone_or_fax":{"type":"string"},"email":{"type":"string"},"website":{"type":"string"}},"required":["name","member_no"]}},"skipped":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Rows on this page left out of members because KCCI gave them no name or no member number."},"page":{"type":"integer","minimum":1,"maximum":9007199254740991},"page_size":{"const":50},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"total_pages":{"type":"integer","minimum":0,"maximum":9007199254740991},"has_more":{"type":"boolean"},"next_page":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]}},"required":["members","skipped","page","page_size","total","total_pages","has_more","next_page"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci/address":{"get":{"operationId":"paciRouter.Address","tags":["PACI"],"parameters":[{"name":"paci","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci/outletInBuilding":{"get":{"operationId":"paciRouter.OutletsInBuilding","tags":["PACI"],"parameters":[{"name":"paci","in":"query","required":true,"schema":{"type":"number"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci/autocomplete":{"get":{"operationId":"paciRouter.AutoComplete","tags":["PACI"],"parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"IsSuccessful":{"type":"boolean"},"Result":{"type":"array","items":{"type":"object","properties":{"ID":{"type":"string"},"ResultSource":{"type":"string"},"FeatureType":{"type":"string"},"TitleArabic":{"type":"string"},"TitleEnglish":{"type":"string"},"DetailsArabic":{"type":"string"},"DetailsEnglish":{"type":"string"},"X":{"type":"number"},"Y":{"type":"number"},"Distance":{}},"required":["ID","ResultSource","FeatureType","TitleArabic","TitleEnglish","DetailsArabic","DetailsEnglish","X","Y"]}},"Error":{},"RequestTime":{}},"required":["IsSuccessful","Result"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci/unitOwner":{"get":{"operationId":"paciRouter.UnitOwner","tags":["PACI"],"parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci/geometry":{"get":{"operationId":"paciRouter.Geometry","tags":["PACI"],"parameters":[{"name":"paci","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci-stats/portal/category":{"get":{"operationId":"paciStatsRouter.Category","summary":"List one category of PACI's statistics portal","description":"The bulletins stats.paci.gov.kw lists on one SubCategory page, in the portal's order. Reads the page; downloads nothing.","tags":["PACI STATS"],"parameters":[{"name":"lang","in":"query","required":true,"schema":{"enum":["ar","en"],"type":"string","description":"The portal language the bulletin is listed in"},"allowEmptyValue":true,"allowReserved":true,"description":"The portal language the bulletin is listed in"},{"name":"id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":8,"description":"SubCategory.aspx?ID=<id>"},"allowEmptyValue":true,"allowReserved":true,"description":"SubCategory.aspx?ID=<id>"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"}},"required":["index","title"]}}},"required":["title","items"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci-stats/portal/files":{"get":{"operationId":"paciStatsRouter.PortalFiles","summary":"Name the stored file behind each bulletin of a category","description":"The rows of one SubCategory page with the portal's own name for each row's stored file. A bulletin's new issue is a new stored file under a new name, so a caller that holds a name does not need the file again. Takes no file: each answer is dropped once its headers are in.","tags":["PACI STATS"],"parameters":[{"name":"lang","in":"query","required":true,"schema":{"enum":["ar","en"],"type":"string","description":"The portal language the bulletin is listed in"},"allowEmptyValue":true,"allowReserved":true,"description":"The portal language the bulletin is listed in"},{"name":"id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":8,"description":"SubCategory.aspx?ID=<id>"},"allowEmptyValue":true,"allowReserved":true,"description":"SubCategory.aspx?ID=<id>"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"name":{"type":"string"}},"required":["index","title","name"]}}},"required":["title","items"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci-stats/portal/file":{"get":{"operationId":"paciStatsRouter.PortalFile","summary":"Download one bulletin's Excel workbook","description":"The workbook behind one row of a category page, as the portal sends it. The file name is the portal's own name for the stored file, not the bulletin's title.","tags":["PACI STATS"],"parameters":[{"name":"lang","in":"query","required":true,"schema":{"enum":["ar","en"],"type":"string","description":"The portal language the bulletin is listed in"},"allowEmptyValue":true,"allowReserved":true,"description":"The portal language the bulletin is listed in"},{"name":"id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":8,"description":"SubCategory.aspx?ID=<id>"},"allowEmptyValue":true,"allowReserved":true,"description":"SubCategory.aspx?ID=<id>"},{"name":"index","in":"query","required":true,"schema":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The row's index from /portal/category"},"allowEmptyValue":true,"allowReserved":true,"description":"The row's index from /portal/category"}],"responses":{"200":{"description":"OK","content":{}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci-stats/tableau/workbook":{"get":{"operationId":"paciStatsRouter.TableauWorkbook","summary":"List the views of one of PACI's Tableau Public workbooks","description":"The workbook's views and its last-update date, from Tableau Public's workbook API. No figures.","tags":["PACI STATS"],"parameters":[{"name":"workbook","in":"query","required":true,"schema":{"enum":["HistoricalEn","HistoricalAr","GeoStatEn","GeoStatAr"],"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"workbook":{"type":"string"},"lastUpdate":{"type":"string"},"views":{"type":"array","items":{"type":"string"}}},"required":["workbook","lastUpdate","views"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci-stats/tableau/payload":{"get":{"operationId":"paciStatsRouter.TableauPayload","summary":"Fetch the raw data payload of one Tableau view","description":"The VizQL bootstrapSession payload of a view, byte for byte as Tableau sent it. `year` filters NationalityOverYears to one year.","tags":["PACI STATS"],"parameters":[{"name":"workbook","in":"query","required":true,"schema":{"enum":["HistoricalEn","HistoricalAr","GeoStatEn","GeoStatAr"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"view","in":"query","required":true,"schema":{"type":"string","pattern":"^[^/?#&]{1,120}$"},"allowEmptyValue":true,"allowReserved":true},{"name":"year","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}$"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/paci-stats/hosts":{"get":{"operationId":"paciStatsRouter.Hosts","summary":"Probe PACI's other statistics hosts","description":"Whether stat.paci.gov.kw and kuwaitstat.paci.gov.kw answer, over https and http. Reads nothing from them.","tags":["PACI STATS"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"ms":{"type":"number"},"bytes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","status","error","ms","bytes","title"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/emagazineKSA/search":{"get":{"operationId":"emagazineKSARouter.Search","summary":"Search Saudi MoC publications","description":"List/search publications from `newspaperclient.mc.gov.sa`. Each result contains a `publishRefId` that you pass to `/details` for full content (and, for entries with file attachments, on to `/pdf` to download them). Defaults: page 1, 6 results, sorted by most-read.","tags":["EMAGAZINE"],"parameters":[{"name":"orderByMostReading","in":"query","schema":{"anyOf":[{"type":"boolean","default":true},{"type":"null"}],"description":"Sort by most-read first. Set false for stable pagination across a crawl."},"allowEmptyValue":true,"allowReserved":true,"description":"Sort by most-read first. Set false for stable pagination across a crawl."},{"name":"pageNumber","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1},{"type":"null"}],"description":"1-indexed page number."},"allowEmptyValue":true,"allowReserved":true,"description":"1-indexed page number."},{"name":"pageSize","in":"query","schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":49,"default":6},{"type":"null"}],"description":"Results per page. Upstream caps at 49."},"allowEmptyValue":true,"allowReserved":true,"description":"Results per page. Upstream caps at 49."},{"name":"searchText","in":"query","schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Free-text search across publications. ASCII works reliably; Arabic may intermittently 500 upstream."},"allowEmptyValue":true,"allowReserved":true,"description":"Free-text search across publications. ASCII works reliably; Arabic may intermittently 500 upstream."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"publishRefId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique publication ID. Pass this to /details or /pdf."},"publishDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 Gregorian publish date."},"publishDateHijri":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Hijri publish date (DD/MM/YYYY)."},"system":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Top-level system (e.g. السجلات / CRs)."},"service":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Service category."},"template":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Template used for the publication."},"language":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Publication language."},"templateTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Human-readable template title."}},"additionalProperties":{}}},{"type":"null"}],"description":"Page of publication summaries."},"pageNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Echoed page number."},"pageSize":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Echoed page size."},"totalItemsCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Total matching publications across all pages."}},"additionalProperties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/emagazineKSA/details":{"get":{"operationId":"emagazineKSARouter.Details","summary":"Fetch publication details","description":"Returns the full publication payload: articles (rendered text) and parameters (structured fields). Parameters whose `extension` and `mimeType` are non-null are file attachments — pass `parameterNameKey` + `parameterValue` to `/pdf` to download them.","tags":["EMAGAZINE"],"parameters":[{"name":"publishRefId","in":"query","required":true,"schema":{"type":"string","description":"Publication reference ID (obtained from /search response items)."},"allowEmptyValue":true,"allowReserved":true,"description":"Publication reference ID (obtained from /search response items)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publishRefId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Echoed publication reference ID."},"service":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Service category."},"template":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Template used."},"templateTitle":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Human-readable template title."},"language":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Publication language."},"articles":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional article heading."},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Article body text."}},"additionalProperties":{}}},{"type":"null"}],"description":"Rendered text content of the publication."},"parameters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"parameterType":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Data type classification (Text, File, etc.)."},"parameterViewType":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"How the field should be rendered (Data, etc.)."},"parameterNameKey":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Stable parameter key, e.g. \"$CrName\", \"$ContractFile\". Used as `parameterNameKey` for /pdf."},"parameterValue":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parameter value. For file parameters this is the file UUID — pass it as `fileValueCode` to /pdf."},"extension":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"File extension if this parameter is a file attachment, e.g. \"PDF\". Null for text parameters."},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MIME type if file, e.g. \"application/pdf\". Null for text parameters."}},"additionalProperties":{}}},{"type":"null"}],"description":"Structured fields. File entries (extension/mimeType non-null) feed /pdf."},"metaParameters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"parameterType":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Numeric ID of the reference entity."},"nameAr":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Arabic display name."},"nameEn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"English display name."}},"additionalProperties":{}},{"type":"null"}],"description":"Data type classification."},"parameterNameKey":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Stable meta parameter key."},"parameterValue":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Meta parameter value."}},"additionalProperties":{}}},{"type":"null"}],"description":"Auxiliary metadata fields (e.g. national number)."}},"additionalProperties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/emagazineKSA/pdf":{"get":{"operationId":"emagazineKSARouter.Pdf","summary":"Download a publication file attachment","description":"Fetches a file attached to a publication (typically a PDF for capital-change / shareholder-amendment decisions, but the endpoint is format-agnostic — the response `mimeType` reflects the actual type). Discover the three params by inspecting `/details` parameters where `extension`/`mimeType` are non-null. Response body wraps the file bytes as base64.","tags":["EMAGAZINE"],"parameters":[{"name":"publishRefId","in":"query","required":true,"schema":{"type":"string","description":"Publication reference ID (same value used by /details)."},"allowEmptyValue":true,"allowReserved":true,"description":"Publication reference ID (same value used by /details)."},{"name":"parameterNameKey","in":"query","required":true,"schema":{"type":"string","description":"The file parameter's key from the /details response, e.g. $ContractFile (URL-encode the $ as %24)."},"allowEmptyValue":true,"allowReserved":true,"description":"The file parameter's key from the /details response, e.g. $ContractFile (URL-encode the $ as %24)."},{"name":"fileValueCode","in":"query","required":true,"schema":{"type":"string","description":"The file UUID — the `parameterValue` of the corresponding file-typed parameter in /details."},"allowEmptyValue":true,"allowReserved":true,"description":"The file UUID — the `parameterValue` of the corresponding file-typed parameter in /details."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"base64":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64-encoded file bytes. Decode to obtain the raw file."},"fileName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Server-assigned filename."},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Actual file MIME type, e.g. \"application/pdf\"."}},"additionalProperties":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/sole/byLicid":{"get":{"operationId":"soleRouter.byLicid","tags":["SOLE"],"parameters":[{"name":"lcid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/product":{"get":{"operationId":"luluHypermarketRouter.productById","tags":["LULU"],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/search":{"get":{"operationId":"luluHypermarketRouter.search","tags":["LULU"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1},"allowEmptyValue":true,"allowReserved":true},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"allowEmptyValue":true,"allowReserved":true},{"name":"sorter","in":"query","required":false,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/category":{"get":{"operationId":"luluHypermarketRouter.category","tags":["LULU"],"parameters":[{"name":"categoryId","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1},"allowEmptyValue":true,"allowReserved":true},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"allowEmptyValue":true,"allowReserved":true},{"name":"sorter","in":"query","required":false,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/category-details":{"get":{"operationId":"luluHypermarketRouter.categoryDetails","tags":["LULU"],"parameters":[{"name":"pk","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/pretty-url":{"get":{"operationId":"luluHypermarketRouter.prettyUrl","tags":["LULU"],"parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/autocomplete":{"get":{"operationId":"luluHypermarketRouter.autocomplete","tags":["LULU"],"parameters":[{"name":"term","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/lulu-hypermarket/sitemap":{"get":{"operationId":"luluHypermarketRouter.sitemap","tags":["LULU"],"parameters":[{"name":"locale","in":"query","schema":{"enum":["en-kw","ar-kw","en-ae","ar-ae","en-sa","ar-sa","en-qa","ar-qa","en-om","ar-om","en-bh","ar-bh"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/noon/search":{"get":{"operationId":"noonRouter.search","tags":["NOON"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["kuwait-en","kuwait-ar","uae-en","uae-ar","saudi-en","saudi-ar","egypt-en","egypt-ar","iraq-en","iraq-ar","oman-en","oman-ar","bahrain-en","bahrain-ar","qatar-en","qatar-ar"],"type":"string","default":"kuwait-en"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"allowEmptyValue":true,"allowReserved":true},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/noon/suggest":{"get":{"operationId":"noonRouter.suggest","tags":["NOON"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["kuwait-en","kuwait-ar","uae-en","uae-ar","saudi-en","saudi-ar","egypt-en","egypt-ar","iraq-en","iraq-ar","oman-en","oman-ar","bahrain-en","bahrain-ar","qatar-en","qatar-ar"],"type":"string","default":"kuwait-en"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/noon/product":{"get":{"operationId":"noonRouter.product","tags":["NOON"],"parameters":[{"name":"nasaId","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["kuwait-en","kuwait-ar","uae-en","uae-ar","saudi-en","saudi-ar","egypt-en","egypt-ar","iraq-en","iraq-ar","oman-en","oman-ar","bahrain-en","bahrain-ar","qatar-en","qatar-ar"],"type":"string","default":"kuwait-en"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/noon/sitemap":{"get":{"operationId":"noonRouter.sitemap","tags":["NOON"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/xcite/search":{"get":{"operationId":"xciteRouter.search","tags":["XCITE"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/xcite/category":{"get":{"operationId":"xciteRouter.category","tags":["XCITE"],"parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/xcite/product":{"get":{"operationId":"xciteRouter.product","tags":["XCITE"],"parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/xcite/search-html":{"get":{"operationId":"xciteRouter.searchHtml","tags":["XCITE"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-kw","ar-kw"],"type":"string","default":"en-kw"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/xcite/sitemap":{"get":{"operationId":"xciteRouter.sitemap","tags":["XCITE"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/rathaan/home-widget":{"get":{"operationId":"rathaanRouter.homeWidget","tags":["RATHAAN"],"parameters":[{"name":"widget","in":"query","required":true,"schema":{"enum":["pfueatured","pnewarrv","recentviewd","best_deal","display","toprated","spl_slider","featuredprodsfooters","pnewarrv_footer"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["ar","en"],"type":"string","default":"ar"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/rathaan/search":{"get":{"operationId":"rathaanRouter.search","tags":["RATHAAN"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["ar","en"],"type":"string","default":"ar"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/rathaan/subcategory":{"get":{"operationId":"rathaanRouter.subcategory","tags":["RATHAAN"],"parameters":[{"name":"cid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"subid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"divid","in":"query","required":false,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["ar","en"],"type":"string","default":"ar"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/rathaan/division":{"get":{"operationId":"rathaanRouter.division","tags":["RATHAAN"],"parameters":[{"name":"cid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"subid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"divid","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"locale","in":"query","required":false,"schema":{"enum":["ar","en"],"type":"string","default":"ar"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/rathaan/categories":{"get":{"operationId":"rathaanRouter.categories","tags":["RATHAAN"],"parameters":[{"name":"locale","in":"query","schema":{"enum":["ar","en"],"type":"string","default":"ar"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/talabat/areas":{"get":{"operationId":"talabatRouter.areas","tags":["TALABAT"],"parameters":[{"name":"country","in":"query","schema":{"enum":["kuwait","ksa","bahrain","uae","oman","qatar"],"type":"string","default":"kuwait"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/talabat/restaurants":{"get":{"operationId":"talabatRouter.restaurants","deprecated":true,"tags":["TALABAT"],"parameters":[{"name":"country","in":"query","required":false,"schema":{"enum":["kuwait","ksa","bahrain","uae","oman","qatar"],"type":"string","default":"kuwait"},"allowEmptyValue":true,"allowReserved":true},{"name":"areaId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowEmptyValue":true,"allowReserved":true},{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/talabat/delivery-areas":{"get":{"operationId":"talabatRouter.deliveryAreas","tags":["TALABAT"],"parameters":[{"name":"country","in":"query","required":false,"schema":{"enum":["kuwait","ksa","bahrain","uae","oman","qatar"],"type":"string","default":"kuwait"},"allowEmptyValue":true,"allowReserved":true},{"name":"areaId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowEmptyValue":true,"allowReserved":true},{"name":"slug","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991,"default":1},"allowEmptyValue":true,"allowReserved":true},{"name":"pages","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20,"default":1,"description":"How many consecutive pages to walk from `page` (max 20); 15 vendors per page."},"allowEmptyValue":true,"allowReserved":true,"description":"How many consecutive pages to walk from `page` (max 20); 15 vendors per page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/talabat/vendors":{"get":{"operationId":"talabatRouter.vendors","tags":["TALABAT"],"parameters":[{"name":"latitude","in":"query","required":true,"schema":{"type":"number"},"allowEmptyValue":true,"allowReserved":true},{"name":"longitude","in":"query","required":true,"schema":{"type":"number"},"allowEmptyValue":true,"allowReserved":true},{"name":"countryId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowEmptyValue":true,"allowReserved":true},{"name":"areaId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowEmptyValue":true,"allowReserved":true},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":9007199254740991,"default":1},"allowEmptyValue":true,"allowReserved":true},{"name":"size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":5000,"default":30},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/talabat/menu":{"get":{"operationId":"talabatRouter.menu","tags":["TALABAT"],"parameters":[{"name":"country","in":"query","required":false,"schema":{"enum":["kuwait","ksa","bahrain","uae","oman","qatar"],"type":"string","default":"kuwait"},"allowEmptyValue":true,"allowReserved":true},{"name":"branchId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowEmptyValue":true,"allowReserved":true},{"name":"areaId","in":"query","required":true,"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"A talabat area the branch delivers to (e.g. the area it was listed under)."},"allowEmptyValue":true,"allowReserved":true,"description":"A talabat area the branch delivers to (e.g. the area it was listed under)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/talabat/product-choices":{"get":{"operationId":"talabatRouter.productChoices","tags":["TALABAT"],"parameters":[{"name":"branchId","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"itemId","in":"query","required":true,"schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/tender-sites/scan":{"get":{"operationId":"tenderSitesRouter.scan","summary":"Read a ministry's public tender page","description":"Reads every tender document the entity's site lists right now. Used by the weekly tender check (k3s-scrapers, tender-check).","tags":["TENDER SITES"],"parameters":[{"name":"entity","in":"query","required":true,"schema":{"enum":["aasu","kdipa","ku","moinfo","pahw","sab","zakat"],"type":"string","description":"Which entity's site to read."},"allowEmptyValue":true,"allowReserved":true,"description":"Which entity's site to read."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"docs":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"},"number":{"type":"string"},"title":{"type":"string"},"bids":{"type":"array","items":{"type":"object","properties":{"company":{"type":"string"},"price":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"note":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["company","price"]}}},"required":["section","label","url"]}}},"required":["docs"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SITE_BLOCKED"},"status":{"const":503},"message":{"type":"string","default":"The site refused the request (Cloudflare or 403)."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/gis/manifest":{"get":{"operationId":"gisRouter.Manifest","summary":"List KSA-egress GIS passthrough routes","description":"Returns the live set of ArcGIS REST passthroughs served from the saudi-egress pod. Each entry has an `arcgisRoot` URL that can be pasted into QGIS as a new ArcGIS REST Server Connection.","tags":["GIS"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"routes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"base":{"type":"string","format":"uri"},"arcgisRoot":{"type":"string","format":"uri"},"upstream":{"type":"string"},"kind":{"const":"arcgis-rest"},"notes":{"type":"string"}},"required":["id","base","arcgisRoot","upstream","kind","notes"]}}},"required":["routes"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/translate":{"post":{"operationId":"translateRouter.Translate","tags":["Translate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"source":{"enum":["arb_Arab","eng_Latn"],"type":"string","default":"arb_Arab"},"target":{"enum":["arb_Arab","eng_Latn"],"type":"string","default":"eng_Latn"}},"required":["text"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"translations":{"type":"array","items":{"type":"string"}},"source":{"enum":["arb_Arab","eng_Latn"],"type":"string"},"target":{"enum":["arb_Arab","eng_Latn"],"type":"string"}},"required":["translations","source","target"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/transliterate":{"post":{"operationId":"transliterateRouter.Transliterate","tags":["Translate"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"source":{"enum":["ar","en"],"type":"string","default":"ar"}},"required":["text"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"transliterations":{"type":"array","items":{"type":"string"}},"source":{"enum":["ar","en"],"type":"string"}},"required":["transliterations","source"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/normalize":{"post":{"operationId":"normalizeRouter.Normalize","tags":["Normalize"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"enum":["company","person"],"type":"string"},"texts":{"type":"array","minItems":1,"maxItems":5000,"items":{"type":"string"}}},"required":["entity","texts"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"enum":["company","person"],"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"slots":{"anyOf":[{"type":"object","properties":{"first_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"second_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"third_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"fourth_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"fifth_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"sixth_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"seventh_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"eighth_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"ninth_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"tenth_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"eleventh_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]},"family_name_ar":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["first_name_ar","second_name_ar","third_name_ar","fourth_name_ar","fifth_name_ar","sixth_name_ar","seventh_name_ar","eighth_name_ar","ninth_name_ar","tenth_name_ar","eleventh_name_ar","family_name_ar"]},{"type":"null"}]}},"required":["text","name","title","slots"]}}},"required":["entity","results"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Your request couldn’t be processed because one or more inputs are invalid."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"NOT_FOUND"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL_SERVER_ERROR"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}}}}