{"openapi":"3.0.0","servers":[{"url":"https:\/\/api.digitalcore.telkomsel.com"}],"info":{"title":"Location Verification v3","version":"2.0"},"paths":{"\/digihub\/subscheck\/locationverificationv3":{"post":{"summary":"Location Verification v3","operationId":"Location Verification v3","description":"API to GET score location customer.","parameters":[{"in":"header","name":"api_key","example":"e688u2hgpkzjd244wecywwv8","description":"API Key \/ Package Key from Digihub","required":true,"schema":{"type":"string"}},{"in":"header","name":"x-signature","example":"ff080f3200a5945deeb59ad65e2b33788f5df49066a82afcf8b6d5bf43ff76ea","description":"SHA256 (API Key + Secret Key + timeStamp). [More info](https:\/\/digihub.telkomsel.com\/documentation\/consumer-guide\/api-authentication)","required":true,"schema":{"type":"string"}},{"in":"header","name":"Content-Type","required":true,"schema":{"type":"string","enum":["application\/json"]}}],"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RequestBody"},"examples":{"By long and lat":{"value":{"transaction":{"transaction_id":"1643624695_00000001","consent_id":"consent_01","msisdn":"6281110xxxx"},"parameter":{"location_type":"home","long":"106.xx","lat":"-6.xxx"}}},"By address":{"value":{"transaction":{"transaction_id":"1643624695_00000001","consent_id":"consent_01","msisdn":"6281110xxxx"},"parameter":{"location_type":"home","address":"Jl. Mahoni xxxx"}}},"By zipcode":{"value":{"transaction":{"transaction_id":"1643624695_00000001","consent_id":"consent_01","msisdn":"6281110xxxx"},"parameter":{"location_type":"home","zip_code":"17xxx"}}}}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResponseBodySuccess"}}}},"400":{"description":"Invalid MSISDN","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ResponseBodyError"},"examples":{"Invalid MSISDN":{"value":{"transaction":{"transaction_id":"1643624695_00000187","status_code":"20002","status_desc":"Invalid MSISDN"}}}}}}}}}}},"components":{"schemas":{"RequestBody":{"type":"object","required":["transaction","parameter"],"properties":{"transaction":{"$ref":"#\/components\/schemas\/RequestTransaction"},"parameter":{"$ref":"#\/components\/schemas\/RequestParameter"}}},"RequestTransaction":{"type":"object","required":["msisdn","consent_id","code"],"properties":{"msisdn":{"description":"MSISDN starts with \u201c62\u201d for Indonesia calling code.","type":"string","example":"62811xx"},"consent_id":{"description":"Consent id which is registered.","type":"string","example":"Ek2arznC2uxeknsXbvdCChqbjAU1SBJ3qUoHEH19y4O74GxZzG0mUKKI\/tuHPNbN2KNd+JZ3fYoodC\/24A=="},"code":{"description":"Code api identification v2 given by Telkomsel.","type":"string","example":"y473hkpghfmju7zxmtdjgfkr"}}},"RequestParameter":{"type":"object","required":["home_work"],"properties":{"transaction_id":{"description":"Transaction ID","type":"string","example":"040520181127010000"},"home_work":{"description":"Home = 1, Work= 0","type":"string","example":"1","enum":["0","1"]},"long":{"description":"Longitude","type":"string","example":"-6.247895"},"lat":{"description":"Latitude","type":"string","example":"106.821312"},"address":{"description":"Format address : Street, Village\/Urban Commune, District , City\/Regency, Province","type":"string","example":"Jl. Kemang Selatan No.30 RT9 RW1, Bangka, Mampang Prapatan,   Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta"},"zip_code":{"description":"Postal code","type":"string","example":"12790"}}},"ResponseBodySuccess":{"properties":{"transaction_id":{"description":"Transaction ID","type":"string","example":"1643624695_00000187"},"status_code":{"description":"Status code","type":"string","example":"00000"},"status_desc":{"description":"Status descriptiona","type":"string","example":"success"},"score":{"description":"Status descriptiona","type":"string","example":"2"}}},"ResponseBodyError":{"type":"object","required":["transaction"],"properties":{"transaction":{"$ref":"#\/components\/schemas\/ResponseTransaction"}}},"ResponseTransaction":{"type":"object","required":["transaction_id","status_code","status_desc"],"properties":{"transaction_id":{"description":"Transaction ID","type":"string","example":"040520181127010000"},"status_code":{"description":"Status code","type":"string","example":"00000"},"status_desc":{"description":"Status descriptiona","type":"string","example":"Success"}}}}}}