Codes

POST /token

Status CodeResponse Title/DetailAction
400Authorization header parameter is requiredProvide a valid key-value pair {"Authorization" : " Basic YOUR_API_KEY" } inside request header.
400Invalid authorization headerProvide a valid key-value pair {"Authorization" : " Basic YOUR_API_KEY" } inside request header.
400Version 0.9 is no longer supported. Please upgrade to the latest versionProvide a valid basiq-version (2.0 - 2.1)
400Basiq-version must be specified in HTTP request headerProvide a valid basiq-version (2.0 - 2.1)
403Your account has been disabled. Please contact Basiq support.Get in touch with the Customer Success to enable your account.
403Invalid requestForbidden. There have been too many requests for the token endpoint within a 5 minute period from a specific IP address.
404Unable to authenticate. Please, check your API keyProvide a valid authorization header. This can happen if your API key is deleted, or your application is deleted, or if you use API key from dev environment in production.
429Too many requests.Query limit reached. Reduce request frequency and try again later.
500Internal server errorThere has been some internal error, possibly within the AWS architecture. You'll have to try again and seek assistance from Customer Success if it continues.

POST /users

Status CodeResponse Title/DetailAction
400One of 'email' or 'mobile' is required.Provide key-value pair "email" : " your email" or "mobile" : "your mobile" or both inside request body
400Posted user is not in valid format.Provide valid key-value pair inside request body
400Provided email is in bad format.Provide correct format of email inside request body
400Provided mobile is in bad format.Provide correct format of mobile inside request body
400Accept type is not supportedProvide a valid accept header
400Business name is required when business number is provided.Provide business name
401Invalid authorization token.Provide a key-value pair {"authorization" : " Bearer YOUR_ACCESS_TOKEN" } inside request header and provide key-value pair "email" : " your email" or "mobile" : "your mobile" or both inside request body
403Token has expiredGet a new access token on /token endpoint
403Access to this resource is forbiddenIncorrect/missing scope set for the token you are using, You likely need to supply scope=SERVER_ACCESS. Make sure when you provide scope you are setting this in the body and not as a request header.
503Service is currently unavailable. Please try again later.Try again later, and if problem persists reach out to Customer Success

GET /users/{userId}

Status CodeResponse Title/DetailAction
400User ID value is not validCheck you are providing a valid userId in the URL
400Accept type application/json is not supported on requested endpoint.Provide a valid accept type
401Invalid authorization token.Provide a key-value pair {"authorization" : " Bearer YOUR_ACCESS_TOKEN" } inside request header
401You are not authorized to access this resourceEnsure you the token you're using is valid for use with the userId in the URL
403Token has expiredGet a new access token on /token endpoint
404Requested user does not exist.userId does not exist... Provide correct userId in URL
500Internal server error. Please contact support.Contact Customer Success

All Endpoints - General Errors

Status CodeResponse Title/DetailAction
400Bad RequestThe request could not be understood by the server due to malformed syntax. Check your request format and parameters.
400Invalid request formatEnsure your request body is properly formatted JSON and contains all required fields.
401UnauthorizedAuthentication credentials are missing or invalid. Provide valid authorization header.
403ForbiddenYou don't have permission to access this resource. Check your API key permissions and scopes.
404Not FoundThe requested resource could not be found. Verify the endpoint URL and resource ID.
405Method Not AllowedThe HTTP method is not supported for this endpoint. Check the API documentation for allowed methods.
409ConflictThe request conflicts with the current state of the resource. Check for duplicate entries or conflicting operations.
422Unprocessable EntityThe request was well-formed but contains semantic errors. Validate your input data.
429Too Many RequestsRate limit exceeded. Wait before making additional requests or contact support to increase limits.
500Internal Server ErrorAn unexpected error occurred on the server. Try again later or contact Customer Success if the issue persists.
502Bad GatewayThe server received an invalid response from an upstream server. Try again later.
503Service UnavailableThe service is temporarily unavailable. Try again later or check the status page.
504Gateway TimeoutThe server did not receive a timely response from an upstream server. Try again later.

Enrich Endpoints

Status CodeResponse Title/DetailAction
400Invalid enrichment parametersCheck that all required parameters for enrichment are provided and properly formatted.
400Enrichment data not availableThe requested enrichment data is not available for this transaction or account.
403Enrichment feature not enabledContact Customer Success to enable enrichment features for your account.
429Enrichment rate limit exceededYou have exceeded the rate limit for enrichment requests. Wait before making additional requests.

Affordability Endpoints

Status CodeResponse Title/DetailAction
400Dates not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid dates format in yyyy-mm-dd format
400fromDate not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid dates format in yyyy-mm-dd format
400toDate not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid toDate format in yyyy-mm-dd format
400toDate must be be after or equal to fromDateEnsure you are sending a valid date range where toDate is after or equal to fromDate
400User's accounts contains mixed currenciesUser's accounts contains mixed currencies which is causing issues with aggregation. Remove these accounts
403Please contact us to have your API key enabled for Affordability.You are not enabled for this feature. Please contact Customer Success to have this enabled.
404Requested resource is not foundThese accounts are unable to be found. It may have been deleted or you may be using the incorrect API as resources are restricted to their designated applications.

Income Endpoints

Status CodeResponse Title/DetailAction
400Dates not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid dates format in yyyy-mm-dd format
400fromDate not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid dates format in yyyy-mm-dd format
400toDate not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid toDate format in yyyy-mm-dd format
400User's accounts contains mixed currenciesUser's accounts contains mixed currencies which is causing issues with aggregation. Remove these accounts
403Please contact us to have your API key enabled for Income Summary.You are not enabled for this feature. Please contact Customer Success to have this enabled.
404Requested resource is not foundThis resource is unable to be found. It may have been deleted or you may be using the incorrect API as resources are restricted to their designated applications.

Expenses Endpoints

Status CodeResponse Title/DetailAction
400Dates not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid dates format in yyyy-mm-dd format
400fromDate not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid dates format in yyyy-mm-dd format
400toDate not in valid format. Date has to be in yyyy-mm-dd formatProvide a valid toDate format in yyyy-mm-dd format
400User's accounts contains mixed currenciesUser's accounts contains mixed currencies which is causing issues with aggregation. Remove these accounts
400Invalid expenses snapshot ID providedInvalid snapshotId, please check the value you are providing
403Please contact us to have your API key enabled for Expenses.You are not enabled for this feature. Please contact Customer Success to have this enabled.
404User doesn't have any accountsUser does not have any accounts connected