Domain name for API request: sms.tencentcloudapi.com.
This API is used to collect statistics on user's packages.
A maximum of 10 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: SmsPackagesStatistics. |
Version | Yes | String | Common parameter. The value used for this API: 2019-07-11. |
Region | No | String | Common parameter. This parameter is not required for this API. |
SmsSdkAppid | Yes | String | SMS SdkAppid actually generated after an application is added in the SMS Console, such as 1400006666. |
Limit | Yes | Integer | Upper limit (number of packages to be pulled). |
Offset | Yes | Integer | Offset. Note: this parameter is currently fixed at 0. |
Parameter Name | Type | Description |
---|---|---|
SmsPackagesStatisticsSet | Array of SmsPackagesStatistics | Delivery statistics response packet body. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://sms.tencentcloudapi.com/?Action=SmsPackagesStatistics
&SmsSdkAppid=1400006879
&Limit=2
&Offset=0
&<Common request parameters>
{
"Response": {
"SmsPackagesStatisticsSet": [
{
"PackageCreateTime": "2019-05-01 00:00:02",
"PackageEffectiveTime": "2019-05-01 00:00:00",
"PackageExpiredTime": "2019-05-31 23:59:59",
"AmountOfSmsInPackage": 100,
"TypeOfPackage": 0,
"PackageId": 1000876572,
"CurrentUsage": 100
},
{
"PackageCreateTime": "2019-04-01 00:00:02",
"PackageEffectiveTime": "2019-04-01 00:00:00",
"PackageExpiredTime": "2019-04-30 23:59:59",
"AmountOfSmsInPackage": 100,
"TypeOfPackage": 0,
"PackageId": 1000791745,
"CurrentUsage": 100
}
],
"RequestId": "90242d16-de50-4c9a-80fc-7709b566e93e"
}
}
This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.FailResolvePacket | Failed to parse the request packet. Generally, this is because that the API specification was not followed. Please see Detailed Explanation of Request Body Parsing Error 1004. |
FailedOperation.JsonParseFail | Failed to parse the request packet. |
FailedOperation.PhoneNumberInBlacklist | The mobile number is in the blocklist. Generally, this is because that the recipient has unsubscribed or the carrier's blocklist was hit. You can contact SMS Helper for assistance. |
FailedOperation.SignatureIncorrectOrUnapproved | The signature is in incorrect format or has not been approved. A signature can only contain 2-12 letters and digits. If the signature format is correct, please check whether it has been approved. |
InternalError.OtherError | Other error. Please contact SMS Helper and provide the failed mobile number for assistance. |
InternalError.RequestTimeException | The request was initiated in an exceptional time. Generally, this is because that the difference between your server time and Tencent Cloud server time exceeds 10 minutes. Please check whether the server time and the time field in the API are correct. |
InternalError.RestApiInterfaceNotExist | This RESTful API does not exist. Please check the RESTful API description. |
InternalError.SendAndRecvFail | |
InternalError.SigFieldMissing | The request packet in the backend packet does not have a Sig field or the Sig field is empty. |
InternalError.SigVerificationFail | Sig check on backend failed. |
InternalError.Timeout | The request to deliver an SMS message timed out. Please see Detailed Explanation of Error 60008. |
InternalError.UnknownError | Unknown error. |
InvalidParameter | Invalid parameter. |
InvalidParameterValue.IncorrectPhoneNumber | The format of the mobile number is incorrect. Please see Detailed Explanation of Error 1016. |
InvalidParameterValue.SdkAppidNotExist | The SdkAppid does not exist. |
MissingParameter | Missing parameter. |
UnauthorizedOperation.RequestIpNotInWhitelist | The requesting IP is not in the whitelist. You have configured verification of request source IP, but the current requesting IP is not in the configured whitelist. If necessary, please contact SMS Helper for assistance. |
UnauthorizedOperation.RequestPermissionDeny | You do not have permission to make the request. Please contact SMS Helper for assistance. |
UnauthorizedOperation.SdkAppidIsDisabled | This sdkappid is forbidden to provide services. If necessary, please contact SMS Helper for assistance. |
UnauthorizedOperation.SerivceSuspendDueToArrears | The service has been suspended due to arrears. You can log in to Tencent Cloud to top up your account. |
UnauthorizedOperation.SmsSdkAppidVerifyFail | SmsSdkAppid check failed. |
UnsupportedOperation. | This request is not supported. |
Was this page helpful?