A recurring payment and its runs, newest first
GET
/v1/accounts/{id}/recurring-payments/{recurringId}
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/recurring-payments/rcp_01937e80a1b2c3d4e5f6a7b8c9d0e1f2" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/recurring-payments/rcp_01937e80a1b2c3d4e5f6a7b8c9d0e1f2", { headers: { Authorization: `Bearer ${process.env.IDEALX_API_KEY}` },});if (!res.ok) throw new Error((await res.json()).error.code);const data = await res.json();import osimport requests
res = requests.get( "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/recurring-payments/rcp_01937e80a1b2c3d4e5f6a7b8c9d0e1f2", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
recurringId
required
string
Responses
Section titled “Responses”OK
Media typeapplication/json
A payment repeated on a schedule from the Primary portfolio (D134)
object
id
required
string
status
required
string
recipient
required
object
kind
required
string
id
required
string
name
required
string
line
required
string
removed
required
boolean
instrumentId
required
A currency code, or a coin (CRYPTO:USDC)
string
amount
required
object
kind
required
string
amount
required
Fixed: sent each time
string | null
percent
required
Percent: share of the balance
string | null
keep
required
Above: the balance that stays
string | null
cap
required
The most one payment sends
string | null
schedule
required
object
startDate
required
string
frequency
required
string
dayOfMonth
required
integer | null
lastDay
required
boolean
endDate
required
string | null
maxRuns
required
integer | null
timezone
required
string
nextRunOn
required
string | null
paymentsMade
required
integer
reference
required
string | null
lastRun
required
object
id
required
string
dueOn
required
The date it was for, local to the account
string
status
required
string
amount
required
In the units of what is sent
string | null
reason
required
Why it was skipped or failed
string | null
instructionId
required
string | null
instructionState
required
The payment it made: pending_approval, settled…
string | null
createdAt
required
string
runs
required
Array<object | null>
object
id
required
string
dueOn
required
The date it was for, local to the account
string
status
required
string
amount
required
In the units of what is sent
string | null
reason
required
Why it was skipped or failed
string | null
instructionId
required
string | null
instructionState
required
The payment it made: pending_approval, settled…
string | null
Example
{ "status": "active", "recipient": { "kind": "bank" }, "amount": { "kind": "fixed" }, "schedule": { "frequency": "weekly" }, "lastRun": { "status": "running" }, "runs": [ { "status": "running" } ]}Not found
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" }}