SMSHook
SMS-Status Callback
URL
Vom Benutzer auf der Seite auszufüllen
Vom Benutzer auf der Seite auszufüllen
Diesen Codeblock im schwebenden Fenster anzeigen
Content-Type:
application/json; charset=utf-8
application/json; charset=utf-8
Diesen Codeblock im schwebenden Fenster anzeigen
HTTP-Anfragetyp
post
post
Diesen Codeblock im schwebenden Fenster anzeigen
Anfrage-Header
| Header | Typ | Beschreibung |
|---|---|---|
| X-SMSHook-Signature | string | Signatur |
| X-SMSHook-Timestamp | long | Nachrichten-Erstellungszeitpunkt |
| X-SMSHook-AppKey | string | Anwendung |
| X-SMSHook-Version | string | Version |
Anfrage-Body
| Parameter | Typ | Beschreibung |
|---|---|---|
| message_id | string | Nachrichten-ID |
| from | string | Absender (leer bei template_approval-Nachrichten) |
| to | string | Empfänger (leer bei target、sent und template_approval) |
| server | string | SMS |
| itime | long | Nachrichten-Erstellungszeitpunkt |
| custom_args | json | Benutzerdefinierte Felder |
| status | json | Rückmeldung des Nachrichtenstatus |
SMS-Ziel-Statusnachricht
status
| Parameter | Typ | Beschreibung |
|---|---|---|
| message_status | string | target |
| status_data | json object | Statusdaten |
| message | string | Erfolgreiche Anforderung |
| template_id | int | SMS-Vorlagen-ID |
| template_type | int | Typ des SMS-Inhalts |
| label_id | int | SMS-Label-ID |
| user_id | int | Benutzer-ID |
| sms_user | string | SMS_USER |
| sms_ids | array | SMS-ID-Array der Empfänger |
| to | array | Empfänger-Array |
| msg_type | int | SMS-Typ |
{
"server": "sms",
"message_id": "1679392394031_15_17153_881599_c1fjwa",
"itime": 1679392394061,
"status": {
"message_status": "target",
"status_data": {
"user_id": 15,
"to": [
"+8618871186627",
"008615727024341"
],
"msg_type": 2,
"template_id": 881599,
"message": "Erfolgreiche Anforderung",
"sms_user": "xiaojinmintest",
"sms_ids": [
"1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"1679392394031_15_17153_881599_c1fjwa$008615727024341"
],
"template_type": 2,
"label_id": 0
}
}
}
{
"server": "sms",
"message_id": "1679392394031_15_17153_881599_c1fjwa",
"itime": 1679392394061,
"status": {
"message_status": "target",
"status_data": {
"user_id": 15,
"to": [
"+8618871186627",
"008615727024341"
],
"msg_type": 2,
"template_id": 881599,
"message": "Erfolgreiche Anforderung",
"sms_user": "xiaojinmintest",
"sms_ids": [
"1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"1679392394031_15_17153_881599_c1fjwa$008615727024341"
],
"template_type": 2,
"label_id": 0
}
}
}
Diesen Codeblock im schwebenden Fenster anzeigen
SMS-Gesendet-Statusnachricht
status
| Parameter | Typ | Beschreibung |
|---|---|---|
| message_status | string | sent |
| status_data | json object | Statusdaten |
| message | string | Erfolgreich gesendet |
| template_id | int | SMS-Vorlagen-ID |
| template_type | int | Typ des SMS-Inhalts |
| label_id | int | SMS-Label-ID |
| user_id | int | Benutzer-ID |
| sms_user | string | SMS_USER |
| sms_ids | array | SMS-ID-Array der Empfänger |
| to | array | Empfänger-Array |
| msg_type | int | SMS-Typ |
{
"server": "sms",
"message_id": "1679392394031_15_17153_881599_c1fjwa",
"itime": 1679392394061,
"status": {
"message_status": "sent",
"status_data": {
"user_id": 15,
"to": [
"+8618871186627",
"008615727024341"
],
"msg_type": 2,
"template_id": 881599,
"message": "Erfolgreich gesendet",
"sms_user": "xiaojinmintest",
"sms_ids": [
"1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"1679392394031_15_17153_881599_c1fjwa$008615727024341"
],
"template_type": 2,
"label_id": 0
}
}
}
{
"server": "sms",
"message_id": "1679392394031_15_17153_881599_c1fjwa",
"itime": 1679392394061,
"status": {
"message_status": "sent",
"status_data": {
"user_id": 15,
"to": [
"+8618871186627",
"008615727024341"
],
"msg_type": 2,
"template_id": 881599,
"message": "Erfolgreich gesendet",
"sms_user": "xiaojinmintest",
"sms_ids": [
"1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"1679392394031_15_17153_881599_c1fjwa$008615727024341"
],
"template_type": 2,
"label_id": 0
}
}
}
Diesen Codeblock im schwebenden Fenster anzeigen
SMS-Zugestellt-Statusnachricht
status
| Parameter | Typ | Beschreibung |
|---|---|---|
| message_status | string | delivered |
| status_data | json object | Statusdaten |
| message | string | Erfolgreich zugestellt |
| template_id | int | SMS-Vorlagen-ID |
| template_type | int | Typ des SMS-Inhalts |
| label_id | int | SMS-Label-ID |
| user_id | int | Benutzer-ID |
| sms_user | string | SMS_USER |
| sms_id | string | SMS-ID |
| msg_count | int | Anzahl der SMS-Nachrichten |
| msg_type | int | SMS-Typ |
| outbound_time | string | Zeit der Kanal-Anforderung |
| receipt_time | string | Empfangszeit |
{
"server": "sms",
"message_id": "1679387065399_15_17155_881597_0poco8$+115927992951",
"to": "+115927992951",
"itime": 1679388949000,
"status": {
"message_status": "delivered",
"status_data": {
"outbound_time": "2023-03-21 16:55:25",
"receipt_time": "2023-03-21 16:55:49",
"sms_id": "1679387065399_15_17155_881597_0poco8$+115927992951",
"user_id": 15,
"msg_type": 2,
"template_id": 881597,
"message": "Erfolgreich zugestellt",
"sms_user": "huangli_SMS",
"template_type": 1,
"msg_count": 1,
"label_id": 0
}
}
}
{
"server": "sms",
"message_id": "1679387065399_15_17155_881597_0poco8$+115927992951",
"to": "+115927992951",
"itime": 1679388949000,
"status": {
"message_status": "delivered",
"status_data": {
"outbound_time": "2023-03-21 16:55:25",
"receipt_time": "2023-03-21 16:55:49",
"sms_id": "1679387065399_15_17155_881597_0poco8$+115927992951",
"user_id": 15,
"msg_type": 2,
"template_id": 881597,
"message": "Erfolgreich zugestellt",
"sms_user": "huangli_SMS",
"template_type": 1,
"msg_count": 1,
"label_id": 0
}
}
}
Diesen Codeblock im schwebenden Fenster anzeigen
SMS-Zugestellt_Fehler-Statusnachricht
status
| Parameter | Typ | Beschreibung |
|---|---|---|
| message_status | string | delivered_failed |
| status_data | json object | Statusdaten |
| template_id | int | SMS-Vorlagen-ID |
| template_type | int | Typ des SMS-Inhalts |
| label_id | int | SMS-Label-ID |
| user_id | int | Benutzer-ID |
| sms_user | string | SMS_USER |
| sms_id | string | SMS-ID |
| outbound_time | string | Zeit der Kanal-Anforderung |
| receipt_time | string | Empfangszeit |
| msg_count | int | Anzahl der SMS-Nachrichten |
| msg_type | int | SMS-Typ |
| error_code | int | Fehlercode |
| error_detail | json | Fehlerdetails |
| message | string | Fehlerprotokoll |
| sub_stat | int | Fehlerunterkategorie, 4xx steht für Verarbeitungsfehler, 5XX für Versandfehler |
| sub_stat_desc | string | Fehlermeldung |
{
"server": "sms",
"message_id": "1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"to": "+8618871186627",
"itime": 1679392394120,
"status": {
"message_status": "delivered_failed",
"error_code": 480,
"error_detail": {
"message": "smsworker:lokale Richtlinienbeschränkungen",
"sub_stat": 480,
"sub_stat_desc": "Versandtyp nicht unterstützt"
},
"status_data": {
"sms_id": "1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"user_id": 15,
"msg_type": 2,
"template_id": 881599,
"outbound_time": "2023-03-21 17:53:14",
"receipt_time":"2023-03-21 17:53:37",
"sms_user": "xiaojinmintest",
"template_type": 2,
"msg_count": 1,
"label_id": 0
}
}
}
{
"server": "sms",
"message_id": "1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"to": "+8618871186627",
"itime": 1679392394120,
"status": {
"message_status": "delivered_failed",
"error_code": 480,
"error_detail": {
"message": "smsworker:lokale Richtlinienbeschränkungen",
"sub_stat": 480,
"sub_stat_desc": "Versandtyp nicht unterstützt"
},
"status_data": {
"sms_id": "1679392394031_15_17153_881599_c1fjwa$+8618871186627",
"user_id": 15,
"msg_type": 2,
"template_id": 881599,
"outbound_time": "2023-03-21 17:53:14",
"receipt_time":"2023-03-21 17:53:37",
"sms_user": "xiaojinmintest",
"template_type": 2,
"msg_count": 1,
"label_id": 0
}
}
}
Diesen Codeblock im schwebenden Fenster anzeigen
SMS-Antwort Callback
URL
Vom Benutzer auf der Seite auszufüllen
Vom Benutzer auf der Seite auszufüllen
Diesen Codeblock im schwebenden Fenster anzeigen
Content-Type:
application/json; charset=utf-8
application/json; charset=utf-8
Diesen Codeblock im schwebenden Fenster anzeigen
HTTP-Anfragetyp
post
post
Diesen Codeblock im schwebenden Fenster anzeigen
Anfrage-Header
| Header | Typ | Beschreibung |
|---|---|---|
| X-SMSHook-Signature | string | Signatur |
| X-SMSHook-Timestamp | long | Nachrichten-Erstellungszeitpunkt |
| X-SMSHook-AppKey | string | Anwendung |
| X-SMSHook-Version | string | Version |
Anfrage-Body
| Parameter | Typ | Beschreibung |
|---|---|---|
| message_id | string | Nachrichten-ID |
| to | string | Empfänger |
| server | string | SMS |
| itime | long | Nachrichten-Erstellungszeitpunkt |
| custom_args | json | Benutzerdefinierte Felder |
| response | json | Rückmeldung zur Nachrichtenantwort |
SMS-Antwort-Rückmeldung
response
| Parameter | Typ | Beschreibung |
|---|---|---|
| event | string | Antwort |
| response_data | json object | Antwortdaten |
| template_id | int | SMS-Vorlagen-ID |
| template_type | int | Typ des SMS-Inhalts |
| label_id | int | SMS-Label-ID |
| user_id | int | Benutzer-ID |
| sms_user | string | SMS_USER |
| sms_id | string | SMS-ID |
| reply_content | int | Antwortinhalt |
| reply_time | string | Antwortzeit |
| msg_type | int | SMS-Typ |
{
"server": "sms",
"message_id": "1679364048767_15_15814_905354_3y5z9a$17858502021",
"to": "17858502021",
"itime": 1679392394128,
"response": {
"event": "reply",
"response_data": {
"sms_id": "1679364048767_15_15814_905354_3y5z9a$17858502021",
"user_id": 15,
"reply_time": "2023-03-21 10:07:17",
"msg_type": 2,
"template_id": 905354,
"sms_user": "cpx_sms",
"template_type": 2,
"reply_content": "T",
"label_id": 0
}
}
}
{
"server": "sms",
"message_id": "1679364048767_15_15814_905354_3y5z9a$17858502021",
"to": "17858502021",
"itime": 1679392394128,
"response": {
"event": "reply",
"response_data": {
"sms_id": "1679364048767_15_15814_905354_3y5z9a$17858502021",
"user_id": 15,
"reply_time": "2023-03-21 10:07:17",
"msg_type": 2,
"template_id": 905354,
"sms_user": "cpx_sms",
"template_type": 2,
"reply_content": "T",
"label_id": 0
}
}
}
Diesen Codeblock im schwebenden Fenster anzeigen
SMS-Status Callback
SMS-Template-Benachrichtigung (template_approval)
notification
| Parameter | Typ | Beschreibung |
|---|---|---|
| event | string | template_approval |
| notification_data | json object | Benachrichtigungsdaten |
| template_id | string | SMS-Vorlagen-ID |
| template_type | int | Typ des SMS-Inhalts |
| user_id | string | Benutzer-ID |
| msg_type | int | SMS-Typ |
| approval_status | string | Ergebnis der Vorlagenprüfung |
| approval_message | string | Informationen zur Vorlagenprüfung |
{
"server": "sms",
"message_id": "1679364048767_15_15864",
"to": "17858502021",
"itime": 1679392394179,
"notification": {
"event": "template_approval",
"notification_data": {
"user_id": 15,
"msg_type": 2,
"template_id": 905354,
"template_type": 2,
"approval_status": "1",
"approval_message": "Genehmigt"
}
}
}
{
"server": "sms",
"message_id": "1679364048767_15_15864",
"to": "17858502021",
"itime": 1679392394179,
"notification": {
"event": "template_approval",
"notification_data": {
"user_id": 15,
"msg_type": 2,
"template_id": 905354,
"template_type": 2,
"approval_status": "1",
"approval_message": "Genehmigt"
}
}
}
Diesen Codeblock im schwebenden Fenster anzeigen
