| All Verbs | /api/suburbs |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SearchText | query | string | No | Get suburbs matching the specified search text criteria. |
| StateName | query | string | No | State to get suburbs for |
| PostCode | query | string | No | Postcode to get suburbs for |
| CountryId | query | Guid | No | Country to get suburbs for |
| CountryName | query | string | No | Country to get suburbs for |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Suburbs | form | List<SuburbModel> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SuburbId | form | Guid | No | |
| Name | form | string | No | |
| StateId | form | Guid | No | |
| StateName | form | string | No | |
| PostCode | form | string | No | |
| CountryId | form | Guid | No | |
| CountryName | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/suburbs HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
SearchText: String,
StateName: String,
PostCode: String,
CountryName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Suburbs:
[
{
Name: String,
StateName: String,
PostCode: String,
CountryName: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}