AWS Integration: Troubleshooting SMS
"Invalid parameter" error when sending PROMOTIONAL SMS
The reason for the error is that the Sender ID is only configured to send Transactional SMS type. So when you send a Promotional SMS type you get the invalid parameter error.
To over come this issue you must add "PROMOTIONAL" to the Sender ID configuration. Currently this is not possible via console so you have to use the AWS CLI or SDK to recreate the SenderID. I was able to replicate this issue in my account and followed below steps to resolve this.
1. First, release the SenderID from End User Messaging console. (make sure to copy the resource policy before deleting as you would need it after recreating)
[+] Release a sender ID in AWS End User Messaging SMS: https://docs.aws.amazon.com/sms-voice/latest/userguide/sender-id-release.html
2. Use the RequestSenderId API to recreate the Sender ID, making sure to set the message types as TRANSACTIONAL and PROMOTIONAL.
you can use below command
```
aws pinpoint-sms-voice-v2 request-sender-id --sender-id A4ACADEMY --iso-country-code PL --message-types "TRANSACTIONAL" "PROMOTIONAL"
```
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/pinpoint-sms-voice-v2/request-sender-id.html
3. Once created, you can update the resource policy to allow SNS service to send SMS using the Sender ID (use the copied resource policy)