Cancel a listing(s) from the Dew marketplace. This is an off-chain cancel and others already obtained its signature would still be able to fulfill it. Cancelling on-chain is always recommended.
POST
/open/v1/{network_id}/orders/cancel
curl \
-X POST https://api.dewapi.com/open/v1/137/orders/cancel \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"signature":"0x1234","order_hash":"0x1234","offerer":"0x40415c1c0e7a8ff3e184b51a94a2fc5b92df9434"}'
Request example
{
"signature": "0x1234",
"order_hash": "0x1234",
"offerer": "0x40415c1c0e7a8ff3e184b51a94a2fc5b92df9434"
}
Response examples (200)
{
"code": 0,
"data": {
"order_hash": "0x41a2753400f805db148079f60355df470aece45941a45cb96a25ab5d24e4c243",
"data": {
"signature": "0x1234",
"parameters": {
"offerer": "string",
"offer": [
{
"itemType": 2,
"token": "string",
"identifierOrCriteria": 42,
"startAmount": 42,
"endAmount": 42
}
],
"consideration": [
{
"itemType": 0,
"token": "string",
"identifierOrCriteria": 42,
"startAmount": 42,
"endAmount": 42,
"recipient": "string"
}
],
"startTime": 42,
"endTime": 42,
"orderType": 0,
"zone": "0x0000000000000000000000000000000000000000",
"zoneHash": "string",
"salt": "string",
"conduitKey": "string",
"totalOriginalConsiderationItems": 42,
"counter": "1"
}
},
"error": "string"
}
}
Response examples (400)
{
"code": 3000,
"error": "this is an error message",
"errors": [
{
"field": [
"error message"
]
}
]
}