Actions10
- Phone Utils Actions
- Phone Geo Actions
Phone Utils → Compare
AI-generatedSummary
Compare two phone numbers to determine their equivalence using Sourcier's phone utilities.
Inputs
- authentication — Select authentication type: User Credentials (Email & Password) or Enterprise Credentials (API Key). Defaults to Enterprise.
- phone1 (required) — First phone number to compare. Supports formatted phone numbers with or without country code.
- phone2 (required) — Second phone number to compare. Supports formatted phone numbers with or without country code.
- errorMode — Sets error handling behavior: Fail Fast (stop on first error), Continue (skip errors), or Collect Errors (return errors in output). Defaults to Fail Fast.
- defaultCountry — Default country for parsing phone numbers missing a country code. Options include US, GB, CA, AU, DE, FR, or Other (requiring ISO alpha-2 code). Defaults to US.
- customCountry — If Default Country is 'Other', specify the ISO 3166-1 alpha-2 country code (e.g., JP, BR, IN) used for parsing.
Output shape
a list of comparison result objects, each corresponding to one comparison operation from an input item.
Returns an array with a JSON object per input item containing the comparison result if successful. If an error occurs, behavior depends on errorMode: it may throw immediately, omit output, or include error messages and codes in the output JSON. Each comparison call compares exactly two phone numbers provided via parameters phone1 and phone2 per item.