# StartPayUnpaidOrders - StartPayUnpaidOrders

## Overview

Batch payment for overdue orders, specify OrderNos to pay, up to 50 at a time




## Usage

You can choose any of the following methods to initiate an API request:
- Multi-language OpenSDK / [Go](https://github.com/ucloud/ucloud-sdk-go) / [Java](https://github.com/ucloud/ucloud-sdk-java) / [Python](https://github.com/ucloud/ucloud-sdk-python3) / [JavaScript](https://github.com/ucloud/ucloud-sdk-js) / [PHP](https://github.com/ucloud/ucloud-sdk-php) /
- [CloudShell](https://shell.ucloud.cn/)

## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `StartPayUnpaidOrders`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.ucloud.cn/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](https://docs.ucloud.cn/api/summary/signature)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **OrderNos.N** | string | List of overdue order numbers, up to 50 in total |**Yes**|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **SuccessCount** | int | Number of successful payments |**Yes**|
| **FailureCount** | int | Number of payment failures |**Yes**|
| **Results** | [*PayResult*](#payresult) | Payment result |No|

#### Data Model

#### PayResult

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **OrderNo** | string | Order Number |No|
| **Success** | boolean | Success |No|
| **Reason** | string | Fail reason |No|

## Example

### Request Example
```
https://api.ucloud.cn/?Action=StartPayUnpaidOrders
&OrderNos.N=lbShwmqm
&OrderNos.N=grbzlKRi
&OrderNos.N=VBbOUETC
```

### Response Example
```json
{
  "Action": "StartPayUnpaidOrdersResponse",
  "FailureCount": 9,
  "Results": {},
  "RetCode": 0,
  "SuccessCount": 7
}
```
