Onboard a payment
POST {{baseUrl}}/v1/onboarding/payment/{user_id}
This is an optional field that helps you notify the Head Coach when the payment did not go through due to missing information.
This is also to notify the head coach that the onboarding payment has been completed.
Request Body
[{"name"=>"user_id", "value"=>"100", "datatype"=>"number"}, {"name"=>"onboarding_payment", "value"=>"1", "datatype"=>"number"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"You have completed the payment during the onboarding.","user":[{"user_id":1,"email":"myemail@email.com","pass_reset_token":null,"reset_token_updated":"2022-11-28 13:39:51","created_at":"2021-06-27T15:12:13.000000Z","updated_at":"2023-09-20T15:43:16.000000Z","deleted_at":null,"first_login_at":"2021-10-30 15:51:35","provider_user_id":null,"provider":null,"onboarding":1,"debugging":0,"org_id":264,"admin_first_login":"2021-10-30 15:43:37","admin_last_login":"2023-08-26 09:25:58","login_counter":87,"admin_login_counter":398,"last_login_at":"2023-09-20 14:24:06","email_confirmation":1,"direct_registration_flag":1,"confirm_email_token":"","push_notifications":1,"push_personal":1,"push_team":1,"push_newsletter":1,"email_notifications":1,"email_personal":1,"email_team":1,"email_newsletter":1,"time_zone":null,"strava_integration":0,"user_pending_coach_approval":0,"onboarding_coach":1,"onboarding_payment":1,"show_skeleton_flag":1,"favourite_exercises_list":"[68,49]","profile_id":838,"profile_first_name":"Marc","profile_last_name":"Smith","profile_address":null,"profile_city":null,"profile_postcode":null,"profile_gender":"Male","profile_social1":null,"profile_social2":null,"profile_social3":null,"profile_dob":"1978-12-08","profile_avatar":"https://files.teamsportz.app/myavatars/1_12345678.jpeg","profile_sport":"Basketball","profile_skill":"Intermediate","profile_fitness":"Beginner","profile_age_group":"Masters","profile_metric_distance":"centimeters","profile_metric_weight":"kilograms","profile_height":"179","profile_weight":"100","team_id":null,"profile_role":"Head Coach","created_by":null,"profile_telephone1":"07875600891","profile_telephone2":null,"profile_number":24,"profile_position":"FG","profile_nationality":null,"profile_rate_handling":null,"profile_rate_passing":null,"profile_rate_quickness":null,"profile_rate_communication":null,"profile_rate_composure":null,"profile_rate_unselfishness":null,"address_id":null,"profile_bio":"8877 always on","profile_standby":null,"profile_telephone_code":null,"profile_how_did_you_hear":"Social media etc...","profile_profession":"General Manager","org_type":null,"joined_team_at":null,"profile_reg_number":"LP00053696","profile_reg_file":"https://files.teamsportz.app/myregistrations/1_12345678.pdf","profile_guardian_relation_01":null,"profile_guardian_name_01":null,"profile_guardian_email_01":null,"profile_guardian_mobile_01":null,"profile_guardian_address_01":null,"profile_guardian_address_city_01":null,"profile_guardian_address_postcode_01":null,"profile_guardian_relation_02":null,"profile_guardian_name_02":null,"profile_guardian_email_02":null,"profile_guardian_mobile_02":null,"profile_guardian_address_02":null,"profile_guardian_address_city_02":null,"profile_guardian_address_postcode_02":null,"profile_guardian_relation_03":null,"profile_guardian_name_03":null,"profile_guardian_email_03":null,"profile_guardian_mobile_03":null,"profile_guardian_address_03":null,"profile_guardian_address_city_03":null,"profile_guardian_address_postcode_03":null,"profile_sent_consent_notice":1,"profile_consent_forms_data":0,"profile_consent_data_info_photo_videos":0,"profile_consent_sharing_info":0,"profile_consent_data_handling":0,"profile_consent_terms_conditions":0,"profile_consent_club_code_conduct":0,"profile_consent_coach_code_conduct":0,"profile_consent_player_code_conduct":0,"profile_consent_parent_code_conduct":0,"profile_consent_emergency_treatment":0,"profile_consent_social_media":0,"profile_inform_health_condition":0,"profile_inform_mentail_health_condition":0,"profile_inform_dietary_requirements":0,"org_name":"The TEAM FC","org_description":null,"org_avatar":"https://files.teamsportz.app/myorgavatar/1_12345678.png","payment_id":15,"third_party_enabled":0,"third_party_api_key":null,"org_season_start_day":null,"org_season_start_month":null,"org_season_end_day":null,"org_season_month_month":null,"org_referral_code":null,"basic_number_of_players":null,"team_name":null,"payment_plan":"club","payment_quantity":12,"payment_customer_id":"cus_GKGvdrwtre","payment_amount":"41760","payment_frequency":"0","payment_price_id":"price_1KJDGGHvdbsfsf","payment_currency":"gbp","payment_subscription_id":"sub_1KmMkhGVDTRWMNG","avg_rating":"0"}]}