Admin Cancel OTC Deal
Cancels an OTC deal for a specific token and node.
Request
POST /v2/admin/otcs/nodes/{node_id}/tokens/{token_id}/deals/{deal_id}/cancel
Parameters
| Name | Type | In | Description |
|---|---|---|---|
node_id | string | Path. The ID of the node | |
token_id | string | Path. The ID of the token | |
deal_id | integer | Path. The ID of the deal to cancel |
Headers
| Name | Type | Description |
|---|---|---|
Authorization | Required. Bearer token for authentication | |
Content-Type | Required. application/json |
Example
curl --location --request POST '\{\{baseUrl\}\}/v2/admin/otcs/nodes/6810a8e5b45680e7d2f95bad/tokens/68ae06cfcccf4e8fc19362d1/deals/2/cancel' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Response
Status Code: 200 No Content
The request is successful and the OTC deal has been cancelled. No response body is returned.
Notes
- This endpoint requires admin privileges
- The deal must be in a valid state to be cancelled
- Once cancelled, the deal status will be updated accordingly
- This action cannot be undone