接口功能:给指定的手机号发送短信(版本PT-146934【8.1.0.20230112】及以后)
接口地址http://serviceip/k3cloud/Kingdee.BOS.WebApi.ServicesStub.SMSService.SendMsg2Safe.common.kdsvc,serviceip为星空的域名或者ip+端口
取请求方式:post
入参说明:
mobile:接收人手机号(不为空,多个手机号用';'拼接)
msg:短信内容(不为空)
messageDetail:业务详情(不为空)
smsType:短信类型(可为空,0:普通短信 1:营销短信(适合营销类短信,接收人可退订))
例:{ "mobile": "133*********", "msg": "短信内容", "messgeDetail": "业务详情", "smsType": "0"}
出参说明
Successful:发送结果,true:成功,false:失败
例:{"Result":{"description_cn":"短信发送成功","fee":1,"smsid":"477254503551","errcode":0,"description":"ok"},"Successful":true,"Message":"","ExtraInformation":null,"ErrorCode":0}
注意:调用发送接口前,需要调用登录接口,具体参照:https://vip.kingdee.com/article/110728608582224640?productLineId=1
postman演示截图
(1)登录
(2)发送短信
(3)界面查询发送记录
推荐阅读