Rental API
SMSPVA / DOCUMENTATION
租赁错误与响应
保留原 HTTP 状态并正确处理 status 和 msg。
SMSPVA API
HTTP 200 不保证成功
接口文档定义 HTTP 200,但 status=0 仍表示失败,status=1 表示成功。存在时读取 msg,不要要求 Activation V2 的 statusCode 或 error.type。
{
"status": 0,
"msg": "Incorrect order id"
}这是 restore_user 可能返回的错误。接口页面列出了成功和错误响应,请先判断结果,再读取恢复后的订单 ID。
等待及空列表
SmsList 和 OtherSms 可在 status=1 时为空。不要套用 Activation V2 的 202 等待逻辑。通过订单检查激活状态及过期时间。
网络与空响应
超时、空响应体或非 JSON 不能确认成功。原文档说明,get_min_paypal_days 在缺少 country 或 service 时可能返回空 HTTP 响应,应提供所有必填参数。
购买、延期或恢复的结果不明时,先查看订单和历史再决定是否重试:即使没有收到响应,操作也可能已经完成。
原始错误信息
恢复示例包括 Incorrect order id、Order not found、NOBALANCE_12.50 和 The number is busy, there is already an order for this service。这些是可能收到的信息示例,其他接口也可能返回不同内容。具体请看接口参考。