Membatalkan langganan untuk instans yang tidak lagi Anda butuhkan.
Deskripsi operasi
Refund hanya mencakup jumlah yang telah Anda bayarkan. Kupon yang telah digunakan tidak dikembalikan.
Sebelum membatalkan langganan, periksa dengan cermat informasi resource dan konfirmasi ketentuan serta jumlah refund. Setelah langganan dibatalkan, resource tersebut tidak dapat dipulihkan.
Operasi ini hanya dapat dilakukan oleh pelanggan langsung, bukan oleh reseller.
Untuk informasi selengkapnya, lihat Refund rules for the international site.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bss:RefundBatchRemainRefund |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
UUID (universally unique identifier) yang dihasilkan klien untuk memastikan idempotensi permintaan. Jika Anda melakukan beberapa panggilan dengan ClientToken yang sama, sistem akan mengembalikan hasil dari panggilan pertama. Panggilan yang berhasil akan mengembalikan ID pesanan refund. |
793F021C-B589-1225-82A9-99232AEBE494 |
| ImmediatelyRelease |
string |
No |
Parameter ini wajib diisi saat berhenti berlangganan. Nilai yang valid: 1: Instans segera dilepas. 0: Instans terlebih dahulu dihentikan sesuai kebijakan penghentiannya. Fitur ini hanya didukung untuk beberapa produk. Secara default, instans dilepas secara langsung. |
1 |
| ProductCode |
string |
No |
Kode produk. Parameter ini wajib diisi saat berhenti berlangganan. Jika kode kesalahan menunjukkan bahwa produk tidak didukung, kirimkan Tiket untuk meminta fitur ini diaktifkan. |
ecs |
| InstanceId |
string |
No |
ID instans. Ini bukan nama kustom. Parameter ini wajib diisi saat berhenti berlangganan. |
i-bp1etb69sqxgl4******* |
| ProductType |
string |
No |
Tipe produk. Parameter ini wajib diisi saat berhenti berlangganan. Kecuali dinyatakan lain, masukkan string kosong. Di API Explorer, Anda dapat secara otomatis memasukkan string kosong dengan mengarahkan pointer mouse ke kotak input lalu mengklik tombol yang muncul. Saat memanggil operasi ini dari kode Anda, gunakan string kosong "". |
空字符串 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek respons. |
||
| Message |
string |
Deskripsi hasil eksekusi. |
success |
| RequestId |
string |
ID permintaan. Berikan ID ini kepada tim dukungan teknis kami untuk troubleshooting. |
UUID |
| Data |
object |
Data yang dikembalikan. |
|
| HostId |
string |
Website tempat host berada. |
cn |
| OrderId |
integer |
ID pesanan refund. Parameter ini hanya dikembalikan jika pembatalan langganan berhasil. |
2100000000*** |
| Code |
string |
Kode respons. |
ResourceNotExists |
| Success |
boolean |
Menunjukkan apakah operasi berhasil. |
false |
Contoh
Respons sukses
JSONformat
{
"Message": "success",
"RequestId": "UUID",
"Data": {
"HostId": "cn",
"OrderId": 0
},
"Code": "ResourceNotExists",
"Success": false
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotExists | The specific resource is not exists. | |
| 400 | ResourceStatusError | The resource status error. | |
| 400 | InvalidOwner | The specified owner does not belong to caller. | |
| 400 | InvalidParameter | The specified request contains invalid parameters. | |
| 400 | MissingParameter | The specified request lacks essential parameters. | |
| 400 | NotApplicable | The specified API is not applicable for the user. | |
| 400 | NotAuthorized | The user is not authorized for the specified API. | |
| 400 | BindMirrorInstanceError | Charged images that are related to ECS. | |
| 400 | ExceedRefundQuotaError | The number of unsubscription times has reached the upper limit. | |
| 400 | ExistUnPaidOrderError | The instance has an unsettled order. | |
| 400 | ExistRefundingOrderError | The instance ID is invalid: the instance may have expired, been refunded, or been released. | |
| 400 | NoRestValueError | The refund amount is 0. | |
| 400 | AmbassadorOrderLimitError | The instance has an ambassador order that may raise risks. | |
| 400 | ActivityForbiddenError | Promotional orders do not support refunds. | |
| 400 | ProductCheckError | The cloud service failed SPI preflight verification. | |
| 400 | CommodityNotSupported | The specified commodity is not supported. | |
| 500 | InternalError | An error occurred in the internal server. | System exception, please try again |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.