Sebagian Tidak Bisa Diaksesshare-external
/messages isn't working for few message templates even though it's validated by the team
1

I have a message template, "ticket_confirm_message" as you can see from the attached image. Even though it's approved by the team, I am getting error when I hit the post request in graph api.

endpoint : https://graph.facebook.com/v20.0/350137061511322/messages body :

{
  "messaging_product": "whatsapp",
  "to": "9185XX3XXX56",
  "type": "template",
  "template": {
    "name": "ticket_confirm_message",
    "language": {
      "code": "en_US"
    },
    "components": [
      {
        "type": "header",
        "parameters": [
          {
            "type": "image",
            "image": {
              "link": "https://cdn.pixabay.com/photo/2017/04/04/19/47/ship-2202910__340.jpg"
            }
          }
        ]
      },
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "Storm in the Pacific"
          },
          {
            "type": "date_time",
            "date_time": {
              "fallback_value": "October 24, 2022 - 7:30 PM"
            }
          },
          {
            "type": "text",
            "text": "Famous Studios"
          },
          {
            "type": "text",
            "text": "4"
          }
        ]
      }
    ]
  }
}

Error:

{
    "error": {
        "message": "(#132001) Template name does not exist in the translation",
        "type": "OAuthException",
        "code": 132001,
        "error_data": {
            "messaging_product": "whatsapp",
            "details": "template name (ticket_confirm_message) does not exist in en"
        },
        "fbtrace_id": "ABUnUiu6-Blqfdp5pdTTVTY"
    }
}

I am not getting clue where possibly I am getting wrong. Even I tried with one another template, that I made much earlier, it's working perfectly fine, which I have state below again. api : https://graph.facebook.com/v20.0/350137061511322/messages body :

{ 
 "messaging_product": "whatsapp",
 "to": "91XXXX792825",
  "type": "template",
   "template": { 
    "name": "bus_booking",
     "language": { 
        "code": "en_US" 
        } ,
    "components": [
        {
          "type": "header",
          "parameters": [
            {
              "type": "text",
              "text": "Bus seat comp pvt ltd. from test"
            }
          ]
        }
      ]
    }

}

response :

{
    "messaging_product": "whatsapp",
    "contacts": [
        {
            "input": "91XXXXXX2825",
            "wa_id": "91XXXXXX2825"
        }
    ],
    "messages": [
        {
            "id": "wamid.HBgMOTE3MzgxNzkyODI1FQIAERgSOUUwOEQ1ODdCODE4NTlCODQXXX==",
            "message_status": "accepted"
        }
    ]
}
Barenya
Ditanyakan sekitar 2 bulan yang lalu