Skip to main content
POST
Create Transaction

Authorizations

Authorization
string
header
required

Your API key, kp_test_… or kp_live_….

Body

application/json
fromEntityId
string
required

The customer whose balance this moves out of.

idempotencyKey
string
required
Required string length: 8 - 255
asset
string
required

Chain-qualified asset code, e.g. USDT_TRON.

Pattern: /^[A-Z0-9_]{2,16}$/
amount
string
required

Minor units, as a string — an amount is never a float.

Pattern: /^[1-9][0-9]{0,38}$/
toEntityId
string

Internal: another customer of the same merchant.

toAddress
string

External: a blockchain address. Goes through the withdrawal rail.

Required string length: 16 - 120
memoTag
string
Maximum string length: 64
approvals
string[]

Approver identities, when withdrawal policy requires sign-off.

reason
string

The merchant's own label for this movement — "sell", "buy", "sweep". Recorded for audit; never branched on, so a new product name needs no change here.

Maximum string length: 40
metadata
object

Response