validateOperationAddress( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Validates an operation's address.

The method checks if the operation's address stored in businessLocationDetails.address is valid.

An address is considered valid if it has:

  1. A non-empty, formatted address.
  2. Valid geocode coordinates (not 0,0).
  3. A non-empty country field.

If the address is invalid, the response includes specific violations.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
operationIdstringRequired

The ID of the operation whose address should be validated.

Returns
Return Type:Promise<ValidateOperationAddressResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?