{"openapi":"3.0.1","info":{"title":"Address validate API v2","description":"The address validate request in json format. This api makes use of the validate address api of casper and returns the request in json format.","version":"1.0.0"},"servers":[{"url":"https://api.mailops-np.bpost.cloud"}],"paths":{"/dv/goa/addressvalidate":{"post":{"description":"Address validate request body","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"validateAddressesRequest":{"type":"object","properties":{"addressToValidateList":{"type":"object","properties":{"_comment":{"type":"string","default":"addressToValidate is an array with 1 to 200 repetitions"},"addressToValidate":{"type":"array","items":{"type":"object","properties":{"attributes":{"type":"object","properties":{"id":{"type":"string"}}},"_comment":{"type":"string","default":"You have a CHOICE of the next 2 items at this level"},"addressBlockLines":{"type":"object","properties":{"_comment":{"type":"string","default":"unstructuredAddressLine is an array with 0 to 7 repetitions"},"unstructuredAddressLine":{"type":"array","items":{"type":"string"}}}},"maileeAndAddressee":{"type":"object","properties":{"_comment":{"type":"string","default":"You have a CHOICE of the next 2 items at this level"},"structuredAddresseeIndividualIdentification":{"type":"object","properties":{"addresseeFormOfAddress":{"type":"string"},"addresseeGivenName":{"type":"string"},"addresseeSurname":{"type":"string"},"addresseeSupplementaryDispatchInfo":{"type":"string"}}},"unstructuredAddresseeIndividualIdentification":{"type":"string"},"structuredMaileeIndividualIdentification":{"type":"object","properties":{"maileeRole":{"type":"string"},"maileeFormOfAddress":{"type":"string"},"maileeGivenName":{"type":"string"},"maileeSurname":{"type":"string"}}},"unstructuredMaileeIndividualIdentification":{"type":"string"},"structuredMaileeOrganizationIdentification":{"type":"object","properties":{"maileeOrganizationFunction":{"type":"string"},"maileeOrganizationOrganizationalUnit":{"type":"string"},"maileeOrganizationOrganizationalName":{"type":"string"},"maileeOrganizationLegalStatus":{"type":"string"}}},"unstructuredMaileeOrganizationIdentification":{"type":"string"},"structuredMailRecipientDispatchingInformation":{"type":"object","properties":{"buildingConstruction":{"type":"string"},"wing":{"type":"object","properties":{"wingType":{"type":"string"},"wingIndicator":{"type":"string"}}},"stairwell":{"type":"object","properties":{"stairwellType":{"type":"string"},"stairwellIndicator":{"type":"string"}}},"floor":{"type":"object","properties":{"floorType":{"type":"string"},"floorIndicator":{"type":"string"}}},"door":{"type":"object","properties":{"doorType":{"type":"string"},"doorIndicator":{"type":"string"}}}}},"unstructuredMailRecipientDispatchingInformation":{"type":"string"}}},"postalAddress":{"type":"object","properties":{"structuredOtherDeliveryInformation":{"type":"object","properties":{"deliveryServiceType":{"type":"string"},"deliveryServiceIndicator":{"type":"string"}}},"unstructuredOtherDeliveryInformation":{"type":"string"},"structuredDeliveryPointLocation":{"type":"object","properties":{"streetName":{"type":"string"},"streetNumber":{"type":"string"},"boxNumber":{"type":"string"}}},"unstructuredDeliveryPointLocation":{"type":"string"},"structuredPostalCodeMunicipality":{"type":"object","properties":{"postalCode":{"type":"string"},"municipalityName":{"type":"string"},"deliveryServiceQualifier":{"type":"string"}}},"unstructuredPostalCodeMunicipality":{"type":"string"},"countryName":{"type":"string"}}},"dispatchingCountryISOCode":{"type":"string"},"deliveringCountryISOCode":{"type":"string"}}}}}},"validateAddressOptions":{"type":"object","properties":{"includeFormatting":{"type":"boolean","default":false},"includeSuggestions":{"type":"boolean","default":false},"includeForwardingAddress":{"type":"boolean","default":false},"includeSubmittedAddress":{"type":"boolean","default":false},"useUnstructuredRecognition":{"type":"boolean","default":false},"usePrimaryLanguage":{"type":"boolean","default":false},"includeDefaultGeoLocation":{"type":"boolean","default":true},"includeSurrogate":{"type":"boolean","default":false},"includeSuffixes":{"type":"object","properties":{"includeSuffixList":{"type":"boolean","default":false},"includeNumberOfSuffixes":{"type":"boolean","default":false},"includeTypeList":{"type":"object","properties":{"includeType":{"type":"array","items":{"type":"string"}}}}}},"addressDetailProjections":{"type":"object","properties":{"includeStreetId":{"type":"boolean","default":false},"includeCountryISONumCode":{"type":"boolean","default":false},"includeAPrior":{"type":"boolean","default":false},"includeGeographicalSanction":{"type":"boolean","default":true}}},"postalAdministrativeAreaProjections":{"type":"object","properties":{"includePostalAdministrativeAreaId":{"type":"boolean","default":false},"includePostalAdministrativeAreaType":{"type":"boolean","default":false},"includeGeographicalPostalCode":{"type":"boolean","default":false}}},"servicePointProjections":{"type":"object","properties":{"includeServicePointType":{"type":"boolean","default":true},"includeInternalMailboxId":{"type":"boolean","default":false},"includeGeographicalMailboxId":{"type":"boolean","default":false}}},"includeDefaultGeoLocationForBoxes":{"type":"boolean","default":true}}},"callerIdentification":{"type":"object","properties":{"applicationAcronym":{"type":"string"},"callerName":{"type":"string"},"applicationRequestType":{"type":"string"}}}}}}}}}}}}}}