AddressMessagePayload
Defined in: src/types/messages.ts:353
Options for MessagesResource.sendAddressMessage.
country is required and must be IN (India) or SG (Singapore). The SDK
serializes the parameters (country, values, saved addresses, validation
errors) into the JSON-encoded action.parameters string the API expects.
Properties
Section titled “Properties”body:
string
Defined in: src/types/messages.ts:355
Body text shown above the address form.
country
Section titled “country”country:
"IN"|"SG"
Defined in: src/types/messages.ts:357
Supported country: IN (India) or SG (Singapore).
footer?
Section titled “footer?”
optionalfooter?:string
Defined in: src/types/messages.ts:367
Optional footer text.
header?
Section titled “header?”
optionalheader?:InteractiveHeader
Defined in: src/types/messages.ts:365
Optional header: a plain string (text) or a structured text/media header.
savedAddresses?
Section titled “savedAddresses?”
optionalsavedAddresses?:AddressMessageSavedAddress[]
Defined in: src/types/messages.ts:361
Previously saved addresses to offer. Maps to saved_addresses.
validationErrors?
Section titled “validationErrors?”
optionalvalidationErrors?:Record<string,string>
Defined in: src/types/messages.ts:363
Per-field validation error messages keyed by API field name. Maps to validation_errors.
values?
Section titled “values?”
optionalvalues?:AddressMessageValues
Defined in: src/types/messages.ts:359
Pre-filled address field values. Maps to values.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.