Errors
The API uses conventional HTTP response codes. Codes in the 2xx range indicate success. Codes in the 4xx range indicate a request that failed given the information provided. Codes in the 5xx range indicate an error on our servers.
{
"error": {
"type": "validation_error",
"code": "date_range_invalid",
"message": "tenancy.end_date must be after tenancy.start_date.",
"param": "tenancy.end_date",
"request_id": "req_5tH9jK2mNb"
}
}
| Status | Type | Description |
|---|---|---|
400 | invalid_request_error | The request is malformed or missing a required parameter. |
401 | authentication_error | No valid API key provided. |
403 | permission_error | The API key can't perform the request. |
404 | not_found_error | The requested object doesn't exist. |
409 | conflict_error | The request conflicts with another request or with the object's current state. |
422 | validation_error | A parameter failed validation. |
429 | rate_limit_error | Too many requests. Retry after the number of seconds in Retry-After. |
5xx | api_error | Something went wrong on our end. Retry with the same idempotency key. |
Handle errors by code. The message is for developers and can change.
| Code | Description |
|---|---|
parameter_missing | A required parameter is missing. See param. |
parameter_invalid | A parameter has the wrong type or format. See param. |
external_reference_in_use | An application with this external_reference exists. Its ID is in existing_id. |
idempotency_key_reused | The idempotency key was used with different parameters. |
quote_expired | The quote is past its expires_at. |
quote_mismatch | The application's priced details differ from the quote's. |
tenancy_not_eligible | The tenancy can't be guaranteed. |
file_not_found | A referenced file doesn't exist or has been deleted. |
file_type_unsupported | The file isn't a JPEG, PNG or PDF. |
application_not_editable | The application's status or signatures don't allow this update. |
fee_collection_mismatch | The application's fee.collection isn't partner. |
fee_amount_mismatch | The confirmed amount differs from fee.amount. |
fee_changed | The fee is no longer the quoted fee or fee.amount. Create a new quote. |
session_not_available | No requirement can be completed in a session. |
fee_already_collected | The fee is paid, so the fee or a priced detail can't change. |
cosigner_email_same_as_tenant | The cosigner and the tenant have the same email. |
tenant_email_not_allowed | The tenant's email can't be used for an application. |
university_not_found | No university has this university_id. |
endpoint_limit_reached | The account has 5 webhook endpoints in this environment. |
document_not_available | The guarantee has no signed agreement to download. |
request_in_progress | A request with this idempotency key is still running. |
simulation_not_applicable | The simulated action has nothing to do on this application. |