Exporting Bill Information
Function
Export bill information.
URI
POST /koodrive/ose/v1/reconciliation/export
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Definition: Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. For details about how to obtain an access token, see the corresponding developer guide. The format is Bearer+{access_token}. Constraints: N/A Range: N/A Default Value: N/A |
| X-Date | Yes | String | Definition: Date, which is used for app authentication. Constraints: The format is yyyyMMDD'T'HHmmss'Z', for example, 20251103T070140Z. Range: The value must be within 15 minutes from the current time and cannot be later than the current time. Default Value: N/A |
| X-User-Id | Yes | String | Definition: User ID on KooDrive, which is used for app authentication. Constraints: N/A Range: N/A Default Value: N/A |
| x-traceid | No | String | Definition: Service trace ID, which contains 58 bits. Constraints: N/A Range: The value contains 58 bits. Default Value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| billingCycle | Yes | String | Definition: Billing cycle. Constraints: The format is yyyy-mm. For example, 2025-09 indicates the bill cycle of September. Range: Past bill cycle. Default Value: N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| downloadUrl | String | KooDrive bill download address. |
| urlExpires | Long | URL expiration time, in milliseconds. |
| total | Long | Total number of bills |
Example Requests
Request for exporting reconciliation information.
/koodrive/ose/v1/reconciliation/export
{
"billingCycle" : " 2025-08"
} Example Responses
Status code: 200
Bill export response.
{
"downloadUrl" : "https://xxx.cn-north-4.myhuaweicloud.com/reconciliationExport%2Ftenants31_test%2F20251027%2FBillDetail_20251027112447_1c1c54e7-8c8b-4dac-a72e-6a7b12857baf.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=HPUA8WFGVY35JSJDL1GV%2F20251027%2Fregion%2Fs3%2Faws4_request&X-Amz-Date=20251027T112447Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3Bfilename%3DBillDetail_20251027112447_1c1c54e7-8c8b-4dac-a72e-6a7b12857baf.csv&X-Amz-Signature=3ac0405fa2d7ff951bd985e1904e210eb861ae4453b0cafd9a6124e33060412a",
"urlExpires" : 86400000,
"total" : 4,
"code" : 0,
"msg" : "Success."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Bill export response. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot