Home > @vsf-enterprise/sap-commerce-webservices-sdk > AddressApi > validateAddress
AddressApi.validateAddress() method
Verifies address. Verifies address.
Signature:
validateAddress(baseSiteId: string, userId: string, address: Address, fields?: string, options?: any): Promise<import("axios").AxiosResponse<AddressValidation>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
userId | string | User identifier or one of the literals : 'current' for currently authenticated user, 'anonymous' for anonymous user |
address | Address | Address object. |
fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<AddressValidation>>
Exceptions
{RequiredError} AddressApi