Partners API

The Partners API is a tool that allows authorized agency partners to easily access government services for their clients. It's designed to be user-friendly and customizable, so agency partners can integrate e-government services into their own applications and provide a seamless experience for their clients. With this API, agency partners can save time and money while helping their clients access government services more efficiently.

POST Ask for authorization

https://ws.e.gov.ph/api/pub/request_authorization

HEADERS

Accept

application/json

X-Secret-Code

{{SECRET_CODE}}

X-Secret-Token

{{SECRET_TOKEN}}

BODY FormData

qr_value

{{QR_VALUE_FROM_EGOV_APP}}

Example Request

Copy
curl --location --request POST 'https://ws.e.gov.ph/api/pub/request_authorization' \ --header 'Accept: application/json' \ --header 'X-Secret-Code: {{SECRET_CODE}}' \ --header 'X-Secret-Token: {{SECRET_TOKEN}}' \ --form 'qr_value="{{QR_VALUE_FROM_EGOV_APP}}"'

Example Response

Copy
{ "status": 200, "message": "OK", "data": { "id": 7469, "pcn": "MVPCBEUVCGPZR", "scope": "PROFILE_INQUIRE", "tracking_no": "6476C7DFCF36B", "callback_url": null, "is_accepted": null, "accepted_at": null, "payload": { "qr_value": "eyJpdiI6ImJQcG1INyt5RkF5QlpYXC91Zlh5NCtBPT0iLCJ2YWx1ZSI6ImtHcUYwek5DTkpXZWw1SklHSFd4TDlKQnRCQ3M3aW1iYmtkdHBrWTdMWFU9IiwibWFjIjoiZmQwNmRhMDM4ZjhjMWU0MWQxOWIzOGM1N2JmYmI5YWMwOTdiYWIxMjU1YjdmNWUwY2JmOWMwODRhYzE0ZGVmYyJ9" }, "response": null } }

GET Inquire Tracking Number

https://ws.e.gov.ph/api/pub/inquire?tracking_no=63F2EB6DE2E7E

HEADERS

Accept

application/json

X-Secret-Code

{{SECRET_CODE}}

X-Secret-Token

{{SECRET_TOKEN}}

PARAMS

tracking_no

{{TRACKING_NO_FROM_ASK_AUTHORIZATION}}

Example Request

Copy
curl --location --request GET 'https://ws.e.gov.ph/api/pub/inquire?tracking_no={{TRACKING_NO_FROM_ASK_AUTHORIZATION}}' \ --header 'Accept: application/json' \ --header 'X-Secret-Code: {{SECRET_CODE}}' \ --header 'X-Secret-Token: {{SECRET_TOKEN}}' \ --header 'Accept: application/json'

Example Response

Copy
{ "status": 200, "message": "OK", "data": { "id": 7469, "pcn": "MVPCBEUVCGPZR", "scope": "PROFILE_INQUIRE", "tracking_no": "6476C7DFCF36B", "callback_url": null, "is_accepted": 1, "accepted_at": "2023-05-31 12:07:25", "payload": { "qr_value": "eyJpdiI6ImJQcG1INyt5RkF5QlpYXC91Zlh5NCtBPT0iLCJ2YWx1ZSI6ImtHcUYwek5DTkpXZWw1SklHSFd4TDlKQnRCQ3M3aW1iYmtkdHBrWTdMWFU9IiwibWFjIjoiZmQwNmRhMDM4ZjhjMWU0MWQxOWIzOGM1N2JmYmI5YWMwOTdiYWIxMjU1YjdmNWUwY2JmOWMwODRhYzE0ZGVmYyJ9" }, "response": { "uniqid": "MVPCBEUVCGPZR", "email": "[email protected]", "birth_date": "1998-01-24", "first_name": "Josie", "middle_name": null, "last_name": "Dela Cruz", "suffix": null, "gender": "female", "nationality": "Filipino", "photo": "https://ucarecdn.com/7c0976e2-a60f-46eb-a97a-999e60e0a1eb/", "mobile": "+639090000000", "address": "#100 UGO TEST ADDRESS LINE 2, DOñA IMELDA QUEZON CITY, NATIONAL CAPITAL REGION (NCR), PHILIPPINES ", "street": "#100 Ugo", "barangay": "Doña Imelda", "municipality": "QUEZON CITY", "region": "NATIONAL CAPITAL REGION (NCR)", "province": "NATIONAL CAPITAL REGION (NCR)", "country": "Philippines", "postal": null, "address_line_2": "test address line 2", "barangay_code": "137404031", "province_code": "133900000", "municipality_code": "137404000", "region_code": "130000000", "country_id": 175, "foreign_address": null } } }

GET Get Profile via eGov QRCode

https://ws.e.gov.ph/api/pub/profile_by_qr?qr_value=yJzdWIiOjcxNjA4LCJpc3MiOiJodHRwOi8vbG

HEADERS

Accept

application/json

X-Secret-Code

{{SECRET_CODE}}

X-Secret-Token

{{SECRET_TOKEN}}

PARAMS

qr_value

{{QR_VALUE_FROM_EGOV_APP}}

Example Request

Copy
curl --location --request GET 'https://ws.e.gov.ph/api/pub/profile_by_qr?qr_value={{QR_VALUE_FROM_EGOV_APP}}' \ --header 'Accept: application/json' \ --header 'X-Secret-Code: {{SECRET_CODE}}' \ --header 'X-Secret-Token: {{SECRET_TOKEN}}' \ --header 'Accept: application/json'

Example Response

Copy
{ "status": 200, "message": "OK", "data": { "id": 7470, "pcn": "-", "scope": "PROFILE_VIEW", "tracking_no": "6476C80D54090", "callback_url": "https://test.url", "is_accepted": null, "accepted_at": null, "payload": { "qr_value": "eyJpdiI6ImJQcG1INyt5RkF5QlpYXC91Zlh5NCtBPT0iLCJ2YWx1ZSI6ImtHcUYwek5DTkpXZWw1SklHSFd4TDlKQnRCQ3M3aW1iYmtkdHBrWTdMWFU9IiwibWFjIjoiZmQwNmRhMDM4ZjhjMWU0MWQxOWIzOGM1N2JmYmI5YWMwOTdiYWIxMjU1YjdmNWUwY2JmOWMwODRhYzE0ZGVmYyJ9" }, "response": { "uniqid": "MVPCBEUVCGPZR", "email": "[email protected]", "birth_date": "1998-01-24", "first_name": "Josie", "middle_name": null, "last_name": "Dela Cruz", "suffix": null, "gender": "female", "nationality": "Filipino", "photo": "https://ucarecdn.com/7c0976e2-a60f-46eb-a97a-999e60e0a1eb/", "mobile": "+639090000000", "address": "#100 UGO TEST ADDRESS LINE 2, DOñA IMELDA QUEZON CITY, NATIONAL CAPITAL REGION (NCR), PHILIPPINES ", "street": "#100 Ugo", "barangay": "Doña Imelda", "municipality": "QUEZON CITY", "region": "NATIONAL CAPITAL REGION (NCR)", "province": "NATIONAL CAPITAL REGION (NCR)", "country": "Philippines", "postal": null, "address_line_2": "test address line 2", "barangay_code": "137404031", "province_code": "133900000", "municipality_code": "137404000", "region_code": "130000000", "country_id": 175, "foreign_address": null } } }