Discounting API

APIs that allow Platforms to create target discount schedules.

Create a discounted fee rate for an account

post

Create a discounted fee rate for an account

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrKeystringRequired

Account ID or Key of the account to add discounted fee rate to

Body
target_fee_ratenumberOptionalExample: 0.05
Responses
200

OK

application/json
post
/v0/platform/accounts/{idOrKey}/discount_rate
POST /v0/platform/accounts/{idOrKey}/discount_rate HTTP/1.1
Host: api.alluvial.finance
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "target_fee_rate": 0.05
}
{
  "account_id": "36cc991e-d4r5-422c-8248-ac356e800fc1",
  "created_at": "2023-12-31T23:59:59Z",
  "removed_at": "2023-12-31T23:59:59Z",
  "target_fee_rate": 0.05
}

Get the discounted fee rate for an account

get

Get the discounted fee rate for an account

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrKeystringRequired

Account ID or Key of the account to get discount rate for

Responses
200

OK

application/json
get
/v0/platform/accounts/{idOrKey}/discount_rate
GET /v0/platform/accounts/{idOrKey}/discount_rate HTTP/1.1
Host: api.alluvial.finance
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "account_id": "36cc991e-d4r5-422c-8248-ac356e800fc1",
  "created_at": "2023-12-31T23:59:59Z",
  "removed_at": "2023-12-31T23:59:59Z",
  "target_fee_rate": 0.05
}

Update a discounted fee rate for an account

patch

Update a discounted fee rate for an account. If the discount rate already exists, it will be updated. A TargetFeeRate of 0.1 means no discount.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrKeystringRequired

Account ID or Key of the account to update discounted fee rate for

Body
target_fee_ratenumberOptionalExample: 0.05
Responses
200

OK

application/json
patch
/v0/platform/accounts/{idOrKey}/discount_rate
PATCH /v0/platform/accounts/{idOrKey}/discount_rate HTTP/1.1
Host: api.alluvial.finance
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "target_fee_rate": 0.05
}
{
  "account_id": "36cc991e-d4r5-422c-8248-ac356e800fc1",
  "created_at": "2023-12-31T23:59:59Z",
  "removed_at": "2023-12-31T23:59:59Z",
  "target_fee_rate": 0.05
}

Last updated

Was this helpful?