Unsubscribe prepaid EIP
Updated at:2025-10-16
- Releasing and refunding prepaid EIPs.
- Only prepaid EIPs can be unsubscribed, whereas postpaid EIPs cannot be unsubscribed and can only be directly released via the Release EIP API.
- EIPs that are actively blocked cannot be unsubscribed. Please try again after unblocking the EIP.
- EIPs that are bound to a VPN or NAT cannot be unsubscribed. Please retry after unbinding the EIP from the VPN or NAT.
- EIPs associated with bandwidth packages cannot be unsubscribed. Please retry after releasing the bandwidth package.
- EIPs within an EIPGROUP cannot be unsubscribed directly. You need to unsubscribe from the EIPGROUP or remove the EIP from the group before releasing it.
EIP refund features a penalty mechanism, with refund amount = max (0, total amount - consumed amount * 1.5)
Request structure
Plain Text
1PUT /v{version}/eip/refund/{eip}?clientToken={clientToken} HTTP/1.1
2Host: eip.bj.baidubce.com
3Authorization: authorization string
Request headers
No special headers beyond common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| eip | String | Yes | URL parameter | EIPs eligible for unsubscription include both IPv4 and IPv6 types. |
| clientToken | String | Yes | Query | Idempotence token; refer to [Idempotence](EIP/API Reference/General Description.md#Idempotence) for details |
Response status code
Respond with 200 after successful operation, and respond with error codes after failed operation, as shown in [Error Codes](EIP/API Reference/Error code.md)
Response headers
No special headers beyond common headers.
Response parameters
There are no special response parameters
IPv4 EIP request example
Plain Text
1PUT /v1/eip/refund/120.48.186.29?clientToken=f4b26d37-445e-40bc-af98-07974495eae9 HTTP/1.1
2HOST eip.bj.baidubce.com
3Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2024-06-18T09:21:55Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
IPv6 EIP request example
Plain Text
1PUT /v1/eip/refund/2400:da00:e003:2005:0:6:0:33c?clientToken=9b0afdb0-7aaa-4f27-bf59-7189ccd8457d HTTP/1.1
2HOST eip.bj.baidubce.com
3Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2024-06-18T09:21:55Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 84b7e850-e547-4330-a063-f172296002e4
3Date: Tue, 18 Jun 2024 09:21:55 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
