# 提交訂單
## 請求路徑
> /api.php?act=pay
## 請求方式
* **POST**
## 參數說明
| 參數名 | 必填 | 類型 | 說明 |
| --- | --- | --- | --- |
| user| 是 |string|用戶名|
| pass |是 |string|用戶密碼|
| tid |是 |int|商品ID|
| num | 是 |int|下單數量|
| input1 |是 |string|商品參數|
| input2 |按需 |string|商品參數|
| input3 |按需 |string|商品參數|
| input4 |按需 |string|商品參數|
| input5 |按需 |string|商品參數|
> 填寫賬號密碼則獲取商品密價信息
## 請求示例
```
{
"user":"123",
"pass":"123",
"tid":3221,
"input1":"fwaoief"
}
```
## 返回示例
```
{
"code": 0,
"message":"success",
"orderid":"123123",
"faka":true,
"kmdata":"aioufhewawef",
}
```
## 返回參數
| 參數名 | 類型 | 說明 |
| --- | --- | --- |
| code|string|狀態碼|
| message|string|消息|
| orderid|string|訂單id|
| faka|string|是否發卡商品|
| kmdata|string|卡密信息(卡密商品才有)|
## 錯誤示例
```
{
"code":-1,
"message":"用戶名或密碼不正確"
}
```