Skip to content

Error Handling โ€‹

Use this page to understand:

  • How API errors are structured
  • How to use code, message, and doc_url

Error Response Body โ€‹

FieldTypeDescription
errorsarrayList of one or more error objects.
errors[].codestringStable machine-readable code for client handling.
errors[].messagestringHuman-readable detail of what failed.
errors[].doc_urlstringAbsolute URL to the matching error-code page (domain depends on deployed docs environment).

Recommendation

Use code TODO ...

Error Code Directory โ€‹

35 results

Error codeHTTP statusDescription
parameter_invalid400One or more request parameters do not satisfy the expected schema.
duplicate_fund_in_target_allocation400The same ISIN appears more than once in a target allocation.
duplicate_fund_in_switch400The same ISIN appears more than once in a switch.
invalid_target_allocation400One target-allocation percentage fails validation.
percentage_buy_legs_sum_is_not_10000_basis_points400The buy legs do not sum to 10000 basis points.
percentage_target_allocation_is_not_10000_basis_points400The target allocation does not sum to 10000 basis points.
self_investment_switch_compartment_is_not_self_invested400The compartment is not self-invested.
self_investment_switch_position_is_unknown400A sell leg references an unknown current position.
self_investment_switch_share_valuation_is_unknown400A switch leg references a fund without a known share valuation.
attempt_to_sell_full_position_in_amount400A full-position sell leg was expressed as an amount.
attempt_to_buy_in_amount_when_selling_full_position400A buy leg was expressed as an amount while selling a full position.
legs_are_not_balanced400The sell and buy legs do not balance.
insufficient_funds_in_percentage400The percentage sell exceeds the available position.
unauthorized401Authentication is missing, invalid, or rejected.
forbidden403The authenticated caller lacks permission for the operation.
resource_not_found404The requested resource does not exist.
compartment_not_found404The requested compartment does not exist.
discretionary_manager_not_found404The requested discretionary manager does not exist.
fund_not_found404The requested fund or ISIN does not exist.
mandate_not_found404The requested mandate does not exist.
conflict409The request could not be completed because of a state conflict.
discretionary_manager_already_exists409A discretionary manager with the same ID already exists.
mandate_already_exists409A mandate with the same ID already exists.
self_investment_target_allocation_compartment_is_not_self_invested409The compartment is not self-invested.
delegate_compartment_to_mandate_compartment_is_not_self_invested409The compartment is not self-invested.
switch_already_exists409A switch with the same ID already exists.
target_allocation_already_exists409A target allocation with the same ID already exists.
remaining_position_might_be_lower_than_1_share_value422The remaining position would fall below the minimum share value.
position_after_buying_would_be_lower_than_1_share_value422The resulting position would fall below the minimum share value.
insufficient_funds422The sell amount is larger than the current position.
position_might_be_insufficient_due_to_market_drop_down422The switch sells too much of the position to stay safe against market movement.
delegate_compartment_to_mandate_mandate_has_no_target_allocation422The mandate has no target allocation yet.
database_query_timeout500A database query timed out while handling the request.
internal_server_error500An unexpected server-side error occurred.
unexpected_error500An unexpected server-side error occurred.

HTTP Status Code Reference โ€‹

HTTP statusMeaning in current API behavior
200 OKSuccessful cancellation response
201 CreatedResource created successfully
400 Bad RequestRequest validation or client input error
401 UnauthorizedMissing or invalid authentication
403 ForbiddenAuthenticated caller lacks required permission or claim
404 Not FoundReferenced entity or request does not exist
409 ConflictOperation rejected due to state conflict
422 Unprocessable ContentRequest is valid JSON but violates business rules
500 Internal Server ErrorUnexpected server error