API Reference
DELETE
/v1/orders/{orderId} Cancel order
按订单 ID 撤销订单。
Parameters
| Name | Location | Type | Required | Constraints |
|---|---|---|---|---|
orderId | path | string | yes | minLength: 1 |
Request body
This endpoint does not accept a JSON request body.
Responses
200 OK
400 Bad Request
401 Unauthorized
404 Not Found
502 Upstream Error
Examples
curl -X DELETE 'https://api.jd.io/v1/orders/<ORDER_ID>' \
-H 'Authorization: Bearer <USER_API_KEY>' {
"ok": true,
"data": {
"userId": "user_123",
"address": "0x0000000000000000000000000000000000000000",
"funder_address": "0x0000000000000000000000000000000000000000"
}
}