Skip to main content

Admin Accept OTC Deal

Accepts an OTC deal for a specific token and node.

Request

POST /v2/admin/otcs/nodes/{node_id}/tokens/{token_id}/deals/{deal_id}/accept

Parameters

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

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/accept' \
--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 accepted. No response body is returned.

Notes

  • This endpoint requires admin privileges
  • The deal must be in a valid state to be accepted
  • Once accepted, the deal status will be updated accordingly
  • This action cannot be undone