Skip to main content
POST
Cancel a transaction or request a refund

Authorizations

Authorization
string
header
required

Darwin API keys begin with darwin_ and are created in Developer settings.

Headers

Idempotency-Key
string
required

A caller-generated key, unique to this operation and payload.

Required string length: 1 - 200

Path Parameters

transactionId
string
required

Body

application/json
action
enum<string>
required
Available options:
CANCEL,
REQUEST_REFUND
amountMinor
integer

Optional partial refund amount. Omit to request the remaining refundable amount.

Required range: x >= 1

Response

The updated transaction.

transaction
object
required