Glossary
Overview
Welcome to the Glossary!
Please read the following to understand the ADVANCE API system, for a smooth integration. We will explain all the basics you need to know about our API.
Status Code
- Our API responses will contain a Status Code indicating the result of the API call, whether it was successful, or an error occurred during the process
- Each API will also have its own unique Status Codes that can only be found in the responses of the API
- Your API usage will be charged based on the response Status Code. Each Status Code listed in our API document will have either a
freeorpaytag with it freemeans you will not be charged andpaymeans that you will be chargedpaymeans you will be charged if the API response contains the said status code- Below are the commonly used Status Codes. These status codes could appear in all our API responses, so please remember to add a handler for these Status Codes
Notes:
- Please use ‘Status Code’ in your strategy instead of ‘Message’, as 'Message’ is a detailed explanation for developer’s reference and may update without ADVANCE Notice.
Status Code | Message |
|---|---|
SUCCESS |
|
ERROR |
|
EMPTY_PARAMETER_ERROR |
|
INSUFFICIENT_BALANCE |
|
SERVICE_BUSY |
Quota exceeded: You have exceeded the daily quota for free queries, please contact out tech support for help |
IAM_FAILED |
|
PARAMETER_ERROR |
|
OVER_QUERY_LIMIT |
|
CLIENT_ERROR |
|
RETRY_LATER |
|
Notes:
- If the Status Code is SUCCESS, it may not be charged. Please check the code returned by each interface
Request URL & Parameters
- Request URL can be found at each API document along with the request method (
POSTorGETor other request method) and Content Type (application/jsonor other content type) - Some parameters will have
optionaltags on them. This means the parameter is not mandatory for the request and they can be empty. However, adding them might produce more accurate results. For example : Company check, zip code is an optional parameter, but adding zip code parameter will return all the companies around that said zip code instead of all around Indonesia. - If a parameter does not have an
optionaltag, it means the parameter is mandatory and making requests without them will returnEMPTY_PARAMETER_ERRORresponse - Every parameter has a data type such as
string,integerandfile. Please double check the parameter data type before making any request - Here’s an example of parameter explanation that can be found on each API document
| Parameter | Description |
|---|---|
| requestString | string String value for API request |
| requestFile | file Request file for API request |
| requestInteger | integer Number value for API request |
Response
-
ADVANCE API responds in
JSONformat -
ADVANCE API response consists of 4 fields:
codethe Status Code;messagedetailed explanation of the Status Code;extraexception message (should be empty most of the time);datathe response content from ADVANCE;
-
Each service has its own
dataformat, outlined in the API document -
If the response format is very complicated (multiple different JSON objects, nested JSON object), please refer to the Breakdown section of the Response Explanation
-
transactionId: It is strongly recommended to save the
transactionId. -
The following is an example of Response Explanation found in each API document:
| Parameter | Description |
|---|---|
| code | API Status Code |
| message | Status Code Explanation |
| data | field1: explanation of the first information that will be returned from ADVANCE |
field2: explanation of the second information that will be returned from ADVANCE | |
| extra | Extra response info (Exception Message) |
Updated 24 days ago
