Transactions

Cancel a transaction or request a refund

Owner credentials only. Refund requests require an Idempotency-Key header.

post/transactions/{transactionId}/actions

Request

  • Base URL: https://api.darwin.so/api/v1
  • URL: https://api.darwin.so/api/v1/transactions/{transactionId}/actions
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

transactionIdstring required

Headers

Idempotency-Keystring required

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

Request body

action'CANCEL' | 'REQUEST_REFUND' required
amountMinorinteger

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

Response

The updated transaction.

Changes

No recorded changes to this operation across all 1 revision of this API.