Skip to content

Move cash, or units of an investment, between two portfolios of this account

POST
/v1/accounts/{id}/transfers
curl -X POST "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/transfers" \
-H "Authorization: Bearer $IDEALX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"fromPortfolioId": "ptf_01937c4e8a2b7d1f9e0c3b5a6d7e8fa1",
"toPortfolioId": "ptf_01937c4e8a2b7d1f9e0c3b5a6d7e8fa2"
}'
id
required
string
idempotency-key
required

Idempotency-Key: 16-128 chars; repeat it to retry safely

string

Idempotency-Key: 16-128 chars; repeat it to retry safely

Media typeapplication/json
object
fromPortfolioId
required
string
toPortfolioId
required
string
amount
object
amount
required
string

Example

1250.00
currency
required
string

Example

AUD
position

Move units of an investment (cost base kept) instead of cash

object
instrumentId
required
string
quantity
required
string
reference
string
<= 140 characters
note

Why, in your words; kept with the record, not sent with the payment

string
<= 1000 characters
attachments
Array<object>
<= 5 items

PDF, image, Word, Excel, CSV or text; up to 4 MB

object
name
required
string
<= 200 characters
contentType
required
string
dataBase64
required
string

Settled, or waiting for approval

Media typeapplication/json
object
id
required
string
kind
required
string
Allowed values: internal_transfer withdrawal crypto_withdrawal
state
required
string
fromPortfolioId
required
string
toPortfolioId
required
string | null
payeeId
required
string | null
amount
required
object
amount
required
string
currency
required
string
reference
required
string | null
note
required

The customer’s own words on why; kept with the record

string | null
attachments
required

Files kept with it; download at /v1/instructions/{id}/files/{fileId}

Array<object>
object
id
required
string
name
required
string
contentType
required
string
size
required
number
createdAt
required
string
approvalsRequired
required
number
approvals
required
number
approvedByMe
required
boolean
position
required

Set when units of an investment were moved instead of cash

object
instrumentId
required
string
quantity
required
string
createdAt
required
string

Example

{
"kind": "internal_transfer",
"amount": {
"amount": "1250.00",
"currency": "AUD"
}
}

Not enough balance, closed portfolio

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
details
object
key
additional properties

Example

{
"error": {
"code": "validation_failed"
}
}

Invalid amount

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
details
object
key
additional properties

Example

{
"error": {
"code": "validation_failed"
}
}