# Cancel Appointment **DELETE /trainer-appointment/{trainer_appointment_id}** Cancel a trainer appointment that hasn't started or ended yet. You can only cancel your own appointment using JWT. ## Servers - http://63.141.232.244:25540/v0: http://63.141.232.244:25540/v0 () ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **trainer_appointment_id** (integer) Id of the appointment in database (retrieved using GET /bank-card) ## Responses ### 200 Successful appointment cancellation. #### Body: application/json (object) - **success** (boolean) Whether an appointment is cancelled ### 400 Validation error of given input. #### Body: application/json (object) - **success** (boolean) Whether query is successful - **error** (array[object]) ### 401 User is not unauthorized or permissions are missing. #### Body: application/json (object) - **success** (boolean) Whether query is successful - **error** (string) Error message ### 429 Rate limit exceeded - 100 queries per 15 minutes. #### Body: application/json (object) - **success** (boolean) Whether query is successful - **error** (string) Error message [Powered by Bump.sh](https://bump.sh)