New JSON format received by delivery report hook and didnt have client_reference which my code depended on. Client reference was sent. JSON format didnt match docs so broke my code. How many more variations are there?
{"at":"2024-04-28T22:56:13.840Z","batch_id":"01HWKERMJ8MZKH0YYJPZ6A5ZNZ","client_reference":"true","code":0,"operator_status_at":"2024-04-28T22:56:00Z","recipient":"12103173758","status":"Delivered","type":"recipient_delivery_report_sms"}
Previously, even if batch had only 1 number in it, the delivery hook JSON would contain a statuses array which contained a recipients array containing just one number as currently documented.
FWIW I'm using PHP.
so...
1. Are there any other JSON variations I should code for?
2. Why was client_reference set to true? A 32 char hex string was set as client_reference when the SMS was sent. I'll need to restructure my code if client_reference isn't going to work any more.
... View more