Accounts APISettlement scheduler

Create or replace settlement scheduler

PUT
/accounts/{accountId}/settlement-scheduler

Creates or replaces the settlement scheduler of the specified Volt account. The whole configuration is replaced.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

accountId*string

Unique identifier of the Volt account the funds are settled from.

Formatuuid

Header Parameters

X-Volt-Api-Version*1

Version of the API used. Currently, version 1 is the only version.

Value in1

Request Body

application/json
  1. body
trustedAccountId*string

Id of the trusted account the funds are settled to. Must be active and belong to the owner of the account.

Formatuuid
active*boolean

Whether the scheduler triggers settlements. An inactive scheduler keeps its configuration.

rules*array<||>

Schedule rules. Rules of different types can be combined.

Items1 <= items <= 50
threshold?

Minimum available balance required to trigger a settlement.

Response Body

Settlement scheduler stored.

curl -X PUT 'https://accounts.sandbox.volt.io/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/settlement-scheduler' \  -H 'X-Volt-Api-Version: 1' \  -H 'Content-Type: application/json' \  -d '{  "trustedAccountId": "efffed42-40f7-4bd2-840d-908aae9a33ad",  "active": true,  "rules": [    {      "type": "DAILY",      "timeOfDay": "16:00"    }  ]}'
Example Response
Empty