Cancel trade
Changed onThis endpoint cancels the trade in the awaiting_transfer_in state and returns a trade object for the cancelled trade.
patch/trades/{id}/cancel
Request
- Base URLhttps://app-api.sandbox.coinify.com
- URLhttps://app-api.sandbox.coinify.com/trades/{id}/cancel
- Authnone required
Path parameters
idstring required
ID of the existing trade that should be cancelled.
Headers
Authorizationstring required
Must contain Bearer <access_token> value as received upon Authentication.
Response
200
Example response
{
"id": 209276,
"trackingId": "87435f3e-1d30-4cc5-9a1b-1cb7485c3d74",
"state": "cancelled",
"traderId": 13450,
"traderEmail": "sni+alltest@coinify.com",
"inAmount": 1,
"inCurrency": "ETH",
"outCurrency": "DKK",
"outAmountExpected": 16117.52,
"transferIn": {
"id": 621676,
"sendAmount": 1,
"receiveAmount": 1,
"currency": "ETH",
"medium": "blockchain",
"details": {
"account": "0x42cE19972118a6F59fcA1D7E13A09712E9C83884",
"paymentUri": "ethereum:0x42cE19972118a6F59fcA1D7E13A09712E9C83884?value=1e18"
},
"mediumTransactionId": "6cb45437-a7c0-456a-8811-41a1fbec2eb1"
},
"transferOut": {
"id": 621677,
"sendAmount": 16117.52,
"receiveAmount": 14344.59,
"currency": "DKK",
"medium": "bank",
"details": {
"account": {
"bic": "NDEADKKK",
"number": "DK5000400440116243",
"currency": "DKK"
},
"bank": {
"address": {
"country": "DK"
}
},
"holder": {
"name": "John Doe",
"address": {
"city": "Exampleville",
"state": "CA",
"street": "123 Example Street",
"country": "US",
"zipcode": "12345"
}
}
},
"mediumReceiveAccountId": 43263
},
"createTime": "2024-11-05T14:21:48.971Z",
"updateTime": "2024-11-05T14:21:49.006Z"
}Changes
- info
endpoint added
- info