Skip to main content
POST
/
transactions
/
{transaction_id}
/
cancellations
Cancel a transaction
curl --request POST \
  --url https://api.platform.dakota.xyz/transactions/{transaction_id}/cancellations \
  --header 'x-api-key: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>'
{
  "type": "https://docs.dakota.xyz/api-reference/errors#invalid-request",
  "title": "Invalid request or transaction cannot be cancelled.",
  "status": 400,
  "detail": "Invalid request or transaction cannot be cancelled.",
  "instance": "https://api.platform.dakota.xyz/transactions/example-id/cancellations",
  "request_id": "req_01hzy6y7v8w9x0y1z2a3b4c5d6"
}

Authorizations

x-api-key
string
header
required

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure request idempotency. If the same key is used within a certain time window, the original response will be returned instead of executing the request again.

Path Parameters

transaction_id
string
required

Unique identifier of the transaction. KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Response

Transaction cancelled successfully.