POST /communication/callback/{provider}
接收并处理各短信、邮件、推送服务商(阿里云、腾讯云、AWS SNS/SES、SendGrid、Mailgun、FCM、APNs、JPush等)的投递状态回调通知,自动更新对应消息的发送状态。回调为公开端点,由各服务商直接调用。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。
通信服务 None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
provider |
path |
string |
Yes |
|
|
|
服务商名称:aliyun/tencentcloud/aws/sendgrid/ses/mailgun/fcm/apns/jpush |
Request Body
Accepts an empty JSON object {}
Referenced Schemas
dto.CallbackResultDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.CallbackResultResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.CallbackResultResponse
提供商回调结果
| Field | Type | Required | Example | Constraints | Description |
provider |
string |
No |
aliyun |
|
|
received |
boolean |
No |
True |
|
|
dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|