LinkVisual video cloud storage purchase service

更新时间:
复制 MD 格式

This section describes the process and APIs for purchasing LinkVisual video cloud storage services. The APIs cover both free and paid plans and allow you to query and claim free plans, query lists of paid plans, check plan purchase eligibility, purchase plans, and query order details and lists.

Query the details of a free cloud storage plan

Description

PathVersionDescriptioncloudToken required
/vision/customer/freecloudstorage/get1.0.1Queries the details of a free cloud storage plan.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYes-The device ID.

Response parameters

ParameterTypeRequiredDescription
typeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
lifecycleintYesThe storage period in days.
monthsintYesThe service period in months.
consumedintYesIndicates whether the plan has been claimed. 0: not claimed. 1: claimed.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
expiredintYesIndicates whether the plan has expired.
remainQuotaintYesThe remaining quota of the complimentary cloud storage in months.

Claim a free cloud storage plan

Description

PathVersionDescriptioncloudToken required
/vision/customer/freecloudstorage/consume1.0.3Claims a free cloud storage plan.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYes-The device ID.
enableDefaultPlanbooleanNofalseSpecifies whether to set the default 24/7 continuous recording plan and event-based recording plan.
immediateUsebooleanNofalseSpecifies whether to use the plan immediately. If you set this parameter to true, the newly claimed free plan takes effect immediately. If you set this parameter to false, the newly claimed free plan takes effect after the previous plan expires.
preRecordDurationintNo5The pre-recording duration for event-based recording. Valid values: 0 to 5 seconds.
recordDurationintNo10The total duration of an event-based recording. Valid values: 0 to 30 seconds.
quotaintNo1The complimentary cloud storage quota to use. Valid values: 1 to 3 months.

Response parameters

ParameterTypeRequiredDescription
typeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
lifecycleintYesThe storage period in days.
monthsintYesThe service period in months.
consumedintYesIndicates whether the plan has been claimed. 0: not claimed. 1: claimed.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-dd HH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-dd HH:mm:ssZ.
expiredintYesIndicates whether the plan has expired.
remainQuotaintYesThe remaining quota of the complimentary cloud storage in months.

Query the list of video cloud storage plans

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/commodity/query1.0.3Queries the list of video cloud storage plans.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
categoryStringNoCAMERAThe product category. Valid values: CAMERA and DOORBELL. CAMERA: camera. DOORBELL: doorbell.

Response parameters

ParameterTypeRequiredDescription
cloudStorageCommodityListListYesThe list of cloud storage plans.

cloudStorageCommodityList

ParameterTypeRequiredDescription
commodityNameStringYesThe name of the cloud storage plan.
commodityCodeStringYesCloud Storage Plan Code
specificationStringYesThe specifications of the cloud storage plan.
typeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
priceStringYesThe price of the cloud storage plan in CNY.
lifecycleintYesThe storage period in days.
monthsintYesThe service period in months.
descriptionStringNoThe description of the cloud storage plan.
iconStringNoThe URL of the cloud storage plan icon.

Check if a cloud storage plan can be purchased

Description

pathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/commodity/check1.0.2Checks if a cloud storage plan can be purchased.Optional

Request parameters

ParameterTypeRequiredDescription
iotIdStringYesThe device ID.
commodityCodeStringYesCloud Storage Plan Code
specificationStringYesThe specifications of the cloud storage plan.

Response parameters

ParameterTypeRequiredDescription
availablebooleanYesAvailable for purchase

Purchase a cloud storage plan

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/commodity/buy1.0.5Purchases a cloud storage plan.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYes-The device ID.
userNameStringYes-The username.
commodityCodeStringYes-Cloud Storage Package ID
specificationStringYes-The specifications of the cloud storage plan.
copiesintYes-The quantity to purchase.
enableDefaultPlanbooleanNofalseSpecifies whether to set the default 24/7 continuous recording plan and event-based recording plan.
immediateUsebooleanNofalseSpecifies whether to use the plan immediately. If you set this parameter to true, the newly purchased plan takes effect immediately. If you set this parameter to false, the newly purchased plan takes effect after the previous plan expires.
preRecordDurationintNo5The pre-recording duration for event-based recording. Valid values: 0 to 5 seconds.
recordDurationintNo10The duration of an event-based recording. Valid values: 0 to 30 seconds.

Response parameters

ParameterTypeRequiredDescription
orderIdStringYesThe order ID.

Get the order details of a cloud storage plan

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/order/get1.0.3Gets the order details of a cloud storage plan.Optional

Request parameters

ParameterTypeRequiredDescription
iotIdStringYesThe device ID.
orderIdStringYesThe order ID.

Response parameters

