Add Bundle
POST
/sims/{sim_id}/bundleLast modified: 10 个月前
Description
Version
v1.0
Basic Bundle
Basic bundle rules
- Add bundle will not change the current SIM status.
- One SIM can have multiple basic bundles.
- Only one basic bundle can be used at a time.
- If multiple basic bundles are added to the SIM, the earlier bundle will be used by default (FIFO) ( when being activated).
- When SIM is suspended, the service will be temporarily stopped and the service validity will still decrease with time.
- When SIM status is
Terminated
, this API will not work.
Add-on Bundle - Pending
If the data of the SIM is insufficient in current cycle, add-on bundle will increase the data volume before the cycle ends. It dose not replace the basic bundle in use.
Add on bundle rules
- SIM status must be
Active
. - The basic bundle must support add on bundle.
- The add on bundle start immediately after being added.
- When SIM is suspended, the add-on bundle will be removed.
- When SIM is resumed, the add-on cannot be restored.
请求参数
Path Params
sim_id
string
required
Body Params application/json
timestamp
string
required
nonce
integer
required
random
bundle_id
string
optional
Bundle ID
bundle_type
integer
required
bundle type:10 - Basic、11 - Add on
cycles
integer
optional
Number of add cycles. This value does not take effect when the type is 11- add on. If the type is 10 - basic, the value is mandatory. If it is empty, the value is 1 by default
Example
{
"timestamp": "16740122699896",
"nonce": 22,
"bundle_id": "LP09823222320",
"bundle_type": 10,
"cycles": 3
}
示例代码
Responses
Success(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
data
string
required
status
object
required
code
string
required
message
string
required
detail
string
optional
Example
成功示例
{
"data": null,
"status": {
"code": "CB-00-0000",
"message": "Success",
"detail": null
}
}
Last modified: 10 个月前