Message fallback
When sending a message using the Amazon Pinpoint API, three optional parameters can be passed in the
request: originationNumber
, registeredKeyword
, and
senderID
. If Amazon Pinpoint encounters an originationNumber
error
– for example, an invalid character – and the error is retriable, Amazon Pinpoint uses a
fallback process for choosing a valid number for the request. Fallback checks for a valid
number in the following order. At any point during this process Amazon Pinpoint will choose the first
valid number it finds as the originating number.
-
Origination number. Any other valid origination numbers are checked.
-
Keyword. Registered keywords are scanned and matched against any dedicated number.
-
Sender ID. Any other valid sender IDs are checked.
Note
If you send a message with an originationNumber
that doesn't exist in your
account, there's no fallback process, and an exception message returned instead.
If none of the previous parameters are passed in the request, Amazon Pinpoint looks at your account and checks for a valid number in this order:
-
Dedicated numbers. Any dedicated numbers associated with your account are checked in this order: short code, 10DLC, then long code/toll-free number. Domestic numbers are checked before international numbers. If you have both transactional and promotional long codes in your account, Amazon Pinpoint chooses a transactional number by default.
-
Default sender IDs.
-
Shared routes.
Note
Amazon Pinpoint does attempt to deliver messages in countries where an origination identity isn't required.