套餐升级/降级
POST
https://openapi-cn01.tange365.com/v2/cloud-service/switch
/v2/cloud-service/switch
智能识别服务
本质是修改套餐能力,如一下场景:
已购买套餐A(事件录像保存3天)
想升级到套餐B(事件录像保存7天)
那可传参为:{"order_id":<套餐A的订单ID>,"service_id":<
B套餐ID>}
请求参数
Header 参数
X-Tg-App-Id
string
必需
默认值:
{{app-id}}
Accept-Language
string
必需
默认值:
{{language}}
Authorization
string
必需
默认值:
{{access_token}}
X-Tg-Signed-Headers
string
必需
默认值:
x-tg-app-id;x-tg-date
示例值:
content-length;content-type;x-tg-app-id;x-tg-date
X-Tg-Date
string
必需
默认值:
20060102T150405Z
X-Tg-Content-Sha256
string
必需
X-Tg-Algorithm
string
必需
默认值:
TGV1-HMAC-SHA256
Content-Type
string
必需
默认值:
application/json
Content-Length
string
必需
Body 参数application/json
示例代码
返回响应
修改于 2025-03-11 09:06:55