ParameterTypeRequiredDescription
orderIdStringYesThe order ID.
commodityCodeStringYesCloud Storage Plan Code
specificationStringYesCloud Storage Specifications
copiesintYesThe purchased quantity.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
expiredintYesExpiration status
paymentStatusintYesThe payment status. 1: paid. 0: unpaid.
priceStringYesThe price of the cloud storage plan in CNY.
commodityTypeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

Query the order list of cloud storage plans

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/order/query1.0.3Queries the order list of cloud storage plans.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYesNoneThe device ID.
pageStartintNo0The starting page number. Default value: 0.
pageSizeintNo20The number of entries per page. Maximum value: 50.

Response parameters

Parameter nameTypeRequiredDescription
pageNointYesThe current page number.
pageSizeintYesPage size
pageCountintYesThe total number of pages.
totalintYesThe total number of records.
orderListJSONYesThe list of orders.

orderList

ParameterTypeRequiredDescription
orderIdStringYesThe order ID.
commodityCodeStringYesCloud Storage Package Code
specificationStringYesThe specifications of the cloud storage plan.
copiesintYesThe purchased quantity.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
expiredintYesIndicates whether the plan has expired.
paymentStatusintYesThe payment status. 1: paid. 0: unpaid.
priceStringYesThe price of the cloud storage plan in CNY.
commodityTypeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

Activate a free cloud storage plan immediately

Description

PathVersionDescriptioncloudToken required
/vision/customer/freecloudstorage/enable1.0.0Activates a free cloud storage plan immediately.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYes-The device ID.

Response parameters

ParameterTypeRequiredDescription
typeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
lifecycleintYesThe storage period in days.
monthsintYesThe service period in months.
consumedintYesIndicates whether the plan has been claimed. 0: not claimed. 1: claimed.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
expiredintYesIndicates whether the plan has expired.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

Activate a cloud storage plan immediately

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/commodity/enable1.0.0Activates a cloud storage plan immediately.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYes-The device ID.
orderIdStringYes-The order ID.

Response parameters

ParameterTypeRequiredDescription
orderIdStringYesThe order ID.
commodityCodeStringYesCloud Storage Package Code
specificationStringYesThe specifications of the cloud storage plan.
copiesintYesThe purchased quantity.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
expiredintYesThe order status. 0: not expired. 1: expired. 2: frozen.
paymentStatusintYesThe payment status. 0: unpaid. 1: paid.
priceStringYesThe price of the cloud storage plan in CNY.
commodityTypeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

Transfer a cloud storage plan

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/transfer1.0.0Transfers a user's cloud storage plan. You can only transfer a cloud storage plan between devices that are under the same administrator account.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
srcIotIdStringYesDevice ID
srcOrderIdStringYesOrder ID
dstIotIdStringYesThe destination device ID.
enableDefaultPlanbooleanNofalseSpecifies whether to set the default 24/7 continuous recording plan and event-based recording plan.
immediateUsebooleanNofalseSpecifies whether the new package takes effect immediately. A value of true indicates that the package takes effect immediately, while a value of false indicates that the package takes effect after the current package expires.

Response parameters

ParameterTypeRequiredDescription
orderIdStringYesThe order ID.
commodityCodeStringYesCloud Storage Plan ID
specificationStringYesThe specifications of the cloud storage plan.
copiesintYesThe purchased quantity.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
expiredintYesThe order status. 0: not expired. 1: expired. 2: frozen.
paymentStatusintYesThe payment status. 0: unpaid. 1: paid.
priceStringYesThe price of the cloud storage plan in CNY.
commodityTypeStringYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

Deactivate a cloud storage plan

Description

PathVersionDescriptioncloudToken required
/vision/customer/cloudstorage/status/set1.0.0Sets the status of a cloud storage plan for a user's device.Optional

Request parameters

ParameterTypeRequiredDefault valueDescription
iotIdStringYesThe device ID.
orderIdStringYesThe order ID.
statusintYesThe status of the cloud storage order. 2: freeze and deactivate.

Response parameters

ParameterTypeRequiredDescription
orderIdStringYesThe order ID.
commodityCodeStringYesCloud Storage Plan Code
specificationStringYesThe specifications of the cloud storage plan.
copiesintYesThe purchased quantity.
startTimeStringYesThe start time. Format: yyyy-MM-dd HH:mm:ss.
endTimeStringYesThe end time. Format: yyyy-MM-dd HH:mm:ss.
expiredintYesThe order status. 0: not expired. 1: expired. 2: frozen.
paymentStatusintYesThe payment status. 0: unpaid. 1: paid.
priceStringYesThe price of the cloud storage plan in CNY.
commodityTypeintYesThe type of the cloud storage plan. 1: continuous recording. 2: event-based recording.
startTimeUTCStringYesThe start time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.
endTimeUTCStringYesThe end time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.