# Member Admission This endpoint is currently used only for members with membership type “CORPORATE_FITNESS”. It verifies if the specified member can have access to the desired gym. The MMS should use the response status to allow or block the member from entering the gym. As a side-effect this access is logged in the EGYM Corporate Fitness system if the admission was granted. Endpoint: POST /api/v2/accounts/{accountId}/admissions Version: 2.0.0 Security: mms ## Path parameters: - `accountId` (string, required) ## Response 200 fields (application/json): - `firstAdmission` (boolean, required) If this member has been admitted for the first time in the gym this will be true, false otherwise. ## Response 400 fields (application/json): - `timestamp` (string) The timestamp of the request. - `path` (string) The path requested. - `requestId` (string) The request ID. Example: "de625cf1-1" - `status` (integer) The http status code. - `error` (string) The error. - `errorCode` (string) The static error code. - `message` (string) The message to describe the error. - `fieldErrors` (array) The constraint violations. - `fieldErrors.name` (string) The field name. Example: "age" - `fieldErrors.message` (string) The error message. Example: "Must be greater than 10." - `fieldErrors.rejectedValue` (any) The rejected value. Example: 3 - `metadata` (object) Additional information of the error context ## Response 401 fields (application/json): - `timestamp` (string) The timestamp of the request. - `path` (string) The path requested. - `requestId` (string) The request ID. Example: "de625cf1-1" - `status` (integer) The http status code. - `error` (string) The error. - `errorCode` (string) The static error code. - `message` (string) The message to describe the error. - `fieldErrors` (array) The constraint violations. - `fieldErrors.name` (string) The field name. Example: "age" - `fieldErrors.message` (string) The error message. Example: "Must be greater than 10." - `fieldErrors.rejectedValue` (any) The rejected value. Example: 3 - `metadata` (object) Additional information of the error context ## Response 403 fields (application/json): - `timestamp` (string) The timestamp of the request. - `path` (string) The path requested. - `requestId` (string) The request ID. Example: "de625cf1-1" - `status` (integer) The http status code. - `error` (string) The error. - `errorCode` (string) The static error code. - `message` (string) The message to describe the error. - `fieldErrors` (array) The constraint violations. - `fieldErrors.name` (string) The field name. Example: "age" - `fieldErrors.message` (string) The error message. Example: "Must be greater than 10." - `fieldErrors.rejectedValue` (any) The rejected value. Example: 3 - `metadata` (object) Additional information of the error context ## Response 404 fields (application/json): - `timestamp` (string) The timestamp of the request. - `path` (string) The path requested. - `requestId` (string) The request ID. Example: "de625cf1-1" - `status` (integer) The http status code. - `error` (string) The error. - `errorCode` (string) The static error code. - `message` (string) The message to describe the error. - `fieldErrors` (array) The constraint violations. - `fieldErrors.name` (string) The field name. Example: "age" - `fieldErrors.message` (string) The error message. Example: "Must be greater than 10." - `fieldErrors.rejectedValue` (any) The rejected value. Example: 3 - `metadata` (object) Additional information of the error context ## Response 500 fields (application/json): - `timestamp` (string) The timestamp of the request. - `path` (string) The path requested. - `requestId` (string) The request ID. Example: "de625cf1-1" - `status` (integer) The http status code. - `error` (string) The error. - `errorCode` (string) The static error code. - `message` (string) The message to describe the error. - `fieldErrors` (array) The constraint violations. - `fieldErrors.name` (string) The field name. Example: "age" - `fieldErrors.message` (string) The error message. Example: "Must be greater than 10." - `fieldErrors.rejectedValue` (any) The rejected value. Example: 3 - `metadata` (object) Additional information of the error context