Create Address
POST {{baseUrl}}/addresses
Creates one address. If such address already exists, the existing address will be returned.
Request Body
Body
Key | Datatype | Mandatory | Comments/ Constraints |
---|---|---|---|
block | string | No | Singapore only |
buildingEstate | strings | No | Singapore only |
careOf | string | No | |
country | String | Yes | ISO 3166 country code/name |
id | Number | Yes | |
levelFloor | string | No | Singapore only |
postCode | string | Yes | |
state | String | Yes | If country is Australia the value must be one of 'ACT'/'NSW'/'VIC'/'QLD'/'SA'/'WA'/'TAS'/'NT'. Can also be 'Foreign' if country is not 'Australia' |
unitFlat | String | No | Singapore only |
Request Body
{"streetLine1"=>"{{streetLine1}}", "suburb"=>"{{suburb}}", "state"=>"{{state}}", "postcode"=>"{{postcode}}", "country"=>"{{country}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: Created
{"id":12345547,"streetLine1":"78 Test Road","suburb":"MELBOURNE","state":"VIC","postcode":"3000","country":"AUSTRALIA"}