{"info":{"_postman_id":"7168ffaf-c7f9-4806-82f0-df4a1cddd537","name":"CSA - PRODUCTION API","description":"<html><head></head><body><p>The Cycling SA API allows the user to retrieve certain information from the Cycling SA database<br>by executing the given API functions using HTTP requests. Results will be returned in JSON<br>format.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28907025","collectionId":"7168ffaf-c7f9-4806-82f0-df4a1cddd537","publishedId":"2sAYdkFoEm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-04T12:30:03.000Z"},"item":[{"name":"V2","item":[{"name":"Create Day License","id":"e6de4f60-9c36-454e-82bb-17e3128b4a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"csaId\": \"917102\",\n    \"eventId\": \"8c8aa5fc-b26f-43cc-8791-d6f57964baff\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/day_licenses","description":"<p>Create day licenses which members purchased via your system.</p>\n","urlObject":{"path":["api","v2","day_licenses"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"f81bbbc6-5de5-47e8-9973-725e1c3a6f2e","name":"Create Day License","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"csaId\": \"917102\",\n    \"eventId\": \"8c8aa5fc-b26f-43cc-8791-d6f57964baff\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/day_licenses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 04 Mar 2025 12:16:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"4729699e5dcced089e6c74131c781abd\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a69b395b-f272-440c-8b96-908b8a386748"},{"key":"X-Runtime","value":"0.339641"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Day license created\",\n    \"day_license\": {\n        \"id\": \"03d480bd-b73b-4410-807b-0b29bf282c47\",\n        \"year\": null,\n        \"event_id\": \"8c8aa5fc-b26f-43cc-8791-d6f57964baff\",\n        \"active_date\": \"2025-03-15\",\n        \"reference_number\": null,\n        \"created_at\": \"2025-03-04T12:16:43.715Z\",\n        \"updated_at\": \"2025-03-04T12:16:43.715Z\",\n        \"api_key_id\": \"af2e9af5-83c9-430c-a3be-948fc6c78e0c\"\n    },\n    \"license\": {\n        \"id\": \"62a2a800-3e07-4a4d-9ec4-1dc79aab0a48\",\n        \"member_id\": \"9fa8b0ab-bdc2-4458-8397-48fb548cf520\",\n        \"license_type_id\": \"2244235d-6d00-4cc0-aeda-ee9ebbde44a8\",\n        \"start_date\": \"2025-01-01\",\n        \"end_date\": \"2025-03-15\",\n        \"price\": \"50.0\",\n        \"purchased_at\": \"2025-03-04T12:16:43.746Z\",\n        \"is_moderated\": true,\n        \"is_active\": true,\n        \"created_at\": \"2025-03-04T12:16:43.754Z\",\n        \"updated_at\": \"2025-03-04T12:16:43.788Z\",\n        \"licenseable_type\": \"DayLicense\",\n        \"licenseable_id\": \"03d480bd-b73b-4410-807b-0b29bf282c47\",\n        \"moderated_by_csa\": true,\n        \"is_refunded\": false\n    }\n}"}],"_postman_id":"e6de4f60-9c36-454e-82bb-17e3128b4a71"},{"name":"Member Status","id":"029b16a5-cb62-4d7c-82ed-1b6ea80eed07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"csa_id\": \"917102\",\n    \"id_number\": \"0308215351088\",\n    \"csa_event_id\": \"e825fb3e-eb76-4246-8547-ed1a26016981\",\n    \"date\": \"2025-03-08\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/members/status","description":"<p>View all statuses you would need for a member from one endpoint.</p>\n","urlObject":{"path":["api","v2","members","status"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"60c8f65f-db98-4025-a419-4517469edf66","name":"Member Status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"csa_id\": \"71429\",\n    \"id_number\": \"0308215351088\",\n    \"csa_event_id\": \"e825fb3e-eb76-4246-8547-ed1a26016981\",\n    \"date\": \"2025-03-08\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/members/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 27 Mar 2025 16:44:59 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"57f866fa9f8354b6f0bd403062a63508\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a4e6f4e4-54d2-4cf0-9f74-54fa9dd71896"},{"key":"X-Runtime","value":"0.078915"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"member_found\": true,\n    \"member_csa_id\": \"71429\",\n    \"membership_status\": true,\n    \"racing_license_status\": true,\n    \"uci_id\": \"10017823025\",\n    \"uci_code\": \"RSA19800215\",\n    \"uci_category\": \"Master Men 45-49\",\n    \"day_license_status\": null,\n    \"date\": \"2025-03-08\",\n    \"csa_id_match_member_record_id_number\": false,\n    \"country_id\": \"b55c3f4f-f538-4665-a2b5-7d55ae11f8b4\",\n    \"region_id\": \"d6240ee5-c74d-420e-893e-5b4a87292239\",\n    \"city_id\": null,\n    \"affiliate_id\": \"8c76dc4a-cca8-4ff2-9e17-84e00f60dbdd\",\n    \"club_id\": \"301680e6-02da-449e-b45e-44741d3456a5\",\n    \"school_name\": null,\n    \"country\": {\n        \"id\": \"b55c3f4f-f538-4665-a2b5-7d55ae11f8b4\",\n        \"name\": \"SOUTH AFRICA\"\n    },\n    \"region\": {\n        \"id\": \"d6240ee5-c74d-420e-893e-5b4a87292239\",\n        \"name\": \"Gauteng\"\n    },\n    \"city\": {\n        \"id\": null,\n        \"name\": null\n    },\n    \"club\": {\n        \"id\": \"301680e6-02da-449e-b45e-44741d3456a5\",\n        \"name\": \"Proud Beginners Cycling Club\"\n    }\n}"},{"id":"024e1c80-50ca-45d7-8d96-a27bd5a44f24","name":"Member Status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"csa_id\": \"917102\",\n    \"id_number\": \"0308215351088\",\n    \"csa_event_id\": \"e825fb3e-eb76-4246-8547-ed1a26016981\",\n    \"date\": \"2025-03-08\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/members/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 20 Mar 2025 13:44:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"495cb2c8f81cbb9ff52b2497eb217dd4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7c44f87d-2562-43cf-a4c8-be027b3bf9e1"},{"key":"X-Runtime","value":"0.099235"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"member_found\": true,\n    \"member_csa_id\": \"917102\",\n    \"membership_status\": false,\n    \"racing_license_status\": true,\n    \"uci_id\": null,\n    \"uci_code\": null,\n    \"uci_category\": null,\n    \"day_license_status\": null,\n    \"date\": \"2025-03-08\",\n    \"csa_id_match_member_record_id_number\": true,\n    \"country_id\": \"b55c3f4f-f538-4665-a2b5-7d55ae11f8b4\",\n    \"region_id\": \"a68a4d2d-0c4d-43c7-b58f-d867d1cab647\",\n    \"city_id\": \"155d553f-f4f6-4e78-b1ca-565d8a62dd58\",\n    \"affiliate_id\": \"54f16f5b-af86-4bab-bb10-911f339f3418\",\n    \"club_id\": \"8ce4b9df-ed8e-459d-9b8d-9d1e415cba66\",\n    \"school_name\": \"\"\n}"}],"_postman_id":"029b16a5-cb62-4d7c-82ed-1b6ea80eed07"},{"name":"Get Affiliate Name","id":"36039426-9bdb-4a9c-ac3a-aa1a5575dcdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"ce0e191f-1ccd-418d-afd5-8b2a8760e871\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/affiliates/name","urlObject":{"path":["api","v2","affiliates","name"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"69dfb682-34d4-4750-9f79-405ee94d248a","name":"Get Affiliate Name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"ce0e191f-1ccd-418d-afd5-8b2a8760e871\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/affiliates/name"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"090ed98eb6d8e2f48857a9da5fd262d7\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7ae2b4f7-ac3b-49e6-aaa4-84741c0f3734"},{"key":"X-Runtime","value":"0.050874"},{"key":"Server-Timing","value":"sql.active_record;dur=6.03, start_processing.action_controller;dur=0.16, instantiation.active_record;dur=11.12, unpermitted_parameters.action_controller;dur=0.20, process_action.action_controller;dur=21.29"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"CSA Road Top Clubs\"\n}"}],"_postman_id":"36039426-9bdb-4a9c-ac3a-aa1a5575dcdb"},{"name":"Get Club Name","id":"0e90d402-bec9-41bc-9ea3-833715272ea8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"8ce4b9df-ed8e-459d-9b8d-9d1e415cba66\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/clubs/name","urlObject":{"path":["api","v2","clubs","name"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"a1318cb6-39f1-4ac2-86f3-e2f75033b2ab","name":"Get Club Name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"8ce4b9df-ed8e-459d-9b8d-9d1e415cba66\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/clubs/name"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"2776552122b97dd2444019fbc36ee842\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"eaeed32f-adca-4fca-8c2e-d413260ad70f"},{"key":"X-Runtime","value":"0.013343"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.19, sql.active_record;dur=1.30, instantiation.active_record;dur=0.07, unpermitted_parameters.action_controller;dur=0.06, process_action.action_controller;dur=4.64"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"2D Adventures \"\n}"}],"_postman_id":"0e90d402-bec9-41bc-9ea3-833715272ea8"},{"name":"Get Country Name","id":"96366953-c12b-4be2-8460-afa2dc0f97f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"ff56a643-b3b7-47ee-8ff7-a804118b3696\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/countries/name","urlObject":{"path":["api","v2","countries","name"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"59ece1b1-c43f-4772-ab4f-3d990f1c5a22","name":"Get Country Name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"ff56a643-b3b7-47ee-8ff7-a804118b3696\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/countries/name"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"e6f70a892db216ce785d767660bfe775\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"05bae41a-94b5-439b-8f60-9c2acfe35d77"},{"key":"X-Runtime","value":"0.028669"},{"key":"Server-Timing","value":"sql.active_record;dur=5.92, start_processing.action_controller;dur=0.14, instantiation.active_record;dur=2.76, unpermitted_parameters.action_controller;dur=0.10, process_action.action_controller;dur=12.65"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"INDIA\"\n}"}],"_postman_id":"96366953-c12b-4be2-8460-afa2dc0f97f5"},{"name":"Get Region Name","id":"8f81c365-d67a-42a8-a8c5-045fd08c429d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"282a1861-c6c4-4fc8-97f9-00cbf998b0ff\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/regions/name","urlObject":{"path":["api","v2","regions","name"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"94f7572e-75d5-43af-8a14-9a89c125e8e9","name":"Get Region Name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"282a1861-c6c4-4fc8-97f9-00cbf998b0ff\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/regions/name"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"eb8cb807f2a7fc5f18cedb5d1dbf2e0c\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8e23734c-d654-4c96-a40c-2cf8c69d7586"},{"key":"X-Runtime","value":"0.035406"},{"key":"Server-Timing","value":"sql.active_record;dur=4.69, start_processing.action_controller;dur=0.14, instantiation.active_record;dur=2.86, unpermitted_parameters.action_controller;dur=0.08, process_action.action_controller;dur=13.12"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Eastern Cape\"\n}"}],"_postman_id":"8f81c365-d67a-42a8-a8c5-045fd08c429d"},{"name":"Get City Name","id":"265581da-fc4d-44ad-963d-21b1788d4341","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"f5dc4928-1308-402b-88fb-1a7eae57d200\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/affiliate_cities/name","urlObject":{"path":["api","v2","affiliate_cities","name"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"bc1001ef-572f-4cc8-b41e-13c5a4b43c24","name":"Get CIty Name","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"your-api-key"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"f5dc4928-1308-402b-88fb-1a7eae57d200\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/affiliate_cities/name"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"b8f97d66c0b40902bb4609654d60d74d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bec04947-d09a-41c9-96a6-3f2ac89aefb6"},{"key":"X-Runtime","value":"0.016503"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.47, sql.active_record;dur=1.68, instantiation.active_record;dur=0.07, unpermitted_parameters.action_controller;dur=0.06, process_action.action_controller;dur=5.98"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Zeerust\"\n}"}],"_postman_id":"265581da-fc4d-44ad-963d-21b1788d4341"},{"name":"Create Event Results","id":"c51f60d7-fbe9-43a3-ab71-36a2bebcf50b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"your-api-key"}],"body":{"mode":"raw","raw":"{\n    \"event\": {\n      \"name\": \"Sabie Xperience 2025\",\n      \"start_date\": \"01-May-2025\",\n      \"distance\": \"130\",\n      \"elevation_gain\": \"2250\"\n    },\n    \"race_results\": [\n        {\n        \"csa_id\": null,\n        \"id_number\": \"0312255232985\",\n        \"date_of_birth\": \"2003-12-25\",\n        \"first_name\": \"Ryan\",\n        \"last_name\": \"Blitz\",\n        \"race_time\": \"02:05:19\"\n        },\n        {\n        \"csa_id\": null,\n        \"id_number\": \"0506295171089\",\n        \"date_of_birth\": \"2005-06-29\",\n        \"first_name\": \"Rohan\",\n        \"last_name\": \"Laubsher\",\n        \"race_time\": \"02:05:19\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/event_results","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>This endpoint allows you to submit event results via an HTTP POST request to the specified URL.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>The request body should be in raw JSON format and should include the event details such as name, start date, distance, and elevation gain, along with an array of race results containing CSA ID, ID number, date of birth, first name, last name, and race time.</p>\n</li>\n<li><p>Race results must consist of a combination of race time AND (id number OR csa id OR first name AND last name AND date of birth).</p>\n</li>\n<li><p>You have the option of passing in the event id acquired from CSA, or the exact event name and start date.</p>\n</li>\n<li><p>Event distance is compulsory, however elevation gain is not. If elevation gain is not present it will calculate as a factor of the distance.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON schema with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"Event and race results created successfully\",\n    \"stats\": {\n        \"total_athletes\": 2,\n        \"existing_athletes\": 2,\n        \"new_athletes\": 0\n    }\n}\n\n</code></pre>\n<p>The response will include an summary of the changes due to the result upload.</p>\n","urlObject":{"path":["api","v2","event_results"],"host":["https://www.cyclingsa-events.co.za"],"query":[],"variable":[]}},"response":[{"id":"c261a99c-ebd2-42e3-9561-14e7deec62e0","name":"Create Event Results","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"your-api-key"}],"body":{"mode":"raw","raw":"{\n    \"event\": {\n      \"name\": \"Sabie Xperience 2025\",\n      \"start_date\": \"01-May-2025\",\n      \"distance\": \"130\",\n      \"elevation_gain\": \"2250\"\n    },\n    \"race_results\": [\n        {\n        \"csa_id\": null,\n        \"id_number\": \"0312255232985\",\n        \"date_of_birth\": \"2003-12-25\",\n        \"first_name\": \"Ryan\",\n        \"last_name\": \"Blitz\",\n        \"race_time\": \"02:05:19\"\n        },\n        {\n        \"csa_id\": null,\n        \"id_number\": \"0506295171089\",\n        \"date_of_birth\": \"2005-06-29\",\n        \"first_name\": \"Rohan\",\n        \"last_name\": \"Laubsher\",\n        \"race_time\": \"02:05:19\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v2/event_results"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"ETag","value":"W/\"83331945b406a52d69dc0ef6fc3412c1\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ff87af7f-50a2-46af-9d5a-169f1c666c4a"},{"key":"X-Runtime","value":"0.118720"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.09, sql.active_record;dur=66.37, instantiation.active_record;dur=8.16, process_action.action_controller;dur=105.82"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Event and race results created successfully\",\n    \"stats\": {\n        \"total_athletes\": 2,\n        \"existing_athletes\": 2,\n        \"new_athletes\": 0\n    }\n}"}],"_postman_id":"c51f60d7-fbe9-43a3-ab71-36a2bebcf50b"}],"id":"03a839aa-23fb-4ecc-98d2-8795f6204db3","description":"<p>New &amp; improved API</p>\n","_postman_id":"03a839aa-23fb-4ecc-98d2-8795f6204db3"},{"name":"V1","item":[{"name":"Membership Status","id":"ab7d09b8-e313-4cf1-9556-30945685ec06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0404233515098\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=checkMembershipStatus","description":"<p>This function retrieves a status for a specified Cycling SA membership</p>\n","urlObject":{"path":["api","v1","exec.php"],"host":["https://www.cyclingsa-events.co.za"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"checkMembershipStatus"}],"variable":[]}},"response":[{"id":"f8ec2dff-d498-489a-9573-34d2546af6da","name":"Membership Status","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0404233515098\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=checkMembershipStatus","host":["https://www.cyclingsa-events.co.za"],"path":["api","v1","exec.php"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"checkMembershipStatus"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 13 Mar 2025 07:38:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"73ce4b967f4cbaa05e540c06e4f47c29\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8856a653-eab3-46a9-bc5c-eb4c7fa87975"},{"key":"X-Runtime","value":"0.024036"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"ok\": false,\n    \"memberFound\": false,\n    \"memberCsaId\": null,\n    \"active\": false,\n    \"membershipStatus\": \"none\",\n    \"date\": \"2025-03-16\"\n}"}],"_postman_id":"ab7d09b8-e313-4cf1-9556-30945685ec06"},{"name":"License Status","id":"19a62fc8-5dc1-4532-b6e3-8155816cca21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0404233515098\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=checkRacingLicenceStatus","description":"<p>Function required to check the status of racing licence of a member</p>\n","urlObject":{"path":["api","v1","exec.php"],"host":["https://www.cyclingsa-events.co.za"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"checkRacingLicenceStatus"}],"variable":[]}},"response":[{"id":"8f0531a3-8c76-4ff6-a65a-c0b8119e4500","name":"License Status","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0404233515098\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=checkRacingLicenceStatus","host":["https://www.cyclingsa-events.co.za"],"path":["api","v1","exec.php"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"checkRacingLicenceStatus"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 13 Mar 2025 07:42:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"f89a221319fdba2e8604f26b08c929d8\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"8473bcba-641f-4f32-bfad-9adedd748861"},{"key":"X-Runtime","value":"0.037025"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"ok\": false,\n    \"memberFound\": false,\n    \"memberCsaId\": null,\n    \"active\": false,\n    \"licenseStatus\": \"none\",\n    \"membershipStatus\": \"none\",\n    \"date\": \"2025-03-16\"\n}"}],"_postman_id":"19a62fc8-5dc1-4532-b6e3-8155816cca21"},{"name":"Has Day License","id":"05593fd1-4a6f-4ae2-a20d-32e00804bee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0308215351088\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=hasDayLicence","description":"<p>Function to check if a member has an active day licence for a given date. This function<br />checks on either the csaID or the idNumber. If an ID Number and an CSA ID is provided the<br />CSA ID will be used.</p>\n","urlObject":{"path":["api","v1","exec.php"],"host":["https://www.cyclingsa-events.co.za"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"hasDayLicence"}],"variable":[]}},"response":[{"id":"e8601378-4a74-4e8a-9274-5e6f35ab7977","name":"Has Day License","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0308215351088\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=hasDayLicence","host":["https://www.cyclingsa-events.co.za"],"path":["api","v1","exec.php"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"hasDayLicence"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 13 Mar 2025 07:43:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"6d65621f20867a0560b897c60f58f585\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"31f0d995-de10-4f43-b575-d57023537849"},{"key":"X-Runtime","value":"0.032605"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"ok\": false,\n    \"hasDayLicence\": false,\n    \"date\": \"2025-03-16\",\n    \"memberFound\": false,\n    \"memberCsaId\": null\n}"}],"_postman_id":"05593fd1-4a6f-4ae2-a20d-32e00804bee3"},{"name":"Requires Day License","id":"796841c6-afe6-4032-aa6d-fcee83afbc04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0404233515098\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=requiresDayLicence","description":"<p>Function to check if a member requires a day licence . This function<br />checks on either the csaID or the idNumber. If an ID Number and an CSA ID is provided the<br />CSA ID will be used.</p>\n","urlObject":{"path":["api","v1","exec.php"],"host":["https://www.cyclingsa-events.co.za"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"requiresDayLicence"}],"variable":[]}},"response":[{"id":"d445465b-30ef-48e7-bc9d-1684c40abf11","name":"Requires Day License","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"key\": \"your-api-key\",\n    \"idNumber\": \"0404233515098\",\n    \"csaId\": \"593029\",\n    \"date\": \"2025-03-16\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://www.cyclingsa-events.co.za/api/v1/exec.php?c=Member&fn=requiresDayLicence","host":["https://www.cyclingsa-events.co.za"],"path":["api","v1","exec.php"],"query":[{"key":"c","value":"Member"},{"key":"fn","value":"requiresDayLicence"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 13 Mar 2025 07:44:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"ETag","value":"W/\"0e061b2bed34775379c5c2cbb8b43a3f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"ade48612-11f9-4ab4-bac4-ae66f27cab73"},{"key":"X-Runtime","value":"0.030302"},{"key":"Strict-Transport-Security","value":"max-age=15724800; includeSubdomains"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"requiresDayLicence\": true,\n    \"memberFound\": false,\n    \"memberCsaId\": null\n}"}],"_postman_id":"796841c6-afe6-4032-aa6d-fcee83afbc04"}],"id":"726a4151-b71f-48b5-b60b-181694be2c05","description":"<p>Legacy API</p>\n","_postman_id":"726a4151-b71f-48b5-b60b-181694be2c05"}],"event":[{"listen":"prerequest","script":{"id":"82be65e4-d57d-4838-b878-59320387a051","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"185b0307-1582-4ab4-94e1-008c7a02de9d","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"id":"4ecd5543-48e5-49cd-8ac8-2b67385dbcc8","key":"url","value":"https://www.cyclingsa-events.co.za"},{"id":"f8ea1937-8da9-4de1-9e6d-c7eb74cf2723","key":"key","value":"your-api-key"},{"id":"133314c9-2524-4e83-a0b2-513fdc7d8766","key":"affiliate_id","value":"ce0e191f-1ccd-418d-afd5-8b2a8760e871"},{"id":"fc6822de-8a24-4728-9fdc-7462fe42915e","key":"club_id","value":"8ce4b9df-ed8e-459d-9b8d-9d1e415cba66"},{"id":"f7871f63-250e-49e3-b209-221b8a0bea90","key":"country_id","value":"ff56a643-b3b7-47ee-8ff7-a804118b3696"},{"id":"66f1cc32-9c14-4d0e-8fcf-679abbfbc32d","key":"region_id","value":"282a1861-c6c4-4fc8-97f9-00cbf998b0ff"},{"id":"f6d740ef-2afe-414b-8a98-4292025789f0","key":"city_id","value":"f5dc4928-1308-402b-88fb-1a7eae57d200"}]}