订购
获取订购信息
查询示例:
curl -X GET https://resi-api.iproyal.com/v1/residential/subscription \
-H "Authorization: Bearer <your_api_token>"<?php
$api_token = '<your_api_token>';
$url = 'https://resi-api.iproyal.com/v1/residential/subscription';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$headers = [
"Authorization: Bearer $api_token"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
?>查询结果:
{
"quantity": 1000,
"amount": 3150,
"status": "paid",
"next_payment_date": "2025-07-26",
"payment_method": "balance",
"card_id": null
}删除订购
查询示例:
更换付款方式
名称
类型
说明
查询示例:
Last updated