Skip to main content
Question

How can i update the whatsapp_phone field by Manychat API?

  • 2 September 2024
  • 3 replies
  • 43 views


I need to update the whatsapp_phone field value through manychat api, but sendning a different value it don't update as expected, here is an example of the payload that i’m sending to the /fb/subscriber/updateSubscriber endpoint:

{
"subscriber_id": "123456789",
"first_name": "First Name",
"last_name": "Last Name",
"phone": "+5589999999999",
"whatsapp_phone": "+5589999999999",
"optin_whatsapp": true,
"has_opt_in_sms": false,
"has_opt_in_email": false
}

With that the phone field is updated but the whatsapp_phone not.

​I'm doing anything wrong or it's just impossible to update that field and i nedd to create another subscriber with the updated whatsapp number?

@tuliosabino I think it’s not possible to update it.

You could try to do the following to see if it works:

  • use the sendFlow endpoint to trigger a flow that UNSUBSCRIBES the user from the WhatsApp channel
  • then use the updateSubscriber to subscribe the person to WhatsApp with the new number

Make sure to do this in a test user and not a live customer, since you may unsubscribe the person and, possibly, have issues re-subscribing them.

If you test it, let us know if this works 🤞


It didn't work, what I needed to do was create another user when my user updated his phone number


Thank you for letting us know @tuliosabino ! 🙏


Reply