Skip to content

Unlock Order

Endpoint Information

Endpoint: POST /api/v1/orders/unlock

Description: Unlock order

Authentication: API Key credential authentication

Request Parameters

FieldTypeRequiredDescription
order_hashstringYesOrder hash

Response Parameters

FieldTypeDescription
successbooleanWhether unlock succeeded
order_hashstringOrder hash
messagestringResult description

Request Example

bash
curl -X POST "/api/v1/orders/unlock" \
     -H "X-API-Key: YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "order_hash": "0x1234567890abcdef..."
     }'

Response Example

json
{
    "code": 0,
    "data": {
        "success": true,
        "order_hash": "0x1234567890abcdef...",
        "message": "Order unlocked successfully"
    }
}

Notes

  • Can only unlock orders locked by yourself
  • After unlocking, order returns to pending status
  • Other Takers can re-lock the order