List all SMS by SIM ID (MT)
开发中GET
/sms/mt/{sim_id}Last modified: 1 年前
Description
Retrieve a list of SMS(MT) sent to a single SIM
Version:
v1.0
Sign2.0
Notes:
- SMS records are kept for 180 days at most
- SIM ID provided must belong to the organisation of the request
- By default ( if not present), the query time period is 7 days prior to the request.
请求参数
Path Params
sim_id
string
required
SIM ICCID
Example:
89852123456789012345
Query Params
status
integer
optional
1-success, 2-failed, 3-processing, 4-all . default 4
Example:
4
begin_from
string
optional
Long, Epoch timestamp UTC 0 in millisecond; default value is 7 days prior to the current time
Example:
1677116671000
end_by
string
optional
Long, Epoch timestamp UTC 0 in millisecond; default current time
Example:
1677116890000
page_no
integer
optional
default 1
Example:
1
page_size
integer
optional
1-100,default 100
Example:
100
示例代码
Responses
Success(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
data
$ref(#/definitions/28888513)[]
required
#/definitions/28888513
optional
total_count
integer
required
Example
Success
{
"data": [
{
"org_id": "P001234",
"sim_id": "89852123456789012345",
"msisdn": "877676774564564",
"sent_at": "2023-01-01T12:12:12Z",
"content": {
"type": 1,
"message": "test"
},
"status": 1,
"source": 2,
"user": null,
"update_at": "2023-01-01T12:12:12Z",
"error": {
"code": "1",
"message": "MNO system error"
}
}
],
"status": {
"code": "CB-00-0000",
"message": "Success",
"detail": null
},
"total_count": 111
}
Last modified: 1 年前