Submit an interest accrual instruction [Beta]

Submit an interest accrual instruction for an interest-bearing account, for example, when the account is closed or canceled. Use reversal to choose whether the eligible non-capitalized accrued interest is reversed (true) or only reported (false).

Identify the account with exactly one of the x-account-id or x-external-account-id headers. The account is not passed in the request body. Passing both headers, or neither, returns a 400 error. If the account is not found, a 404 error is returned.

The instruction is processed asynchronously. The 200 response only confirms that the instruction was accepted. It doesn't contain interest amounts. The result, including the net and gross interest amounts, is delivered in an Interest accrual instruction succeeded or Interest accrual instruction failed event.

instruction_id identifies an instruction within your organization and program. The endpoint doesn’t check for duplicates when it receives a request, so a request with a repeated instruction_id always returns 200 (assuming the instruction is accepted). The check happens later, during asynchronous processing, and its result shows up only in the events. During processing, the instruction_id is compared with the instructions that were already processed successfully.

  • If no previous successful instruction has this instruction_id, the request is processed as a new instruction.
  • If a previous successful instruction does have the same instruction_id, the content of the two requests is compared.

    If the content is the same, the request is not processed again, and no event is generated.

    If the content is different, the request is not processed, and an Interest accrual instruction failed event is generated with the message duplicated instruction_id. The first instruction isn't affected.

The optional fields account_id, external_account_id, division_id, and division_code are returned in the response only when passed in the request.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Interest accrual instruction

The account is not passed in the body. Identify it with the x-account-id or x-external-account-id header.

string
required
length between 1 and 64

Customer-generated instruction ID, up to 64 characters. Must not be blank.

instruction_id, org_id, and program_id act together as an idempotency key for the request. This combination should be unique within your organization and program and across all accounts in that program. So, two requests count as the same instruction only when all three values match.

string
required
length between 1 and 64

Business reason for the instruction. Free text. For example, Account closure or Account cancellation.

boolean
required

Reverse the eligible non-capitalized accrued interest?

  • true: The eligible accrued interest is reversed.
  • false: Nothing is reversed. The current accrued interest is only reported.
string
length ≤ 64

Division ID. When not provided, defaults to DEFAULT_DIVISION internally.

string
length between 1 and 36

Optional division code. When provided, must be between 1 and 36 characters.

Headers
string
length ≤ 64
^[a-zA-Z0-9-]+$

Account ID. Pass exactly one of x-account-id or x-external-account-id.
Accepts letters, digits, and hyphens, up to 64 characters.

string
length ≤ 60
^[a-zA-Z0-9_-]+$

External account ID managed by the requester. Pass exactly one of x-account-id or x-external-account-id.
Accepts letters, digits, hyphens, and underscores, up to 60 characters.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json