Skip to content
Last updated

Error codes

400 Bad Request

This error indicates that the request cannot be accepted by the malformed request body. Some required fields are missing, etc. In this case, we provide info in the response body with rejected or missing values. Usually comes with default "errorCode" : "invalidRequest"

errorCodedescription
invalidRequestGeneric code. Further details provided in the message field
invalidArgumentsThe request contains invalid arguments. Details is provided in the errors field, or in the message

401 Unauthorized

API Key is missing. Check that x-api-key request header is present. See Authentication for details.

403 Forbidden

Indicates that the request contains the wrong API key or is forbidden for some reason (for this case details could be found in the error response body). See possible reasons in the table below:

errorCodedescription
missingPermissionThis action requires explicit permission. Please contact our support
forbiddenActionGeneric code. Further details provided in the message field
corporateFitnessMembershipExpiredThe corporate fitness membership has expired
corporateFitnessMembershipNotStartedThe corporate fitness membership starts in the future
corporateFitnessGymNotInNetworkThe gym is not a network partner of the corporate fitness program
corporateFitnessGymNotInNetworkPlus1The gym is not participating in the Plus1 program, but the member has a Plus1 Corporate Fitness membership

404 Not Found

The server can not find the requested resource. Check the URL path and identifiers provided in the request. Usually comes with default "errorCode" : "notFound" and with metadata entity type. Response example:

{
  "timestamp": "2023-04-11T14:35:48.499+0000",
  "path": "/api/v2/accounts",
  "status": 404,
  "error": "Not Found",
  "errorCode": "notFound",
  "message": "User's chain profile was not found.",
  "metadata": {
    "entity": "CHAIN_PROFILE"
  }
}

Possible entities:

entitydescription
UNKNOWNUsed when the specific resource cannot be identified
ACCOUNTIndicates that the server cannot find the EGYM account
CHAIN_PROFILEIndicates that the server cannot find the chain profile of the specified EGYM account
MEMBERSHIPIndicates that the server cannot find the membership
PRODUCTIndicates that the server cannot find the product
WEBHOOKIndicates that the server cannot find the webhook
GYM_LOCATIONIndicates that the server cannot find the specified gym location
TASKIndicates that the server cannot find the specified task
RFIDIndicates that the server cannot find the specified RFID
NFC_TOKENIndicates that the server couldn't resolve the specified NFC
TANIndicates that the server cannot find the specified TAN

409 Conflict

Indicates that the requested operation has a conflict with the current state of data. See possible cases in the table below:

errorCodedescription
userEmailConflictThe email is already used within your gym or chain
userEmailUsedByAnotherAccountConflictThe email is already used by another account
membershipExistsAction cannot be performed due to memberships conflict
tanAssociatedWithAnotherAccountProvided tan is associated with another account
webhookUrlAlreadyRegisteredGiven URL has already been registered for the current gym
generalConflictGiven resource already exists
forbiddenAccountMergeAction blocked due to conflicting personal data with an existing account in the chain profile

429 Too Many Requests

The user has sent too many requests in a given amount of time ("rate limiting"). You can retry the API call after a delay, and increase the delay exponentially if the error continues.