API Restful - Description - Address - funnelpostcode - Response

Support DQE
Support DQE
  • Updated

Success funnelpostcode answer

The JSON response is a dictionary (object) containing two main keys:

  • "Found": an integer indicating the number of addresses found (e.g., 0 or 1),
  • "PostalCodes": a list containing one or more address objects.

Each PostalCodes object is itself a dictionary containing the following keys:

FieldMeaningAlways in JSON?Type / Format
PostalCodePostal / ZIP codeYesSTRING(10–20) (example includes hyphen)
CityCity nameYesSTRING(50)
HamletHamlet / dependent localityYesSTRING(50) (can be empty)
SpecialDistributionSpecial distribution flagYesSTRING(1) (“0/1” style in sample)
CountryISO country codeYesSTRING(3)
AdministrativeAreaAdministrative area (may equal city/ward)YesSTRING(50)
StateLabelState/Prefecture labelYesSTRING(50)
StateCodeState/Prefecture codeYesSTRING(10) (numeric in practice, string in sample)
SubLocalitySub-locality infoYesSTRING(50) (can be empty)
CityIdUnique identifier for the city + postal codeYesSTRING(50)
LatitudeLatitudeYesDECIMAL(18) (empty string possible in sample)
LongitudeLongitudeYesDECIMAL(18) (empty string possible in sample)
InformationsNested address detailsYesOBJECT <Informations>

Informations object : 

FieldMeaningAlways in JSON?Type / Format
AdditionalAddressExtra address lineYesSTRING(255) (can be empty)
AdditionalAddress_2Extra address line 2YesSTRING(255) (can be empty)
StreetNumberListList of street numbersYesSTRING(1024) (can be empty; separator not specified)
StreetTypeStreet typeYesSTRING(50) (can be empty)
StreetStreet nameYesSTRING(255) (can be empty)
SuburbSuburb / districtYesSTRING(255) (can be empty)
StreetIdStreet identifierYesSTRING(20) (can be empty)
CompanyCompany nameYesSTRING(255) (can be empty)

Example:

{
  "Found": 1,
  "PostalCodes": [
    {
      "PostalCode": "108-6390",
      "City": "港区",
      "Hamlet": "",
      "SpecialDistribution": "0",
      "Country": "JPN",
      "AdministrativeArea": "港区",
      "StateLabel": "東京都",
      "StateCode": "13",
      "SubLocality": "",
      "CityId": "402573_1086390",
      "Latitude": "",
      "Longitude": "",
      "Informations": {
        "AdditionalAddress": "",
        "AdditionalAddress_2": "",
        "StreetNumberList": "",
        "StreetType": "",
        "Street": "",
        "Suburb": "",
        "StreetId": "",
        "Company": ""
      }
    }
  ]
}

 

Error

Error typeResponse type
Missing mandatory parameter{ "status": 400, "message": "Missing parameters", "details": "PostalCode", "error": "bad request" }
Country value is not ISO3{"status": 400, "message": "Country doesn't exist", "details": "JPNde", "error": "bad request"}
Wrong license value{"status": 401, "message": "Your licence is not allowed to cover this functionnality", "details": "WRONG LICENSE", "error": "unauthorized_client"}

Related to

Was this article helpful?

0 out of 0 found this helpful