Skip to main content

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

NameTypeInDescription
node_idstringPath. The ID of the node
token_idstringPath. The ID of the token
deal_idintegerPath. The ID of the deal to cancel

Headers

NameTypeDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. 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