Account types
The challenges you sell: balance, price and the rule set each one is judged by.
An account type is the challenge you sell: a name, a starting balance, the price you charge for it, and the rule set it is judged against. “$10K Standard” is an account type. You provision trading accounts against one.
The price here is informational
price_cents is what you charge your traders, recorded so your own dashboard can display it. You collect it through your own checkout.
List account types
/v1/account-typesAvailablescope · accounts:readiduuidnamestring$10K Standard.starting_balancenumberprice_centsintegerrule_set_iduuidphase_promotionstringauto or manual: whether a multi-phase challenge starts its next phase by itself once one is passed.archived_attimestamp | nullcreated_attimestampCreate one
/v1/account-typesAvailablescope · accounts:writecurl -X POST https://api.propexecutor.com/v1/account-types \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "$25K Two-Step",
"starting_balance": 25000,
"price_cents": 19900,
"rule_set_id": "7c4a…"
}'Several account types can point at the same rule set: a $10K and a $25K both running “Standard Rules” is the normal case, and the reason rule sets are a separate thing rather than a field on this one.
Rename or reprice
/v1/account-types/{id}Availablescope · accounts:writeSend any of name, price_cents, starting_balance, rule_set_id and phase_promotion; fields you leave out are not touched. Answers with the updated account type.
Existing accounts do not change
An account froze its rule set version when it was created and is judged by that version for life. Repointing this account type at a different rule set changes what future accounts get, and nothing about the ones already running. There is deliberately no endpoint that can retroactively rejudge a sold account.