Cancel a offer(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}/offers/cancel
curl \
-X POST https://api.dewapi.com/open/v1/137/offers/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": {
"code": 0,
"order_hash": "0x41a2753400f805db148079f60355df470aece45941a45cb96a25ab5d24e4c243"
}
}
Response examples (400)
{
"code": 3000,
"error": "this is an error message",
"errors": [
{
"field": [
"error message"
]
}
]
}