List postcode by ampher+province
Request Header | Authorization | |
Authentication | Yes |
List postcode by ampher+province
Request Header | Authorization | |
Authentication | Yes |
Request Parameter
Field | DataType | Required | Description |
ampherId | integer | Yes | -ampher id -List of master data from API masterdata/ampher |
Response Parameter
Field | DataType | Description |
status | string | response status |
message | string | response message |
payload | ||
id | integer | postcode id |
postcodeName | string | postcode |
ampherId | string | ampher id |
{
"ampherId": 1
}
Status Code | Error Description |
000 | Success |
Status Code | Error Description |
101 | General/Process error (see message) |
301 | Permission denined |
401 | Unauthorized |
500 | Internal server error (see message) |
{
"status": "000",
"message": "Success",
"payload": [
{
"id": 584,
"postcodeName": "47170",
"ampherId": 1
}
]
}
–