Request structure

Last updated:2021-05-27 17:52:42

To call an API operation of Kingsoft Cloud Billing Center, you must create a request, add common parameters and operation-specific parameters to the request based on the API document, and send the request to the specified endpoint. The request structure is as follows:

1. Endpoints and request methods

API operation type Endpoint Request method
Account balance operation kingpay.api.ksyun.com GET
Instance service operations trade.api.ksyun.com POST
Bill operations bill-union.api.ksyun.com GET
Pay-As-You-Go bill operations krtpay.api.ksyun.com GET
Postpaid bill operations bill.api.ksyun.com GET

Note: If the GET method is used, all request parameters must be URL-encoded.

2. Communication protocol

You can send a request over HTTP or HTTPS. We recommend that you use HTTPS for higher security.

3. Request parameters

The request contains common request parameters and operation-specific request parameters. The common request parameters are required for all API operations. For more information, see Common parameters. The operation-specific request parameters vary with API operations. For more information, see the “Request parameters” section for each API operation.

The following table describes the Service and Region parameters required for constructing common parameters.

API operation type Service Region
Account balance operation kingpay cn-beijing-6
Instance service operations trade cn-beijing-6
Bill operations bill-union cn-beijing-6
Pay-As-You-Go bill operations krtpay cn-beijing-6
Postpaid bill operations bill cn-beijing-6

4. Character encoding

The requests and responses are encoded by using UTF-8 character sets.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