{"openapi":"3.1.0","info":{"title":"Membership API","version":"v1","license":{"name":"Proprietary","url":"https://membership.fi/terms"},"description":"Generated from the request schemas the API validates against, so it describes the routes actually being served. Response bodies are not yet described: they carry no schema to generate from."},"servers":[{"url":"https://api.membership.fi/api/v1"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"apiKeyAuth":{"type":"http","scheme":"bearer","description":"The API key issued by the pairing flow, sent as `Authorization: Bearer <key>`."}},"responses":{"Success":{"description":"Envelope shared by every endpoint.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"data":{}},"required":["success"]}}}},"Error":{"description":"Envelope shared by every failure.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":false},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}},"required":["success"]}}}}}},"paths":{"/billing/webhook":{"post":{"tags":["billing"],"operationId":"postBillingWebhook","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/email/webhook":{"post":{"tags":["email"],"operationId":"postEmailWebhook","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/health":{"get":{"tags":["health"],"operationId":"getHealth","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/openapi.json":{"get":{"tags":["openapi.json"],"operationId":"getOpenapi.json","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/auth/2fa":{"get":{"tags":["auth"],"operationId":"getAuth2fa","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/auth/2fa/setup":{"post":{"tags":["auth"],"operationId":"postAuth2faSetup","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/auth/2fa/enable":{"post":{"tags":["auth"],"operationId":"postAuth2faEnable","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":6,"maxLength":20}},"required":["code"]}}}}}},"/auth/2fa/disable":{"post":{"tags":["auth"],"operationId":"postAuth2faDisable","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":1}},"required":["password"]}}}}}},"/auth/2fa/recovery-codes":{"post":{"tags":["auth"],"operationId":"postAuth2faRecoveryCodes","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":1}},"required":["password"]}}}}}},"/public/organizations/{slug}/join":{"get":{"tags":["public"],"operationId":"getPublicOrganizationsBySlugJoin","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]},"post":{"tags":["public"],"operationId":"postPublicOrganizationsBySlugJoin","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","maxLength":50},"streetAddress":{"type":"string","maxLength":200},"postalCode":{"type":"string","maxLength":20},"city":{"type":"string","maxLength":100},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"membershipTypeId":{"type":"string","maxLength":50},"applicationNote":{"type":"string","maxLength":1000},"customFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"groupIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"answers":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":50},"additionalProperties":{"type":"string","maxLength":2000}},"acceptedTerms":{"type":"boolean","const":true},"botTrap":{"type":"string","maxLength":200}},"required":["firstName","lastName","email","acceptedTerms"]}}}}}},"/public/cards/{token}":{"get":{"tags":["public"],"operationId":"getPublicCardsByToken","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/public/cards/{token}/photo/{size}":{"get":{"tags":["public"],"operationId":"getPublicCardsByTokenPhotoBySize","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":200}},{"name":"size","in":"path","required":true,"schema":{"type":"string","enum":["thumbnail","medium"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/public/organizations/{id}/logo/{size}":{"get":{"tags":["public"],"operationId":"getPublicOrganizationsByIdLogoBySize","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"size","in":"path","required":true,"schema":{"type":"string","enum":["thumbnail","medium"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/analytics/page-view":{"post":{"tags":["analytics"],"operationId":"postAnalyticsPageView","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":300},"visitorHash":{"type":"string","minLength":16,"maxLength":128},"countryHint":{"type":"string","maxLength":8}},"required":["path"]}}}}}},"/auth/discover":{"post":{"tags":["auth"],"operationId":"postAuthDiscover","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}}}},"/auth/register":{"post":{"tags":["auth"],"operationId":"postAuthRegister","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8,"allOf":[{"pattern":"[A-Z]"},{"pattern":"[0-9]"}]},"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"locale":{"type":"string","enum":["en","fi"]},"inviteToken":{"type":"string"}},"required":["email","password","firstName","lastName"]}}}}}},"/auth/register-password":{"post":{"tags":["auth"],"operationId":"postAuthRegisterPassword","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":8,"allOf":[{"pattern":"[A-Z]"},{"pattern":"[0-9]"}]},"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"locale":{"type":"string","enum":["en","fi"]},"inviteToken":{"type":"string"}},"required":["email","password","firstName","lastName"]}}}}}},"/auth/login":{"post":{"tags":["auth"],"operationId":"postAuthLogin","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":1}},"required":["email","password"]}}}}}},"/auth/magic-link":{"post":{"tags":["auth"],"operationId":"postAuthMagicLink","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":255,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locale":{"type":"string","maxLength":5},"redirect":{"type":"string","maxLength":500,"pattern":"^\\/(?![/\\\\])\\S*$"}},"required":["email"]}}}}}},"/auth/magic-link/redeem":{"post":{"tags":["auth"],"operationId":"postAuthMagicLinkRedeem","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":200}},"required":["token"]}}}}}},"/auth/demo":{"post":{"tags":["auth"],"operationId":"postAuthDemo","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/auth/google":{"get":{"tags":["auth"],"operationId":"getAuthGoogle","parameters":[{"name":"redirect","in":"query","required":false,"schema":{"type":"string"}},{"name":"email_hint","in":"query","required":false,"schema":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/auth/google/callback":{"get":{"tags":["auth"],"operationId":"getAuthGoogleCallback","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/auth/2fa/verify":{"post":{"tags":["auth"],"operationId":"postAuth2faVerify","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"challengeToken":{"type":"string","minLength":20,"maxLength":2000},"code":{"type":"string","minLength":6,"maxLength":20}},"required":["challengeToken","code"]}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"operationId":"postAuthRefresh","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string"}}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"operationId":"postAuthLogout","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/auth/me":{"get":{"tags":["auth"],"operationId":"getAuthMe","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/auth/forgot-password":{"post":{"tags":["auth"],"operationId":"postAuthForgotPassword","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locale":{"type":"string","enum":["en","fi"]}},"required":["email"]}}}}}},"/auth/reset-password":{"post":{"tags":["auth"],"operationId":"postAuthResetPassword","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1},"password":{"type":"string","minLength":8,"allOf":[{"pattern":"[A-Z]"},{"pattern":"[0-9]"}]}},"required":["token","password"]}}}}}},"/auth/verify-email":{"post":{"tags":["auth"],"operationId":"postAuthVerifyEmail","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"]}}}}}},"/auth/resend-verification":{"post":{"tags":["auth"],"operationId":"postAuthResendVerification","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"locale":{"type":"string","enum":["en","fi"]}},"required":["email"]}}}}}},"/users/me":{"get":{"tags":["users"],"operationId":"getUsersMe","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["users"],"operationId":"patchUsersMe","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"birthDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"streetAddress":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"countryCode":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}]}}}}}}}},"/users/me/fees":{"get":{"tags":["users"],"operationId":"getUsersMeFees","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/users/me/password":{"post":{"tags":["users"],"operationId":"postUsersMePassword","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currentPassword":{"type":"string","minLength":1},"newPassword":{"type":"string","minLength":8,"allOf":[{"pattern":"[A-Z]"},{"pattern":"[0-9]"}]}},"required":["currentPassword","newPassword"]}}}}}},"/users/me/avatar":{"get":{"tags":["users"],"operationId":"getUsersMeAvatar","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["users"],"operationId":"putUsersMeAvatar","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["users"],"operationId":"deleteUsersMeAvatar","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/users/me/avatar/{size}":{"get":{"tags":["users"],"operationId":"getUsersMeAvatarBySize","parameters":[{"name":"size","in":"path","required":true,"schema":{"type":"string","enum":["thumbnail","medium"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/users/me/connected-sites":{"get":{"tags":["users"],"operationId":"getUsersMeConnectedSites","summary":"Websites you have let sign you in with Membership","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/users/me/connected-sites/{clientId}":{"delete":{"tags":["users"],"operationId":"deleteUsersMeConnectedSitesByClientId","summary":"Stop a website from signing you in","description":"The site loses its access at once and has to ask again the next time you sign in there.","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations":{"post":{"tags":["organizations"],"operationId":"postOrganizations","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"shortName":{"type":"string","maxLength":40},"profileImageUrl":{"type":"string","format":"uri"},"businessId":{"type":"string","maxLength":50},"website":{"type":"string","format":"uri"},"contactEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"socialLinks":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":50},"url":{"type":"string","format":"uri"}},"required":["label","url"]}},"rulesUrl":{"type":"string","format":"uri"},"membershipPolicy":{"default":"APPROVAL_REQUIRED","type":"string","enum":["OPEN","APPROVAL_REQUIRED","INVITE_ONLY"]}},"required":["name"]}}}}}},"/organizations/mine":{"get":{"tags":["organizations"],"operationId":"getOrganizationsMine","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{slug}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsBySlug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/organizations/{id}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"shortName":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"profileImageUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"businessId":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"website":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"contactEmail":{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"socialLinks":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":50},"url":{"type":"string","format":"uri"}},"required":["label","url"]}},"rulesUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"membershipPolicy":{"type":"string","enum":["OPEN","APPROVAL_REQUIRED","INVITE_ONLY"]},"publicJoinEnabled":{"type":"boolean"},"memberNumberMode":{"type":"string","enum":["MANUAL","AUTO"]},"groupTerminology":{"type":"string","enum":["GROUP","SECTION"]},"memberGroupLimit":{"type":"string","enum":["ONE","SEVERAL"]},"applicationGroupLimit":{"type":"string","enum":["ONE","SEVERAL"]},"applicationGroupRequired":{"type":"boolean"},"memberNumberNext":{"type":"integer","minimum":1,"maximum":100000000},"enabledPaymentMethods":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","enum":["BANK_REFERENCE","VOUCHER_MEMBERSHIP_FEE","VOUCHER_CHARGE_ITEM"]}},"streetAddress":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"bankAccountIban":{"anyOf":[{"type":"string"},{"type":"null"}]},"bankAccountBic":{"anyOf":[{"type":"string"},{"type":"null"}]},"invoicingMethod":{"type":"string","enum":["BOOKKEEPING","MEMBERSHIP"]},"invoicePaymentTermDays":{"type":"integer","minimum":0,"maximum":120},"invoiceFooterText":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}}}}}}}},"/organizations/{id}/apply":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdApply","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"applicationNote":{"type":"string","maxLength":1000},"groupIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"answers":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":50},"additionalProperties":{"type":"string","maxLength":2000}}}}}}}}},"/organizations/{id}/members":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembers","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED","REJECTED","BANNED"]}},{"name":"role","in":"query","required":false,"schema":{"type":"string","enum":["OWNER","ADMIN","VIEWER","MEMBER"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"tagId","in":"query","required":false,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]}},"/organizations/{id}/applications":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdApplications","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/logo":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdLogo","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByIdLogo","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/membership-certificate":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembershipCertificate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/stats":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdStats","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/attention":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdAttention","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/members/{userId}/contact":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByIdMembersByUserIdContact","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"birthDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"streetAddress":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"countryCode":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}]},"email":{"type":"string"}}}}}}}},"/organizations/{id}/members/{userId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembersByUserId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByIdMembersByUserId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","APPROVED","REJECTED","BANNED"]},"role":{"type":"string","enum":["OWNER","ADMIN","VIEWER","MEMBER"]},"title":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"rejectionReason":{"type":"string","maxLength":1000},"banReason":{"type":"string","maxLength":1000},"typeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberNumber":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"joinedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"groupIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByIdMembersByUserId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"endReason":{"type":"string","enum":["RESIGNED","DEEMED_RESIGNED","EXPELLED","DECEASED","OTHER"]},"endedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"note":{"type":"string","maxLength":1000},"reason":{"type":"string","maxLength":1000}}}}}}}},"/organizations/{id}/members/{userId}/details":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembersByUserIdDetails","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/member-numbering":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMemberNumbering","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/member-numbering/backfill":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdMemberNumberingBackfill","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/members/{userId}/undo-end":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdMembersByUserIdUndoEnd","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/members/{userId}/rejoin":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdMembersByUserIdRejoin","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"default":{},"type":"object","properties":{"joinedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}}}}}}},"/organizations/{id}/members/{userId}/delete-mistaken":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdMembersByUserIdDeleteMistaken","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":1000}},"required":["reason"]}}}}}},"/organizations/{id}/ownership-transfer":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdOwnershipTransfer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"toUserId":{"type":"string","minLength":1}},"required":["toUserId"]}}}}}},"/organizations/{id}/former-members":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdFormerMembers","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":100}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/members-on-date":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembersOnDate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/members-on-date/export":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembersOnDateExport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/members-export":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByIdMembersExport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{id}/membership-periods/{periodId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByIdMembershipPeriodsByPeriodId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"periodId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endReason":{"type":"string","enum":["RESIGNED","DEEMED_RESIGNED","EXPELLED","DECEASED","OTHER"]},"endNote":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}}}}}}}},"/organizations/{id}/members/{userId}/unban":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByIdMembersByUserIdUnban","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/membership-types":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMembershipTypes","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMembershipTypes","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"isActive":{"type":"boolean"}},"required":["name"]}}}}}},"/organizations/{organizationId}/membership-types/{id}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdMembershipTypesById","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"isActive":{"type":"boolean"}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdMembershipTypesById","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasons","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasons","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"startsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"isActive":{"type":"boolean"}},"required":["name"]}}}}}},"/organizations/{organizationId}/seasons/{seasonId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdSeasonsBySeasonId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"startsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"isActive":{"type":"boolean"}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdSeasonsBySeasonId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/fees":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdFees","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdFees","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"membershipTypeId":{"type":"string","minLength":1},"amount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"},"currency":{"type":"string","minLength":3,"maxLength":3}},"required":["membershipTypeId","amount"]}}}}}},"/organizations/{organizationId}/seasons/{seasonId}/fees/{feeId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdSeasonsBySeasonIdFeesByFeeId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"feeId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"},"currency":{"type":"string","minLength":3,"maxLength":3}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdSeasonsBySeasonIdFeesByFeeId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"feeId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/remind-unpaid":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdRemindUnpaid","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdRemindUnpaid","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/announce":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdAnnounce","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/member-fees/generate":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFeesGenerate","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/accounting/push":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdAccountingPush","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdAccountingPush","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/accounting/sync-payments":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdAccountingSyncPayments","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdAccountingSyncPayments","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/member-fees/finvoice":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFeesFinvoice","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/member-fees/export":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFeesExport","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/member-fees/journal":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFeesJournal","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/member-fees":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFees","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/member-fees/{feeId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFeesByFeeId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"feeId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["UNBILLED","PAID","WAIVED"]},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]}},"required":["status"]}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdSeasonsBySeasonIdMemberFeesByFeeId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"feeId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/charge-items":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdChargeItems","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdChargeItems","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":1000},"amount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"},"currency":{"type":"string","minLength":3,"maxLength":3},"groupId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"optIn":{"type":"boolean"}},"required":["name","amount"]}}}}}},"/organizations/{organizationId}/seasons/{seasonId}/charge-items/{itemId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdSeasonsBySeasonIdChargeItemsByItemId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":1000},"amount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$"},"currency":{"type":"string","minLength":3,"maxLength":3},"groupId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"optIn":{"type":"boolean"},"isActive":{"type":"boolean"}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdSeasonsBySeasonIdChargeItemsByItemId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/groups":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdGroups","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdGroups","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000}},"required":["name"]}}}}}},"/organizations/{organizationId}/groups/{groupId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdGroupsByGroupId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"offeredOnApplication":{"type":"boolean"}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdGroupsByGroupId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/groups/{groupId}/members":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdGroupsByGroupIdMembers","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","minLength":1},"move":{"type":"boolean"}},"required":["userId"]}}}}}},"/organizations/{organizationId}/groups/{groupId}/members/{userId}":{"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdGroupsByGroupIdMembersByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"groupId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/tags":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdTags","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdTags","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50}},"required":["name"]}}}}}},"/organizations/{organizationId}/tags/{tagId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdTagsByTagId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50}},"required":["name"]}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdTagsByTagId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/tags/{tagId}/members":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdTagsByTagIdMembers","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1}}},"required":["userIds"]}}}}}},"/organizations/{organizationId}/tags/{tagId}/members/remove":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdTagsByTagIdMembersRemove","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"tagId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1}}},"required":["userIds"]}}}}}},"/organizations/{organizationId}/reports/member-stats":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdReportsMemberStats","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/reports/member-stats/settings":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdReportsMemberStatsSettings","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdReportsMemberStatsSettings","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ageLimits":{"maxItems":10,"type":"array","items":{"type":"integer","minimum":1,"maximum":120}},"ageRule":{"type":"string","enum":["END_OF_YEAR","ON_DATE"]},"breakdown":{"type":"string","enum":["NONE","MEMBERSHIP_TYPE","CUSTOM_FIELD"]},"breakdownFieldId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["ageLimits","ageRule","breakdown","breakdownFieldId"]}}}}}},"/organizations/{organizationId}/reports/member-map":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdReportsMemberMap","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"typeId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":50}},{"name":"groupId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":50}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/templates":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdTemplates","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/templates/{templateType}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdTemplatesByTemplateType","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"templateType","in":"path","required":true,"schema":{"type":"string","enum":["welcome","rejection","invite","fee-reminder","warning","removal","season-announcement","invoice"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["en","fi"]},"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["locale","subject","body"]}}}}}},"/organizations/{organizationId}/audit":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAudit","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"resourceType","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"actor","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/audit/actions":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAuditActions","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/audit/export":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAuditExport","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"action","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"resourceType","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"actor","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/accounting":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAccounting","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdAccounting","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["PROCOUNTOR","NETVISOR","FENNOA","PURSER"]},"credentials":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"companyName":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["provider","credentials"]}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdAccounting","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/accounting/customer-linking":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdAccountingCustomerLinking","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"linking":{"type":"string","enum":["NONE","MEMBER_NUMBER","CUSTOM_FIELD"]},"fieldId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"numberSource":{"type":"string","enum":["MEMBERSHIP","PROVIDER"]}},"required":["linking","numberSource"]}}}}}},"/organizations/{organizationId}/accounting/customer-links/preview":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAccountingCustomerLinksPreview","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/accounting/customer-links":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdAccountingCustomerLinks","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"default":{"create":false},"type":"object","properties":{"create":{"default":false,"type":"boolean"}}}}}}}},"/organizations/{organizationId}/accounting/customer-links/progress":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAccountingCustomerLinksProgress","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/accounting/customer-links/members/{userId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdAccountingCustomerLinksMembersByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdAccountingCustomerLinksMembersByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/accounting/customer-links/members/{userId}/link":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdAccountingCustomerLinksMembersByUserIdLink","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"partnerId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"customerNumber":{"type":"string","minLength":1,"maxLength":50}}}}}}}},"/organizations/{organizationId}/accounting/customer-links/members/{userId}/create":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdAccountingCustomerLinksMembersByUserIdCreate","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/accounting/customer-links/members/{userId}/push":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdAccountingCustomerLinksMembersByUserIdPush","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/warnings":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdWarnings","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdWarnings","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","minLength":1},"reason":{"type":"string","minLength":1,"maxLength":2000},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["userId","reason"]}}}}}},"/organizations/{organizationId}/warnings/{userId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdWarningsByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/warnings/{warningId}":{"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdWarningsByWarningId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"warningId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invites":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdInvites","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":255,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}}},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdInvites","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invites/unclaimed":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdInvitesUnclaimed","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invites/{inviteId}":{"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdInvitesByInviteId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"inviteId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/invites/mine":{"get":{"tags":["invites"],"operationId":"getInvitesMine","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/invites/accept":{"post":{"tags":["invites"],"operationId":"postInvitesAccept","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1},"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100}},"required":["token"]}}}}}},"/organizations/{organizationId}/membership-consents":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMembershipConsents","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/membership-consents/{consentId}":{"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdMembershipConsentsByConsentId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"consentId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/membership-consents/view":{"post":{"tags":["membership-consents"],"operationId":"postMembershipConsentsView","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":200}},"required":["token"]}}}}}},"/membership-consents/accept":{"post":{"tags":["membership-consents"],"operationId":"postMembershipConsentsAccept","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":200}},"required":["token"]}}}}}},"/membership-consents/decline":{"post":{"tags":["membership-consents"],"operationId":"postMembershipConsentsDecline","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":200}},"required":["token"]}}}}}},"/organizations/{organizationId}/billing":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdBilling","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdBilling","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"billingEmail":{"anyOf":[{"type":"string","maxLength":200,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"collectionMethod":{"type":"string","enum":["CHARGE_AUTOMATICALLY","SEND_INVOICE"]},"currency":{"type":"string","enum":["EUR","SEK","NOK","DKK"]}}}}}}}},"/organizations/{organizationId}/billing/payment-method":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdBillingPaymentMethod","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/billing/portal":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdBillingPortal","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/billing/run":{"post":{"tags":["billing"],"operationId":"postBillingRun","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","minLength":1},"periodEnd":{}}}}}}}},"/wishlist":{"get":{"tags":["wishlist"],"operationId":"getWishlist","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["top","new"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["wishlist"],"operationId":"postWishlist","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["WISH","FEEDBACK"]},"title":{"type":"string","minLength":3,"maxLength":120},"description":{"type":"string","minLength":3,"maxLength":4000}},"required":["title","description"]}}}}}},"/wishlist/mine":{"get":{"tags":["wishlist"],"operationId":"getWishlistMine","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/wishlist/admin":{"get":{"tags":["wishlist"],"operationId":"getWishlistAdmin","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["WISH","FEEDBACK"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","OPEN","PLANNED","IN_PROGRESS","DONE","DECLINED"]}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["top","new"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/wishlist/{id}":{"get":{"tags":["wishlist"],"operationId":"getWishlistById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["wishlist"],"operationId":"patchWishlistById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":120},"description":{"type":"string","minLength":3,"maxLength":4000}}}}}}},"delete":{"tags":["wishlist"],"operationId":"deleteWishlistById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/wishlist/{id}/status":{"patch":{"tags":["wishlist"],"operationId":"patchWishlistByIdStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","OPEN","PLANNED","IN_PROGRESS","DONE","DECLINED"]},"adminNote":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["status"]}}}}}},"/wishlist/{id}/vote":{"put":{"tags":["wishlist"],"operationId":"putWishlistByIdVote","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"anyOf":[{"type":"number","const":1},{"type":"number","const":-1},{"type":"number","const":0}]}},"required":["value"]}}}}}},"/admin/demo/summary":{"get":{"tags":["admin"],"operationId":"getAdminDemoSummary","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/demo/sessions":{"get":{"tags":["admin"],"operationId":"getAdminDemoSessions","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/overview":{"get":{"tags":["admin"],"operationId":"getAdminOverview","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/traffic":{"get":{"tags":["admin"],"operationId":"getAdminTraffic","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/organizations":{"get":{"tags":["admin"],"operationId":"getAdminOrganizations","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["created","name","members"]}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/organizations/{organizationId}":{"get":{"tags":["admin"],"operationId":"getAdminOrganizationsByOrganizationId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/organizations/{organizationId}/commission":{"patch":{"tags":["admin"],"operationId":"patchAdminOrganizationsByOrganizationIdCommission","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commissionRate":{"type":"number","minimum":0,"maximum":0.25},"commissionFreeUntil":{"anyOf":[{},{"type":"null"}]}}}}}}}},"/admin/users":{"get":{"tags":["admin"],"operationId":"getAdminUsers","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"role","in":"query","required":false,"schema":{"type":"string","enum":["USER","ADMIN"]}},{"name":"verified","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["created","name","email"]}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/users/{userId}":{"get":{"tags":["admin"],"operationId":"getAdminUsersByUserId","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/payments":{"get":{"tags":["admin"],"operationId":"getAdminPayments","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"organizationId","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["DRAFT","OPEN","PAID","UNCOLLECTIBLE","VOID"]}},{"name":"from","in":"query","required":false,"schema":{}},{"name":"to","in":"query","required":false,"schema":{}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/activity":{"get":{"tags":["admin"],"operationId":"getAdminActivity","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"action","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"organizationId","in":"query","required":false,"schema":{"type":"string","minLength":1}},{"name":"actor","in":"query","required":false,"schema":{"type":"string","maxLength":200}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/admin/activity/actions":{"get":{"tags":["admin"],"operationId":"getAdminActivityActions","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/charge-items":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdChargeItems","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/charge-items/{itemId}/opt-in":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdChargeItemsByItemIdOptIn","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdChargeItemsByItemIdOptIn","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/member-import/preview":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMemberImportPreview","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":1000000}},"required":["csv"]}}}}}},"/organizations/{organizationId}/member-import/name-matches":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMemberImportNameMatches","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":1000000},"mapping":{"type":"object","properties":{"email":{"type":"integer","minimum":0,"maximum":9007199254740991},"firstName":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastName":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["email"]}},"required":["csv","mapping"]}}}}}},"/organizations/{organizationId}/member-import":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMemberImport","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":1000000},"mapping":{"type":"object","properties":{"email":{"type":"integer","minimum":0,"maximum":9007199254740991},"firstName":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastName":{"type":"integer","minimum":0,"maximum":9007199254740991},"phone":{"type":"integer","minimum":0,"maximum":9007199254740991},"memberNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"membershipType":{"type":"integer","minimum":0,"maximum":9007199254740991},"joinedOn":{"type":"integer","minimum":0,"maximum":9007199254740991},"birthDate":{"type":"integer","minimum":0,"maximum":9007199254740991},"streetAddress":{"type":"integer","minimum":0,"maximum":9007199254740991},"postalCode":{"type":"integer","minimum":0,"maximum":9007199254740991},"city":{"type":"integer","minimum":0,"maximum":9007199254740991},"groups":{"type":"integer","minimum":0,"maximum":9007199254740991},"tags":{"type":"integer","minimum":0,"maximum":9007199254740991},"customFields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["email"]}},"required":["csv","mapping"]}}}}}},"/organizations/{organizationId}/member-import/progress":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMemberImportProgress","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/custom-fields":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdCustomFields","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdCustomFields","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"type":{"type":"string","enum":["TEXT","NUMBER","BOOLEAN","CHOICE"]},"options":{"minItems":2,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"memberEditable":{"type":"boolean"},"showOnCard":{"type":"boolean"},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"isActive":{"type":"boolean"}},"required":["name","type"]}}}}}},"/organizations/{organizationId}/custom-fields/values/{userId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdCustomFieldsValuesByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdCustomFieldsValuesByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"values":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"fieldId":{"type":"string","minLength":1},"value":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"required":["fieldId","value"]}}},"required":["values"]}}}}}},"/organizations/{organizationId}/custom-fields/{id}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdCustomFieldsById","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"options":{"minItems":2,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"memberEditable":{"type":"boolean"},"showOnCard":{"type":"boolean"},"sortOrder":{"type":"integer","minimum":0,"maximum":9007199254740991},"isActive":{"type":"boolean"}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdCustomFieldsById","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/application-questions":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdApplicationQuestions","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdApplicationQuestions","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"type":{"type":"string","enum":["TEXT","LONG_TEXT","CHOICE"]},"options":{"minItems":2,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"required":{"default":false,"type":"boolean"}},"required":["label","type"]}}}}}},"/organizations/{organizationId}/application-questions/order":{"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdApplicationQuestionsOrder","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1}}},"required":["ids"]}}}}}},"/organizations/{organizationId}/application-questions/{id}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdApplicationQuestionsById","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":200},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"type":{"type":"string","enum":["TEXT","LONG_TEXT","CHOICE"]},"options":{"minItems":2,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"required":{"type":"boolean"}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdApplicationQuestionsById","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/messages/preview":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMessagesPreview","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"audience":{"default":{},"type":"object","properties":{"status":{"type":"string","enum":["PENDING","APPROVED","REJECTED","BANNED"]},"roles":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["OWNER","ADMIN","VIEWER","MEMBER"]}},"membershipTypeIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"groupIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"tagIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"userIds":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":1}},"search":{"type":"string","maxLength":200},"unpaidSeasonId":{"type":"string","minLength":1},"unclaimedOnly":{"type":"boolean"}}}}}}}}}},"/organizations/{organizationId}/messages":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMessages","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":1,"maxLength":20000},"replyTo":{"anyOf":[{"type":"string","const":""},{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},"audience":{"default":{},"type":"object","properties":{"status":{"type":"string","enum":["PENDING","APPROVED","REJECTED","BANNED"]},"roles":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["OWNER","ADMIN","VIEWER","MEMBER"]}},"membershipTypeIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"groupIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"tagIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"userIds":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":1}},"search":{"type":"string","maxLength":200},"unpaidSeasonId":{"type":"string","minLength":1},"unclaimedOnly":{"type":"boolean"}}}},"required":["subject","body"]}}}}},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMessages","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/messages/{messageId}/resend-unreached":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMessagesByMessageIdResendUnreached","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/messages/{messageId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMessagesByMessageId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"messageId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/reconciliation/preview":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdReconciliationPreview","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":2000000},"mapping":{"type":"object","properties":{"reference":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"paidAt":{"type":"integer","minimum":0,"maximum":9007199254740991},"payer":{"type":"integer","minimum":0,"maximum":9007199254740991},"archiveId":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","amount"]}},"required":["csv"]}}}}}},"/organizations/{organizationId}/reconciliation/apply":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdReconciliationApply","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":2000000},"mapping":{"type":"object","properties":{"reference":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"paidAt":{"type":"integer","minimum":0,"maximum":9007199254740991},"payer":{"type":"integer","minimum":0,"maximum":9007199254740991},"archiveId":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reference","amount"]},"confirmedMismatchReferences":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["csv","mapping"]}}}}}},"/organizations/{organizationId}/reconciliation/example":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdReconciliationExample","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invoicing/preview":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdInvoicingPreview","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"invoicePaymentTermDays","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":120}},{"name":"invoiceFooterText","in":"query","required":false,"schema":{"type":"string","maxLength":500}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invoicing/seasons/{seasonId}/send":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdInvoicingSeasonsBySeasonIdSend","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdInvoicingSeasonsBySeasonIdSend","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invoicing/seasons/{seasonId}/send/preview":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdInvoicingSeasonsBySeasonIdSendPreview","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invoicing/seasons/{seasonId}/send/progress":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdInvoicingSeasonsBySeasonIdSendProgress","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invoicing/invoices/{invoiceId}/send":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdInvoicingInvoicesByInvoiceIdSend","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/invoicing/invoices/{invoiceId}/void":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdInvoicingInvoicesByInvoiceIdVoid","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}}}}}}}},"/invoices/{invoiceId}/pdf":{"get":{"tags":["invoices"],"operationId":"getInvoicesByInvoiceIdPdf","parameters":[{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/card":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdCard","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/card/rotate":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdCardRotate","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/members/{userId}/avatar":{"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdMembersByUserIdAvatar","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdMembersByUserIdAvatar","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/members/{userId}/avatar/{size}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMembersByUserIdAvatarBySize","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"size","in":"path","required":true,"schema":{"type":"string","enum":["thumbnail","medium"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/members/{userId}/guardians":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMembersByUserIdGuardians","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdMembersByUserIdGuardians","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"relation":{"type":"string","maxLength":50}},"required":["email"]}}}}}},"/organizations/{organizationId}/members/{userId}/guardians/{linkId}":{"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdMembersByUserIdGuardiansByLinkId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"linkId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/members/{userId}/fee-exemption":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdMembersByUserIdFeeExemption","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdMembersByUserIdFeeExemption","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":200},"validUntil":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["reason","validUntil"]}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdMembersByUserIdFeeExemption","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/guardians/dependents":{"get":{"tags":["guardians"],"operationId":"getGuardiansDependents","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/guardians/organizations/{organizationId}/members/{userId}":{"get":{"tags":["guardians"],"operationId":"getGuardiansOrganizationsByOrganizationIdMembersByUserId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/guardians/organizations/{organizationId}/members/{userId}/fees":{"get":{"tags":["guardians"],"operationId":"getGuardiansOrganizationsByOrganizationIdMembersByUserIdFees","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/guardians/organizations/{organizationId}/members/{userId}/contact":{"patch":{"tags":["guardians"],"operationId":"patchGuardiansOrganizationsByOrganizationIdMembersByUserIdContact","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"birthDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"streetAddress":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"postalCode":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"countryCode":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}]}}}}}}}},"/organizations/{organizationId}/expenses":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdExpenses","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["DRAFT","SUBMITTED","APPROVED","REJECTED","PAID"]}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdExpenses","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":150},"description":{"type":"string","maxLength":2000},"iban":{"type":"string"},"lines":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":200},"amount":{"type":"string","pattern":"^\\d{1,7}([.,]\\d{1,2})?$"},"incurredOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"category":{"type":"string","maxLength":100}},"required":["description","amount","incurredOn"]}}}}}}}}},"/organizations/{organizationId}/expenses/export":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdExpensesExport","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/expenses/mine":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdExpensesMine","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/expenses/{claimId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdExpensesByClaimId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdExpensesByClaimId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":150},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"iban":{"anyOf":[{"type":"string"},{"type":"null"}]},"lines":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":200},"amount":{"type":"string","pattern":"^\\d{1,7}([.,]\\d{1,2})?$"},"incurredOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"category":{"type":"string","maxLength":100}},"required":["description","amount","incurredOn"]}}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdExpensesByClaimId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/expenses/{claimId}/submit":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdExpensesByClaimIdSubmit","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/expenses/{claimId}/decision":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdExpensesByClaimIdDecision","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["APPROVED","REJECTED","PAID"]},"decisionNote":{"type":"string","maxLength":2000}},"required":["status"]}}}}}},"/organizations/{organizationId}/expenses/{claimId}/receipts":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdExpensesByClaimIdReceipts","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/expenses/{claimId}/receipts/{receiptId}":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdExpensesByClaimIdReceiptsByReceiptId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"receiptId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdExpensesByClaimIdReceiptsByReceiptId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"receiptId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/procountor":{"put":{"tags":["organizations"],"operationId":"putOrganizationsByOrganizationIdProcountor","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":10,"maxLength":500}},"required":["apiKey"]}}}}},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdProcountor","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdProcountor","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/procountor/invoice":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdProcountorInvoice","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdProcountorInvoice","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/seasons/{seasonId}/procountor/sync-payments":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSeasonsBySeasonIdProcountorSyncPayments","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSeasonsBySeasonIdProcountorSyncPayments","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"seasonId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/connections/pairing-code":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdConnectionsPairingCode","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/connections":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdConnections","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/connections/{connectionId}":{"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdConnectionsByConnectionId","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"connectionId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/sign-in-clients":{"get":{"tags":["organizations"],"operationId":"getOrganizationsByOrganizationIdSignInClients","summary":"Websites that sign members in with Membership","description":"The sites this organization has registered for \"Kirjaudu Membershipillä\", with the issuer and discovery address a site is configured with.","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]},"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSignInClients","summary":"Register a website","description":"Returns the client id and secret. The secret is shown in this answer only.","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","maxLength":500}}},"required":["name","redirectUris"]}}}}}},"/organizations/{organizationId}/sign-in-clients/{clientId}":{"patch":{"tags":["organizations"],"operationId":"patchOrganizationsByOrganizationIdSignInClientsByClientId","summary":"Rename a website or change its redirect addresses","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"clientId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","maxLength":500}},"sharedTagIds":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}}}}}},"delete":{"tags":["organizations"],"operationId":"deleteOrganizationsByOrganizationIdSignInClientsByClientId","summary":"Remove a website","description":"Every token issued to the site stops working, and members can no longer sign in to it.","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"clientId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/organizations/{organizationId}/sign-in-clients/{clientId}/secret":{"post":{"tags":["organizations"],"operationId":"postOrganizationsByOrganizationIdSignInClientsByClientIdSecret","summary":"Replace a website's secret","description":"The old secret stops working at once. Members stay connected.","parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"clientId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"bearerAuth":[]}]}},"/ext/connections/claim":{"post":{"tags":["ext"],"operationId":"postExtConnectionsClaim","summary":"Exchange a pairing code for an API key","description":"An organization admin generates a single-use code and hands it to you. Claiming it returns the API key for that organization, which is shown once. This is the only endpoint that does not take a key, because it is the one that issues it.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"apiKey":{"type":"string"},"organization":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"shortName":{"anyOf":[{"type":"string"},{"type":"null"}]},"profileImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"membershipPolicy":{"type":"string"},"memberCount":{"type":"number"}},"required":["id","slug","name","shortName","profileImageUrl","membershipPolicy"],"additionalProperties":false}},"required":["apiKey","organization"],"additionalProperties":false}},"required":["success","data"]}}}},"400":{"$ref":"#/components/responses/Error"}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":8,"maxLength":20},"systemKey":{"type":"string","minLength":2,"maxLength":50,"pattern":"^[a-z0-9][a-z0-9-]*$"},"systemName":{"type":"string","minLength":1,"maxLength":100},"externalId":{"type":"string","minLength":1,"maxLength":100},"externalName":{"type":"string","minLength":1,"maxLength":200},"externalUrl":{"type":"string","maxLength":500,"format":"uri"}},"required":["code","systemKey","systemName","externalId","externalName"]}}}}}},"/ext/organization":{"get":{"tags":["ext"],"operationId":"getExtOrganization","summary":"The organization this key belongs to","description":"Confirms which association the key is connected to and when the connection was made. Useful as a health check after storing a key.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"organization":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"shortName":{"anyOf":[{"type":"string"},{"type":"null"}]},"profileImageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"membershipPolicy":{"type":"string"},"memberCount":{"type":"number"}},"required":["id","slug","name","shortName","profileImageUrl","membershipPolicy"],"additionalProperties":false},"connection":{"type":"object","properties":{"externalId":{"type":"string"},"externalName":{"type":"string"},"connectedAt":{"type":"string","format":"date-time"}},"required":["externalId","externalName","connectedAt"],"additionalProperties":false}},"required":["organization","connection"],"additionalProperties":false}},"required":["success","data"]}}}},"400":{"$ref":"#/components/responses/Error"}},"security":[{"apiKeyAuth":[]}]}},"/ext/members/verify":{"post":{"tags":["ext"],"operationId":"postExtMembersVerify","summary":"Check whether one email address belongs to a member","description":"Answers whether the address is an approved member of this organization, which membership type they hold, and where they stand on the current season fee. It returns nothing else about the person: an integration asking about membership does not need their contact details.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"isMember":{"type":"boolean"},"membershipType":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"currentSeason":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"feeStatus":{"type":"string","enum":["UNBILLED","INVOICED","PAID","WAIVED","NONE"]},"feePaid":{"type":"boolean"}},"required":["id","name","feeStatus","feePaid"],"additionalProperties":false},{"type":"null"}]}},"required":["isMember","membershipType","memberSince","currentSeason"],"additionalProperties":false}},"required":["success","data"]}}}},"400":{"$ref":"#/components/responses/Error"}},"security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}}}},"/ext/membership-types":{"get":{"tags":["ext"],"operationId":"getExtMembershipTypes","summary":"The membership types this organization offers","description":"The names a member verification can come back with, so an integration can map them to its own categories ahead of time.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"membershipTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["membershipTypes"],"additionalProperties":false}},"required":["success","data"]}}}},"400":{"$ref":"#/components/responses/Error"}},"security":[{"apiKeyAuth":[]}]}},"/ext/members/lookup":{"post":{"tags":["ext"],"operationId":"postExtMembersLookup","summary":"Check up to 200 addresses at once","description":"Membership status for many addresses at once, for reconciling a whole roster. It reports whether each address is a member and which type, and deliberately not the season fee: resolving that costs a query per member, so ask the single-address check for anyone whose fee you need. Rate limited far more tightly per request than that check, because a full sync is a handful of calls rather than hundreds.","parameters":[],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"const":true},"data":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"isMember":{"type":"boolean"},"membershipType":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["email","isMember","membershipType"],"additionalProperties":false}}},"required":["results"],"additionalProperties":false}},"required":["success","data"]}}}},"400":{"$ref":"#/components/responses/Error"}},"security":[{"apiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","maxLength":320,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}},"required":["emails"]}}}}}},"/ext/connection":{"delete":{"tags":["ext"],"operationId":"deleteExtConnection","summary":"Disconnect from this organization","description":"Revokes the key from your side. The organization can revoke it from theirs at any time too, so an integration should treat a 401 as a connection that has ended rather than as an error to retry.","parameters":[],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/Error"}},"security":[{"apiKeyAuth":[]}]}}}}