Settings
Settings your org manages itself, as opposed to the configuration Seismic sets up for you (approved currencies and rails, for example). Today there is one: va_developer_fee_bps, a default developer fee for your auto-liquidating virtual accounts, so you don't have to repeat it on every request. More settings will join it here.
GET /org/settings: read the current settings.PATCH /org/settings: change some of them (owner/admin).
How va_developer_fee_bps applies
It is a default, not a fee in its own right. It only fills in the developer fee on a virtual account that auto-liquidates, when the request setting up that auto-liquidation doesn't name a fee:
POST /customers/{id}/accounts/fiat/virtualwith aliquidationtarget but noliquidation.developer_fee_bps.PUT /accounts/{id}/liquidationwith nodeveloper_fee_bps.
On those requests:
- A fee on the request overrides it. An explicit
developer_fee_bpsalways wins,0included, so any one account can charge a different fee or none. - A default of
0applies no fee. The account is set up exactly as it is for a request that omitted the fee, and itsliquidationblock carries nodeveloper_fee_bps. Every org starts at0. - It only applies where the account accepts a fee: where
developer_fee_supportedis reported, and within that account's limit. Elsewhere the request still succeeds and the account carries no fee. - It is read when the account is set up, not afterwards. Changing the default affects accounts created or updated from then on; accounts that already exist keep the fee they were set up with.
It never applies to anything else: not to quotes or payments (their developer_fee_bps is set per quote), and not to virtual accounts without auto-liquidation.
The fee actually applied is echoed on the account's liquidation.developer_fee_bps, so you can always confirm what a given account charges.
GET /org/settings
Any member of the org can read the settings. Each setting reads as its default until set; va_developer_fee_bps starts at 0.
Response 200
{
"va_developer_fee_bps": 50
}| Field | Type | Notes |
|---|---|---|
va_developer_fee_bps | integer | Default developer fee for auto-liquidating virtual accounts, in basis points (100 = 1%). Overridden by a fee on the request. 0 means no default fee. |
Example
curl "$SEISMIC_ORCHESTRATION_URL/v0/org/settings" \
-H "Api-Key: $SEISMIC_ORCHESTRATION_API_KEY"PATCH /org/settings
Change the settings named in the body. Settings you leave out keep their current value. Requires admin or owner role. Send va_developer_fee_bps: 0 to stop applying a default fee.
Request body
{
"va_developer_fee_bps": 50
}| Field | Type | Required | Notes |
|---|---|---|---|
va_developer_fee_bps | integer | no | Basis points, up to the same cap as an explicit developer_fee_bps. |
Response 200: all of the stored settings, the same shape as the read.
Errors: 400 (a value is out of range, or an unknown field was sent), 403 (not an admin/owner).
Example
curl -X PATCH "$SEISMIC_ORCHESTRATION_URL/v0/org/settings" \
-H "Api-Key: $SEISMIC_ORCHESTRATION_API_KEY" \
-H "content-type: application/json" \
-d '{
"va_developer_fee_bps": 50
}'