sms/v1/message/optin route is creating Malformed Messages and return 400 response
Trailblazer Community

sms/v1/message/optin route is creating Malformed Messages and return 400 response

Marketing Cloud API , Marketing Cloud Mobile

Last updated 2019-02-21 ·Reference W-4915835 ·Reported By 1 users

No Fix

Summary
sms/v1/message/optin route, which is used to create Mobile Opt-In messages using the API service is exhibiting the following 3 issues:

400 Error (Bad Request) is returned when the message is posted

Even though there is a 400, the message is still created

The created message is malformed and distinctively different than ones created in the UI.

Repro
Setup API using your account information and use an example from https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/messageOptIn.htm

Run the call

400 Response, Applog error generated, Malformed message created when you look in the DB and also in the MessageDetails page

Trying to make edits to generated message results in additional errors as well

Workaround
Do not use the API to create a Double Opt-in Message, use the UI to create the message

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.