You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a discrepancy between the expected results described in the documentation for the validate_addresses method and the actual response received from the API. The method's documentation suggests a specific structure for the returned data, but the actual data received differs notably in format and content.
The validate_addresses method in our system is documented to cross-reference addresses against multiple databases for validation and returns a structured response with details on validated and normalized addresses.
defvalidate_addresses(
self, address: List[Dict[str, Any]], config: Union[str, Dict[str, Any]] =None
) ->Dict[str, Any]:
""" Address validation ensures accurate addresses and can lead to reduced shipping costs by preventing address correction surcharges. ShipEngine cross references multiple databases to validate addresses and identify potential deliverability issues. See: https://shipengine.github.io/shipengine-openapi/#operation/validate_address :param List[Dict[str, Any]] address: A list containing the address(es) to be validated. :param Union[str, Dict[str, Any], ShipEngineConfig] config: Method level configuration to set new values for properties of the global ShipEngineConfig object. :returns: Dict[str, Any]: The response from ShipEngine API including the validated and normalized address. """config=self.config.merge(new_config=config)
returnself.client.post(
endpoint=Endpoints.ADDRESSES_VALIDATE.value, params=address, config=config
)
I've encountered a discrepancy between the expected results described in the documentation for the validate_addresses method and the actual response received from the API. The method's documentation suggests a specific structure for the returned data, but the actual data received differs notably in format and content.
The validate_addresses method in our system is documented to cross-reference addresses against multiple databases for validation and returns a structured response with details on validated and normalized addresses.
Example Response:
Which makes the return type to be
List[Dict[str, Any]]
The text was updated successfully, but these errors were encountered: