解鎖訂單
接口信息
接口: POST /api/v1/orders/unlock
描述: 解鎖訂單
鑑權: API Key憑據認證
請求參數
| 字段 | 類型 | 必填 | 說明 |
|---|---|---|---|
| order_hash | string | 是 | 訂單哈希值 |
響應參數
| 字段 | 類型 | 說明 |
|---|---|---|
| success | boolean | 解鎖是否成功 |
| order_hash | string | 訂單哈希值 |
| message | string | 業務結果描述信息 |
請求示例
bash
curl -X POST "/api/v1/orders/unlock" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_hash": "0x1234567890abcdef..."
}'響應示例
json
{
"code": 0,
"data": {
"success": true,
"order_hash": "0x1234567890abcdef...",
"message": "Order unlocked successfully"
}
}注意事項
- 只能解鎖自己鎖定的訂單
- 解鎖後訂單恢復為待處理狀態
- 其他Taker可以重新鎖定該訂單