API Endpoint Documentation
Updated: Tue, 20-Aug-2019 | Previous: Mon, 07-May-2018
# | Method | Endpoint Address | Updated | Previous |
---|---|---|---|
1 | POST | 01-Aug-2017 | |
2 | GET |
https://api.ppa.com.ph/api/opce/GetPartyClientListAsync (Obsolete)
| 10-Dec-2017 |
3 | GET |
https://api.ppa.com.ph/api/opce/GetCommodityListAsync (Obsolete)
|
10-Dec-2017 |
4 | POST | 20-Aug-2019 | 01-Aug-2017 | |
5 | POST | 20-Aug-2019 | 20-Jan-2016 | |
6 | GET | 01-May-2018 |
Method | Endpoint Address / Description | Updated | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POST |
https://api.ppa.com.ph/api/signin/AuthorizeLogInAsync
Authorize OPCE registered user. This API must be accomplished or performed before any or other endpoints can be used by the subscriber. The token/login validity is 7 days. You DO NOT NEED to authorize or login everytime you make a post exemption request. Once your request is denied or authorization has expired, kindly issue another authorize request in order to be granted for posting. If you are authorizing from a web application, there is NO NEED to persist the token as we have dual-authentication methods. First being a cookie-based token method for which you DO NOT need to send the token for every request to be authorized, because OPCE stores the token in the cookie header in the request cookie. The second, if you are using other application types such as Windows, Android, iOS, etc. Then you must persist the token and send it using the header Authorization and the Bearer value plus the token for every request. Request Parameters:
|
01-Aug-2017 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET |
https://api.ppa.com.ph/api/opce/GetPartyClientListAsync/?ver=
• Gets all the list of the PEZA accredited list of parties. • The list of parties must be saved or persisted on the subscriber side as a transaction lookup instead of acquiring the list on every request. • The list should be updated based on version in a timely manner, e.g. every 12 midnight. Read request parameter below. • NOTE: Must be authorized or logged-in to use. Request Parameters:
JSON Response:
The endpoint will emit the JSON record below depending on the version requested. If the version being requested is not equal
to the version currently held in PPA server, it will emit JSON Figure A. Otherwise, it will emit a JSON record Figure B.
Figure A:
Example request: https://api.ppa.com.ph/api/opce/GetPartyClientListAsync/?ver=1.00
Below, the JSON property ListOfParties contains all the current updated list of companies. The subscriber client (e.g. ICTSI) must persist
the version number on their part for requesting the next available updated list.
Figure B:
Example request: https://api.ppa.com.ph/api/opce/GetPartyClientListAsync/?ver=1.34
Below, the JSON property ListOfParties is null or empty because the version list being requested is the same with PPA records.
|
14-Dec-2017 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET |
https://api.ppa.com.ph/api/opce/GetCommodityListAsync/?ver=
• Gets all the list of the commodities regardless of who is the party accredited with it. • The list of commodities must be saved or persisted on the subscriber side as a transaction lookup instead of acquiring the list on every request. • The list should be updated based on version in a timely manner, e.g. every 12 midnight. Read request parameter below. • NOTE: Must be authorized or logged-in to use. Request Parameters:
Figure A:
Example request: https://api.ppa.com.ph/api/opce/GetCommodityListAsync/?ver=1.00
Below, the JSON property OpceMasterDetailCommodities contains all the current updated list of commodities in master-id parent format. The subscriber client (e.g. ICTSI) must persist
the version number on their part for requesting the next available updated list.
The fields:
Figure B:
Example request: https://api.ppa.com.ph/api/opce/GetCommodityListAsync/?ver=1.10
Below, the JSON property OpceMasterDetailCommodities is null or empty because the version list being requested is the same with PPA records.
|
10-Dec-2017 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POST |
https://api.ppa.com.ph/api/opce/PostBatchExemptionRequestAsync
Post a batch of commodity items being requested from a particular party or company for exemption. The order and casing of each field/member must be in order and exact respectively. Request Parameters:
|
20-Aug-2019 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POST |
https://api.ppa.com.ph/api/opce/PostExemptionRequestAsync
Post a commodity item being requested from a particular party or company for exemption. The order and casing of each field/member must be in order and exact respectively. Request Parameters:
|
20-Aug-2019 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET |
https://api.ppa.com.ph/api/OpceReportingApi/GetVerChanges?t=
Gets the version changes history of either commodity or the party/customer such as name modifications, additions, deletions, others.
Request Parameters:
|
01-May-2018 |