{"openapi":"3.1.0","paths":{"/v1/accounts/{accountId}":{"get":{"description":"Returns an account. Use `@me` for the signed-in account.","operationId":"AccountsController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `ACCOUNT_NOT_FOUND`: The requested account was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_NOT_FOUND":{"summary":"ACCOUNT_NOT_FOUND","value":{"message":"The requested account was not found.","error":"ACCOUNT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Account","tags":["Accounts"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Use `@me` for the signed-in account.","operationId":"AccountsController_update","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountDto"}}}},"responses":{"200":{"description":"The account was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `EMAIL_ALREADY_EXISTS`: An account with this email address already exists.\n- `IDENTITY_UPDATE_FAILED`: Failed to update identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"EMAIL_ALREADY_EXISTS":{"summary":"EMAIL_ALREADY_EXISTS","value":{"message":"An account with this email address already exists.","error":"EMAIL_ALREADY_EXISTS","statusCode":400}},"IDENTITY_UPDATE_FAILED":{"summary":"IDENTITY_UPDATE_FAILED","value":{"message":"Failed to update identity.","error":"IDENTITY_UPDATE_FAILED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `ACCOUNT_NOT_FOUND`: The requested account was not found.\n- `FAILED_TO_RETRIEVE_IDENTITY`: Failed to retrieve identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_NOT_FOUND":{"summary":"ACCOUNT_NOT_FOUND","value":{"message":"The requested account was not found.","error":"ACCOUNT_NOT_FOUND","statusCode":404}},"FAILED_TO_RETRIEVE_IDENTITY":{"summary":"FAILED_TO_RETRIEVE_IDENTITY","value":{"message":"Failed to retrieve identity.","error":"FAILED_TO_RETRIEVE_IDENTITY","statusCode":404}}}}}}},"summary":"Update an Account","tags":["Accounts"]},"delete":{"description":"Deactivates the account and signs it out everywhere; it can no longer sign in. Use `@me` for the signed-in account. An account that owns salons can't be deleted: transfer or delete its salons first.","operationId":"AccountsController_delete","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The account was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountResultDto"}}}},"400":{"description":"- `ACCOUNT_OWNS_SALONS`: This account cannot be deleted because it owns one or more salons.\n- `IDENTITY_DEACTIVATION_FAILED`: Failed to deactivate identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_OWNS_SALONS":{"summary":"ACCOUNT_OWNS_SALONS","value":{"message":"This account cannot be deleted because it owns one or more salons.","error":"ACCOUNT_OWNS_SALONS","statusCode":400}},"IDENTITY_DEACTIVATION_FAILED":{"summary":"IDENTITY_DEACTIVATION_FAILED","value":{"message":"Failed to deactivate identity.","error":"IDENTITY_DEACTIVATION_FAILED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `ACCOUNT_NOT_FOUND`: The requested account was not found.\n- `FAILED_TO_RETRIEVE_IDENTITY`: Failed to retrieve identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_NOT_FOUND":{"summary":"ACCOUNT_NOT_FOUND","value":{"message":"The requested account was not found.","error":"ACCOUNT_NOT_FOUND","statusCode":404}},"FAILED_TO_RETRIEVE_IDENTITY":{"summary":"FAILED_TO_RETRIEVE_IDENTITY","value":{"message":"Failed to retrieve identity.","error":"FAILED_TO_RETRIEVE_IDENTITY","statusCode":404}}}}}}},"summary":"Delete an Account","tags":["Accounts"]}},"/v1/accounts/{accountId}/integrations":{"get":{"description":"Returns every integration that is connected per account (calendars), each with the account's connections to it.","operationId":"IntegrationsController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The integrations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationDto"}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Integrations","tags":["Accounts / Integrations"]}},"/v1/accounts/{accountId}/integrations/{integrationId}":{"get":{"description":"Returns one account integration with the account's connections to it.","operationId":"IntegrationsController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID: `google-calendar` or `office365-calendar`","schema":{"example":"google-calendar","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The integration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INTEGRATION_NOT_FOUND`: The requested integration was not found.\n- `INTEGRATION_SCOPE_MISMATCH`: The integration scope does not match.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_FOUND":{"summary":"INTEGRATION_NOT_FOUND","value":{"message":"The requested integration was not found.","error":"INTEGRATION_NOT_FOUND","statusCode":404}},"INTEGRATION_SCOPE_MISMATCH":{"summary":"INTEGRATION_SCOPE_MISMATCH","value":{"message":"The integration scope does not match.","error":"INTEGRATION_SCOPE_MISMATCH","statusCode":404}}}}}}},"summary":"Get an Integration","tags":["Accounts / Integrations"]},"delete":{"description":"Deletes all of the account's connections to the integration, after telling the provider where it supports that (e.g. stopping calendar sync).","operationId":"IntegrationsController_disconnect","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID: `google-calendar` or `office365-calendar`","schema":{"example":"google-calendar","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The integration was disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectIntegrationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONNECTIONS_NOT_FOUND`: No connections were found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONNECTIONS_NOT_FOUND":{"summary":"CONNECTIONS_NOT_FOUND","value":{"message":"No connections were found.","error":"CONNECTIONS_NOT_FOUND","statusCode":404}}}}}}},"summary":"Disconnect an Integration","tags":["Accounts / Integrations"]}},"/v1/accounts/{accountId}/integrations/{integrationId}/connections":{"get":{"description":"Returns a page of the connections of the account to the integration, newest first. Credentials are never returned.","operationId":"IntegrationConnectionsController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID: `google-calendar` or `office365-calendar`","schema":{"example":"google-calendar","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these connections, comma-separated","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Connections per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of connections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Connections","tags":["Accounts / Integrations / Connections"]},"post":{"description":"Connects the account to a calendar. The answer is `redirectTo`: open it to sign in at the provider, which creates the connection when it redirects back. An account can connect more than one calendar account.","operationId":"IntegrationConnectionsController_create","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID: `google-calendar` or `office365-calendar`","schema":{"example":"google-calendar","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":false,"description":"Not needed for calendars","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"example":{}}}}},"responses":{"201":{"description":"The new connection, or `redirectTo` when the provider needs a sign-in first","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectionDto"},{"$ref":"#/components/schemas/ConnectionRedirectDto"}]}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INTEGRATION_NOT_FOUND`: The requested integration was not found.\n- `INTEGRATION_SCOPE_MISMATCH`: The integration scope does not match.\n- `HANDLER_NOT_FOUND`: The requested handler was not found.\n- `HANDLER_RESPONSE_NOT_FOUND`: The handler response was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_FOUND":{"summary":"INTEGRATION_NOT_FOUND","value":{"message":"The requested integration was not found.","error":"INTEGRATION_NOT_FOUND","statusCode":404}},"INTEGRATION_SCOPE_MISMATCH":{"summary":"INTEGRATION_SCOPE_MISMATCH","value":{"message":"The integration scope does not match.","error":"INTEGRATION_SCOPE_MISMATCH","statusCode":404}},"HANDLER_NOT_FOUND":{"summary":"HANDLER_NOT_FOUND","value":{"message":"The requested handler was not found.","error":"HANDLER_NOT_FOUND","statusCode":404}},"HANDLER_RESPONSE_NOT_FOUND":{"summary":"HANDLER_RESPONSE_NOT_FOUND","value":{"message":"The handler response was not found.","error":"HANDLER_RESPONSE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `INTEGRATION_NOT_ACTIVE`: This integration is not active.\n- `INTEGRATION_NOT_AVAILABLE`: This integration is not available.\n- `CONNECTION_ALREADY_EXISTS`: This connection already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_ACTIVE":{"summary":"INTEGRATION_NOT_ACTIVE","value":{"message":"This integration is not active.","error":"INTEGRATION_NOT_ACTIVE","statusCode":409}},"INTEGRATION_NOT_AVAILABLE":{"summary":"INTEGRATION_NOT_AVAILABLE","value":{"message":"This integration is not available.","error":"INTEGRATION_NOT_AVAILABLE","statusCode":409}},"CONNECTION_ALREADY_EXISTS":{"summary":"CONNECTION_ALREADY_EXISTS","value":{"message":"This connection already exists.","error":"CONNECTION_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Connection","tags":["Accounts / Integrations / Connections"]}},"/v1/accounts/{accountId}/integrations/{integrationId}/connections/{connectionId}":{"get":{"description":"Returns one connection of the account to the integration, without its credentials.","operationId":"IntegrationConnectionsController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID: `google-calendar` or `office365-calendar`","schema":{"example":"google-calendar","type":"string"}},{"name":"connectionId","required":true,"in":"path","description":"Connection ID","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONNECTION_NOT_FOUND`: The requested connection was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONNECTION_NOT_FOUND":{"summary":"CONNECTION_NOT_FOUND","value":{"message":"The requested connection was not found.","error":"CONNECTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Connection","tags":["Accounts / Integrations / Connections"]},"delete":{"description":"Deletes a connection, after telling the provider where it supports that.","operationId":"IntegrationConnectionsController_delete","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID: `google-calendar` or `office365-calendar`","schema":{"example":"google-calendar","type":"string"}},{"name":"connectionId","required":true,"in":"path","description":"Connection ID","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The connection was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteConnectionResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONNECTION_NOT_FOUND`: The requested connection was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONNECTION_NOT_FOUND":{"summary":"CONNECTION_NOT_FOUND","value":{"message":"The requested connection was not found.","error":"CONNECTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Connection","tags":["Accounts / Integrations / Connections"]}},"/v1/accounts/{accountId}/invitations":{"get":{"description":"Returns a page of the invitations sent to the account's email address by salons that added it as a member, newest first, each with the member and the salon.","operationId":"InvitationsController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these invitations, comma-separated","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Invitations per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the salon name","schema":{"example":"your salon","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of invitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Invitations","tags":["Accounts / Invitations"]}},"/v1/accounts/{accountId}/invitations/{invitationId}":{"get":{"description":"Returns one invitation sent to the account's email address, with the member and the salon.","operationId":"InvitationsController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"invitationId","required":true,"in":"path","description":"Invitation ID","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}},"404":{"description":"- `INVITATION_NOT_FOUND`: The requested invitation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVITATION_NOT_FOUND":{"summary":"INVITATION_NOT_FOUND","value":{"message":"The requested invitation was not found.","error":"INVITATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Invitation","tags":["Accounts / Invitations"]}},"/v1/accounts/{accountId}/invitations/{invitationId}/accept":{"post":{"description":"Links the member to the account, which can then open the salon. The member's name, email address and phone number are replaced with the account's, and the invitation is deleted.","operationId":"InvitationsController_accept","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"invitationId","required":true,"in":"path","description":"Invitation ID","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The linked member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}},"404":{"description":"- `INVITATION_NOT_FOUND`: The requested invitation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVITATION_NOT_FOUND":{"summary":"INVITATION_NOT_FOUND","value":{"message":"The requested invitation was not found.","error":"INVITATION_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `MEMBER_ALREADY_LINKED`: This member is already linked to an account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_ALREADY_LINKED":{"summary":"MEMBER_ALREADY_LINKED","value":{"message":"This member is already linked to an account.","error":"MEMBER_ALREADY_LINKED","statusCode":409}}}}}}},"summary":"Accept an Invitation","tags":["Accounts / Invitations"]}},"/v1/accounts/{accountId}/invitations/{invitationId}/decline":{"post":{"description":"Deletes the invitation. The member stays in the salon, not linked to any account.","operationId":"InvitationsController_decline","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"invitationId","required":true,"in":"path","description":"Invitation ID","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The invitation was declined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineInvitationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}},"404":{"description":"- `INVITATION_NOT_FOUND`: The requested invitation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVITATION_NOT_FOUND":{"summary":"INVITATION_NOT_FOUND","value":{"message":"The requested invitation was not found.","error":"INVITATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Decline an Invitation","tags":["Accounts / Invitations"]}},"/v1/accounts/{accountId}/apps":{"get":{"description":"Returns a page of the OAuth2 apps of the account, newest first.","operationId":"AppsController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these apps, comma-separated","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Apps per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"front desk","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of apps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Apps","tags":["Accounts / Apps"]},"post":{"description":"Creates an OAuth2 app that can sign in on behalf of the account and returns its client secret, which is shown only once.","operationId":"AppsController_create","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppDto"}}}},"responses":{"201":{"description":"The new app and its credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create an App","tags":["Accounts / Apps"]}},"/v1/accounts/{accountId}/apps/{appId}":{"get":{"description":"Returns one OAuth2 app of the account.","operationId":"AppsController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"appId","required":true,"in":"path","description":"App ID","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `APP_NOT_FOUND`: The requested app was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APP_NOT_FOUND":{"summary":"APP_NOT_FOUND","value":{"message":"The requested app was not found.","error":"APP_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an App","tags":["Accounts / Apps"]},"patch":{"description":"Changes the name, scopes or redirect URIs of an app. The client secret stays the same.","operationId":"AppsController_update","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"appId","required":true,"in":"path","description":"App ID","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppDto"}}}},"responses":{"200":{"description":"The app was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `APP_NOT_FOUND`: The requested app was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APP_NOT_FOUND":{"summary":"APP_NOT_FOUND","value":{"message":"The requested app was not found.","error":"APP_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update an App","tags":["Accounts / Apps"]},"delete":{"description":"Deletes an app and its OAuth2 client, so it can no longer sign in.","operationId":"AppsController_delete","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"appId","required":true,"in":"path","description":"App ID","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The app was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAppResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `APP_NOT_FOUND`: The requested app was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APP_NOT_FOUND":{"summary":"APP_NOT_FOUND","value":{"message":"The requested app was not found.","error":"APP_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete an App","tags":["Accounts / Apps"]}},"/v1/accounts/{accountId}/notifications/history":{"get":{"description":"Returns a page of the messages sent to the account by email, SMS, WhatsApp or push, newest first. Use `@me` for the signed-in account.","operationId":"NotificationHistoryController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these history entries, comma-separated","schema":{"example":"nhis_01hb3m9p2qwz5ktv7x4nc6rd8g","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Entries per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the email address or phone number it was sent to","schema":{"example":"jane@","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `channel`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of history entries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryEntryListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All History Entries","tags":["Accounts / Notifications / History"]}},"/v1/accounts/{accountId}/notifications/history/{historyEntryId}":{"get":{"description":"Returns one message sent to the account. Use `@me` for the signed-in account.","operationId":"NotificationHistoryController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"historyEntryId","required":true,"in":"path","description":"History entry ID","schema":{"example":"nhis_01hb3m9p2qwz5ktv7x4nc6rd8g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The history entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryEntryDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `HISTORY_ENTRY_NOT_FOUND`: The notification history entry was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"HISTORY_ENTRY_NOT_FOUND":{"summary":"HISTORY_ENTRY_NOT_FOUND","value":{"message":"The notification history entry was not found.","error":"HISTORY_ENTRY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a History Entry","tags":["Accounts / Notifications / History"]}},"/v1/accounts/{accountId}/notifications/preferences":{"get":{"description":"Returns the account's saved channel preferences. A channel without a saved preference is on. Use `@me` for the signed-in account.","operationId":"NotificationPreferencesController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"channel","required":false,"in":"query","description":"Only the preference of this channel","schema":{"enum":["push","email","sms","whatsapp"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The preferences","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreferenceDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Preferences","tags":["Accounts / Notifications / Preferences"]},"patch":{"description":"Turns a channel on or off for messages to the account. Use `@me` for the signed-in account.","operationId":"NotificationPreferencesController_update","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountPreferenceDto"}}}},"responses":{"200":{"description":"The preference was saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePreferenceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update a Preference","tags":["Accounts / Notifications / Preferences"]}},"/v1/accounts/{accountId}/notifications/push-subscriptions":{"get":{"description":"Returns the account's push subscriptions with this endpoint, to check whether this browser is subscribed. Push notifications to the account and its salon memberships go to these subscriptions. Use `@me` for the signed-in account.","operationId":"NotificationPushSubscriptionsController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"endpoint","required":true,"in":"query","description":"Push service URL of the browser or device","schema":{"example":"https://fcm.googleapis.com/fcm/send/eYk3bX9Qm2c:APA91bHk7sT2wq","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The matching push subscriptions","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PushSubscriptionDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Push Subscriptions","tags":["Accounts / Notifications / Push Subscriptions"]},"post":{"description":"Subscribes a browser to web push notifications for the account and sends it a welcome notification. Subscribing an endpoint that already exists moves it to this account and refreshes its keys. Use `@me` for the signed-in account.","operationId":"NotificationPushSubscriptionsController_create","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePushSubscriptionDto"}}}},"responses":{"201":{"description":"The push subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubscriptionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create a Push Subscription","tags":["Accounts / Notifications / Push Subscriptions"]},"delete":{"description":"Stops web push notifications to a browser. Use `@me` for the signed-in account.","operationId":"NotificationPushSubscriptionsController_delete","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"endpoint","required":true,"in":"query","description":"Push service URL of the browser or device","schema":{"example":"https://fcm.googleapis.com/fcm/send/eYk3bX9Qm2c:APA91bHk7sT2wq","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The push subscription was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePushSubscriptionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Delete a Push Subscription","tags":["Accounts / Notifications / Push Subscriptions"]}},"/v1/accounts/{accountId}/notifications":{"get":{"description":"Returns a page of the account's in-app notifications, newest first; notifications as a member of a salon are listed under the salon. The metadata lists the IDs of every unread one. Use `@me` for the signed-in account.","operationId":"NotificationsController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these notifications, comma-separated","schema":{"example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Notifications per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the title","schema":{"example":"invitation","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `readAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of notifications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Notifications","tags":["Accounts / Notifications"]}},"/v1/accounts/{accountId}/notifications/{notificationId}":{"get":{"description":"Returns one of the account's in-app notifications. Use `@me` for the signed-in account.","operationId":"NotificationsController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"notificationId","required":true,"in":"path","description":"Notification ID","schema":{"example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NOTIFICATION_NOT_FOUND`: The requested notification was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOTIFICATION_NOT_FOUND":{"summary":"NOTIFICATION_NOT_FOUND","value":{"message":"The requested notification was not found.","error":"NOTIFICATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Notification","tags":["Accounts / Notifications"]}},"/v1/accounts/{accountId}/notifications/read":{"post":{"description":"Marks every unread notification of the account as read. Use `@me` for the signed-in account.","operationId":"NotificationsController_readAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"All notifications are read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadAllNotificationsResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Read All Notifications","tags":["Accounts / Notifications"]}},"/v1/accounts/{accountId}/notifications/{notificationId}/read":{"post":{"description":"Marks one of the account's notifications as read. Use `@me` for the signed-in account.","operationId":"NotificationsController_read","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"notificationId","required":true,"in":"path","description":"Notification ID","schema":{"example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The notification is read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadNotificationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NOTIFICATION_NOT_FOUND`: The requested notification was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOTIFICATION_NOT_FOUND":{"summary":"NOTIFICATION_NOT_FOUND","value":{"message":"The requested notification was not found.","error":"NOTIFICATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Read a Notification","tags":["Accounts / Notifications"]}},"/v1/accounts/{accountId}/activities":{"get":{"description":"Returns a page of what happened in the account, such as changes to its apps and connections, newest first.","operationId":"ActivitiesController_getAll","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these activities, comma-separated","schema":{"example":"act_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Activities per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the description","schema":{"example":"connection","type":"string"}},{"name":"resource","required":false,"in":"query","description":"Only activities about this kind of resource","schema":{"example":"integrations/connection","type":"string"}},{"name":"resourceId","required":false,"in":"query","description":"Only activities about this resource","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only activities recorded in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `occurredAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of activities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Activities","tags":["Accounts / Activities"]}},"/v1/accounts/{accountId}/activities/{activityId}":{"get":{"description":"Returns one activity of the account.","operationId":"ActivitiesController_getById","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"activityId","required":true,"in":"path","description":"Activity ID","schema":{"example":"act_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `ACTIVITY_NOT_AVAILABLE`: Activity details are not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"ACTIVITY_NOT_AVAILABLE":{"summary":"ACTIVITY_NOT_AVAILABLE","value":{"message":"Activity details are not available.","error":"ACTIVITY_NOT_AVAILABLE","statusCode":403}}}}}},"404":{"description":"- `ACTIVITY_NOT_FOUND`: The requested activity was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACTIVITY_NOT_FOUND":{"summary":"ACTIVITY_NOT_FOUND","value":{"message":"The requested activity was not found.","error":"ACTIVITY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Activity","tags":["Accounts / Activities"]}},"/v1/salons/availability":{"get":{"description":"Checks whether a subdomain (`yoursalon` for yoursalon.onsoftalon.com) is free. Pass `salonId` when renaming a salon, so its own subdomain counts as free.","operationId":"SalonsController_checkAvailability","parameters":[{"name":"subdomain","required":true,"in":"query","description":"Subdomain to check, without the root domain","schema":{"example":"yoursalon","type":"string"}},{"name":"salonId","required":false,"in":"query","description":"Salon whose own subdomain counts as free","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Whether the subdomain is free","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubdomainAvailabilityDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}}},"summary":"Check Subdomain Availability","tags":["Salons"]}},"/v1/salons/resolve":{"get":{"description":"Finds the salon a booking site hostname belongs to, a subdomain or an active custom domain, and returns what the booking site needs to show it: the salon, its public settings, counts and integrations. No authentication needed.","operationId":"SalonsController_resolve","parameters":[{"name":"hostname","required":true,"in":"query","description":"Hostname of the booking site","schema":{"example":"booking.yoursalon.com","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The salon and its booking site settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedSalonDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.\n- `DOMAIN_NOT_CONFIGURED`: The domain is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}},"DOMAIN_NOT_CONFIGURED":{"summary":"DOMAIN_NOT_CONFIGURED","value":{"message":"The domain is not configured.","error":"DOMAIN_NOT_CONFIGURED","statusCode":404}}}}}}},"summary":"Resolve a Hostname","tags":["Salons"]}},"/v1/salons":{"get":{"description":"Returns a page of the salons you are a member of, newest first. Each salon includes your membership in `members`. Expand `subscription` (with its `subscription.plan` or `subscription.price`), `summary` for counts or `version` for onboarding progress.","operationId":"SalonsController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these salons, comma-separated","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Salons per page, up to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the salon name","schema":{"example":"your salon","type":"string"}},{"name":"category","required":false,"in":"query","description":"Only salons of these types, comma-separated","schema":{"type":"array","items":{"type":"string"}}},{"name":"createdAt","required":false,"in":"query","description":"Only salons created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt` or `name`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["subscription","subscription.plan","subscription.price","summary","version"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of salons","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalonListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}}},"summary":"Get All Salons","tags":["Salons"]},"post":{"description":"Creates a salon with its booking site at `{subdomain}.onsoftalon.com` and makes you its owner. With `activationId`, it creates the salon an activation link was prepared for; each activation link creates one salon. With `expiresAt`, a partner creates a salon for a client; start its trial with `POST /partners/salons`.","operationId":"SalonsController_create","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSalonDto"}}}},"responses":{"201":{"description":"The new salon, with its primary domain and your membership","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalonDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `ACTIVATION_EXPIRED`: This activation has expired.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `INVALID_EXPIRES_AT`: INVALID_EXPIRES_AT\n- `EXPIRING_SALON_LIMIT_REACHED`: EXPIRING_SALON_LIMIT_REACHED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"ACTIVATION_EXPIRED":{"summary":"ACTIVATION_EXPIRED","value":{"message":"This activation has expired.","error":"ACTIVATION_EXPIRED","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"INVALID_EXPIRES_AT":{"summary":"INVALID_EXPIRES_AT","value":{"message":"INVALID_EXPIRES_AT","error":"INVALID_EXPIRES_AT","statusCode":400}},"EXPIRING_SALON_LIMIT_REACHED":{"summary":"EXPIRING_SALON_LIMIT_REACHED","value":{"message":"EXPIRING_SALON_LIMIT_REACHED","error":"EXPIRING_SALON_LIMIT_REACHED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.\n- `SALON_CREATION_NOT_ALLOWED`: SALON_CREATION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}},"SALON_CREATION_NOT_ALLOWED":{"summary":"SALON_CREATION_NOT_ALLOWED","value":{"message":"SALON_CREATION_NOT_ALLOWED","error":"SALON_CREATION_NOT_ALLOWED","statusCode":403}}}}}},"404":{"description":"- `ACTIVATION_NOT_FOUND`: The requested activation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACTIVATION_NOT_FOUND":{"summary":"ACTIVATION_NOT_FOUND","value":{"message":"The requested activation was not found.","error":"ACTIVATION_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `SUBDOMAIN_NOT_AVAILABLE`: This subdomain is not available.\n- `ACTIVATION_ALREADY_ACCEPTED`: This activation has already been used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBDOMAIN_NOT_AVAILABLE":{"summary":"SUBDOMAIN_NOT_AVAILABLE","value":{"message":"This subdomain is not available.","error":"SUBDOMAIN_NOT_AVAILABLE","statusCode":409}},"ACTIVATION_ALREADY_ACCEPTED":{"summary":"ACTIVATION_ALREADY_ACCEPTED","value":{"message":"This activation has already been used.","error":"ACTIVATION_ALREADY_ACCEPTED","statusCode":409}}}}}}},"summary":"Create a Salon","tags":["Salons"]}},"/v1/salons/{salonId}":{"get":{"description":"Returns a salon you are a member of, with its primary domain and your membership in `members`. Expand `subscription` (with its `subscription.plan` or `subscription.price`).","operationId":"SalonsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["subscription","subscription.plan","subscription.price"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The salon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalonDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Salon","tags":["Salons"]},"patch":{"description":"Changes the salon's name, type, logo, subdomain or primary domain. A new subdomain also moves the booking site's onsoftalon.com address. Needs the `salons/manage` permission.","operationId":"SalonsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSalonDto"}}}},"responses":{"200":{"description":"The salon was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSalonResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PRIMARY_DOMAIN_NOT_FOUND`: The primary domain was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRIMARY_DOMAIN_NOT_FOUND":{"summary":"PRIMARY_DOMAIN_NOT_FOUND","value":{"message":"The primary domain was not found.","error":"PRIMARY_DOMAIN_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `SUBDOMAIN_NOT_AVAILABLE`: This subdomain is not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBDOMAIN_NOT_AVAILABLE":{"summary":"SUBDOMAIN_NOT_AVAILABLE","value":{"message":"This subdomain is not available.","error":"SUBDOMAIN_NOT_AVAILABLE","statusCode":409}}}}}}},"summary":"Update a Salon","tags":["Salons"]},"delete":{"description":"The owner deletes the salon, which needs its subscription canceled first. Any other member leaves the salon instead: their membership is deactivated and no longer linked to their account.","operationId":"SalonsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The salon was deleted or left","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSalonResultDto"}}}},"400":{"description":"- `SALON_HAS_ACTIVE_SUBSCRIPTION`: This salon cannot be deleted because it has an active subscription.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_HAS_ACTIVE_SUBSCRIPTION":{"summary":"SALON_HAS_ACTIVE_SUBSCRIPTION","value":{"message":"This salon cannot be deleted because it has an active subscription.","error":"SALON_HAS_ACTIVE_SUBSCRIPTION","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Salon","tags":["Salons"]}},"/v1/salons/{salonId}/share":{"post":{"description":"Creates a short link to the salon's booking site. `booking` opens booking with the given location, service, member and time slot already chosen; `resource` opens the page of a location, service or member. Returns the full link when the short link cannot be created.","operationId":"SalonsController_share","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSalonDto"}}}},"responses":{"201":{"description":"The link to share","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSalonResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `PRIMARY_DOMAIN_NOT_CONFIGURED`: The primary domain is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRIMARY_DOMAIN_NOT_CONFIGURED":{"summary":"PRIMARY_DOMAIN_NOT_CONFIGURED","value":{"message":"The primary domain is not configured.","error":"PRIMARY_DOMAIN_NOT_CONFIGURED","statusCode":409}}}}}}},"summary":"Create a Share Link","tags":["Salons"]}},"/v1/salons/{salonId}/transfer":{"post":{"description":"Makes another active member the owner of the salon; you become a Super Administrator. Only the owner can do this, signed in with their account.\n\nA member with an account becomes the owner right away (`invitationId` is null). A member without an account needs an email address: their invitation carries the transfer (`invitationId`), and the salon changes owners once they accept it. Members not invited yet get the regular invitation email; an existing invitation isn't sent again. Until then nothing changes, and one transfer can wait at a time: cancel it with `DELETE /salons/{salonId}/transfer`.","operationId":"SalonsController_transfer","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSalonDto"}}}},"responses":{"201":{"description":"The salon changed owners, or the member's invitation carries the transfer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferSalonResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `CANNOT_TRANSFER_TO_SELF`: You cannot transfer ownership to yourself.\n- `MEMBER_NOT_ACTIVE`: This member is not active.\n- `MEMBER_EMAIL_REQUIRED`: The member needs an email address to be invited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"CANNOT_TRANSFER_TO_SELF":{"summary":"CANNOT_TRANSFER_TO_SELF","value":{"message":"You cannot transfer ownership to yourself.","error":"CANNOT_TRANSFER_TO_SELF","statusCode":400}},"MEMBER_NOT_ACTIVE":{"summary":"MEMBER_NOT_ACTIVE","value":{"message":"This member is not active.","error":"MEMBER_NOT_ACTIVE","statusCode":400}},"MEMBER_EMAIL_REQUIRED":{"summary":"MEMBER_EMAIL_REQUIRED","value":{"message":"The member needs an email address to be invited.","error":"MEMBER_EMAIL_REQUIRED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `TRANSFER_ALREADY_PENDING`: A transfer is already waiting to be accepted. Cancel it first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TRANSFER_ALREADY_PENDING":{"summary":"TRANSFER_ALREADY_PENDING","value":{"message":"A transfer is already waiting to be accepted. Cancel it first.","error":"TRANSFER_ALREADY_PENDING","statusCode":409}}}}}}},"summary":"Transfer a Salon","tags":["Salons"]},"delete":{"description":"Cancels the transfer waiting on a member's invitation. The invitation stays as a regular one: accepting it only makes them a member. Only the owner can do this, signed in with their account.","operationId":"SalonsController_cancelTransfer","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invitation no longer carries the transfer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelTransferSalonResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TRANSFER_NOT_FOUND`: No transfer is waiting to be accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TRANSFER_NOT_FOUND":{"summary":"TRANSFER_NOT_FOUND","value":{"message":"No transfer is waiting to be accepted.","error":"TRANSFER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Cancel a Salon Transfer","tags":["Salons"]}},"/v1/salons/{salonId}/initialize":{"post":{"description":"Saves the default settings of a new salon, which the app and the booking site need to open it. The app sends this when a salon is opened; a salon set up through the API needs it once, right after it is created. Safe to repeat: settings that are already saved are kept.","operationId":"SalonsController_initialize","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The salon, with its subscription, summary and version","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalonDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Initialize a Salon","tags":["Salons"]}},"/v1/salons/{salonId}/extract":{"post":{"description":"Reads services (template `services`) or the weekly working hours (template `workingHours`) from up to 3 files (images, PDFs, text or CSV) and from text, with AI, or suggests translations of a text into the salon's additional languages (template `translations`, from `text` only). Nothing is saved: use the result to create services, set working hours or fill in `translations`. Up to 3 requests a minute, 10 an hour and 15 a day per salon; translations up to 30 a minute, 100 an hour and 300 a day.","operationId":"SalonsController_extract","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ExtractSalonDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/ExtractSalonDto"}}}},"responses":{"201":{"description":"What was read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_FILE_BUFFER`: The file could not be read.\n- `EXTRACTION_FAILED`: The data could not be extracted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_FILE_BUFFER":{"summary":"INVALID_FILE_BUFFER","value":{"message":"The file could not be read.","error":"INVALID_FILE_BUFFER","statusCode":400}},"EXTRACTION_FAILED":{"summary":"EXTRACTION_FAILED","value":{"message":"The data could not be extracted.","error":"EXTRACTION_FAILED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"429":{"description":"Too many requests. Please try again later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}},"503":{"description":"- `AI_SERVICE_UNAVAILABLE`: The AI service is currently unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AI_SERVICE_UNAVAILABLE":{"summary":"AI_SERVICE_UNAVAILABLE","value":{"message":"The AI service is currently unavailable.","error":"AI_SERVICE_UNAVAILABLE","statusCode":503}}}}}}},"summary":"Extract Services, Working Hours or Translations","tags":["Salons"]}},"/v1/salons/{salonId}/reports":{"post":{"description":"Runs a read-only SQL `SELECT` over the salon's `reports` views and returns the rows (at most 10,000; queries time out after 5 seconds). Members with only the Manage Own Reports permission see only their own data.","operationId":"ReportsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportDto"}}}},"responses":{"201":{"description":"The rows of the query, one object per row","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"example":[{"total":128}]}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_QUERY`: The report query is not valid.\n- `REPORT_QUERY_TOO_MANY_ROWS`: The report query returned too many rows.\n- `REPORT_QUERY_FAILED`: The report query failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_QUERY":{"summary":"INVALID_QUERY","value":{"message":"The report query is not valid.","error":"INVALID_QUERY","statusCode":400}},"REPORT_QUERY_TOO_MANY_ROWS":{"summary":"REPORT_QUERY_TOO_MANY_ROWS","value":{"message":"The report query returned too many rows.","error":"REPORT_QUERY_TOO_MANY_ROWS","statusCode":400}},"REPORT_QUERY_FAILED":{"summary":"REPORT_QUERY_FAILED","value":{"message":"The report query failed.","error":"REPORT_QUERY_FAILED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Run a Report Query","tags":["Salons / Reports"]}},"/v1/salons/{salonId}/reports/{reportId}":{"get":{"description":"Returns a ready-made report. `booking-website`: visitor analytics of the salon's booking website for a period, compared to the period before it; empty when the salon has no active domain.","operationId":"ReportsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"reportId","required":true,"in":"path","description":"Report","schema":{"enum":["booking-website"],"type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of `peak-traffic-hours`. Defaults to UTC","schema":{"example":"America/New_York","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only this section of the report: `summary` returns an object (with `previous`), the others an array. Without it, every section is returned","schema":{"enum":["summary","top-channels","top-countries","top-pages","device-breakdown","top-campaigns","peak-traffic-hours"],"type":"string"}},{"name":"endDate","required":false,"in":"query","description":"End of the period, ISO 8601. Defaults to now","schema":{"example":"2026-08-31T23:59:59Z","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"Start of the period, ISO 8601. Defaults to 30 days ago","schema":{"example":"2026-08-01T00:00:00Z","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The report, or only the section asked for with `type`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingWebsiteReportDto"}}}},"400":{"description":"- `REPORT_PROVIDER_NOT_FOUND`: This report is not supported.\n- `REPORT_SOURCE_UNAVAILABLE`: The report data could not be loaded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REPORT_PROVIDER_NOT_FOUND":{"summary":"REPORT_PROVIDER_NOT_FOUND","value":{"message":"This report is not supported.","error":"REPORT_PROVIDER_NOT_FOUND","statusCode":400}},"REPORT_SOURCE_UNAVAILABLE":{"summary":"REPORT_SOURCE_UNAVAILABLE","value":{"message":"The report data could not be loaded.","error":"REPORT_SOURCE_UNAVAILABLE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get a Report","tags":["Salons / Reports"]}},"/v1/salons/{salonId}/members":{"get":{"description":"Returns a page of the salon's members, newest first by default.","operationId":"MembersController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these members, comma-separated","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Members per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches name, email address or phone number","schema":{"example":"cooper","type":"string"}},{"name":"role","required":false,"in":"query","description":"Only members with this role","schema":{"enum":["user","administrator","super_administrator","owner"],"type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only members created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `orderIndex`, `firstName`","schema":{"default":"createdAt","example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `rating` (average review rating), `assignedLocations`, `assignedServices`, `invitation`","schema":{"type":"array","items":{"type":"string","enum":["rating","assignedLocations","assignedServices","invitation"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of members","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Members","tags":["Salons / Members"]},"post":{"description":"Adds a member to the salon, at the end of the member order and without working hours. The member isn't linked to an account until they accept an invitation. Needs the Manage Members permission and counts toward the plan's member limit.","operationId":"MembersController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemberDto"}}}},"responses":{"201":{"description":"The new member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `OWNER_ROLE_CREATION_FORBIDDEN`: A member with the owner role cannot be created.\n- `ROLE_ASSIGNMENT_FORBIDDEN`: This role cannot be assigned.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"OWNER_ROLE_CREATION_FORBIDDEN":{"summary":"OWNER_ROLE_CREATION_FORBIDDEN","value":{"message":"A member with the owner role cannot be created.","error":"OWNER_ROLE_CREATION_FORBIDDEN","statusCode":403}},"ROLE_ASSIGNMENT_FORBIDDEN":{"summary":"ROLE_ASSIGNMENT_FORBIDDEN","value":{"message":"This role cannot be assigned.","error":"ROLE_ASSIGNMENT_FORBIDDEN","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}},"409":{"description":"- `MEMBER_EMAIL_EXISTS`: A member with this email address already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_EMAIL_EXISTS":{"summary":"MEMBER_EMAIL_EXISTS","value":{"message":"A member with this email address already exists.","error":"MEMBER_EMAIL_EXISTS","statusCode":409}}}}}}},"summary":"Create a Member","tags":["Salons / Members"]}},"/v1/salons/{salonId}/members/{memberId}":{"get":{"description":"Returns a member of the salon. Use `@me` for your own member.","operationId":"MembersController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `rating` (average review rating), `assignedLocations`, `assignedServices`, `invitation`","schema":{"type":"array","items":{"type":"string","enum":["rating","assignedLocations","assignedServices","invitation"]}}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Member","tags":["Salons / Members"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Members can update themselves (but not their own role); updating others needs the Manage Members permission and a role at least as high as theirs. Use `@me` for your own member.","operationId":"MembersController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberDto"}}}},"responses":{"200":{"description":"The member was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INSUFFICIENT_ROLE_AUTHORITY`: You do not have sufficient role authority to perform this action.\n- `ROLE_ASSIGNMENT_FORBIDDEN`: This role cannot be assigned.\n- `OWNER_ROLE_UPDATE_FORBIDDEN`: The owner role cannot be updated.\n- `OWNER_ROLE_ASSIGNMENT_FORBIDDEN`: Owner role cannot be assigned.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INSUFFICIENT_ROLE_AUTHORITY":{"summary":"INSUFFICIENT_ROLE_AUTHORITY","value":{"message":"You do not have sufficient role authority to perform this action.","error":"INSUFFICIENT_ROLE_AUTHORITY","statusCode":403}},"ROLE_ASSIGNMENT_FORBIDDEN":{"summary":"ROLE_ASSIGNMENT_FORBIDDEN","value":{"message":"This role cannot be assigned.","error":"ROLE_ASSIGNMENT_FORBIDDEN","statusCode":403}},"OWNER_ROLE_UPDATE_FORBIDDEN":{"summary":"OWNER_ROLE_UPDATE_FORBIDDEN","value":{"message":"The owner role cannot be updated.","error":"OWNER_ROLE_UPDATE_FORBIDDEN","statusCode":403}},"OWNER_ROLE_ASSIGNMENT_FORBIDDEN":{"summary":"OWNER_ROLE_ASSIGNMENT_FORBIDDEN","value":{"message":"Owner role cannot be assigned.","error":"OWNER_ROLE_ASSIGNMENT_FORBIDDEN","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Member","tags":["Salons / Members"]},"delete":{"description":"Removes a member from the salon. Needs the Manage Members permission and a role at least as high as the member's; you can't delete yourself.","operationId":"MembersController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The member was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteMemberResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INSUFFICIENT_ROLE_AUTHORITY`: You do not have sufficient role authority to perform this action.\n- `CANNOT_DELETE_OWN_MEMBER_ACCOUNT`: You cannot delete your own member account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INSUFFICIENT_ROLE_AUTHORITY":{"summary":"INSUFFICIENT_ROLE_AUTHORITY","value":{"message":"You do not have sufficient role authority to perform this action.","error":"INSUFFICIENT_ROLE_AUTHORITY","statusCode":403}},"CANNOT_DELETE_OWN_MEMBER_ACCOUNT":{"summary":"CANNOT_DELETE_OWN_MEMBER_ACCOUNT","value":{"message":"You cannot delete your own member account.","error":"CANNOT_DELETE_OWN_MEMBER_ACCOUNT","statusCode":403}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Member","tags":["Salons / Members"]}},"/v1/salons/{salonId}/members/reorder":{"post":{"description":"Sets the position of the members sent, which is the order clients see them in. Members not in the salon are skipped. Needs the Manage Members permission.","operationId":"MembersController_reorder","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderMemberDto"}}}},"responses":{"201":{"description":"The new positions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderMembersResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_ORDER`: Each item needs a valid ID and a position of 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_ORDER":{"summary":"INVALID_ORDER","value":{"message":"Each item needs a valid ID and a position of 0 or more.","error":"INVALID_ORDER","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Reorder Members","tags":["Salons / Members"]}},"/v1/salons/{salonId}/members/{memberId}/sync":{"post":{"description":"Copies the first name, last name, email address and phone number from the account linked to the member. Members can sync themselves; syncing others needs the Manage Members permission. Use `@me` for your own member.","operationId":"MembersController_sync","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The synced member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `MEMBER_NOT_LINKED`: This member is not linked to an account.\n- `INSUFFICIENT_ROLE_AUTHORITY`: You do not have sufficient role authority to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"MEMBER_NOT_LINKED":{"summary":"MEMBER_NOT_LINKED","value":{"message":"This member is not linked to an account.","error":"MEMBER_NOT_LINKED","statusCode":403}},"INSUFFICIENT_ROLE_AUTHORITY":{"summary":"INSUFFICIENT_ROLE_AUTHORITY","value":{"message":"You do not have sufficient role authority to perform this action.","error":"INSUFFICIENT_ROLE_AUTHORITY","statusCode":403}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.\n- `ACCOUNT_NOT_FOUND`: The requested account was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}},"ACCOUNT_NOT_FOUND":{"summary":"ACCOUNT_NOT_FOUND","value":{"message":"The requested account was not found.","error":"ACCOUNT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Sync a Member","tags":["Salons / Members"]}},"/v1/salons/{salonId}/members/{memberId}/locations":{"get":{"description":"Returns the locations a member works at, each with its location. Not paginated.","operationId":"MemberLocationsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the location's name or description","schema":{"example":"downtown","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The member's location assignments","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberLocationAssignmentDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Location Assignments","tags":["Salons / Members / Locations"]},"post":{"description":"Assigns a member to a location, so they can work and be booked there. Needs the Manage Members permission.","operationId":"MemberLocationsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemberLocationDto"}}}},"responses":{"201":{"description":"The new assignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationAssignmentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.\n- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}},"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `LOCATION_ASSIGNMENT_ALREADY_EXISTS`: This location assignment already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_ASSIGNMENT_ALREADY_EXISTS":{"summary":"LOCATION_ASSIGNMENT_ALREADY_EXISTS","value":{"message":"This location assignment already exists.","error":"LOCATION_ASSIGNMENT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Location Assignment","tags":["Salons / Members / Locations"]}},"/v1/salons/{salonId}/members/{memberId}/locations/{assignmentId}":{"delete":{"description":"Removes a member from a location. Needs the Manage Members permission.","operationId":"MemberLocationsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Location assignment ID","schema":{"example":"aloc_01h9q3t7vxe2kfbn6w8m4rzc5y","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The assignment was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteMemberLocationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `LOCATION_ASSIGNMENT_NOT_FOUND`: The requested location assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_ASSIGNMENT_NOT_FOUND":{"summary":"LOCATION_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested location assignment was not found.","error":"LOCATION_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Location Assignment","tags":["Salons / Members / Locations"]}},"/v1/salons/{salonId}/members/{memberId}/services":{"get":{"description":"Returns the services a member performs, each with its service and the member's own price, duration and buffers. Not paginated.","operationId":"MemberServicesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the service's name or description","schema":{"example":"haircut","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `price`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The member's service assignments","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberServiceAssignmentDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Service Assignments","tags":["Salons / Members / Services"]},"post":{"description":"Lets a member perform a service, optionally with their own price, duration and buffers. Needs the Manage Members permission.","operationId":"MemberServicesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemberServiceDto"}}}},"responses":{"201":{"description":"The new assignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAssignmentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_NOT_FOUND`: The requested service was not found.\n- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}},"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `SERVICE_ASSIGNMENT_ALREADY_EXISTS`: This service assignment already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_ALREADY_EXISTS":{"summary":"SERVICE_ASSIGNMENT_ALREADY_EXISTS","value":{"message":"This service assignment already exists.","error":"SERVICE_ASSIGNMENT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Service Assignment","tags":["Salons / Members / Services"]}},"/v1/salons/{salonId}/members/{memberId}/services/{assignmentId}":{"get":{"description":"Returns one of a member's service assignments. `null` values are taken from the service.","operationId":"MemberServicesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Service assignment ID","schema":{"example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The service assignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAssignmentDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_ASSIGNMENT_NOT_FOUND`: The requested service assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_NOT_FOUND":{"summary":"SERVICE_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested service assignment was not found.","error":"SERVICE_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Service Assignment","tags":["Salons / Members / Services"]},"patch":{"description":"Changes the member's price, duration or buffers for a service; `null` goes back to the service's value. Needs the Manage Members permission.","operationId":"MemberServicesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Service assignment ID","schema":{"example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberServiceDto"}}}},"responses":{"200":{"description":"The assignment was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberServiceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_ASSIGNMENT_NOT_FOUND`: The requested service assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_NOT_FOUND":{"summary":"SERVICE_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested service assignment was not found.","error":"SERVICE_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Service Assignment","tags":["Salons / Members / Services"]},"delete":{"description":"Stops a member from performing a service. Needs the Manage Members permission.","operationId":"MemberServicesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Service assignment ID","schema":{"example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The assignment was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteMemberServiceResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_ASSIGNMENT_NOT_FOUND`: The requested service assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_NOT_FOUND":{"summary":"SERVICE_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested service assignment was not found.","error":"SERVICE_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Service Assignment","tags":["Salons / Members / Services"]}},"/v1/salons/{salonId}/invitations":{"get":{"description":"Returns a page of the invitations the salon sent and that are not accepted or declined yet, newest first.","operationId":"InvitationsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these invitations, comma-separated","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Invitations per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the member's first name, last name or email address","schema":{"example":"cooper","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `member`","schema":{"type":"array","items":{"type":"string","enum":["member"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of invitations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Invitations","tags":["Salons / Invitations"]},"post":{"description":"Invites a member who is not linked to an account yet: an email with a link, valid for 7 days, goes to the member's email address, to sign in or sign up and accept. A member can have one invitation at a time. Needs the Manage Members permission.","operationId":"InvitationsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvitationDto"}}}},"responses":{"201":{"description":"The new invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `MEMBER_ALREADY_LINKED`: This member is already linked to an account.\n- `INVITATION_ALREADY_EXISTS`: An invitation for this email already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_ALREADY_LINKED":{"summary":"MEMBER_ALREADY_LINKED","value":{"message":"This member is already linked to an account.","error":"MEMBER_ALREADY_LINKED","statusCode":409}},"INVITATION_ALREADY_EXISTS":{"summary":"INVITATION_ALREADY_EXISTS","value":{"message":"An invitation for this email already exists.","error":"INVITATION_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create an Invitation","tags":["Salons / Invitations"]}},"/v1/salons/{salonId}/invitations/{invitationId}":{"get":{"description":"Returns one invitation of the salon.","operationId":"InvitationsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invitationId","required":true,"in":"path","description":"Invitation ID","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `member`","schema":{"type":"array","items":{"type":"string","enum":["member"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INVITATION_NOT_FOUND`: The requested invitation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVITATION_NOT_FOUND":{"summary":"INVITATION_NOT_FOUND","value":{"message":"The requested invitation was not found.","error":"INVITATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Invitation","tags":["Salons / Invitations"]},"delete":{"description":"Withdraws an invitation; its link stops working. The member stays in the salon. Needs the Manage Members permission.","operationId":"InvitationsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invitationId","required":true,"in":"path","description":"Invitation ID","schema":{"example":"invt_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invitation was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteInvitationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INVITATION_NOT_FOUND`: The requested invitation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVITATION_NOT_FOUND":{"summary":"INVITATION_NOT_FOUND","value":{"message":"The requested invitation was not found.","error":"INVITATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete an Invitation","tags":["Salons / Invitations"]}},"/v1/salons/{salonId}/locations":{"get":{"description":"Returns a page of the salon's locations, newest first by default. Works without authentication, like the booking site.","operationId":"LocationsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these locations, comma-separated","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Locations per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches name, street address, city or country","schema":{"example":"downtown","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only locations of this kind","schema":{"enum":["salon","mobile","virtual","private"],"type":"string"}},{"name":"country","required":false,"in":"query","description":"Only locations in this country, as an ISO 3166-1 alpha-2 code","schema":{"example":"US","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only locations created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `orderIndex`, `name`","schema":{"default":"createdAt","example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `assignments` (assigned members), `rating` (average review rating)","schema":{"type":"array","items":{"type":"string","enum":["assignments","rating"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of locations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Locations","tags":["Salons / Locations"]},"post":{"description":"Adds a location to the salon, at the end of the location order. The address fields it needs depend on `type`, and the slug is made from the name. Needs the Manage Locations permission and counts toward the plan's location limit.","operationId":"LocationsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLocationDto"}}}},"responses":{"201":{"description":"The new location","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}},"409":{"description":"- `LOCATION_ALREADY_EXISTS`: A location with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_ALREADY_EXISTS":{"summary":"LOCATION_ALREADY_EXISTS","value":{"message":"A location with this name already exists.","error":"LOCATION_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Location","tags":["Salons / Locations"]}},"/v1/salons/{salonId}/locations/{locationId}":{"get":{"description":"Returns a location of the salon by its ID or slug. Works without authentication, like the booking site.","operationId":"LocationsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `assignments` (assigned members), `rating` (average review rating)","schema":{"type":"array","items":{"type":"string","enum":["assignments","rating"]}}},{"name":"locationId","required":true,"in":"path","description":"Location ID or slug","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The location","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Location","tags":["Salons / Locations"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Activating a location counts toward the plan's location limit. Needs the Manage Locations permission.","operationId":"LocationsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocationDto"}}}},"responses":{"200":{"description":"The location was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocationResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `LOCATION_ALREADY_EXISTS`: A location with this name already exists.\n- `SLUG_ALREADY_IN_USE`: This slug is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_ALREADY_EXISTS":{"summary":"LOCATION_ALREADY_EXISTS","value":{"message":"A location with this name already exists.","error":"LOCATION_ALREADY_EXISTS","statusCode":409}},"SLUG_ALREADY_IN_USE":{"summary":"SLUG_ALREADY_IN_USE","value":{"message":"This slug is already in use.","error":"SLUG_ALREADY_IN_USE","statusCode":409}}}}}}},"summary":"Update a Location","tags":["Salons / Locations"]},"delete":{"description":"Deletes the location and its member assignments. To hide a location from clients but keep it, set `isActive` to `false` instead. Needs the Manage Locations permission.","operationId":"LocationsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The location was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteLocationResultDto"}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Location","tags":["Salons / Locations"]}},"/v1/salons/{salonId}/locations/reorder":{"post":{"description":"Sets the position of the locations sent, which is the order clients see them in. Locations not in the salon are skipped. Needs the Manage Locations permission.","operationId":"LocationsController_reorder","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderLocationDto"}}}},"responses":{"201":{"description":"The new positions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderLocationsResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_ORDER`: Each item needs a valid ID and a position of 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_ORDER":{"summary":"INVALID_ORDER","value":{"message":"Each item needs a valid ID and a position of 0 or more.","error":"INVALID_ORDER","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Reorder Locations","tags":["Salons / Locations"]}},"/v1/salons/{salonId}/meetings":{"get":{"description":"Returns a page of the salon's video meeting rooms, one per member, newest first by default. Filtering by a member who has no room yet creates it.","operationId":"MeetingsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only the room of this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Meetings per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of meetings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Meetings","tags":["Salons / Meetings"]}},"/v1/salons/{salonId}/meetings/{meetingId}":{"get":{"description":"Returns a member's video meeting room.","operationId":"MeetingsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"meetingId","required":true,"in":"path","description":"Meeting ID","schema":{"example":"meet_01hb8g7p4rqx2ktv6w9n3fzc5j","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The meeting","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingDto"}}}},"404":{"description":"- `MEETING_NOT_FOUND`: The requested meeting was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEETING_NOT_FOUND":{"summary":"MEETING_NOT_FOUND","value":{"message":"The requested meeting was not found.","error":"MEETING_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Meeting","tags":["Salons / Meetings"]}},"/v1/salons/{salonId}/meetings/{meetingId}/access":{"post":{"description":"Returns the link to join a video meeting room. Members of the salon join as hosts with a token; everyone else joins as a guest under `userName`.","operationId":"MeetingsController_access","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"meetingId","required":true,"in":"path","description":"Meeting ID","schema":{"example":"meet_01hb8g7p4rqx2ktv6w9n3fzc5j","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessMeetingDto"}}}},"responses":{"201":{"description":"The link, and the host token for members","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessMeetingResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `MEETING_NOT_FOUND`: The requested meeting was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEETING_NOT_FOUND":{"summary":"MEETING_NOT_FOUND","value":{"message":"The requested meeting was not found.","error":"MEETING_NOT_FOUND","statusCode":404}}}}}}},"summary":"Join a Meeting","tags":["Salons / Meetings"]}},"/v1/salons/{salonId}/locations/{locationId}/services":{"get":{"description":"Returns the services offered at a location, each with its service and the location's own price, duration and buffers. Not paginated.","operationId":"LocationServicesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the service's name or description","schema":{"example":"haircut","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `price`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The location's service assignments","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocationServiceAssignmentDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Service Assignments","tags":["Salons / Locations / Services"]},"post":{"description":"Offers a service at a location, optionally with its own price, duration and buffers there. Needs the Manage Members permission.","operationId":"LocationServicesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLocationServiceDto"}}}},"responses":{"201":{"description":"The new assignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAssignmentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_NOT_FOUND`: The requested service was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `SERVICE_ASSIGNMENT_ALREADY_EXISTS`: This service assignment already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_ALREADY_EXISTS":{"summary":"SERVICE_ASSIGNMENT_ALREADY_EXISTS","value":{"message":"This service assignment already exists.","error":"SERVICE_ASSIGNMENT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Service Assignment","tags":["Salons / Locations / Services"]}},"/v1/salons/{salonId}/locations/{locationId}/services/{assignmentId}":{"get":{"description":"Returns one of a location's service assignments. `null` values are taken from the service.","operationId":"LocationServicesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Service assignment ID","schema":{"example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The service assignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAssignmentDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_ASSIGNMENT_NOT_FOUND`: The requested service assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_NOT_FOUND":{"summary":"SERVICE_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested service assignment was not found.","error":"SERVICE_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Service Assignment","tags":["Salons / Locations / Services"]},"patch":{"description":"Changes the location's price, duration or buffers for a service; `null` goes back to the service's value. Needs the Manage Members permission.","operationId":"LocationServicesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Service assignment ID","schema":{"example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocationServiceDto"}}}},"responses":{"200":{"description":"The assignment was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocationServiceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_ASSIGNMENT_NOT_FOUND`: The requested service assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_NOT_FOUND":{"summary":"SERVICE_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested service assignment was not found.","error":"SERVICE_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Service Assignment","tags":["Salons / Locations / Services"]},"delete":{"description":"Stops offering a service at a location. Needs the Manage Members permission.","operationId":"LocationServicesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":true,"in":"path","description":"Location ID","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"assignmentId","required":true,"in":"path","description":"Service assignment ID","schema":{"example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The assignment was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteLocationServiceResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_ASSIGNMENT_NOT_FOUND`: The requested service assignment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ASSIGNMENT_NOT_FOUND":{"summary":"SERVICE_ASSIGNMENT_NOT_FOUND","value":{"message":"The requested service assignment was not found.","error":"SERVICE_ASSIGNMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Service Assignment","tags":["Salons / Locations / Services"]}},"/v1/salons/{salonId}/services/categories":{"get":{"description":"Returns a page of the salon's service categories, in the salon's order by default. Works without authentication.","operationId":"ServiceCategoriesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these categories, comma-separated","schema":{"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Categories per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name or the description","schema":{"example":"color","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `orderIndex`, `name`, `createdAt`","schema":{"default":"orderIndex","example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of categories","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Categories","tags":["Salons / Services / Categories"]},"post":{"description":"Creates a service category at the end of the salon's list. Needs the Manage Services permission.","operationId":"ServiceCategoriesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryDto"}}}},"responses":{"201":{"description":"The new category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"409":{"description":"- `CATEGORY_ALREADY_EXISTS`: A category with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CATEGORY_ALREADY_EXISTS":{"summary":"CATEGORY_ALREADY_EXISTS","value":{"message":"A category with this name already exists.","error":"CATEGORY_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Category","tags":["Salons / Services / Categories"]}},"/v1/salons/{salonId}/services/categories/{categoryId}":{"get":{"description":"Returns a service category. Works without authentication.","operationId":"ServiceCategoriesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"categoryId","required":true,"in":"path","description":"Category ID","schema":{"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDto"}}}},"404":{"description":"- `CATEGORY_NOT_FOUND`: The requested category was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CATEGORY_NOT_FOUND":{"summary":"CATEGORY_NOT_FOUND","value":{"message":"The requested category was not found.","error":"CATEGORY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Category","tags":["Salons / Services / Categories"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Needs the Manage Services permission.","operationId":"ServiceCategoriesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"categoryId","required":true,"in":"path","description":"Category ID","schema":{"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCategoryDto"}}}},"responses":{"200":{"description":"The category was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCategoryResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CATEGORY_NOT_FOUND`: The requested category was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CATEGORY_NOT_FOUND":{"summary":"CATEGORY_NOT_FOUND","value":{"message":"The requested category was not found.","error":"CATEGORY_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}}}}}}},"summary":"Update a Category","tags":["Salons / Services / Categories"]},"delete":{"description":"Deletes a service category. Its services are kept, without a category. Needs the Manage Services permission.","operationId":"ServiceCategoriesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"categoryId","required":true,"in":"path","description":"Category ID","schema":{"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The category was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCategoryResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CATEGORY_NOT_FOUND`: The requested category was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CATEGORY_NOT_FOUND":{"summary":"CATEGORY_NOT_FOUND","value":{"message":"The requested category was not found.","error":"CATEGORY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Category","tags":["Salons / Services / Categories"]}},"/v1/salons/{salonId}/services/categories/bulk":{"post":{"description":"Creates several service categories at once, in the order sent. Each category is created on its own: one that fails (e.g. a name already in use) ends up in `failed` and doesn't stop the others. Needs the Manage Services permission.","operationId":"ServiceCategoriesController_createBulk","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkCategoryDto"}}}},"responses":{"201":{"description":"The created categories and the ones that failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkCategoriesResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create Categories","tags":["Salons / Services / Categories"]}},"/v1/salons/{salonId}/services/categories/reorder":{"post":{"description":"Sets the position of the categories sent, which is the order clients see them in. Categories not in the salon are skipped. Needs the Manage Services permission.","operationId":"ServiceCategoriesController_reorder","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderCategoryDto"}}}},"responses":{"201":{"description":"The new positions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderCategoriesResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_ORDER`: Each item needs a valid ID and a position of 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_ORDER":{"summary":"INVALID_ORDER","value":{"message":"Each item needs a valid ID and a position of 0 or more.","error":"INVALID_ORDER","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Reorder Categories","tags":["Salons / Services / Categories"]}},"/v1/salons/{salonId}/services":{"get":{"description":"Returns a page of the salon's services, newest first by default. Works without authentication; private services are then left out unless asked for by `ids`.","operationId":"ServicesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these services, comma-separated","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Services per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name, the excerpt or the category's name","schema":{"example":"balayage","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only services created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"categoryId","required":false,"in":"query","description":"Only services in this category","schema":{"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`, `price`. `orderIndex` (or `category`) sorts like the booking site: by category position, then by position within the category","schema":{"default":"createdAt","example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `category`, `taxRate`, `rating` (average review rating), `assignments` (member and location assignments)","schema":{"type":"array","items":{"type":"string","enum":["category","taxRate","rating","assignments"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of services","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Services","tags":["Salons / Services"]},"post":{"description":"Creates a service at the end of the salon's list. The slug is made from the name. To let members perform it or locations offer it, assign it to them. Needs the Manage Services permission.","operationId":"ServicesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceDto"}}}},"responses":{"201":{"description":"The new service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `CATEGORY_NOT_FOUND`: The requested category was not found.\n- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CATEGORY_NOT_FOUND":{"summary":"CATEGORY_NOT_FOUND","value":{"message":"The requested category was not found.","error":"CATEGORY_NOT_FOUND","statusCode":404}},"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `SERVICE_ALREADY_EXISTS`: A service with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_ALREADY_EXISTS":{"summary":"SERVICE_ALREADY_EXISTS","value":{"message":"A service with this name already exists.","error":"SERVICE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Service","tags":["Salons / Services"]}},"/v1/salons/{salonId}/services/{serviceId}":{"get":{"description":"Returns a service by its ID or its slug. Works without authentication.","operationId":"ServicesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `category`, `taxRate`, `rating` (average review rating), `assignments` (member and location assignments)","schema":{"type":"array","items":{"type":"string","enum":["category","taxRate","rating","assignments"]}}},{"name":"serviceId","required":true,"in":"path","description":"Service ID, or the service's slug","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `SERVICE_NOT_FOUND`: The requested service was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Service","tags":["Salons / Services"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Renaming doesn't change the slug. Needs the Manage Services permission.","operationId":"ServicesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateServiceDto"}}}},"responses":{"200":{"description":"The service was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateServiceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `SERVICE_NOT_FOUND`: The requested service was not found.\n- `CATEGORY_NOT_FOUND`: The requested category was not found.\n- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}},"CATEGORY_NOT_FOUND":{"summary":"CATEGORY_NOT_FOUND","value":{"message":"The requested category was not found.","error":"CATEGORY_NOT_FOUND","statusCode":404}},"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.\n- `SLUG_ALREADY_IN_USE`: This slug is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}},"SLUG_ALREADY_IN_USE":{"summary":"SLUG_ALREADY_IN_USE","value":{"message":"This slug is already in use.","error":"SLUG_ALREADY_IN_USE","statusCode":409}}}}}}},"summary":"Update a Service","tags":["Salons / Services"]},"delete":{"description":"Deletes a service with its member and location assignments and its resource requirements. Needs the Manage Services permission.","operationId":"ServicesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The service was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteServiceResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_NOT_FOUND`: The requested service was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Service","tags":["Salons / Services"]}},"/v1/salons/{salonId}/services/bulk":{"post":{"description":"Creates several services at once, in the order sent. Each service is created on its own: one that fails (e.g. a name already in use) ends up in `failed` and doesn't stop the others. Needs the Manage Services permission.","operationId":"ServicesController_createBulk","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkServiceDto"}}}},"responses":{"201":{"description":"The created services and the ones that failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkServicesResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Create Services","tags":["Salons / Services"]}},"/v1/salons/{salonId}/services/reorder":{"post":{"description":"Sets the position of the services sent, which is the order clients see them in within their category. Services not in the salon are skipped. Needs the Manage Services permission.","operationId":"ServicesController_reorder","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderServiceDto"}}}},"responses":{"201":{"description":"The new positions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderServicesResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_ORDER`: Each item needs a valid ID and a position of 0 or more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_ORDER":{"summary":"INVALID_ORDER","value":{"message":"Each item needs a valid ID and a position of 0 or more.","error":"INVALID_ORDER","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Reorder Services","tags":["Salons / Services"]}},"/v1/salons/{salonId}/services/{serviceId}/resource-requirements":{"get":{"description":"Returns a page of the resources a service needs, newest first by default. An appointment for the service can only be booked when these resources are free.","operationId":"ServiceResourceRequirementsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Requirements per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the resource's name","schema":{"example":"room","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `quantity`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `resource`, `service`","schema":{"type":"array","items":{"type":"string","enum":["resource","service"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of resource requirements","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceRequirementListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Resource Requirements","tags":["Salons / Services / Resource Requirements"]},"post":{"description":"Makes a service need a resource, such as a room or a chair, while it is performed. Each resource can be required once per service. Needs the Manage Services permission.","operationId":"ServiceResourceRequirementsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResourceRequirementDto"}}}},"responses":{"201":{"description":"The new resource requirement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceRequirementDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SERVICE_NOT_FOUND`: The requested service was not found.\n- `RESOURCE_NOT_FOUND`: The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}},"RESOURCE_NOT_FOUND":{"summary":"RESOURCE_NOT_FOUND","value":{"message":"The requested resource was not found.","error":"RESOURCE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `RESOURCE_REQUIREMENT_ALREADY_EXISTS`: This resource requirement already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_REQUIREMENT_ALREADY_EXISTS":{"summary":"RESOURCE_REQUIREMENT_ALREADY_EXISTS","value":{"message":"This resource requirement already exists.","error":"RESOURCE_REQUIREMENT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Resource Requirement","tags":["Salons / Services / Resource Requirements"]}},"/v1/salons/{salonId}/services/{serviceId}/resource-requirements/{resourceRequirementId}":{"get":{"description":"Returns one of the resources a service needs.","operationId":"ServiceResourceRequirementsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"resourceRequirementId","required":true,"in":"path","description":"Resource requirement ID","schema":{"example":"rreq_01h6m3p9qwz2k7tvx5nb8rdc4f","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `resource`, `service`","schema":{"type":"array","items":{"type":"string","enum":["resource","service"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The resource requirement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceRequirementDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_REQUIREMENT_NOT_FOUND`: The requested resource requirement was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_REQUIREMENT_NOT_FOUND":{"summary":"RESOURCE_REQUIREMENT_NOT_FOUND","value":{"message":"The requested resource requirement was not found.","error":"RESOURCE_REQUIREMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Resource Requirement","tags":["Salons / Services / Resource Requirements"]},"patch":{"description":"Changes how many units of the resource the service needs. Needs the Manage Services permission.","operationId":"ServiceResourceRequirementsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"resourceRequirementId","required":true,"in":"path","description":"Resource requirement ID","schema":{"example":"rreq_01h6m3p9qwz2k7tvx5nb8rdc4f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResourceRequirementDto"}}}},"responses":{"200":{"description":"The resource requirement was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResourceRequirementResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_REQUIREMENT_NOT_FOUND`: The requested resource requirement was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_REQUIREMENT_NOT_FOUND":{"summary":"RESOURCE_REQUIREMENT_NOT_FOUND","value":{"message":"The requested resource requirement was not found.","error":"RESOURCE_REQUIREMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Resource Requirement","tags":["Salons / Services / Resource Requirements"]},"delete":{"description":"The service no longer needs the resource. The resource itself is kept. Needs the Manage Services permission.","operationId":"ServiceResourceRequirementsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"serviceId","required":true,"in":"path","description":"Service ID","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"resourceRequirementId","required":true,"in":"path","description":"Resource requirement ID","schema":{"example":"rreq_01h6m3p9qwz2k7tvx5nb8rdc4f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The resource requirement was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResourceRequirementResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_REQUIREMENT_NOT_FOUND`: The requested resource requirement was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_REQUIREMENT_NOT_FOUND":{"summary":"RESOURCE_REQUIREMENT_NOT_FOUND","value":{"message":"The requested resource requirement was not found.","error":"RESOURCE_REQUIREMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Resource Requirement","tags":["Salons / Services / Resource Requirements"]}},"/v1/salons/{salonId}/resources":{"get":{"description":"Returns a page of the salon's resources, newest first by default. Needs the Manage Services permission.","operationId":"ResourcesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these resources, comma-separated","schema":{"example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Resources per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"room","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only resources created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`, `quantity`","schema":{"default":"createdAt","example":"name","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of resources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Resources","tags":["Salons / Resources"]},"post":{"description":"Adds a resource, like a room or a pedicure chair, that services can require so no more appointments overlap than there are of it. Needs the Manage Services permission.","operationId":"ResourcesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResourceDto"}}}},"responses":{"201":{"description":"The new resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"409":{"description":"- `RESOURCE_ALREADY_EXISTS`: This resource already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_ALREADY_EXISTS":{"summary":"RESOURCE_ALREADY_EXISTS","value":{"message":"This resource already exists.","error":"RESOURCE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Resource","tags":["Salons / Resources"]}},"/v1/salons/{salonId}/resources/{resourceId}":{"get":{"description":"Returns a resource of the salon. Needs the Manage Services permission.","operationId":"ResourcesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"resourceId","required":true,"in":"path","description":"Resource ID","schema":{"example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_NOT_FOUND`: The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_NOT_FOUND":{"summary":"RESOURCE_NOT_FOUND","value":{"message":"The requested resource was not found.","error":"RESOURCE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Resource","tags":["Salons / Resources"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Needs the Manage Services permission.","operationId":"ResourcesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"resourceId","required":true,"in":"path","description":"Resource ID","schema":{"example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResourceDto"}}}},"responses":{"200":{"description":"The resource was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResourceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_NOT_FOUND`: The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_NOT_FOUND":{"summary":"RESOURCE_NOT_FOUND","value":{"message":"The requested resource was not found.","error":"RESOURCE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}}}}}}},"summary":"Update a Resource","tags":["Salons / Resources"]},"delete":{"description":"Deletes the resource. To stop using it but keep it, set `isActive` to `false` instead. Needs the Manage Services permission.","operationId":"ResourcesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"resourceId","required":true,"in":"path","description":"Resource ID","schema":{"example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The resource was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResourceResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_NOT_FOUND`: The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_NOT_FOUND":{"summary":"RESOURCE_NOT_FOUND","value":{"message":"The requested resource was not found.","error":"RESOURCE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Resource","tags":["Salons / Resources"]}},"/v1/salons/{salonId}/clients/sessions/request":{"post":{"description":"Starts a client's sign-in on the booking site: finds the client by email address or phone number and creates a one-time code, valid for 15 minutes. The code is delivered by the salon's automations or webhooks for the `clients/session_request.code_generated` event. Works without authentication and is strictly rate limited.","operationId":"ClientSessionsController_request","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestSessionDto"}}}},"responses":{"201":{"description":"The code was created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestClientSessionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `CLIENT_INACTIVE`: This client is inactive.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"CLIENT_INACTIVE":{"summary":"CLIENT_INACTIVE","value":{"message":"This client is inactive.","error":"CLIENT_INACTIVE","statusCode":400}}}}}},"404":{"description":"- `CLIENT_NOT_FOUND`: The requested client was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"message":"The requested client was not found.","error":"CLIENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Request a Client Session","tags":["Salons / Clients / Sessions"]}},"/v1/salons/{salonId}/clients/sessions":{"post":{"description":"Signs the client in with the one-time code. Send the returned `sessionId` in the `X-Client-Session-Id` header to act as the client; the session lasts 7 days. After 5 wrong codes the request is blocked and a new one is needed.","operationId":"ClientSessionsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientSessionDto"}}}},"responses":{"201":{"description":"The new session and the signed-in client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSessionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_CODE`: The verification code is invalid.\n- `SESSION_REQUEST_EXPIRED`: The session request has expired.\n- `SESSION_REQUEST_BLOCKED`: The session request has been blocked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_CODE":{"summary":"INVALID_CODE","value":{"message":"The verification code is invalid.","error":"INVALID_CODE","statusCode":400}},"SESSION_REQUEST_EXPIRED":{"summary":"SESSION_REQUEST_EXPIRED","value":{"message":"The session request has expired.","error":"SESSION_REQUEST_EXPIRED","statusCode":400}},"SESSION_REQUEST_BLOCKED":{"summary":"SESSION_REQUEST_BLOCKED","value":{"message":"The session request has been blocked.","error":"SESSION_REQUEST_BLOCKED","statusCode":400}}}}}},"404":{"description":"- `SESSION_REQUEST_NOT_FOUND`: The session request was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SESSION_REQUEST_NOT_FOUND":{"summary":"SESSION_REQUEST_NOT_FOUND","value":{"message":"The session request was not found.","error":"SESSION_REQUEST_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Client Session","tags":["Salons / Clients / Sessions"]},"delete":{"description":"Signs the client out: revokes the signed-in client's sessions with these IDs, or all of them without `ids`. Needs a client session.","operationId":"ClientSessionsController_revoke","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these sessions, comma-separated; leave out to revoke all sessions of the client","schema":{"example":"clis_01m82v0d7ge6xtxk2fj5kdb54w","type":"array","items":{"type":"string"}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The sessions were revoked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeClientSessionsResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}}},"summary":"Revoke Client Sessions","tags":["Salons / Clients / Sessions"]}},"/v1/salons/{salonId}/clients":{"get":{"description":"Returns a page of the salon's clients, newest first by default.","operationId":"ClientsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these clients, comma-separated","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Clients per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches full name, email address or phone number","schema":{"example":"cooper","type":"string"}},{"name":"firstVisitAt","required":false,"in":"query","description":"Only clients whose first visit is in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`; leave out a side for an open interval","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"lastVisitAt","required":false,"in":"query","description":"Only clients whose latest visit is in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only clients created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `firstName`, `lastVisitAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `bookingSummary` (appointment and review counts), `financesSummary` (invoice and payment totals)","schema":{"type":"array","items":{"type":"string","enum":["bookingSummary","financesSummary"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of clients","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Clients","tags":["Salons / Clients"]},"post":{"description":"Adds a client to the salon. The client needs an email address, a phone number or both, and neither can belong to another client of the salon.","operationId":"ClientsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientDto"}}}},"responses":{"201":{"description":"The new client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"409":{"description":"- `CLIENT_ALREADY_EXISTS`: A client with these details already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_ALREADY_EXISTS":{"summary":"CLIENT_ALREADY_EXISTS","value":{"message":"A client with these details already exists.","error":"CLIENT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Client","tags":["Salons / Clients"]}},"/v1/salons/{salonId}/clients/{clientId}":{"get":{"description":"Returns a client of the salon. With a client session (`X-Client-Session-Id`), it always returns the signed-in client, whatever the ID.","operationId":"ClientsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"clientId","required":true,"in":"path","description":"Client ID","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `bookingSummary` (appointment and review counts), `financesSummary` (invoice and payment totals)","schema":{"type":"array","items":{"type":"string","enum":["bookingSummary","financesSummary"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CLIENT_NOT_FOUND`: The requested client was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"message":"The requested client was not found.","error":"CLIENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Client","tags":["Salons / Clients"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. With a client session, clients update their own profile (not `notes` or `isActive`), and only when the salon allows profile updates.","operationId":"ClientsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"clientId","required":true,"in":"path","description":"Client ID","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientDto"}}}},"responses":{"200":{"description":"The client was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PROFILE_UPDATES_NOT_ALLOWED`: Profile updates are not allowed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PROFILE_UPDATES_NOT_ALLOWED":{"summary":"PROFILE_UPDATES_NOT_ALLOWED","value":{"message":"Profile updates are not allowed.","error":"PROFILE_UPDATES_NOT_ALLOWED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `CLIENT_NOT_FOUND`: The requested client was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"message":"The requested client was not found.","error":"CLIENT_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `CLIENT_ALREADY_EXISTS`: A client with these details already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_ALREADY_EXISTS":{"summary":"CLIENT_ALREADY_EXISTS","value":{"message":"A client with these details already exists.","error":"CLIENT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Update a Client","tags":["Salons / Clients"]},"delete":{"description":"Deletes a client of the salon, with their booking site sessions. Needs the Manage Clients permission.","operationId":"ClientsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"clientId","required":true,"in":"path","description":"Client ID","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The client was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteClientResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CLIENT_NOT_FOUND`: The requested client was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"message":"The requested client was not found.","error":"CLIENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Client","tags":["Salons / Clients"]}},"/v1/salons/{salonId}/clients/bulk":{"post":{"description":"Adds several clients at once, e.g. for an import. Each client is created on its own: the ones that fail (like duplicates) are listed in `failed` with their position and reason, and the rest are still created.","operationId":"ClientsController_createBulk","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkClientDto"}}}},"responses":{"201":{"description":"The created clients and the ones that failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkClientsResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Create Clients in Bulk","tags":["Salons / Clients"]}},"/v1/salons/{salonId}/availability/locations":{"get":{"description":"Returns the locations with free time in `interval` (or at `timeSlot`), optionally for a service or member. Works without signing in; members also see private items and times outside the booking window.","operationId":"AvailabilityController_getAvailableLocations","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeSlot","required":false,"in":"query","description":"Only what is free at this exact start time (ISO 8601); also limits the search to that day","schema":{"example":"2026-12-04T15:00:00.000Z","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name of the locations, services or members (not used for time slots)","schema":{"example":"balayage","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort the locations, services or members by, e.g. `orderIndex`","schema":{"example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"expand","required":false,"in":"query","description":"Related data to include in the returned locations, services or members, as in their own list endpoints","schema":{"example":["rating"],"type":"array","items":{"type":"string"}}},{"name":"interval","required":false,"in":"query","description":"ISO 8601 interval to search, `start/end`, or a start only. Defaults to today until the salon's booking window ends; clients can't see past times or times outside the booking window, and time slots cover at most 31 days.","schema":{"example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z","type":"string"}},{"name":"ignoreAppointmentIds","required":false,"in":"query","description":"Appointments to treat as free, e.g. the one being rescheduled (also applies the salon's rescheduling rules)","schema":{"example":["appt_01hb7k3m9qwz5ftv2r8n4ycx6d"],"type":"array","items":{"type":"string"}}},{"name":"ignoreAppointments","required":false,"in":"query","description":"`true` to also return times that are taken by appointments, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"ignoreAvailability","required":false,"in":"query","description":"`true` to also return times outside working hours, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"mode","required":false,"in":"query","description":"Which slots to return: `full` (every bookable start, for ranges up to 7 days), `change-points` (only where availability changes, for long ranges) or `auto` (picks one by the range) (time slots only)","schema":{"default":"auto","type":"string","enum":["full","change-points","auto"]}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Locations with and without free time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableLocationsDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}}}}}}},"summary":"Get Available Locations","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/services":{"get":{"description":"Returns the services that can be booked in `interval` (or at `timeSlot`), optionally at a location or with a member. Works without signing in; members also see private items and times outside the booking window.","operationId":"AvailabilityController_getAvailableServices","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeSlot","required":false,"in":"query","description":"Only what is free at this exact start time (ISO 8601); also limits the search to that day","schema":{"example":"2026-12-04T15:00:00.000Z","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name of the locations, services or members (not used for time slots)","schema":{"example":"balayage","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort the locations, services or members by, e.g. `orderIndex`","schema":{"example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"expand","required":false,"in":"query","description":"Related data to include in the returned locations, services or members, as in their own list endpoints","schema":{"example":["rating"],"type":"array","items":{"type":"string"}}},{"name":"interval","required":false,"in":"query","description":"ISO 8601 interval to search, `start/end`, or a start only. Defaults to today until the salon's booking window ends; clients can't see past times or times outside the booking window, and time slots cover at most 31 days.","schema":{"example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z","type":"string"}},{"name":"ignoreAppointmentIds","required":false,"in":"query","description":"Appointments to treat as free, e.g. the one being rescheduled (also applies the salon's rescheduling rules)","schema":{"example":["appt_01hb7k3m9qwz5ftv2r8n4ycx6d"],"type":"array","items":{"type":"string"}}},{"name":"ignoreAppointments","required":false,"in":"query","description":"`true` to also return times that are taken by appointments, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"ignoreAvailability","required":false,"in":"query","description":"`true` to also return times outside working hours, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"mode","required":false,"in":"query","description":"Which slots to return: `full` (every bookable start, for ranges up to 7 days), `change-points` (only where availability changes, for long ranges) or `auto` (picks one by the range) (time slots only)","schema":{"default":"auto","type":"string","enum":["full","change-points","auto"]}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Services with and without free time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableServicesDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}}}}}}},"summary":"Get Available Services","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/members":{"get":{"description":"Returns the members who are free in `interval` (or at `timeSlot`), optionally for a location or service. Works without signing in; members also see private items and times outside the booking window.","operationId":"AvailabilityController_getAvailableMembers","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeSlot","required":false,"in":"query","description":"Only what is free at this exact start time (ISO 8601); also limits the search to that day","schema":{"example":"2026-12-04T15:00:00.000Z","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name of the locations, services or members (not used for time slots)","schema":{"example":"balayage","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort the locations, services or members by, e.g. `orderIndex`","schema":{"example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"expand","required":false,"in":"query","description":"Related data to include in the returned locations, services or members, as in their own list endpoints","schema":{"example":["rating"],"type":"array","items":{"type":"string"}}},{"name":"interval","required":false,"in":"query","description":"ISO 8601 interval to search, `start/end`, or a start only. Defaults to today until the salon's booking window ends; clients can't see past times or times outside the booking window, and time slots cover at most 31 days.","schema":{"example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z","type":"string"}},{"name":"ignoreAppointmentIds","required":false,"in":"query","description":"Appointments to treat as free, e.g. the one being rescheduled (also applies the salon's rescheduling rules)","schema":{"example":["appt_01hb7k3m9qwz5ftv2r8n4ycx6d"],"type":"array","items":{"type":"string"}}},{"name":"ignoreAppointments","required":false,"in":"query","description":"`true` to also return times that are taken by appointments, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"ignoreAvailability","required":false,"in":"query","description":"`true` to also return times outside working hours, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"mode","required":false,"in":"query","description":"Which slots to return: `full` (every bookable start, for ranges up to 7 days), `change-points` (only where availability changes, for long ranges) or `auto` (picks one by the range) (time slots only)","schema":{"default":"auto","type":"string","enum":["full","change-points","auto"]}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Members with and without free time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableMembersDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}}}}}}},"summary":"Get Available Members","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/time-slots":{"get":{"description":"Returns the bookable start times for a service, optionally at a location or with a member, as UTC intervals; send a slot's start as `timeSlot` to Create an Appointment. Searches today until the salon's booking window ends (at most 31 days) unless `interval` is set. Works without signing in; members also see private items and times outside the booking window.","operationId":"AvailabilityController_getAvailableTimeSlots","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeSlot","required":false,"in":"query","description":"Only what is free at this exact start time (ISO 8601); also limits the search to that day","schema":{"example":"2026-12-04T15:00:00.000Z","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name of the locations, services or members (not used for time slots)","schema":{"example":"balayage","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort the locations, services or members by, e.g. `orderIndex`","schema":{"example":"orderIndex","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"expand","required":false,"in":"query","description":"Related data to include in the returned locations, services or members, as in their own list endpoints","schema":{"example":["rating"],"type":"array","items":{"type":"string"}}},{"name":"interval","required":false,"in":"query","description":"ISO 8601 interval to search, `start/end`, or a start only. Defaults to today until the salon's booking window ends; clients can't see past times or times outside the booking window, and time slots cover at most 31 days.","schema":{"example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z","type":"string"}},{"name":"ignoreAppointmentIds","required":false,"in":"query","description":"Appointments to treat as free, e.g. the one being rescheduled (also applies the salon's rescheduling rules)","schema":{"example":["appt_01hb7k3m9qwz5ftv2r8n4ycx6d"],"type":"array","items":{"type":"string"}}},{"name":"ignoreAppointments","required":false,"in":"query","description":"`true` to also return times that are taken by appointments, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"ignoreAvailability","required":false,"in":"query","description":"`true` to also return times outside working hours, listed as unavailable","schema":{"example":"false","type":"string","enum":["true","false"]}},{"name":"mode","required":false,"in":"query","description":"Which slots to return: `full` (every bookable start, for ranges up to 7 days), `change-points` (only where availability changes, for long ranges) or `auto` (picks one by the range) (time slots only)","schema":{"default":"auto","type":"string","enum":["full","change-points","auto"]}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The time slots, in time order","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityTimeSlotDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.\n- `INVALID_MODE_FOR_RANGE`: Invalid mode for the specified range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}},"INVALID_MODE_FOR_RANGE":{"summary":"INVALID_MODE_FOR_RANGE","value":{"message":"Invalid mode for the specified range.","error":"INVALID_MODE_FOR_RANGE","statusCode":400}}}}}}},"summary":"Get Available Time Slots","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/bulk/locations":{"post":{"description":"Returns the locations where the whole chain of services in `appointments` fits. For a chain of appointments booked back to back; needs bulk booking in the plan and the salon's settings.","operationId":"AvailabilityController_getBulkAvailabilityLocations","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBulkAvailabilityDto"}}}},"responses":{"201":{"description":"Locations with and without free time for the chain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableLocationsDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.\n- `BULK_BOOKING_DISABLED`: Booking several appointments at once is not enabled.\n- `INVALID_BULK_APPOINTMENTS`: The appointments in this request are not valid.\n- `BULK_CHAIN_TOO_LARGE`: Too many appointments in one booking.\n- `INVALID_MAX_WAIT`: The maximum wait time is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}},"BULK_BOOKING_DISABLED":{"summary":"BULK_BOOKING_DISABLED","value":{"message":"Booking several appointments at once is not enabled.","error":"BULK_BOOKING_DISABLED","statusCode":400}},"INVALID_BULK_APPOINTMENTS":{"summary":"INVALID_BULK_APPOINTMENTS","value":{"message":"The appointments in this request are not valid.","error":"INVALID_BULK_APPOINTMENTS","statusCode":400}},"BULK_CHAIN_TOO_LARGE":{"summary":"BULK_CHAIN_TOO_LARGE","value":{"message":"Too many appointments in one booking.","error":"BULK_CHAIN_TOO_LARGE","statusCode":400}},"INVALID_MAX_WAIT":{"summary":"INVALID_MAX_WAIT","value":{"message":"The maximum wait time is not valid.","error":"INVALID_MAX_WAIT","statusCode":400}}}}}},"403":{"description":"- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}}},"summary":"Get Available Locations in Bulk","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/bulk/services":{"post":{"description":"Returns the services that fit at position `targetIndex` of the chain in `appointments`, with the other appointments fixed. For a chain of appointments booked back to back; needs bulk booking in the plan and the salon's settings.","operationId":"AvailabilityController_getBulkAvailabilityServices","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBulkAvailabilityDto"}}}},"responses":{"201":{"description":"Services with and without free time at that position","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableServicesDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.\n- `BULK_BOOKING_DISABLED`: Booking several appointments at once is not enabled.\n- `INVALID_BULK_APPOINTMENTS`: The appointments in this request are not valid.\n- `BULK_CHAIN_TOO_LARGE`: Too many appointments in one booking.\n- `INVALID_MAX_WAIT`: The maximum wait time is not valid.\n- `INVALID_TARGET_INDEX`: The target index is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}},"BULK_BOOKING_DISABLED":{"summary":"BULK_BOOKING_DISABLED","value":{"message":"Booking several appointments at once is not enabled.","error":"BULK_BOOKING_DISABLED","statusCode":400}},"INVALID_BULK_APPOINTMENTS":{"summary":"INVALID_BULK_APPOINTMENTS","value":{"message":"The appointments in this request are not valid.","error":"INVALID_BULK_APPOINTMENTS","statusCode":400}},"BULK_CHAIN_TOO_LARGE":{"summary":"BULK_CHAIN_TOO_LARGE","value":{"message":"Too many appointments in one booking.","error":"BULK_CHAIN_TOO_LARGE","statusCode":400}},"INVALID_MAX_WAIT":{"summary":"INVALID_MAX_WAIT","value":{"message":"The maximum wait time is not valid.","error":"INVALID_MAX_WAIT","statusCode":400}},"INVALID_TARGET_INDEX":{"summary":"INVALID_TARGET_INDEX","value":{"message":"The target index is not valid.","error":"INVALID_TARGET_INDEX","statusCode":400}}}}}},"403":{"description":"- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}}},"summary":"Get Available Services in Bulk","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/bulk/members":{"post":{"description":"Returns the members who can perform the appointment at position `targetIndex` of the chain in `appointments`. For a chain of appointments booked back to back; needs bulk booking in the plan and the salon's settings.","operationId":"AvailabilityController_getBulkAvailabilityMembers","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBulkAvailabilityDto"}}}},"responses":{"201":{"description":"Members with and without free time at that position","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableMembersDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.\n- `BULK_BOOKING_DISABLED`: Booking several appointments at once is not enabled.\n- `INVALID_BULK_APPOINTMENTS`: The appointments in this request are not valid.\n- `BULK_CHAIN_TOO_LARGE`: Too many appointments in one booking.\n- `INVALID_MAX_WAIT`: The maximum wait time is not valid.\n- `INVALID_TARGET_INDEX`: The target index is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}},"BULK_BOOKING_DISABLED":{"summary":"BULK_BOOKING_DISABLED","value":{"message":"Booking several appointments at once is not enabled.","error":"BULK_BOOKING_DISABLED","statusCode":400}},"INVALID_BULK_APPOINTMENTS":{"summary":"INVALID_BULK_APPOINTMENTS","value":{"message":"The appointments in this request are not valid.","error":"INVALID_BULK_APPOINTMENTS","statusCode":400}},"BULK_CHAIN_TOO_LARGE":{"summary":"BULK_CHAIN_TOO_LARGE","value":{"message":"Too many appointments in one booking.","error":"BULK_CHAIN_TOO_LARGE","statusCode":400}},"INVALID_MAX_WAIT":{"summary":"INVALID_MAX_WAIT","value":{"message":"The maximum wait time is not valid.","error":"INVALID_MAX_WAIT","statusCode":400}},"INVALID_TARGET_INDEX":{"summary":"INVALID_TARGET_INDEX","value":{"message":"The target index is not valid.","error":"INVALID_TARGET_INDEX","statusCode":400}}}}}},"403":{"description":"- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}}},"summary":"Get Available Members in Bulk","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/bulk/time-slots":{"post":{"description":"Returns the start times at which the whole chain in `appointments` fits, as UTC intervals; book them with Create Appointments in Bulk. Prefer Search Availability, which also returns each appointment's member and time. For a chain of appointments booked back to back; needs bulk booking in the plan and the salon's settings.","operationId":"AvailabilityController_getBulkAvailabilityTimeSlots","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBulkAvailabilityDto"}}}},"responses":{"201":{"description":"The time slots of the first appointment, in time order","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityTimeSlotDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.\n- `BULK_BOOKING_DISABLED`: Booking several appointments at once is not enabled.\n- `INVALID_BULK_APPOINTMENTS`: The appointments in this request are not valid.\n- `BULK_CHAIN_TOO_LARGE`: Too many appointments in one booking.\n- `INVALID_MAX_WAIT`: The maximum wait time is not valid.\n- `INVALID_MODE_FOR_RANGE`: Invalid mode for the specified range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}},"BULK_BOOKING_DISABLED":{"summary":"BULK_BOOKING_DISABLED","value":{"message":"Booking several appointments at once is not enabled.","error":"BULK_BOOKING_DISABLED","statusCode":400}},"INVALID_BULK_APPOINTMENTS":{"summary":"INVALID_BULK_APPOINTMENTS","value":{"message":"The appointments in this request are not valid.","error":"INVALID_BULK_APPOINTMENTS","statusCode":400}},"BULK_CHAIN_TOO_LARGE":{"summary":"BULK_CHAIN_TOO_LARGE","value":{"message":"Too many appointments in one booking.","error":"BULK_CHAIN_TOO_LARGE","statusCode":400}},"INVALID_MAX_WAIT":{"summary":"INVALID_MAX_WAIT","value":{"message":"The maximum wait time is not valid.","error":"INVALID_MAX_WAIT","statusCode":400}},"INVALID_MODE_FOR_RANGE":{"summary":"INVALID_MODE_FOR_RANGE","value":{"message":"Invalid mode for the specified range.","error":"INVALID_MODE_FOR_RANGE","statusCode":400}}}}}},"403":{"description":"- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}}},"summary":"Get Available Time Slots in Bulk","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/availability/search":{"post":{"description":"Finds the times at which one appointment, or a chain of up to 10 booked back to back, can be booked, with the member, location and UTC interval of each appointment. Book a result with Create an Appointment, or Create Appointments in Bulk for a chain (which needs bulk booking in the plan and the salon's settings). Works without signing in.","operationId":"AvailabilityController_searchAvailability","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAvailabilityDto"}}}},"responses":{"201":{"description":"The matching start times, in time order","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilitySearchSlotDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_INTERVAL_FORMAT`: Invalid interval format.\n- `INVALID_MODE_FOR_RANGE`: Invalid mode for the specified range.\n- `BULK_BOOKING_DISABLED`: Booking several appointments at once is not enabled.\n- `INVALID_MAX_WAIT`: The maximum wait time is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_INTERVAL_FORMAT":{"summary":"INVALID_INTERVAL_FORMAT","value":{"message":"Invalid interval format.","error":"INVALID_INTERVAL_FORMAT","statusCode":400}},"INVALID_MODE_FOR_RANGE":{"summary":"INVALID_MODE_FOR_RANGE","value":{"message":"Invalid mode for the specified range.","error":"INVALID_MODE_FOR_RANGE","statusCode":400}},"BULK_BOOKING_DISABLED":{"summary":"BULK_BOOKING_DISABLED","value":{"message":"Booking several appointments at once is not enabled.","error":"BULK_BOOKING_DISABLED","statusCode":400}},"INVALID_MAX_WAIT":{"summary":"INVALID_MAX_WAIT","value":{"message":"The maximum wait time is not valid.","error":"INVALID_MAX_WAIT","statusCode":400}}}}}},"403":{"description":"- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}}},"summary":"Search Availability","tags":["Salons / Availability"]}},"/v1/salons/{salonId}/appointments":{"get":{"description":"Returns a page of appointments, newest first by default. Members see all of the salon's appointments, or only their own with Manage Own Appointments; signed-in clients see their own. Without signing in, pass `ids`, `groupId` or an `actionToken`.","operationId":"AppointmentsController_getAll","parameters":[{"name":"actionToken","required":false,"in":"query","description":"Token of an action link sent to the client (confirm, update, reschedule, cancel or review), to read the appointment without signing in","schema":{"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these appointments, comma-separated","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"array","items":{"type":"string"}}},{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Appointments per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"groupId","required":false,"in":"query","description":"Only the appointments booked together in one bulk booking","schema":{"format":"uuid","example":"6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only appointments at this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only appointments for this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only appointments of this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"clientId","required":false,"in":"query","description":"Only appointments of this client","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only appointments with these statuses, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["awaiting_payment","awaiting_confirmation","confirmed","declined","no_show","canceled","completed"]}}},{"name":"startAt","required":false,"in":"query","description":"Only appointments starting in this ISO 8601 interval; leave out either side for an open range, e.g. `2026-12-01T00:00:00Z/`","schema":{"example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only appointments booked in this ISO 8601 interval","schema":{"example":"2026-11-01T00:00:00Z/2026-12-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `startAt`","schema":{"default":"createdAt","example":"startAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `location`, `service`, `member`, `client`, `invoice`, `review`","schema":{"type":"array","items":{"type":"string","enum":["location","service","member","client","invoice","review"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of appointments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}}}}}}},"summary":"Get All Appointments","tags":["Salons / Appointments"]},"post":{"description":"Books an appointment at `timeSlot` (a slot start from the availability endpoints, in UTC), creates its invoice and runs the salon's automations, e.g. confirmation messages; without `memberId` the salon picks someone available. Members book it `confirmed`; clients and requests without sign-in (which need `clientDetails`, follow the salon's booking policies and are rate limited) get the salon's default status, or `awaiting_payment` with an online payment method. Send an `idempotencyKey` to retry safely.","operationId":"AppointmentsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppointmentDto"}}}},"responses":{"201":{"description":"The appointment, its invoice and the payment to complete","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppointmentResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PAYMENT_METHOD_NOT_AVAILABLE`: This payment method is not available.\n- `BOOKING_NOT_ALLOWED`: Booking is not allowed.\n- `CLIENT_INACTIVE`: This client is inactive.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PAYMENT_METHOD_NOT_AVAILABLE":{"summary":"PAYMENT_METHOD_NOT_AVAILABLE","value":{"message":"This payment method is not available.","error":"PAYMENT_METHOD_NOT_AVAILABLE","statusCode":400}},"BOOKING_NOT_ALLOWED":{"summary":"BOOKING_NOT_ALLOWED","value":{"message":"Booking is not allowed.","error":"BOOKING_NOT_ALLOWED","statusCode":400}},"CLIENT_INACTIVE":{"summary":"CLIENT_INACTIVE","value":{"message":"This client is inactive.","error":"CLIENT_INACTIVE","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.\n- `SERVICE_NOT_FOUND`: The requested service was not found.\n- `TIME_SLOT_NOT_AVAILABLE`: The selected time slot is not available.\n- `MEMBER_NOT_AVAILABLE`: The requested member is not available at this time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}},"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}},"TIME_SLOT_NOT_AVAILABLE":{"summary":"TIME_SLOT_NOT_AVAILABLE","value":{"message":"The selected time slot is not available.","error":"TIME_SLOT_NOT_AVAILABLE","statusCode":404}},"MEMBER_NOT_AVAILABLE":{"summary":"MEMBER_NOT_AVAILABLE","value":{"message":"The requested member is not available at this time.","error":"MEMBER_NOT_AVAILABLE","statusCode":404}}}}}},"409":{"description":"- `IDEMPOTENCY_KEY_REUSED`: This idempotency key was already used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"message":"This idempotency key was already used for a different request.","error":"IDEMPOTENCY_KEY_REUSED","statusCode":409}}}}}}},"summary":"Create an Appointment","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/calendar":{"get":{"description":"Returns what a calendar shows between `rangeStartAt` and `rangeEndAt`: the appointments and, on request, blocked times, time off, closed periods and special days. Needs the Manage Appointments permission, or Manage Own Appointments for your own appointments.","operationId":"AppointmentsController_getAllForCalendar","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"rangeStartAt","required":true,"in":"query","description":"Start of the range, as an ISO 8601 date-time","schema":{"example":"2026-11-30T05:00:00Z","type":"string"}},{"name":"rangeEndAt","required":true,"in":"query","description":"End of the range, as an ISO 8601 date-time","schema":{"example":"2026-12-07T05:00:00Z","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only appointments for this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"clientId","required":false,"in":"query","description":"Only appointments of this client","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only appointments with these statuses, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["awaiting_payment","awaiting_confirmation","confirmed","declined","no_show","canceled","completed"]}}},{"name":"withBlockedTimes","required":false,"in":"query","description":"Also return blocked times","schema":{"example":true,"type":"boolean"}},{"name":"withTimeOff","required":false,"in":"query","description":"Also return members' time off","schema":{"example":true,"type":"boolean"}},{"name":"withClosedPeriods","required":false,"in":"query","description":"Also return closed periods","schema":{"example":true,"type":"boolean"}},{"name":"withSpecialDays","required":false,"in":"query","description":"Also return members' special days","schema":{"example":true,"type":"boolean"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `location`, `service`, `member`, `client`, `invoice`, `review`","schema":{"type":"array","items":{"type":"string","enum":["location","service","member","client","invoice","review"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The calendar entries in the range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentCalendarDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get the Calendar","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/{appointmentId}":{"get":{"description":"Returns an appointment. It can also be read without signing in, e.g. for the booking status page.","operationId":"AppointmentsController_getById","parameters":[{"name":"actionToken","required":false,"in":"query","description":"Token of an action link sent to the client (confirm, update, reschedule, cancel or review), to read the appointment without signing in","schema":{"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...","type":"string"}},{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `location`, `service`, `member`, `client`, `invoice`, `review`","schema":{"type":"array","items":{"type":"string","enum":["location","service","member","client","invoice","review"]}}},{"name":"appointmentId","required":true,"in":"path","description":"Appointment ID","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The appointment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Appointment","tags":["Salons / Appointments"]},"patch":{"description":"Changes the status, notes or custom fields sent. Members follow the allowed status transitions (confirming checks the time is still free) and can refund online payments when canceling with `refundPayments`; clients, signed in or with an `actionToken`, can only confirm or cancel within the salon's canceling policy, and the salon's Refund on Canceling setting decides their refund. Status changes run the salon's automations, e.g. cancellation messages; `ignoreAppointments` and `ignoreAvailability` need the Appointment Overrides permission.","operationId":"AppointmentsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appointmentId","required":true,"in":"path","description":"Appointment ID","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppointmentDto"}}}},"responses":{"200":{"description":"The appointment was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppointmentResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_STATUS_TRANSITION`: Invalid appointment status transition.\n- `CANCELING_NOT_ALLOWED`: Canceling this appointment is not allowed.\n- `CANNOT_UPDATE_NOTES`: Notes cannot be updated for this appointment.\n- `PAYMENTS_REFUND_FAILED`: The appointment was canceled, but the refund failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_STATUS_TRANSITION":{"summary":"INVALID_STATUS_TRANSITION","value":{"message":"Invalid appointment status transition.","error":"INVALID_STATUS_TRANSITION","statusCode":400}},"CANCELING_NOT_ALLOWED":{"summary":"CANCELING_NOT_ALLOWED","value":{"message":"Canceling this appointment is not allowed.","error":"CANCELING_NOT_ALLOWED","statusCode":400}},"CANNOT_UPDATE_NOTES":{"summary":"CANNOT_UPDATE_NOTES","value":{"message":"Notes cannot be updated for this appointment.","error":"CANNOT_UPDATE_NOTES","statusCode":400}},"PAYMENTS_REFUND_FAILED":{"summary":"PAYMENTS_REFUND_FAILED","value":{"message":"The appointment was canceled, but the refund failed.","error":"PAYMENTS_REFUND_FAILED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.\n- `TIME_SLOT_NOT_AVAILABLE`: The selected time slot is not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}},"TIME_SLOT_NOT_AVAILABLE":{"summary":"TIME_SLOT_NOT_AVAILABLE","value":{"message":"The selected time slot is not available.","error":"TIME_SLOT_NOT_AVAILABLE","statusCode":404}}}}}}},"summary":"Update an Appointment","tags":["Salons / Appointments"]},"delete":{"description":"Permanently deletes an appointment; to keep a record, cancel it with Update an Appointment instead. Needs the Manage Appointments permission, or Manage Own Appointments for your own appointments.","operationId":"AppointmentsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appointmentId","required":true,"in":"path","description":"Appointment ID","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The appointment was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAppointmentResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete an Appointment","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/prepare":{"post":{"description":"Previews the price of an appointment before booking it: subtotal, coupon discount, taxes, total and deposit, plus the payment methods and payment types the client can choose for Create an Appointment. Without `memberId`, the price is for the member the salon would pick. Nothing is booked or reserved.","operationId":"AppointmentsController_prepare","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareAppointmentDto"}}}},"responses":{"201":{"description":"The price and payment options","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareAppointmentResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.\n- `SERVICE_NOT_FOUND`: The requested service was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}},"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Prepare an Appointment","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/prepare/bulk":{"post":{"description":"Previews the prices of several appointments booked together, each like Prepare an Appointment, plus their totals. Only the first appointment needs a `timeSlot`; later ones without it are placed right after the previous one, as Create Appointments in Bulk would.","operationId":"AppointmentsController_prepareBulk","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareBulkAppointmentDto"}}}},"responses":{"201":{"description":"The price of each appointment and the totals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareBulkAppointmentsResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_BULK_APPOINTMENTS`: The appointments in this request are not valid.\n- `BULK_CHAIN_TOO_LARGE`: Too many appointments in one booking.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_BULK_APPOINTMENTS":{"summary":"INVALID_BULK_APPOINTMENTS","value":{"message":"The appointments in this request are not valid.","error":"INVALID_BULK_APPOINTMENTS","statusCode":400}},"BULK_CHAIN_TOO_LARGE":{"summary":"BULK_CHAIN_TOO_LARGE","value":{"message":"Too many appointments in one booking.","error":"BULK_CHAIN_TOO_LARGE","statusCode":400}}}}}},"404":{"description":"- `LOCATION_NOT_FOUND`: The requested location was not found.\n- `SERVICE_NOT_FOUND`: The requested service was not found.\n- `TIME_SLOT_NOT_AVAILABLE`: The selected time slot is not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}},"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}},"TIME_SLOT_NOT_AVAILABLE":{"summary":"TIME_SLOT_NOT_AVAILABLE","value":{"message":"The selected time slot is not available.","error":"TIME_SLOT_NOT_AVAILABLE","statusCode":404}}}}}}},"summary":"Prepare Appointments in Bulk","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/bulk":{"post":{"description":"Books up to 10 appointments together, e.g. a chain of services, each with its own invoice, a shared `groupId` and one payment. Only the first needs a `timeSlot`; later ones without it are chained right after the previous one, and more than one appointment needs bulk booking in the plan and the salon's settings. Appointments that fail are returned in `failed` while the rest are still booked; send an `idempotencyKey` to retry safely.","operationId":"AppointmentsController_createBulk","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkAppointmentDto"}}}},"responses":{"201":{"description":"The booked appointments and the ones that failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkAppointmentsResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_BULK_APPOINTMENTS`: The appointments in this request are not valid.\n- `BULK_BOOKING_DISABLED`: Booking several appointments at once is not enabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_BULK_APPOINTMENTS":{"summary":"INVALID_BULK_APPOINTMENTS","value":{"message":"The appointments in this request are not valid.","error":"INVALID_BULK_APPOINTMENTS","statusCode":400}},"BULK_BOOKING_DISABLED":{"summary":"BULK_BOOKING_DISABLED","value":{"message":"Booking several appointments at once is not enabled.","error":"BULK_BOOKING_DISABLED","statusCode":400}}}}}},"403":{"description":"- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}},"404":{"description":"- `TIME_SLOT_NOT_AVAILABLE`: The selected time slot is not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TIME_SLOT_NOT_AVAILABLE":{"summary":"TIME_SLOT_NOT_AVAILABLE","value":{"message":"The selected time slot is not available.","error":"TIME_SLOT_NOT_AVAILABLE","statusCode":404}}}}}},"409":{"description":"- `IDEMPOTENCY_KEY_REUSED`: This idempotency key was already used for a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"message":"This idempotency key was already used for a different request.","error":"IDEMPOTENCY_KEY_REUSED","statusCode":409}}}}}}},"summary":"Create Appointments in Bulk","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/{appointmentId}/reschedule":{"post":{"description":"Moves an appointment to a new `timeSlot` and, optionally, another location, service or member; fields left out stay as they are. Clients, signed in or with an `actionToken`, can reschedule within the salon's rescheduling policy; the invoice is repriced and the salon's automations run. `ignoreAppointments` and `ignoreAvailability` need the Appointment Overrides permission.","operationId":"AppointmentsController_reschedule","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appointmentId","required":true,"in":"path","description":"Appointment ID","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleAppointmentDto"}}}},"responses":{"201":{"description":"The appointment was rescheduled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleAppointmentResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `RESCHEDULING_NOT_ALLOWED`: Rescheduling this appointment is not allowed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"RESCHEDULING_NOT_ALLOWED":{"summary":"RESCHEDULING_NOT_ALLOWED","value":{"message":"Rescheduling this appointment is not allowed.","error":"RESCHEDULING_NOT_ALLOWED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.\n- `LOCATION_NOT_FOUND`: The requested location was not found.\n- `SERVICE_NOT_FOUND`: The requested service was not found.\n- `TIME_SLOT_NOT_AVAILABLE`: The selected time slot is not available.\n- `MEMBER_NOT_AVAILABLE`: The requested member is not available at this time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}},"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}},"SERVICE_NOT_FOUND":{"summary":"SERVICE_NOT_FOUND","value":{"message":"The requested service was not found.","error":"SERVICE_NOT_FOUND","statusCode":404}},"TIME_SLOT_NOT_AVAILABLE":{"summary":"TIME_SLOT_NOT_AVAILABLE","value":{"message":"The selected time slot is not available.","error":"TIME_SLOT_NOT_AVAILABLE","statusCode":404}},"MEMBER_NOT_AVAILABLE":{"summary":"MEMBER_NOT_AVAILABLE","value":{"message":"The requested member is not available at this time.","error":"MEMBER_NOT_AVAILABLE","statusCode":404}}}}}}},"summary":"Reschedule an Appointment","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/{appointmentId}/reassign":{"post":{"description":"Gives an appointment to another member at the same time: the one in `memberId`, or an available member picked with `selectionLogic`. Needs the Manage Appointments permission, or Manage Own Appointments for your own appointments. `ignoreAppointments` and `ignoreAvailability` need the Appointment Overrides permission.","operationId":"AppointmentsController_reassign","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appointmentId","required":true,"in":"path","description":"Appointment ID","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignAppointmentDto"}}}},"responses":{"201":{"description":"The appointment and its new member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignAppointmentResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.\n- `MEMBER_NOT_AVAILABLE`: The requested member is not available at this time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}},"MEMBER_NOT_AVAILABLE":{"summary":"MEMBER_NOT_AVAILABLE","value":{"message":"The requested member is not available at this time.","error":"MEMBER_NOT_AVAILABLE","statusCode":404}}}}}}},"summary":"Reassign an Appointment","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/appointments/{appointmentId}/extend":{"post":{"description":"Makes an appointment longer, or shorter with a negative `delta`, keeping its start; the new end has to be free. Needs the Manage Appointments permission, or Manage Own Appointments for your own appointments. `ignoreAppointments` and `ignoreAvailability` need the Appointment Overrides permission.","operationId":"AppointmentsController_extend","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appointmentId","required":true,"in":"path","description":"Appointment ID","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendAppointmentDto"}}}},"responses":{"201":{"description":"The appointment was extended","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendAppointmentResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_DELTA`: The appointment duration must stay greater than 0.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_DELTA":{"summary":"INVALID_DELTA","value":{"message":"The appointment duration must stay greater than 0.","error":"INVALID_DELTA","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.\n- `EXTENSION_NOT_AVAILABLE`: The appointment cannot be extended at this time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}},"EXTENSION_NOT_AVAILABLE":{"summary":"EXTENSION_NOT_AVAILABLE","value":{"message":"The appointment cannot be extended at this time.","error":"EXTENSION_NOT_AVAILABLE","statusCode":404}}}}}}},"summary":"Extend an Appointment","tags":["Salons / Appointments"]}},"/v1/salons/{salonId}/workflows":{"get":{"description":"Returns a page of the salon's workflows (automations), newest first by default.","operationId":"WorkflowsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these workflows, comma-separated","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Workflows per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name or the description","schema":{"example":"reminder","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","name","description","trigger","isActive"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of workflows","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Workflows","tags":["Salons / Workflows"]},"post":{"description":"Creates a workflow from `nodes` and `edges`, or from a template with `templateId` (once per template). The trigger is taken from the start node. Notification texts and the workflow are checked for spam and abuse, and the plan's workflow limit and node types apply.","operationId":"WorkflowsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowDto"}}}},"responses":{"201":{"description":"The created workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_CREATE_WORKFLOW_PARAMS`: The create workflow parameters are invalid.\n- `WORKFLOW_NOT_VALID`: The workflow configuration is not valid.\n- `WORKFLOW_HIGH_RISK`: This workflow has been flagged as high risk.\n- `NOTIFICATION_CONTENT_NOT_VALID`: The notification content is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_CREATE_WORKFLOW_PARAMS":{"summary":"INVALID_CREATE_WORKFLOW_PARAMS","value":{"message":"The create workflow parameters are invalid.","error":"INVALID_CREATE_WORKFLOW_PARAMS","statusCode":400}},"WORKFLOW_NOT_VALID":{"summary":"WORKFLOW_NOT_VALID","value":{"message":"The workflow configuration is not valid.","error":"WORKFLOW_NOT_VALID","statusCode":400}},"WORKFLOW_HIGH_RISK":{"summary":"WORKFLOW_HIGH_RISK","value":{"message":"This workflow has been flagged as high risk.","error":"WORKFLOW_HIGH_RISK","statusCode":400}},"NOTIFICATION_CONTENT_NOT_VALID":{"summary":"NOTIFICATION_CONTENT_NOT_VALID","value":{"message":"The notification content is not valid.","error":"NOTIFICATION_CONTENT_NOT_VALID","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_TEMPLATE_NOT_FOUND`: The requested workflow template was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_TEMPLATE_NOT_FOUND":{"summary":"WORKFLOW_TEMPLATE_NOT_FOUND","value":{"message":"The requested workflow template was not found.","error":"WORKFLOW_TEMPLATE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `WORKFLOW_TEMPLATE_ALREADY_USED`: A workflow was already created from this template.\n- `NAME_ALREADY_IN_USE`: This name is already in use.\n- `WORKFLOW_ALREADY_EXISTS`: A workflow with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_TEMPLATE_ALREADY_USED":{"summary":"WORKFLOW_TEMPLATE_ALREADY_USED","value":{"message":"A workflow was already created from this template.","error":"WORKFLOW_TEMPLATE_ALREADY_USED","statusCode":409}},"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}},"WORKFLOW_ALREADY_EXISTS":{"summary":"WORKFLOW_ALREADY_EXISTS","value":{"message":"A workflow with this name already exists.","error":"WORKFLOW_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Workflow","tags":["Salons / Workflows"]}},"/v1/salons/{salonId}/workflows/{workflowId}":{"get":{"description":"Returns a workflow with its trigger, nodes and edges.","operationId":"WorkflowsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_NOT_FOUND`: The requested workflow was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_NOT_FOUND":{"summary":"WORKFLOW_NOT_FOUND","value":{"message":"The requested workflow was not found.","error":"WORKFLOW_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Workflow","tags":["Salons / Workflows"]},"patch":{"description":"Updates a workflow; only the fields sent change. Changing the nodes or edges, or turning the workflow off, cancels its pending executions. Turning it on checks the plan's workflow limit; turning it on or changing the nodes of an active workflow checks that the plan includes its node types.","operationId":"WorkflowsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowDto"}}}},"responses":{"200":{"description":"ID of the updated workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `WORKFLOW_NOT_VALID`: The workflow configuration is not valid.\n- `WORKFLOW_HIGH_RISK`: This workflow has been flagged as high risk.\n- `NOTIFICATION_CONTENT_NOT_VALID`: The notification content is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"WORKFLOW_NOT_VALID":{"summary":"WORKFLOW_NOT_VALID","value":{"message":"The workflow configuration is not valid.","error":"WORKFLOW_NOT_VALID","statusCode":400}},"WORKFLOW_HIGH_RISK":{"summary":"WORKFLOW_HIGH_RISK","value":{"message":"This workflow has been flagged as high risk.","error":"WORKFLOW_HIGH_RISK","statusCode":400}},"NOTIFICATION_CONTENT_NOT_VALID":{"summary":"NOTIFICATION_CONTENT_NOT_VALID","value":{"message":"The notification content is not valid.","error":"NOTIFICATION_CONTENT_NOT_VALID","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_NOT_FOUND`: The requested workflow was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_NOT_FOUND":{"summary":"WORKFLOW_NOT_FOUND","value":{"message":"The requested workflow was not found.","error":"WORKFLOW_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}}}}}}},"summary":"Update a Workflow","tags":["Salons / Workflows"]},"delete":{"description":"Deletes a workflow with its executions; pending executions are canceled first.","operationId":"WorkflowsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"ID of the deleted workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkflowResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_NOT_FOUND`: The requested workflow was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_NOT_FOUND":{"summary":"WORKFLOW_NOT_FOUND","value":{"message":"The requested workflow was not found.","error":"WORKFLOW_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Workflow","tags":["Salons / Workflows"]}},"/v1/salons/{salonId}/workflows/{workflowId}/run":{"post":{"description":"Starts an active workflow with the `manual` trigger. Workflows with other triggers start on their own.","operationId":"WorkflowsController_run","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The started execution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWorkflowResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `WORKFLOW_NOT_MANUAL`: Only workflows with a manual trigger can be run.\n- `WORKFLOW_NOT_ACTIVE`: The workflow is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"WORKFLOW_NOT_MANUAL":{"summary":"WORKFLOW_NOT_MANUAL","value":{"message":"Only workflows with a manual trigger can be run.","error":"WORKFLOW_NOT_MANUAL","statusCode":400}},"WORKFLOW_NOT_ACTIVE":{"summary":"WORKFLOW_NOT_ACTIVE","value":{"message":"The workflow is not active.","error":"WORKFLOW_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_NOT_FOUND`: The requested workflow was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_NOT_FOUND":{"summary":"WORKFLOW_NOT_FOUND","value":{"message":"The requested workflow was not found.","error":"WORKFLOW_NOT_FOUND","statusCode":404}}}}}}},"summary":"Run a Workflow","tags":["Salons / Workflows"]}},"/v1/salons/{salonId}/workflows/sync":{"post":{"description":"Makes the salon's template workflows match `templateIds`: workflows of new templates are created, workflows of templates left out are deleted with their pending executions. Workflows created from scratch stay. All or nothing.","operationId":"WorkflowsController_sync","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncWorkflowDto"}}}},"responses":{"201":{"description":"The salon's template workflows, oldest first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `WORKFLOW_NOT_VALID`: The workflow configuration is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"WORKFLOW_NOT_VALID":{"summary":"WORKFLOW_NOT_VALID","value":{"message":"The workflow configuration is not valid.","error":"WORKFLOW_NOT_VALID","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_TEMPLATE_NOT_FOUND`: The requested workflow template was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_TEMPLATE_NOT_FOUND":{"summary":"WORKFLOW_TEMPLATE_NOT_FOUND","value":{"message":"The requested workflow template was not found.","error":"WORKFLOW_TEMPLATE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.\n- `WORKFLOW_ALREADY_EXISTS`: A workflow with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}},"WORKFLOW_ALREADY_EXISTS":{"summary":"WORKFLOW_ALREADY_EXISTS","value":{"message":"A workflow with this name already exists.","error":"WORKFLOW_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Sync Workflows with Templates","tags":["Salons / Workflows"]}},"/v1/salons/{salonId}/workflows/defaults":{"post":{"description":"Adds the default workflow templates in `language`, as many as the plan's workflow limit allows and leaving out node types the plan doesn't include. Does nothing when the salon already has template workflows, unless `replace` is set.","operationId":"WorkflowsController_initializeDefaults","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitializeDefaultsWorkflowDto"}}}},"responses":{"201":{"description":"The salon's template workflows, oldest first","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `WORKFLOW_NOT_VALID`: The workflow configuration is not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"WORKFLOW_NOT_VALID":{"summary":"WORKFLOW_NOT_VALID","value":{"message":"The workflow configuration is not valid.","error":"WORKFLOW_NOT_VALID","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.\n- `ENTITLEMENT_VALIDATION_FAILED`: A limit of the subscription plan has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}},"ENTITLEMENT_VALIDATION_FAILED":{"summary":"ENTITLEMENT_VALIDATION_FAILED","value":{"message":"A limit of the subscription plan has been reached.","error":"ENTITLEMENT_VALIDATION_FAILED","statusCode":403}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.\n- `WORKFLOW_ALREADY_EXISTS`: A workflow with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}},"WORKFLOW_ALREADY_EXISTS":{"summary":"WORKFLOW_ALREADY_EXISTS","value":{"message":"A workflow with this name already exists.","error":"WORKFLOW_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Add the Default Workflows","tags":["Salons / Workflows"]}},"/v1/salons/{salonId}/workflows/{workflowId}/executions":{"get":{"description":"Returns a page of a workflow's executions (runs), newest first by default. Steps only include their `message` and `context` is left out; get a single execution for the full details.","operationId":"WorkflowExecutionsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Executions per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","status","statusChangedAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of workflow executions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExecutionListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Workflow Executions","tags":["Salons / Workflow Executions"]}},"/v1/salons/{salonId}/workflows/{workflowId}/executions/{workflowExecutionId}":{"get":{"description":"Returns an execution with the full result of every step and its `context`, the variables the steps used (such as the triggering `$event`).","operationId":"WorkflowExecutionsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"workflowExecutionId","required":true,"in":"path","description":"Workflow execution ID","schema":{"example":"wflx_01h7k5p2nqf8w3rtz9m6bvc4da","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The workflow execution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowExecutionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_EXECUTION_NOT_FOUND`: The workflow execution was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_EXECUTION_NOT_FOUND":{"summary":"WORKFLOW_EXECUTION_NOT_FOUND","value":{"message":"The workflow execution was not found.","error":"WORKFLOW_EXECUTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Workflow Execution","tags":["Salons / Workflow Executions"]}},"/v1/salons/{salonId}/settings/{namespace}":{"get":{"description":"Returns the salon's settings in a namespace, one per key, optionally only some keys. Keys never saved are left out.","operationId":"SettingsController_getAllByNamespace","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"namespace","required":true,"in":"path","description":"Group of settings: `general`, `company`, `booking`, `appearance`, `payments`, `conversations` or `other`","schema":{"enum":["general","conversations","company","booking","appearance","payments","other"],"type":"string"}},{"name":"keys","required":false,"in":"query","description":"Only these keys, comma-separated","schema":{"example":"timezone,language","type":"array","items":{"type":"string"}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The settings","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/settings/general":{"patch":{"description":"Language, time zone, first day of the week, and the time and date formats used in the dashboard, on the booking site and in messages. Send only what changes: objects are merged into the saved values, arrays and other values replace them, and null clears one. Needs the `settings/manage` permission.","operationId":"SettingsController_updateGeneralSettings","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGeneralSettingDto"}}}},"responses":{"200":{"description":"The changed settings, one per key sent","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update General Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/settings/company":{"patch":{"description":"Country, weekly working hours, business details for invoices, and the contact details and social media profiles shown on the booking site. Send only what changes: objects are merged into the saved values, arrays and other values replace them, and null clears one. Needs the `settings/manage` permission.","operationId":"SettingsController_updateCompanySettings","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanySettingDto"}}}},"responses":{"200":{"description":"The changed settings, one per key sent","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update Company Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/settings/booking":{"patch":{"description":"Time slots, the default status of new appointments and how a member is picked, custom fields asked when booking, and the rules for booking, rescheduling and canceling online. Send only what changes: objects are merged into the saved values, arrays and other values replace them, and null clears one. Needs the `settings/manage` permission.","operationId":"SettingsController_updateBookingSettings","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBookingSettingDto"}}}},"responses":{"200":{"description":"The changed settings, one per key sent","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update Booking Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/settings/conversations":{"patch":{"description":"The AI Receptionist (personality, replies and follow-ups), its knowledge base and custom keywords, and the live chat on the booking site. Send only what changes: objects are merged into the saved values, arrays and other values replace them, and null clears one. Needs the `settings/manage` permission.","operationId":"SettingsController_updateConversationsSettings","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationsSettingDto"}}}},"responses":{"200":{"description":"The changed settings, one per key sent","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update Conversations Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/settings/appearance":{"patch":{"description":"How the booking site looks: colors and logo, header, home page, booking steps, the locations, services, members, reviews, about and gallery pages, custom pages, footer, custom code and the custom website. Setting `customWebsite.themeId` publishes that theme: it must have no errors and the plan must include custom websites; null turns the custom website off. Send only what changes: objects are merged into the saved values, arrays and other values replace them, and null clears one. Needs the `settings/manage` permission.","operationId":"SettingsController_updateAppearanceSettings","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppearanceSettingsDto"}}}},"responses":{"200":{"description":"The changed settings, one per key sent","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `THEME_INVALID`: The theme has errors and cannot be published.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"THEME_INVALID":{"summary":"THEME_INVALID","value":{"message":"The theme has errors and cannot be published.","error":"THEME_INVALID","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update Appearance Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/settings/payments":{"patch":{"description":"Currency and how amounts are shown, the payment methods clients can use, the deposit policy and when invoices are due. Send only what changes: objects are merged into the saved values, arrays and other values replace them, and null clears one. Needs the `settings/manage` permission.","operationId":"SettingsController_updatePaymentsSettings","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentsSettingDto"}}}},"responses":{"200":{"description":"The changed settings, one per key sent","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SettingDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update Payments Settings","tags":["Salons / Settings"]}},"/v1/salons/{salonId}/billing/billing-profile":{"get":{"description":"Returns the company details Softalon bills the salon to, with its balance, credits and payment methods. Needs the Manage Billing permission.","operationId":"BillingBillingProfileController_get","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The billing profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get the Billing Profile","tags":["Salons / Billing / Billing Profile"]},"post":{"description":"Saves the company details Softalon bills the salon to. A salon has one billing profile, and needs it before adding a payment method or subscribing. Needs the Manage Billing permission.","operationId":"BillingBillingProfileController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingProfileDto"}}}},"responses":{"201":{"description":"The created billing profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"409":{"description":"- `BILLING_PROFILE_ALREADY_EXISTS`: A billing profile already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_ALREADY_EXISTS":{"summary":"BILLING_PROFILE_ALREADY_EXISTS","value":{"message":"A billing profile already exists.","error":"BILLING_PROFILE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create the Billing Profile","tags":["Salons / Billing / Billing Profile"]},"patch":{"description":"Changes the company details, or which payment methods are charged first and as a backup. New details appear on future invoices. Needs the Manage Billing permission.","operationId":"BillingBillingProfileController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingProfileDto"}}}},"responses":{"200":{"description":"The billing profile's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingProfileResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.\n- `PRIMARY_PAYMENT_METHOD_NOT_FOUND`: The primary payment method was not found.\n- `BACKUP_PAYMENT_METHOD_NOT_FOUND`: The backup payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}},"PRIMARY_PAYMENT_METHOD_NOT_FOUND":{"summary":"PRIMARY_PAYMENT_METHOD_NOT_FOUND","value":{"message":"The primary payment method was not found.","error":"PRIMARY_PAYMENT_METHOD_NOT_FOUND","statusCode":404}},"BACKUP_PAYMENT_METHOD_NOT_FOUND":{"summary":"BACKUP_PAYMENT_METHOD_NOT_FOUND","value":{"message":"The backup payment method was not found.","error":"BACKUP_PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `PRIMARY_BACKUP_PAYMENT_METHODS_SAME`: The primary and backup payment methods cannot be the same.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRIMARY_BACKUP_PAYMENT_METHODS_SAME":{"summary":"PRIMARY_BACKUP_PAYMENT_METHODS_SAME","value":{"message":"The primary and backup payment methods cannot be the same.","error":"PRIMARY_BACKUP_PAYMENT_METHODS_SAME","statusCode":409}}}}}}},"summary":"Update the Billing Profile","tags":["Salons / Billing / Billing Profile"]}},"/v1/salons/{salonId}/billing/billing-profile/balance":{"get":{"description":"Returns the salon's balance per currency, which pays the next invoices first, optionally with its history.","operationId":"BillingBillingProfileController_getBalance","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"withHistory","required":false,"in":"query","description":"Include every balance change, newest first","schema":{"default":false,"example":true,"type":"boolean"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingBalanceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get the Balance","tags":["Salons / Billing / Billing Profile"]}},"/v1/salons/{salonId}/billing/billing-profile/credits":{"get":{"description":"Returns the credits the salon has left, one balance for SMS and WhatsApp messages and AI Receptionist replies, optionally with their history.","operationId":"BillingBillingProfileController_getCredits","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"withHistory","required":false,"in":"query","description":"Include every credit change, newest first","schema":{"default":false,"example":true,"type":"boolean"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCreditsDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get the Credits","tags":["Salons / Billing / Billing Profile"]}},"/v1/salons/{salonId}/billing/payment-methods":{"get":{"description":"Returns a page of the cards (and Link accounts) the salon pays Softalon with, newest first by default, each marked as primary or backup. Needs the Manage Billing permission.","operationId":"BillingPaymentMethodsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these payment methods, comma-separated","schema":{"example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Payment methods per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of payment methods","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Payment Methods","tags":["Salons / Billing / Payment Methods"]},"post":{"description":"Saves a card collected with the payment provider's SDK after Initialize a Payment Method. The salon's first payment method becomes the primary one; saving the same card again returns the existing payment method. Needs the Manage Billing permission.","operationId":"BillingPaymentMethodsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentMethodDto"}}}},"responses":{"201":{"description":"The payment method","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Payment Method","tags":["Salons / Billing / Payment Methods"]}},"/v1/salons/{salonId}/billing/payment-methods/{paymentMethodId}":{"get":{"description":"Returns one of the salon's payment methods. Needs the Manage Billing permission.","operationId":"BillingPaymentMethodsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentMethodId","required":true,"in":"path","description":"Payment method ID","schema":{"example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The payment method","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PAYMENT_METHOD_NOT_FOUND`: The requested payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_METHOD_NOT_FOUND":{"summary":"PAYMENT_METHOD_NOT_FOUND","value":{"message":"The requested payment method was not found.","error":"PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Payment Method","tags":["Salons / Billing / Payment Methods"]},"patch":{"description":"Changes a card's expiration date, at the payment provider too. Needs the Manage Billing permission.","operationId":"BillingPaymentMethodsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentMethodId","required":true,"in":"path","description":"Payment method ID","schema":{"example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentMethodDto"}}}},"responses":{"200":{"description":"The updated payment method","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PAYMENT_METHOD_NOT_CARD`: The payment method is not a card.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PAYMENT_METHOD_NOT_CARD":{"summary":"PAYMENT_METHOD_NOT_CARD","value":{"message":"The payment method is not a card.","error":"PAYMENT_METHOD_NOT_CARD","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PAYMENT_METHOD_NOT_FOUND`: The requested payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_METHOD_NOT_FOUND":{"summary":"PAYMENT_METHOD_NOT_FOUND","value":{"message":"The requested payment method was not found.","error":"PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Payment Method","tags":["Salons / Billing / Payment Methods"]},"delete":{"description":"Removes a payment method from the salon and from the payment provider. The primary payment method can't be deleted; make another one primary with Update the Billing Profile first. Needs the Manage Billing permission.","operationId":"BillingPaymentMethodsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentMethodId","required":true,"in":"path","description":"Payment method ID","schema":{"example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The deleted payment method's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePaymentMethodResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PRIMARY_PAYMENT_METHOD_CANNOT_BE_DELETED`: The primary payment method cannot be deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PRIMARY_PAYMENT_METHOD_CANNOT_BE_DELETED":{"summary":"PRIMARY_PAYMENT_METHOD_CANNOT_BE_DELETED","value":{"message":"The primary payment method cannot be deleted.","error":"PRIMARY_PAYMENT_METHOD_CANNOT_BE_DELETED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PAYMENT_METHOD_NOT_FOUND`: The requested payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_METHOD_NOT_FOUND":{"summary":"PAYMENT_METHOD_NOT_FOUND","value":{"message":"The requested payment method was not found.","error":"PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Payment Method","tags":["Salons / Billing / Payment Methods"]}},"/v1/salons/{salonId}/billing/payment-methods/initialize":{"post":{"description":"Starts adding a card: returns a client secret for collecting it in the browser with the payment provider's SDK (Stripe.js). Then save it with Create a Payment Method. Needs the Manage Billing permission.","operationId":"BillingPaymentMethodsController_initialize","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitializePaymentMethodDto"}}}},"responses":{"201":{"description":"The client secret and the billing profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitializePaymentMethodResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Initialize a Payment Method","tags":["Salons / Billing / Payment Methods"]}},"/v1/salons/{salonId}/billing/invoices":{"get":{"description":"Returns a page of the invoices Softalon sent the salon, for subscriptions and purchases, newest first by default. Drafts are left out. Needs the Manage Billing permission.","operationId":"BillingInvoicesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these invoices, comma-separated","schema":{"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Invoices per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the invoice number","schema":{"example":"K7Q2MX-0003","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of invoices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInvoiceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Invoices","tags":["Salons / Billing / Invoices"]},"post":{"description":"Buys a product, e.g. a pack of credits for SMS, WhatsApp and the AI Receptionist: creates an open invoice for it to pay with Pay an Invoice. The credits are added once it is paid. Needs a signed-in member with the Manage Billing permission.","operationId":"BillingInvoicesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingInvoiceDto"}}}},"responses":{"201":{"description":"The invoice, with its items","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInvoiceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PRODUCT_NOT_AVAILABLE`: This product is not available.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PRODUCT_NOT_AVAILABLE":{"summary":"PRODUCT_NOT_AVAILABLE","value":{"message":"This product is not available.","error":"PRODUCT_NOT_AVAILABLE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.\n- `PRODUCT_NOT_FOUND`: The requested product was not found.\n- `PRICE_NOT_FOUND`: The requested price was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}},"PRODUCT_NOT_FOUND":{"summary":"PRODUCT_NOT_FOUND","value":{"message":"The requested product was not found.","error":"PRODUCT_NOT_FOUND","statusCode":404}},"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create an Invoice","tags":["Salons / Billing / Invoices"]}},"/v1/salons/{salonId}/billing/invoices/{invoiceId}":{"get":{"description":"Returns one of the salon's invoices from Softalon, with its items. Needs the Manage Billing permission.","operationId":"BillingInvoicesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invoice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingInvoiceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Invoice","tags":["Salons / Billing / Invoices"]}},"/v1/salons/{salonId}/billing/invoices/{invoiceId}/pay":{"post":{"description":"Charges an open invoice to one of the salon's payment methods; unfinished earlier attempts for it are canceled. When the bank asks for confirmation, `nextAction` says how to finish the payment. Needs the Manage Billing permission.","operationId":"BillingInvoicesController_pay","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayBillingInvoiceDto"}}}},"responses":{"201":{"description":"The invoice and what is left to finish the payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayInvoiceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `TOTAL_MISMATCH`: The total amount does not match.\n- `INVOICE_NOT_OPEN`: This invoice is not open.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"TOTAL_MISMATCH":{"summary":"TOTAL_MISMATCH","value":{"message":"The total amount does not match.","error":"TOTAL_MISMATCH","statusCode":400}},"INVOICE_NOT_OPEN":{"summary":"INVOICE_NOT_OPEN","value":{"message":"This invoice is not open.","error":"INVOICE_NOT_OPEN","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.\n- `PAYMENT_METHOD_NOT_FOUND`: The requested payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}},"PAYMENT_METHOD_NOT_FOUND":{"summary":"PAYMENT_METHOD_NOT_FOUND","value":{"message":"The requested payment method was not found.","error":"PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Pay an Invoice","tags":["Salons / Billing / Invoices"]}},"/v1/salons/{salonId}/billing/invoices/{invoiceId}/payments":{"get":{"description":"Returns a page of the payment attempts for one of the salon's Softalon invoices, each with its invoice, newest first by default. Needs the Manage Billing permission.","operationId":"BillingPaymentsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these payments, comma-separated","schema":{"example":"bpay_01hc5q8s3txz6vwy2r7pzef4hm","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Payments per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of payments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPaymentListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Payments","tags":["Salons / Billing / Invoices / Payments"]}},"/v1/salons/{salonId}/billing/invoices/{invoiceId}/payments/{paymentId}":{"get":{"description":"Returns one payment attempt for a Softalon invoice, with its invoice. Needs the Manage Billing permission.","operationId":"BillingPaymentsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj","type":"string"}},{"name":"paymentId","required":true,"in":"path","description":"Payment ID","schema":{"example":"bpay_01hc5q8s3txz6vwy2r7pzef4hm","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPaymentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PAYMENT_NOT_FOUND`: The requested payment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_NOT_FOUND":{"summary":"PAYMENT_NOT_FOUND","value":{"message":"The requested payment was not found.","error":"PAYMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Payment","tags":["Salons / Billing / Invoices / Payments"]}},"/v1/salons/{salonId}/billing/subscriptions":{"get":{"description":"Returns a page of the salon's subscriptions, past ones included, newest first by default. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these subscriptions, comma-separated","schema":{"example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Subscriptions per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of subscriptions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Subscriptions","tags":["Salons / Billing / Subscriptions"]},"post":{"description":"Subscribes the salon to a plan's price. A payment method is always required and becomes the primary one. The salon's first subscription starts with the plan's free trial and is charged when it ends; otherwise the first period is charged right away, from the balance first. When the bank asks for confirmation, `nextAction` says how to finish the payment. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionDto"}}}},"responses":{"201":{"description":"The subscription and what is left to finish the payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `UNPAID_SUBSCRIPTIONS_LIMIT`: Unpaid subscriptions limit has been reached.\n- `PRICE_PLAN_NOT_FOUND`: The requested price plan was not found.\n- `INVALID_COUPON`: Invalid coupon.\n- `PAYMENT_METHOD_REQUIRED`: A payment method is required.\n- `TOTAL_MISMATCH`: The total amount does not match.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"UNPAID_SUBSCRIPTIONS_LIMIT":{"summary":"UNPAID_SUBSCRIPTIONS_LIMIT","value":{"message":"Unpaid subscriptions limit has been reached.","error":"UNPAID_SUBSCRIPTIONS_LIMIT","statusCode":400}},"PRICE_PLAN_NOT_FOUND":{"summary":"PRICE_PLAN_NOT_FOUND","value":{"message":"The requested price plan was not found.","error":"PRICE_PLAN_NOT_FOUND","statusCode":400}},"INVALID_COUPON":{"summary":"INVALID_COUPON","value":{"message":"Invalid coupon.","error":"INVALID_COUPON","statusCode":400}},"PAYMENT_METHOD_REQUIRED":{"summary":"PAYMENT_METHOD_REQUIRED","value":{"message":"A payment method is required.","error":"PAYMENT_METHOD_REQUIRED","statusCode":400}},"TOTAL_MISMATCH":{"summary":"TOTAL_MISMATCH","value":{"message":"The total amount does not match.","error":"TOTAL_MISMATCH","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.\n- `PRICE_NOT_FOUND`: The requested price was not found.\n- `COUPON_NOT_FOUND`: The requested coupon was not found.\n- `PAYMENT_METHOD_NOT_FOUND`: The requested payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}},"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}},"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}},"PAYMENT_METHOD_NOT_FOUND":{"summary":"PAYMENT_METHOD_NOT_FOUND","value":{"message":"The requested payment method was not found.","error":"PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `SUBSCRIPTION_ALREADY_EXISTS`: A subscription already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_ALREADY_EXISTS":{"summary":"SUBSCRIPTION_ALREADY_EXISTS","value":{"message":"A subscription already exists.","error":"SUBSCRIPTION_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Subscription","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/billing/subscriptions/active":{"get":{"description":"Returns the salon's latest subscription, whatever its status, with its plan, price and discount.","operationId":"BillingSubscriptionsController_getActive","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The latest subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SUBSCRIPTION_NOT_FOUND`: The requested subscription was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"summary":"SUBSCRIPTION_NOT_FOUND","value":{"message":"The requested subscription was not found.","error":"SUBSCRIPTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get the Current Subscription","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/billing/subscriptions/active/entitlements":{"get":{"description":"Returns what the salon's latest subscription includes: the plan's limits (e.g. `limits.maxMembers`) and features (e.g. `features.customDomain`).","operationId":"BillingSubscriptionsController_getActiveEntitlements","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Entitlements by key","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"example":{"limits.maxMembers":10,"limits.maxLocations":3,"limits.creditsPerMonth":500,"features.customDomain":true,"features.conversations":true,"features.apiAccess":true}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SUBSCRIPTION_NOT_FOUND`: The requested subscription was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"summary":"SUBSCRIPTION_NOT_FOUND","value":{"message":"The requested subscription was not found.","error":"SUBSCRIPTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get the Current Entitlements","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/billing/subscriptions/preview":{"get":{"description":"Returns what subscribing to a price will cost, with the coupon and the salon's balance applied. On the salon's first subscription the plan's free trial comes first, and the items show the first period billed after it. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_previewCreate","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"priceId","required":true,"in":"query","description":"ID of the price to quote","schema":{"example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb","type":"string"}},{"name":"couponCode","required":false,"in":"query","description":"Coupon code, not case-sensitive","schema":{"example":"SPRING20","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionPreviewDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PRICE_PLAN_NOT_FOUND`: The requested price plan was not found.\n- `COUPON_NOT_VALID`: This coupon is not valid.\n- `COUPON_ALREADY_USED`: This coupon has already been used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PRICE_PLAN_NOT_FOUND":{"summary":"PRICE_PLAN_NOT_FOUND","value":{"message":"The requested price plan was not found.","error":"PRICE_PLAN_NOT_FOUND","statusCode":400}},"COUPON_NOT_VALID":{"summary":"COUPON_NOT_VALID","value":{"message":"This coupon is not valid.","error":"COUPON_NOT_VALID","statusCode":400}},"COUPON_ALREADY_USED":{"summary":"COUPON_ALREADY_USED","value":{"message":"This coupon has already been used.","error":"COUPON_ALREADY_USED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BILLING_PROFILE_NOT_FOUND`: The requested billing profile was not found.\n- `PRICE_NOT_FOUND`: The requested price was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_NOT_FOUND":{"summary":"BILLING_PROFILE_NOT_FOUND","value":{"message":"The requested billing profile was not found.","error":"BILLING_PROFILE_NOT_FOUND","statusCode":404}},"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Preview a Subscription","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/billing/subscriptions/{subscriptionId}":{"get":{"description":"Returns one of the salon's subscriptions. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"subscriptionId","required":true,"in":"path","description":"Subscription ID","schema":{"example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SUBSCRIPTION_NOT_FOUND`: The requested subscription was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"summary":"SUBSCRIPTION_NOT_FOUND","value":{"message":"The requested subscription was not found.","error":"SUBSCRIPTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Subscription","tags":["Salons / Billing / Subscriptions"]},"patch":{"description":"Applies or removes a coupon, or sets the subscription to end at the end of the current period (or to keep renewing). Only for a trialing, active or past-due subscription. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"subscriptionId","required":true,"in":"path","description":"Subscription ID","schema":{"example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionDto"}}}},"responses":{"200":{"description":"The updated subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_COUPON`: Invalid coupon.\n- `COUPON_EXPIRED`: This coupon has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_COUPON":{"summary":"INVALID_COUPON","value":{"message":"Invalid coupon.","error":"INVALID_COUPON","statusCode":400}},"COUPON_EXPIRED":{"summary":"COUPON_EXPIRED","value":{"message":"This coupon has expired.","error":"COUPON_EXPIRED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SUBSCRIPTION_NOT_FOUND`: The requested subscription was not found.\n- `COUPON_NOT_FOUND`: The requested coupon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"summary":"SUBSCRIPTION_NOT_FOUND","value":{"message":"The requested subscription was not found.","error":"SUBSCRIPTION_NOT_FOUND","statusCode":404}},"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Subscription","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/billing/subscriptions/{subscriptionId}/price/preview":{"get":{"description":"Returns what switching the subscription to another price will cost. The change starts a new billing period at `prorateAt` and bills the new price in full, minus the unused time of the current one; a negative total is added to the balance. During the free trial nothing is credited back, and the change ends the trial. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_previewPriceUpdate","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"subscriptionId","required":true,"in":"path","description":"Subscription ID","schema":{"example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe","type":"string"}},{"name":"priceId","required":true,"in":"query","description":"ID of the new price","schema":{"example":"bprice_01h7r4m6p3qf9tvw2n5bxcd8ec","type":"string"}},{"name":"couponCode","required":false,"in":"query","description":"Coupon code, not case-sensitive","schema":{"example":"SPRING20","type":"string"}},{"name":"prorateAt","required":false,"in":"query","description":"When the change takes effect, ISO 8601, within the last 24 hours; defaults to now. Send the same value to Change a Subscription's Price","schema":{"example":"2026-03-15T12:00:00.000Z","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionPreviewDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `SAME_PRICE_ID`: The price is already set to this value.\n- `INVALID_PRORATE_DATE`: The prorate date is invalid.\n- `PRICE_PLAN_NOT_FOUND`: The requested price plan was not found.\n- `COUPON_NOT_VALID`: This coupon is not valid.\n- `COUPON_EXPIRED`: This coupon has expired.\n- `COUPON_ALREADY_USED`: This coupon has already been used.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"SAME_PRICE_ID":{"summary":"SAME_PRICE_ID","value":{"message":"The price is already set to this value.","error":"SAME_PRICE_ID","statusCode":400}},"INVALID_PRORATE_DATE":{"summary":"INVALID_PRORATE_DATE","value":{"message":"The prorate date is invalid.","error":"INVALID_PRORATE_DATE","statusCode":400}},"PRICE_PLAN_NOT_FOUND":{"summary":"PRICE_PLAN_NOT_FOUND","value":{"message":"The requested price plan was not found.","error":"PRICE_PLAN_NOT_FOUND","statusCode":400}},"COUPON_NOT_VALID":{"summary":"COUPON_NOT_VALID","value":{"message":"This coupon is not valid.","error":"COUPON_NOT_VALID","statusCode":400}},"COUPON_EXPIRED":{"summary":"COUPON_EXPIRED","value":{"message":"This coupon has expired.","error":"COUPON_EXPIRED","statusCode":400}},"COUPON_ALREADY_USED":{"summary":"COUPON_ALREADY_USED","value":{"message":"This coupon has already been used.","error":"COUPON_ALREADY_USED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SUBSCRIPTION_NOT_FOUND`: The requested subscription was not found.\n- `PRICE_NOT_FOUND`: The requested price was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"summary":"SUBSCRIPTION_NOT_FOUND","value":{"message":"The requested subscription was not found.","error":"SUBSCRIPTION_NOT_FOUND","statusCode":404}},"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Preview a Price Change","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/billing/subscriptions/{subscriptionId}/price":{"patch":{"description":"Switches the subscription to another price, e.g. another plan or billing interval, as quoted by Preview a Price Change. A downgrade adds the difference to the balance; an upgrade charges it right away, and `nextAction` says how to finish the payment when the bank asks for confirmation. Needs the Manage Billing permission.","operationId":"BillingSubscriptionsController_updatePrice","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"subscriptionId","required":true,"in":"path","description":"Subscription ID","schema":{"example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePriceSubscriptionDto"}}}},"responses":{"200":{"description":"The subscription's ID and what is left to finish the payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionPriceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_PRORATE_DATE`: The prorate date is invalid.\n- `PRICE_PLAN_NOT_FOUND`: The requested price plan was not found.\n- `INVALID_COUPON`: Invalid coupon.\n- `COUPON_EXPIRED`: This coupon has expired.\n- `TOTAL_MISMATCH`: The total amount does not match.\n- `PAYMENT_METHOD_REQUIRED`: A payment method is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_PRORATE_DATE":{"summary":"INVALID_PRORATE_DATE","value":{"message":"The prorate date is invalid.","error":"INVALID_PRORATE_DATE","statusCode":400}},"PRICE_PLAN_NOT_FOUND":{"summary":"PRICE_PLAN_NOT_FOUND","value":{"message":"The requested price plan was not found.","error":"PRICE_PLAN_NOT_FOUND","statusCode":400}},"INVALID_COUPON":{"summary":"INVALID_COUPON","value":{"message":"Invalid coupon.","error":"INVALID_COUPON","statusCode":400}},"COUPON_EXPIRED":{"summary":"COUPON_EXPIRED","value":{"message":"This coupon has expired.","error":"COUPON_EXPIRED","statusCode":400}},"TOTAL_MISMATCH":{"summary":"TOTAL_MISMATCH","value":{"message":"The total amount does not match.","error":"TOTAL_MISMATCH","statusCode":400}},"PAYMENT_METHOD_REQUIRED":{"summary":"PAYMENT_METHOD_REQUIRED","value":{"message":"A payment method is required.","error":"PAYMENT_METHOD_REQUIRED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SUBSCRIPTION_NOT_FOUND`: The requested subscription was not found.\n- `PRICE_NOT_FOUND`: The requested price was not found.\n- `COUPON_NOT_FOUND`: The requested coupon was not found.\n- `PAYMENT_METHOD_NOT_FOUND`: The requested payment method was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SUBSCRIPTION_NOT_FOUND":{"summary":"SUBSCRIPTION_NOT_FOUND","value":{"message":"The requested subscription was not found.","error":"SUBSCRIPTION_NOT_FOUND","statusCode":404}},"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}},"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}},"PAYMENT_METHOD_NOT_FOUND":{"summary":"PAYMENT_METHOD_NOT_FOUND","value":{"message":"The requested payment method was not found.","error":"PAYMENT_METHOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Change a Subscription's Price","tags":["Salons / Billing / Subscriptions"]}},"/v1/salons/{salonId}/integrations":{"get":{"description":"Returns the integrations the salon can connect, each with the salon's connections to it. One that isn't offered anymore only shows up while the salon still has a connection to it. Needs the Manage Integrations permission.","operationId":"IntegrationsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The integrations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationDto"}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Integrations","tags":["Salons / Integrations"]}},"/v1/salons/{salonId}/integrations/{integrationId}":{"get":{"description":"Returns one salon integration with the salon's connections to it. Needs the Manage Integrations permission.","operationId":"IntegrationsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The integration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INTEGRATION_NOT_FOUND`: The requested integration was not found.\n- `INTEGRATION_SCOPE_MISMATCH`: The integration scope does not match.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_FOUND":{"summary":"INTEGRATION_NOT_FOUND","value":{"message":"The requested integration was not found.","error":"INTEGRATION_NOT_FOUND","statusCode":404}},"INTEGRATION_SCOPE_MISMATCH":{"summary":"INTEGRATION_SCOPE_MISMATCH","value":{"message":"The integration scope does not match.","error":"INTEGRATION_SCOPE_MISMATCH","statusCode":404}}}}}}},"summary":"Get an Integration","tags":["Salons / Integrations"]},"delete":{"description":"Deletes all of the salon's connections to the integration, after telling the provider where it supports that. Needs the Manage Integrations permission.","operationId":"IntegrationsController_disconnect","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The integration was disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectIntegrationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONNECTIONS_NOT_FOUND`: No connections were found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONNECTIONS_NOT_FOUND":{"summary":"CONNECTIONS_NOT_FOUND","value":{"message":"No connections were found.","error":"CONNECTIONS_NOT_FOUND","statusCode":404}}}}}}},"summary":"Disconnect an Integration","tags":["Salons / Integrations"]}},"/v1/salons/{salonId}/integrations/{integrationId}/connections":{"get":{"description":"Returns a page of the connections of the salon to the integration, newest first. Credentials are never returned. Needs the Manage Integrations permission.","operationId":"IntegrationConnectionsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these connections, comma-separated","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Connections per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of connections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Connections","tags":["Salons / Integrations / Connections"]},"post":{"description":"Connects the salon to the integration with the fields it needs, e.g. `measurementId` for Google Analytics. Integrations that sign in at the provider answer with `redirectTo` instead: open it, and the connection is created when it redirects back. Most integrations allow only one connection; messaging ones need conversations in the salon's plan. Needs the Manage Integrations permission.","operationId":"IntegrationConnectionsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":false,"description":"The fields the integration needs; they differ per integration","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"example":{"measurementId":"G-4XK2M9QZ7B"}}}}},"responses":{"201":{"description":"The new connection, or `redirectTo` when the provider needs a sign-in first","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ConnectionDto"},{"$ref":"#/components/schemas/ConnectionRedirectDto"}]}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `INTEGRATION_NOT_FOUND`: The requested integration was not found.\n- `INTEGRATION_SCOPE_MISMATCH`: The integration scope does not match.\n- `HANDLER_NOT_FOUND`: The requested handler was not found.\n- `HANDLER_RESPONSE_NOT_FOUND`: The handler response was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_FOUND":{"summary":"INTEGRATION_NOT_FOUND","value":{"message":"The requested integration was not found.","error":"INTEGRATION_NOT_FOUND","statusCode":404}},"INTEGRATION_SCOPE_MISMATCH":{"summary":"INTEGRATION_SCOPE_MISMATCH","value":{"message":"The integration scope does not match.","error":"INTEGRATION_SCOPE_MISMATCH","statusCode":404}},"HANDLER_NOT_FOUND":{"summary":"HANDLER_NOT_FOUND","value":{"message":"The requested handler was not found.","error":"HANDLER_NOT_FOUND","statusCode":404}},"HANDLER_RESPONSE_NOT_FOUND":{"summary":"HANDLER_RESPONSE_NOT_FOUND","value":{"message":"The handler response was not found.","error":"HANDLER_RESPONSE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `INTEGRATION_NOT_ACTIVE`: This integration is not active.\n- `INTEGRATION_NOT_AVAILABLE`: This integration is not available.\n- `CONNECTION_ALREADY_EXISTS`: This connection already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_ACTIVE":{"summary":"INTEGRATION_NOT_ACTIVE","value":{"message":"This integration is not active.","error":"INTEGRATION_NOT_ACTIVE","statusCode":409}},"INTEGRATION_NOT_AVAILABLE":{"summary":"INTEGRATION_NOT_AVAILABLE","value":{"message":"This integration is not available.","error":"INTEGRATION_NOT_AVAILABLE","statusCode":409}},"CONNECTION_ALREADY_EXISTS":{"summary":"CONNECTION_ALREADY_EXISTS","value":{"message":"This connection already exists.","error":"CONNECTION_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Connection","tags":["Salons / Integrations / Connections"]}},"/v1/salons/{salonId}/integrations/{integrationId}/connections/{connectionId}":{"get":{"description":"Returns one connection of the salon to the integration, without its credentials. Needs the Manage Integrations permission.","operationId":"IntegrationConnectionsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"connectionId","required":true,"in":"path","description":"Connection ID","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONNECTION_NOT_FOUND`: The requested connection was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONNECTION_NOT_FOUND":{"summary":"CONNECTION_NOT_FOUND","value":{"message":"The requested connection was not found.","error":"CONNECTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Connection","tags":["Salons / Integrations / Connections"]},"patch":{"description":"Changes the settings of a connection, e.g. which device or account at the provider it uses. The fields differ per integration, and not every integration has settings. Needs the Manage Integrations permission.","operationId":"IntegrationConnectionsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"connectionId","required":true,"in":"path","description":"Connection ID","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":false,"description":"The settings to change; they differ per integration","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"example":{"deviceId":"dev_8f3a2c"}}}}},"responses":{"200":{"description":"The updated connection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INTEGRATION_NOT_FOUND`: The requested integration was not found.\n- `INTEGRATION_SCOPE_MISMATCH`: The integration scope does not match.\n- `CONNECTION_NOT_FOUND`: The requested connection was not found.\n- `HANDLER_NOT_FOUND`: The requested handler was not found.\n- `HANDLER_RESPONSE_NOT_FOUND`: The handler response was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_NOT_FOUND":{"summary":"INTEGRATION_NOT_FOUND","value":{"message":"The requested integration was not found.","error":"INTEGRATION_NOT_FOUND","statusCode":404}},"INTEGRATION_SCOPE_MISMATCH":{"summary":"INTEGRATION_SCOPE_MISMATCH","value":{"message":"The integration scope does not match.","error":"INTEGRATION_SCOPE_MISMATCH","statusCode":404}},"CONNECTION_NOT_FOUND":{"summary":"CONNECTION_NOT_FOUND","value":{"message":"The requested connection was not found.","error":"CONNECTION_NOT_FOUND","statusCode":404}},"HANDLER_NOT_FOUND":{"summary":"HANDLER_NOT_FOUND","value":{"message":"The requested handler was not found.","error":"HANDLER_NOT_FOUND","statusCode":404}},"HANDLER_RESPONSE_NOT_FOUND":{"summary":"HANDLER_RESPONSE_NOT_FOUND","value":{"message":"The handler response was not found.","error":"HANDLER_RESPONSE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Connection","tags":["Salons / Integrations / Connections"]},"delete":{"description":"Deletes a connection, after telling the provider where it supports that. Needs the Manage Integrations permission.","operationId":"IntegrationConnectionsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"integrationId","required":true,"in":"path","description":"Integration ID, e.g. `google-analytics`, `stripe`, `whatsapp`","schema":{"example":"google-analytics","type":"string"}},{"name":"connectionId","required":true,"in":"path","description":"Connection ID","schema":{"example":"conn_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The connection was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteConnectionResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONNECTION_NOT_FOUND`: The requested connection was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONNECTION_NOT_FOUND":{"summary":"CONNECTION_NOT_FOUND","value":{"message":"The requested connection was not found.","error":"CONNECTION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Connection","tags":["Salons / Integrations / Connections"]}},"/v1/salons/{salonId}/finances/payments":{"get":{"description":"Returns a page of the payments toward the salon's invoices, newest first by default. Needs the Manage Invoices permission; with Manage Own Invoices, only payments of your own invoices.","operationId":"FinancePaymentsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these payments, comma-separated","schema":{"example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Payments per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the payment provider's reference ID","schema":{"example":"ch_XXXXXXXXXXXXXX","type":"string"}},{"name":"paymentMethodId","required":false,"in":"query","description":"Only payments with this payment method: `native` (Softalon Payments), `offline`, or a payment integration such as `stripe`","schema":{"example":"offline","type":"string"}},{"name":"invoiceId","required":false,"in":"query","description":"Only payments toward this invoice","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only payments with these statuses, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["pending","completed","failed","refunded","partially_refunded"]}}},{"name":"createdAt","required":false,"in":"query","description":"Only payments created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`; either end can be left out","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `amount`, `status`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `invoice`, `refunds`","schema":{"type":"array","items":{"type":"string","enum":["invoice","refunds"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of payments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Payments","tags":["Salons / Finances / Payments"]},"post":{"description":"Adds a payment to an invoice, also before it's finalized (e.g. a deposit). `offline` records money taken at the salon as `completed` and marks the invoice paid once covered; other methods create a `pending` payment with a checkout `url` for the client. Needs the Manage Invoices permission, or Manage Own Invoices for your own invoices.","operationId":"FinancePaymentsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentDto"}}}},"responses":{"201":{"description":"The new payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PAYMENT_METHOD_NOT_SUPPORTED`: This payment method is not supported.\n- `PRIMARY_DOMAIN_NOT_FOUND`: The primary domain was not found.\n- `PAYMENT_ACCOUNT_INACTIVE`: Softalon Payments is not active for this salon.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PAYMENT_METHOD_NOT_SUPPORTED":{"summary":"PAYMENT_METHOD_NOT_SUPPORTED","value":{"message":"This payment method is not supported.","error":"PAYMENT_METHOD_NOT_SUPPORTED","statusCode":400}},"PRIMARY_DOMAIN_NOT_FOUND":{"summary":"PRIMARY_DOMAIN_NOT_FOUND","value":{"message":"The primary domain was not found.","error":"PRIMARY_DOMAIN_NOT_FOUND","statusCode":400}},"PAYMENT_ACCOUNT_INACTIVE":{"summary":"PAYMENT_ACCOUNT_INACTIVE","value":{"message":"Softalon Payments is not active for this salon.","error":"PAYMENT_ACCOUNT_INACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Payment","tags":["Salons / Finances / Payments"]}},"/v1/salons/{salonId}/finances/payments/account":{"get":{"description":"Returns the salon's Softalon Payments account and its balance. The account is created on first use. Needs the Manage Settings or Manage Invoices permission.","operationId":"FinancePaymentsController_getAccount","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The payment account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentAccountSummaryDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get the Payment Account","tags":["Salons / Finances / Payments"]}},"/v1/salons/{salonId}/finances/payments/manage":{"post":{"description":"Returns a short-lived link to the payment provider's page where the salon verifies its business and sets up payouts. Needs the Manage Settings or Manage Invoices permission.","operationId":"FinancePaymentsController_createManage","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentAccountManageLinkDto"}}}},"400":{"description":"- `PAYMENT_ACCOUNT_INACTIVE`: Softalon Payments is not active for this salon.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_ACCOUNT_INACTIVE":{"summary":"PAYMENT_ACCOUNT_INACTIVE","value":{"message":"Softalon Payments is not active for this salon.","error":"PAYMENT_ACCOUNT_INACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Create a Payment Account Link","tags":["Salons / Finances / Payments"]}},"/v1/salons/{salonId}/finances/payments/elements":{"post":{"description":"Returns a short-lived token for embedding the payment provider's balance, payout and withdrawal widgets. Needs the Manage Settings or Manage Invoices permission.","operationId":"FinancePaymentsController_createElements","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateElementsPaymentDto"}}}},"responses":{"201":{"description":"The session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentAccountElementsSessionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PAYMENT_ACCOUNT_INACTIVE`: Softalon Payments is not active for this salon.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PAYMENT_ACCOUNT_INACTIVE":{"summary":"PAYMENT_ACCOUNT_INACTIVE","value":{"message":"Softalon Payments is not active for this salon.","error":"PAYMENT_ACCOUNT_INACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Create a Payment Account Session","tags":["Salons / Finances / Payments"]}},"/v1/salons/{salonId}/finances/payments/{paymentId}":{"get":{"description":"Returns a payment. Works without authentication, e.g. for the payment status page a client sees after paying.","operationId":"FinancePaymentsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentId","required":true,"in":"path","description":"Payment ID","schema":{"example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `invoice`, `refunds`","schema":{"type":"array","items":{"type":"string","enum":["invoice","refunds"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The payment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `PAYMENT_NOT_FOUND`: The requested payment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_NOT_FOUND":{"summary":"PAYMENT_NOT_FOUND","value":{"message":"The requested payment was not found.","error":"PAYMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Payment","tags":["Salons / Finances / Payments"]}},"/v1/salons/{salonId}/finances/payments/{paymentId}/refunds":{"get":{"description":"Returns a page of a payment's refunds, newest first by default. Needs the Manage Invoices permission, or Manage Own Invoices for your own invoices.","operationId":"FinanceRefundsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentId","required":true,"in":"path","description":"Payment ID","schema":{"example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these refunds, comma-separated","schema":{"example":"rfd_01h9k5c8pqz3ktv6r2n7ycxd1f","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Refunds per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the payment's reference ID at the payment provider","schema":{"example":"ch_XXXXXXXXXXXXXX","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `amount`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of refunds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Refunds","tags":["Salons / Finances / Payments / Refunds"]},"post":{"description":"Gives money back to the client from a payment, in full or in part, through the payment's provider; offline payments are just recorded. The payment becomes `refunded` or `partially_refunded`. Needs the Manage Invoices permission, or Manage Own Invoices for your own invoices.","operationId":"FinanceRefundsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentId","required":true,"in":"path","description":"Payment ID","schema":{"example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRefundDto"}}}},"responses":{"201":{"description":"The new refund","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `REFUND_AMOUNT_EXCEEDS_PAYMENT`: The refund amount exceeds the payment amount.\n- `PAYMENT_ACCOUNT_INACTIVE`: Softalon Payments is not active for this salon.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"REFUND_AMOUNT_EXCEEDS_PAYMENT":{"summary":"REFUND_AMOUNT_EXCEEDS_PAYMENT","value":{"message":"The refund amount exceeds the payment amount.","error":"REFUND_AMOUNT_EXCEEDS_PAYMENT","statusCode":400}},"PAYMENT_ACCOUNT_INACTIVE":{"summary":"PAYMENT_ACCOUNT_INACTIVE","value":{"message":"Softalon Payments is not active for this salon.","error":"PAYMENT_ACCOUNT_INACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PAYMENT_NOT_FOUND`: The requested payment was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYMENT_NOT_FOUND":{"summary":"PAYMENT_NOT_FOUND","value":{"message":"The requested payment was not found.","error":"PAYMENT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Refund","tags":["Salons / Finances / Payments / Refunds"]}},"/v1/salons/{salonId}/finances/payments/{paymentId}/refunds/{refundId}":{"get":{"description":"Returns a refund of a payment. Needs the Manage Invoices permission, or Manage Own Invoices for your own invoices.","operationId":"FinanceRefundsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"paymentId","required":true,"in":"path","description":"Payment ID","schema":{"example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e","type":"string"}},{"name":"refundId","required":true,"in":"path","description":"Refund ID","schema":{"example":"rfd_01h9k5c8pqz3ktv6r2n7ycxd1f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The refund","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `REFUND_NOT_FOUND`: The requested refund was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REFUND_NOT_FOUND":{"summary":"REFUND_NOT_FOUND","value":{"message":"The requested refund was not found.","error":"REFUND_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Refund","tags":["Salons / Finances / Payments / Refunds"]}},"/v1/salons/{salonId}/finances/coupons":{"get":{"description":"Returns a page of the coupons the salon offers its clients, newest first by default.","operationId":"FinanceCouponsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these coupons, comma-separated","schema":{"example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Coupons per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name or the code","schema":{"example":"summer","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only coupons of this type","schema":{"enum":["percentage","fixed"],"type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only coupons created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`; either end can be left out","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`, `value`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of coupons","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Coupons","tags":["Salons / Finances / Coupons"]},"post":{"description":"Creates an active coupon that can be applied to invoices. Needs the Manage Coupons permission.","operationId":"FinanceCouponsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCouponDto"}}}},"responses":{"201":{"description":"The new coupon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_PERCENTAGE_VALUE`: The percentage value is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_PERCENTAGE_VALUE":{"summary":"INVALID_PERCENTAGE_VALUE","value":{"message":"The percentage value is invalid.","error":"INVALID_PERCENTAGE_VALUE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"409":{"description":"- `COUPON_ALREADY_EXISTS`: A coupon with this name already exists.\n- `COUPON_CODE_ALREADY_EXISTS`: A coupon with this code already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COUPON_ALREADY_EXISTS":{"summary":"COUPON_ALREADY_EXISTS","value":{"message":"A coupon with this name already exists.","error":"COUPON_ALREADY_EXISTS","statusCode":409}},"COUPON_CODE_ALREADY_EXISTS":{"summary":"COUPON_CODE_ALREADY_EXISTS","value":{"message":"A coupon with this code already exists.","error":"COUPON_CODE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Coupon","tags":["Salons / Finances / Coupons"]}},"/v1/salons/{salonId}/finances/coupons/{couponId}":{"get":{"description":"Returns a coupon.","operationId":"FinanceCouponsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"couponId","required":true,"in":"path","description":"Coupon ID","schema":{"example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The coupon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `COUPON_NOT_FOUND`: The requested coupon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Coupon","tags":["Salons / Finances / Coupons"]},"patch":{"description":"Renames a coupon or turns it on or off. Its code, type and value can't be changed. Needs the Manage Coupons permission.","operationId":"FinanceCouponsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"couponId","required":true,"in":"path","description":"Coupon ID","schema":{"example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCouponDto"}}}},"responses":{"200":{"description":"The coupon was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCouponResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `COUPON_NOT_FOUND`: The requested coupon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `COUPON_ALREADY_EXISTS`: A coupon with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COUPON_ALREADY_EXISTS":{"summary":"COUPON_ALREADY_EXISTS","value":{"message":"A coupon with this name already exists.","error":"COUPON_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Update a Coupon","tags":["Salons / Finances / Coupons"]},"delete":{"description":"Deletes a coupon. Finalized invoices keep their discount. Needs the Manage Coupons permission.","operationId":"FinanceCouponsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"couponId","required":true,"in":"path","description":"Coupon ID","schema":{"example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The coupon was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCouponResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `COUPON_NOT_FOUND`: The requested coupon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Coupon","tags":["Salons / Finances / Coupons"]}},"/v1/salons/{salonId}/finances/tax-rates":{"get":{"description":"Returns a page of the salon's tax rates, newest first by default, each with how many services and products use it.","operationId":"FinanceTaxRatesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these tax rates, comma-separated","schema":{"example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Tax rates per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"sales","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only tax rates of this type","schema":{"enum":["inclusive","exclusive"],"type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only tax rates created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`; either end can be left out","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`, `rate`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of tax rates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxRateListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Tax Rates","tags":["Salons / Finances / Tax Rates"]},"post":{"description":"Creates a tax rate. Set it on services, products or invoice lines to apply it. Needs the Manage Tax Rates permission.","operationId":"FinanceTaxRatesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxRateDto"}}}},"responses":{"201":{"description":"The new tax rate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxRateDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}}},"summary":"Create a Tax Rate","tags":["Salons / Finances / Tax Rates"]}},"/v1/salons/{salonId}/finances/tax-rates/{taxRateId}":{"get":{"description":"Returns a tax rate with how many services and products use it.","operationId":"FinanceTaxRatesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"taxRateId","required":true,"in":"path","description":"Tax rate ID","schema":{"example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The tax rate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxRateDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Tax Rate","tags":["Salons / Finances / Tax Rates"]},"patch":{"description":"Renames a tax rate; its type and rate can't be changed. Needs the Manage Tax Rates permission.","operationId":"FinanceTaxRatesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"taxRateId","required":true,"in":"path","description":"Tax rate ID","schema":{"example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxRateDto"}}}},"responses":{"200":{"description":"The tax rate was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxRateResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Tax Rate","tags":["Salons / Finances / Tax Rates"]}},"/v1/salons/{salonId}/finances/tax-rates/{taxRateId}/assign":{"post":{"description":"Sets the tax rate on every service or every product of the salon, replacing the tax rates they had. Needs the Manage Tax Rates permission.","operationId":"FinanceTaxRatesController_assign","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"taxRateId","required":true,"in":"path","description":"Tax rate ID","schema":{"example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignTaxRateDto"}}}},"responses":{"201":{"description":"The tax rate was assigned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignTaxRateResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Assign a Tax Rate","tags":["Salons / Finances / Tax Rates"]}},"/v1/salons/{salonId}/finances/tax-rates/{taxRateId}/unassign":{"post":{"description":"Removes the tax rate from every service or every product that uses it; they're left without a tax rate. Needs the Manage Tax Rates permission.","operationId":"FinanceTaxRatesController_unassign","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"taxRateId","required":true,"in":"path","description":"Tax rate ID","schema":{"example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnassignTaxRateDto"}}}},"responses":{"201":{"description":"The tax rate was unassigned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignTaxRateResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Unassign a Tax Rate","tags":["Salons / Finances / Tax Rates"]}},"/v1/salons/{salonId}/apps":{"get":{"description":"Returns a page of the OAuth2 apps of the salon, newest first. Needs the Manage Integrations permission.","operationId":"AppsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these apps, comma-separated","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Apps per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"front desk","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of apps","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Apps","tags":["Salons / Apps (OAuth2)"]},"post":{"description":"Creates an OAuth2 app that can sign in on behalf of the salon and returns its client secret, which is shown only once. The salon's plan must include API access. Needs the Manage Integrations permission.","operationId":"AppsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppDto"}}}},"responses":{"201":{"description":"The new app and its credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAppResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}}},"summary":"Create an App","tags":["Salons / Apps (OAuth2)"]}},"/v1/salons/{salonId}/apps/{appId}":{"get":{"description":"Returns one OAuth2 app of the salon. Needs the Manage Integrations permission.","operationId":"AppsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appId","required":true,"in":"path","description":"App ID","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `APP_NOT_FOUND`: The requested app was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APP_NOT_FOUND":{"summary":"APP_NOT_FOUND","value":{"message":"The requested app was not found.","error":"APP_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an App","tags":["Salons / Apps (OAuth2)"]},"patch":{"description":"Changes the name, scopes or redirect URIs of an app. The client secret stays the same. The salon's plan must include API access. Needs the Manage Integrations permission.","operationId":"AppsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appId","required":true,"in":"path","description":"App ID","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppDto"}}}},"responses":{"200":{"description":"The app was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAppResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `APP_NOT_FOUND`: The requested app was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APP_NOT_FOUND":{"summary":"APP_NOT_FOUND","value":{"message":"The requested app was not found.","error":"APP_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update an App","tags":["Salons / Apps (OAuth2)"]},"delete":{"description":"Deletes an app and its OAuth2 client, so it can no longer sign in. Needs the Manage Integrations permission.","operationId":"AppsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"appId","required":true,"in":"path","description":"App ID","schema":{"example":"app_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The app was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAppResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `APP_NOT_FOUND`: The requested app was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APP_NOT_FOUND":{"summary":"APP_NOT_FOUND","value":{"message":"The requested app was not found.","error":"APP_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete an App","tags":["Salons / Apps (OAuth2)"]}},"/v1/salons/{salonId}/webhook-endpoints":{"get":{"description":"Returns a page of the salon's webhook endpoints, newest first by default, with masked secrets.","operationId":"WebhookEndpointsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these webhook endpoints, comma-separated","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Webhook endpoints per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the URL or description","schema":{"example":"crm","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","url","description","isActive"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of webhook endpoints","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Webhook Endpoints","tags":["Salons / Webhook Endpoints"]},"post":{"description":"Registers a URL that receives the salon's events on the given topics, signed with a newly generated secret. The response is the only one that includes the secret unmasked. Needs the webhooks feature of the plan.","operationId":"WebhookEndpointsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookEndpointDto"}}}},"responses":{"201":{"description":"The created webhook endpoint, with its secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}}},"summary":"Create a Webhook Endpoint","tags":["Salons / Webhook Endpoints"]}},"/v1/salons/{salonId}/webhook-endpoints/{webhookEndpointId}":{"get":{"description":"Returns a webhook endpoint with its secret masked; get the secret itself with Get a Webhook Endpoint Secret.","operationId":"WebhookEndpointsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The webhook endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_ENDPOINT_NOT_FOUND`: The webhook endpoint was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_ENDPOINT_NOT_FOUND":{"summary":"WEBHOOK_ENDPOINT_NOT_FOUND","value":{"message":"The webhook endpoint was not found.","error":"WEBHOOK_ENDPOINT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Webhook Endpoint","tags":["Salons / Webhook Endpoints"]},"patch":{"description":"Updates a webhook endpoint's URL, description or topics, or turns it on or off with `isActive`; only the fields sent change. Needs the webhooks feature of the plan.","operationId":"WebhookEndpointsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookEndpointDto"}}}},"responses":{"200":{"description":"ID of the updated webhook endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookEndpointResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_ENDPOINT_NOT_FOUND`: The webhook endpoint was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_ENDPOINT_NOT_FOUND":{"summary":"WEBHOOK_ENDPOINT_NOT_FOUND","value":{"message":"The webhook endpoint was not found.","error":"WEBHOOK_ENDPOINT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Webhook Endpoint","tags":["Salons / Webhook Endpoints"]},"delete":{"description":"Deletes a webhook endpoint and its delivery history; no more events are sent to it.","operationId":"WebhookEndpointsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"ID of the deleted webhook endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWebhookEndpointResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_ENDPOINT_NOT_FOUND`: The webhook endpoint was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_ENDPOINT_NOT_FOUND":{"summary":"WEBHOOK_ENDPOINT_NOT_FOUND","value":{"message":"The webhook endpoint was not found.","error":"WEBHOOK_ENDPOINT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Webhook Endpoint","tags":["Salons / Webhook Endpoints"]}},"/v1/salons/{salonId}/webhook-endpoints/{webhookEndpointId}/secret":{"get":{"description":"Returns the unmasked secret used to sign the endpoint's deliveries (`X-Webhook-Signature`, HMAC-SHA256 of the JSON body).","operationId":"WebhookEndpointsController_getSecretById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointSecretDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_ENDPOINT_NOT_FOUND`: The webhook endpoint was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_ENDPOINT_NOT_FOUND":{"summary":"WEBHOOK_ENDPOINT_NOT_FOUND","value":{"message":"The webhook endpoint was not found.","error":"WEBHOOK_ENDPOINT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Webhook Endpoint Secret","tags":["Salons / Webhook Endpoints"]},"delete":{"description":"Replaces the endpoint's secret with a new one; deliveries are signed with it from now on and the old secret stops working right away.","operationId":"WebhookEndpointsController_regenerateSecret","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The new secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointSecretDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_ENDPOINT_NOT_FOUND`: The webhook endpoint was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_ENDPOINT_NOT_FOUND":{"summary":"WEBHOOK_ENDPOINT_NOT_FOUND","value":{"message":"The webhook endpoint was not found.","error":"WEBHOOK_ENDPOINT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Regenerate a Webhook Endpoint Secret","tags":["Salons / Webhook Endpoints"]}},"/v1/salons/{salonId}/webhook-endpoints/{webhookEndpointId}/deliveries":{"get":{"description":"Returns a page of the events sent to a webhook endpoint, newest first by default, with their payload, status and attempts.","operationId":"WebhookDeliveriesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only deliveries with these statuses, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["pending","delivered","failed","exhausted"]}}},{"name":"topic","required":false,"in":"query","description":"Only deliveries of this event topic","schema":{"example":"booking/appointment.created","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Deliveries per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","topic","status","statusCode","attempts","nextRetryAt","deliveredAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of webhook deliveries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_ENDPOINT_NOT_FOUND`: The webhook endpoint was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_ENDPOINT_NOT_FOUND":{"summary":"WEBHOOK_ENDPOINT_NOT_FOUND","value":{"message":"The webhook endpoint was not found.","error":"WEBHOOK_ENDPOINT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get All Webhook Deliveries","tags":["Salons / Webhook Deliveries"]}},"/v1/salons/{salonId}/webhook-endpoints/{webhookEndpointId}/deliveries/{webhookDeliveryId}":{"get":{"description":"Returns an event sent to a webhook endpoint, with its payload, status, attempts and last error.","operationId":"WebhookDeliveriesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"webhookEndpointId","required":true,"in":"path","description":"Webhook endpoint ID","schema":{"example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp","type":"string"}},{"name":"webhookDeliveryId","required":true,"in":"path","description":"Webhook delivery ID","schema":{"example":"wd_01h9x4n2pqk7w3rtv8m5bfc9ea","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The webhook delivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `WEBHOOK_DELIVERY_NOT_FOUND`: The webhook delivery was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WEBHOOK_DELIVERY_NOT_FOUND":{"summary":"WEBHOOK_DELIVERY_NOT_FOUND","value":{"message":"The webhook delivery was not found.","error":"WEBHOOK_DELIVERY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Webhook Delivery","tags":["Salons / Webhook Deliveries"]}},"/v1/salons/{salonId}/activities":{"get":{"description":"Returns a page of what happened in the salon (who created, changed or deleted what), newest first. Only activities within the plan's history limit are returned. Needs the Manage Activities permission.","operationId":"ActivitiesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these activities, comma-separated","schema":{"example":"act_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Activities per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the description","schema":{"example":"haircut","type":"string"}},{"name":"resource","required":false,"in":"query","description":"Only activities about this kind of resource","schema":{"example":"clients/client","type":"string"}},{"name":"resourceId","required":false,"in":"query","description":"Only activities about this resource","schema":{"example":"cli_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only activities recorded in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `occurredAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of activities","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Activities","tags":["Salons / Activities"]}},"/v1/salons/{salonId}/activities/{activityId}":{"get":{"description":"Returns one activity of the salon, if it is within the plan's history limit. Needs the Manage Activities permission.","operationId":"ActivitiesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"activityId","required":true,"in":"path","description":"Activity ID","schema":{"example":"act_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `ACTIVITY_NOT_FOUND`: The requested activity was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACTIVITY_NOT_FOUND":{"summary":"ACTIVITY_NOT_FOUND","value":{"message":"The requested activity was not found.","error":"ACTIVITY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Activity","tags":["Salons / Activities"]}},"/v1/salons/{salonId}/finances/invoices":{"get":{"description":"Returns a page of the salon's invoices, newest first by default. Needs the Manage Invoices permission; with Manage Own Invoices, only your own invoices. A signed-in client gets only their own finalized invoices; with `actionToken`, only the invoices of that link.","operationId":"FinanceInvoicesController_getAll","parameters":[{"name":"actionToken","required":false,"in":"query","description":"Token of an invoice or payment link, to see the invoice without signing in","schema":{"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY3Rpb24iOiJpbnZvaWNlIn0.c2lnbmF0dXJl","type":"string"}},{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these invoices, comma-separated","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Invoices per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the invoice number","schema":{"example":"2026-0042","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only invoices with this status","schema":{"enum":["draft","open","paid","overdue"],"type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only invoices of this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only invoices of this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"clientId","required":false,"in":"query","description":"Only invoices of this client","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only invoices created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`; either end can be left out","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `dueAt`, `invoiceNumber`, `total`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `items`, `payments`, `coupon`, `location`, `member`, `client`","schema":{"type":"array","items":{"type":"string","enum":["items","payments","coupon","location","member","client"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of invoices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}}}}}}},"summary":"Get All Invoices","tags":["Salons / Finances / Invoices"]},"post":{"description":"Creates a draft invoice and calculates its totals from the lines, the coupon and the tax rates. Amounts are decimals in the salon's currency. Needs the Manage Invoices or Manage Own Invoices permission and a plan with custom invoices.","operationId":"FinanceInvoicesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceDto"}}}},"responses":{"201":{"description":"The new invoice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `COUPON_NOT_ACTIVE`: This coupon is not active.\n- `INVALID_TAX_RATES`: The tax rates are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"COUPON_NOT_ACTIVE":{"summary":"COUPON_NOT_ACTIVE","value":{"message":"This coupon is not active.","error":"COUPON_NOT_ACTIVE","statusCode":400}},"INVALID_TAX_RATES":{"summary":"INVALID_TAX_RATES","value":{"message":"The tax rates are invalid.","error":"INVALID_TAX_RATES","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `MEMBER_NOT_FOUND`: The requested member was not found.\n- `CLIENT_NOT_FOUND`: The requested client was not found.\n- `COUPON_NOT_FOUND`: The requested coupon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}},"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"message":"The requested client was not found.","error":"CLIENT_NOT_FOUND","statusCode":404}},"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create an Invoice","tags":["Salons / Finances / Invoices"]}},"/v1/salons/{salonId}/finances/invoices/{invoiceId}":{"get":{"description":"Returns an invoice. Works without authentication for finalized invoices, e.g. for the invoice page a client opens from a link; members also see drafts.","operationId":"FinanceInvoicesController_getById","parameters":[{"name":"actionToken","required":false,"in":"query","description":"Token of an invoice or payment link, to see the invoice without signing in","schema":{"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY3Rpb24iOiJpbnZvaWNlIn0.c2lnbmF0dXJl","type":"string"}},{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `items`, `payments`, `coupon`, `location`, `member`, `client`","schema":{"type":"array","items":{"type":"string","enum":["items","payments","coupon","location","member","client"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invoice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Invoice","tags":["Salons / Finances / Invoices"]},"patch":{"description":"Changes a draft invoice and recalculates its totals. Send `isFinalized: true` to finalize it: it gets a number, a due date and a PDF and can't be changed anymore. Needs the Manage Invoices permission, or Manage Own Invoices for your own invoices.","operationId":"FinanceInvoicesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceDto"}}}},"responses":{"200":{"description":"The invoice was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVOICE_FINALIZED`: This invoice has been finalized.\n- `COUPON_NOT_ACTIVE`: This coupon is not active.\n- `INVALID_TAX_RATES`: The tax rates are invalid.\n- `ITEMS_REQUIRED`: At least one item is required.\n- `FAILED_TO_GENERATE_PREVIEW`: Failed to generate invoice preview.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVOICE_FINALIZED":{"summary":"INVOICE_FINALIZED","value":{"message":"This invoice has been finalized.","error":"INVOICE_FINALIZED","statusCode":400}},"COUPON_NOT_ACTIVE":{"summary":"COUPON_NOT_ACTIVE","value":{"message":"This coupon is not active.","error":"COUPON_NOT_ACTIVE","statusCode":400}},"INVALID_TAX_RATES":{"summary":"INVALID_TAX_RATES","value":{"message":"The tax rates are invalid.","error":"INVALID_TAX_RATES","statusCode":400}},"ITEMS_REQUIRED":{"summary":"ITEMS_REQUIRED","value":{"message":"At least one item is required.","error":"ITEMS_REQUIRED","statusCode":400}},"FAILED_TO_GENERATE_PREVIEW":{"summary":"FAILED_TO_GENERATE_PREVIEW","value":{"message":"Failed to generate invoice preview.","error":"FAILED_TO_GENERATE_PREVIEW","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.\n- `MEMBER_NOT_FOUND`: The requested member was not found.\n- `COUPON_NOT_FOUND`: The requested coupon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}},"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}},"COUPON_NOT_FOUND":{"summary":"COUPON_NOT_FOUND","value":{"message":"The requested coupon was not found.","error":"COUPON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update an Invoice","tags":["Salons / Finances / Invoices"]}},"/v1/salons/{salonId}/finances/invoices/{invoiceId}/pay":{"post":{"description":"Starts an online payment of a finalized invoice for the signed-in client, or with the `actionToken` of the invoice link. Returns a `pending` payment whose `url` is the checkout page; it completes once the client pays there.","operationId":"FinanceInvoicesController_pay","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayInvoiceDto"}}}},"responses":{"201":{"description":"The pending payment, with the checkout `url`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVOICE_NOT_FINALIZED`: This invoice has not been finalized.\n- `INVOICE_ALREADY_PAID`: This invoice has already been paid.\n- `PAYMENT_METHOD_NOT_SUPPORTED`: This payment method is not supported.\n- `OFFLINE_PAYMENTS_NOT_SUPPORTED`: Offline payments are not supported.\n- `PAYMENT_ACCOUNT_INACTIVE`: Softalon Payments is not active for this salon.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVOICE_NOT_FINALIZED":{"summary":"INVOICE_NOT_FINALIZED","value":{"message":"This invoice has not been finalized.","error":"INVOICE_NOT_FINALIZED","statusCode":400}},"INVOICE_ALREADY_PAID":{"summary":"INVOICE_ALREADY_PAID","value":{"message":"This invoice has already been paid.","error":"INVOICE_ALREADY_PAID","statusCode":400}},"PAYMENT_METHOD_NOT_SUPPORTED":{"summary":"PAYMENT_METHOD_NOT_SUPPORTED","value":{"message":"This payment method is not supported.","error":"PAYMENT_METHOD_NOT_SUPPORTED","statusCode":400}},"OFFLINE_PAYMENTS_NOT_SUPPORTED":{"summary":"OFFLINE_PAYMENTS_NOT_SUPPORTED","value":{"message":"Offline payments are not supported.","error":"OFFLINE_PAYMENTS_NOT_SUPPORTED","statusCode":400}},"PAYMENT_ACCOUNT_INACTIVE":{"summary":"PAYMENT_ACCOUNT_INACTIVE","value":{"message":"Softalon Payments is not active for this salon.","error":"PAYMENT_ACCOUNT_INACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Pay an Invoice","tags":["Salons / Finances / Invoices"]}},"/v1/salons/{salonId}/finances/invoices/{invoiceId}/items":{"get":{"description":"Returns all lines of an invoice. Members need the Manage Invoices permission, or Manage Own Invoices for their own invoices; a signed-in client can read their own invoices.","operationId":"FinanceInvoiceItemsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The lines of the invoice","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceItemDto"}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get All Invoice Items","tags":["Salons / Finances / Invoices / Items"]}},"/v1/salons/{salonId}/finances/invoices/{invoiceId}/items/{invoiceItemId}":{"get":{"description":"Returns a line of an invoice.","operationId":"FinanceInvoiceItemsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"invoiceId","required":true,"in":"path","description":"Invoice ID","schema":{"example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a","type":"string"}},{"name":"invoiceItemId","required":true,"in":"path","description":"Invoice item ID","schema":{"example":"invi_01h9k3p7rtw2kfv5n8m3ycxb4d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The invoice item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceItemDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `INVOICE_NOT_FOUND`: The requested invoice was not found.\n- `INVOICE_ITEM_NOT_FOUND`: The requested invoice item was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVOICE_NOT_FOUND":{"summary":"INVOICE_NOT_FOUND","value":{"message":"The requested invoice was not found.","error":"INVOICE_NOT_FOUND","statusCode":404}},"INVOICE_ITEM_NOT_FOUND":{"summary":"INVOICE_ITEM_NOT_FOUND","value":{"message":"The requested invoice item was not found.","error":"INVOICE_ITEM_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get an Invoice Item","tags":["Salons / Finances / Invoices / Items"]}},"/v1/salons/{salonId}/reviews":{"get":{"description":"Returns a page of reviews, newest first by default. Members with the Manage Reviews permission see every review, signed-in clients their own, and everyone else only approved reviews.","operationId":"ReviewsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these reviews, comma-separated","schema":{"example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Reviews per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Only reviews whose text or reviewer name contains every word of the query","schema":{"example":"balayage","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only reviews of this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only reviews of appointments with this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only reviews of appointments for this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"appointmentId","required":false,"in":"query","description":"Only the review of this appointment","schema":{"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only reviews left in this ISO 8601 interval","schema":{"example":"2026-11-01T00:00:00Z/2026-12-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `overallRating`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `location`","schema":{"type":"array","items":{"type":"string","enum":["location"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of reviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Reviews","tags":["Salons / Reviews"]},"post":{"description":"Leaves a review of a completed appointment, one per appointment; the reviewer is the appointment's client. Clients review their own appointments, signed in or with an `actionToken` from a review link; members with the Manage Reviews permission can also add reviews without an appointment. New reviews are published once the salon approves them.","operationId":"ReviewsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReviewDto"}}}},"responses":{"201":{"description":"The new review","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `APPOINTMENT_NOT_COMPLETED`: The appointment is not completed.\n- `APPOINTMENT_LOCATION_MISMATCH`: The appointment does not belong to this location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"APPOINTMENT_NOT_COMPLETED":{"summary":"APPOINTMENT_NOT_COMPLETED","value":{"message":"The appointment is not completed.","error":"APPOINTMENT_NOT_COMPLETED","statusCode":400}},"APPOINTMENT_LOCATION_MISMATCH":{"summary":"APPOINTMENT_LOCATION_MISMATCH","value":{"message":"The appointment does not belong to this location.","error":"APPOINTMENT_LOCATION_MISMATCH","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `INVALID_ACTION_TOKEN`: The action token is invalid.\n- `INVALID_ACTION_TOKEN_ACTION`: The action token action is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"INVALID_ACTION_TOKEN":{"summary":"INVALID_ACTION_TOKEN","value":{"message":"The action token is invalid.","error":"INVALID_ACTION_TOKEN","statusCode":403}},"INVALID_ACTION_TOKEN_ACTION":{"summary":"INVALID_ACTION_TOKEN_ACTION","value":{"message":"The action token action is invalid.","error":"INVALID_ACTION_TOKEN_ACTION","statusCode":403}}}}}},"404":{"description":"- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.\n- `LOCATION_NOT_FOUND`: The requested location was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}},"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `REVIEW_ALREADY_EXISTS`: A review already exists for this appointment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REVIEW_ALREADY_EXISTS":{"summary":"REVIEW_ALREADY_EXISTS","value":{"message":"A review already exists for this appointment.","error":"REVIEW_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Review","tags":["Salons / Reviews"]}},"/v1/salons/{salonId}/reviews/overview":{"get":{"description":"Returns the average rating and the number of approved reviews per star rating, for the salon or one location, member or service. With a filter, the average is of that rating (e.g. member ratings for `memberId`); without one, of the overall ratings. Works without signing in.","operationId":"ReviewsController_getOverview","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"locationId","required":false,"in":"query","description":"Only reviews of this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only reviews of appointments with this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"serviceId","required":false,"in":"query","description":"Only reviews of appointments for this service","schema":{"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The average rating and distribution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOverviewDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get the Review Overview","tags":["Salons / Reviews"]}},"/v1/salons/{salonId}/reviews/links":{"get":{"description":"Returns, for each location, the link where clients leave a review, e.g. its Google review page from a connected reviews integration. `null` means clients review in Softalon with Create a Review. Works without signing in.","operationId":"ReviewsController_getLinks","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Review link by location ID","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string","nullable":true},"example":{"loc_01h455vb4pex5vsknk084sn02q":"https://search.google.com/local/writereview?placeid=PLACE_ID","loc_01h455vc7rkq2mtx9w4bn8dz3f":null}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get Review Links","tags":["Salons / Reviews"]}},"/v1/salons/{salonId}/reviews/{reviewId}":{"get":{"description":"Returns a review. Members with the Manage Reviews permission see every review, signed-in clients their own, and everyone else only approved reviews.","operationId":"ReviewsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"reviewId","required":true,"in":"path","description":"Review ID","schema":{"example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The review","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDto"}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `REVIEW_NOT_FOUND`: The requested review was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REVIEW_NOT_FOUND":{"summary":"REVIEW_NOT_FOUND","value":{"message":"The requested review was not found.","error":"REVIEW_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Review","tags":["Salons / Reviews"]},"patch":{"description":"Changes the fields sent: members with the Manage Reviews permission can reply, approve or hide reviews and link them to appointments; clients can edit their own, which unpublishes it until approved again. Reviews imported from an integration can only be approved, hidden or linked to an appointment of their location.","operationId":"ReviewsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"reviewId","required":true,"in":"path","description":"Review ID","schema":{"example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReviewDto"}}}},"responses":{"200":{"description":"The review was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReviewResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INTEGRATION_MANAGED_REVIEW`: This review is managed by an integration and cannot be modified.\n- `APPOINTMENT_NOT_COMPLETED`: The appointment is not completed.\n- `APPOINTMENT_LOCATION_MISMATCH`: The appointment does not belong to this location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INTEGRATION_MANAGED_REVIEW":{"summary":"INTEGRATION_MANAGED_REVIEW","value":{"message":"This review is managed by an integration and cannot be modified.","error":"INTEGRATION_MANAGED_REVIEW","statusCode":400}},"APPOINTMENT_NOT_COMPLETED":{"summary":"APPOINTMENT_NOT_COMPLETED","value":{"message":"The appointment is not completed.","error":"APPOINTMENT_NOT_COMPLETED","statusCode":400}},"APPOINTMENT_LOCATION_MISMATCH":{"summary":"APPOINTMENT_LOCATION_MISMATCH","value":{"message":"The appointment does not belong to this location.","error":"APPOINTMENT_LOCATION_MISMATCH","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `REVIEW_NOT_FOUND`: The requested review was not found.\n- `APPOINTMENT_NOT_FOUND`: The requested appointment was not found.\n- `LOCATION_NOT_FOUND`: The requested location was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REVIEW_NOT_FOUND":{"summary":"REVIEW_NOT_FOUND","value":{"message":"The requested review was not found.","error":"REVIEW_NOT_FOUND","statusCode":404}},"APPOINTMENT_NOT_FOUND":{"summary":"APPOINTMENT_NOT_FOUND","value":{"message":"The requested appointment was not found.","error":"APPOINTMENT_NOT_FOUND","statusCode":404}},"LOCATION_NOT_FOUND":{"summary":"LOCATION_NOT_FOUND","value":{"message":"The requested location was not found.","error":"LOCATION_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `REVIEW_ALREADY_EXISTS`: A review already exists for this appointment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REVIEW_ALREADY_EXISTS":{"summary":"REVIEW_ALREADY_EXISTS","value":{"message":"A review already exists for this appointment.","error":"REVIEW_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Update a Review","tags":["Salons / Reviews"]},"delete":{"description":"Permanently deletes a review. Members need the Manage Reviews permission, clients can delete their own; imported reviews can't be deleted, only hidden.","operationId":"ReviewsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"reviewId","required":true,"in":"path","description":"Review ID","schema":{"example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The review was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteReviewResultDto"}}}},"400":{"description":"- `INTEGRATION_MANAGED_REVIEW`: This review is managed by an integration and cannot be modified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_MANAGED_REVIEW":{"summary":"INTEGRATION_MANAGED_REVIEW","value":{"message":"This review is managed by an integration and cannot be modified.","error":"INTEGRATION_MANAGED_REVIEW","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `REVIEW_NOT_FOUND`: The requested review was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"REVIEW_NOT_FOUND":{"summary":"REVIEW_NOT_FOUND","value":{"message":"The requested review was not found.","error":"REVIEW_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Review","tags":["Salons / Reviews"]}},"/v1/salons/{salonId}/products":{"get":{"description":"Returns a page of the products the salon sells, newest first by default.","operationId":"ProductsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these products, comma-separated","schema":{"example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Products per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name or the excerpt","schema":{"example":"shampoo","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only products created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`, `price`","schema":{"default":"createdAt","example":"name","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `taxRate`","schema":{"type":"array","items":{"type":"string","enum":["taxRate"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Products","tags":["Salons / Products"]},"post":{"description":"Adds a product the salon sells, such as a shampoo or a hair oil. Needs the Manage Services permission.","operationId":"ProductsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductDto"}}}},"responses":{"201":{"description":"The new product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `PRODUCT_ALREADY_EXISTS`: A product with this name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRODUCT_ALREADY_EXISTS":{"summary":"PRODUCT_ALREADY_EXISTS","value":{"message":"A product with this name already exists.","error":"PRODUCT_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Product","tags":["Salons / Products"]}},"/v1/salons/{salonId}/products/{productId}":{"get":{"description":"Returns a product the salon sells.","operationId":"ProductsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `taxRate`","schema":{"type":"array","items":{"type":"string","enum":["taxRate"]}}},{"name":"productId","required":true,"in":"path","description":"Product ID","schema":{"example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PRODUCT_NOT_FOUND`: The requested product was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRODUCT_NOT_FOUND":{"summary":"PRODUCT_NOT_FOUND","value":{"message":"The requested product was not found.","error":"PRODUCT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Product","tags":["Salons / Products"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Needs the Manage Services permission.","operationId":"ProductsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"productId","required":true,"in":"path","description":"Product ID","schema":{"example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductDto"}}}},"responses":{"200":{"description":"The product was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `PRODUCT_NOT_FOUND`: The requested product was not found.\n- `TAX_RATE_NOT_FOUND`: The requested tax rate was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRODUCT_NOT_FOUND":{"summary":"PRODUCT_NOT_FOUND","value":{"message":"The requested product was not found.","error":"PRODUCT_NOT_FOUND","statusCode":404}},"TAX_RATE_NOT_FOUND":{"summary":"TAX_RATE_NOT_FOUND","value":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `NAME_ALREADY_IN_USE`: This name is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NAME_ALREADY_IN_USE":{"summary":"NAME_ALREADY_IN_USE","value":{"message":"This name is already in use.","error":"NAME_ALREADY_IN_USE","statusCode":409}}}}}}},"summary":"Update a Product","tags":["Salons / Products"]},"delete":{"description":"Deletes a product. Needs the Manage Services permission.","operationId":"ProductsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"productId","required":true,"in":"path","description":"Product ID","schema":{"example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The product was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProductResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PRODUCT_NOT_FOUND`: The requested product was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRODUCT_NOT_FOUND":{"summary":"PRODUCT_NOT_FOUND","value":{"message":"The requested product was not found.","error":"PRODUCT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Product","tags":["Salons / Products"]}},"/v1/salons/{salonId}/notifications/history":{"get":{"description":"Returns a page of messages sent by email, SMS, WhatsApp or push, newest first. By default only the ones sent to you; signed-in clients see the ones sent to them. `memberId` for another member needs the Manage Members permission, `clientId` the Manage Clients permission, and `salonWide` (every message of the salon) the Manage Salon permission.","operationId":"NotificationHistoryController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these history entries, comma-separated","schema":{"example":"nhis_01hb3m9p2qwz5ktv7x4nc6rd8g","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Entries per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the email address or phone number it was sent to","schema":{"example":"+1202","type":"string"}},{"name":"channel","required":false,"in":"query","description":"Only messages sent through this channel","schema":{"enum":["push","email","sms","whatsapp"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `channel`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"salonWide","required":false,"in":"query","description":"Every message of the salon, not only yours","schema":{"default":false,"example":true,"type":"boolean"}},{"name":"memberId","required":false,"in":"query","description":"Only messages sent to this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"clientId","required":false,"in":"query","description":"Only messages sent to this client","schema":{"example":"cli_01m82v0d7ge6xtxk2aqj338zs3","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of history entries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryEntryListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All History Entries","tags":["Salons / Notifications / History"]}},"/v1/salons/{salonId}/notifications/history/{historyEntryId}":{"get":{"description":"Returns one sent message. Messages sent to someone else need the Manage Clients, Manage Members or Manage Salon permission, depending on who received them.","operationId":"NotificationHistoryController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"historyEntryId","required":true,"in":"path","description":"History entry ID","schema":{"example":"nhis_01hb3m9p2qwz5ktv7x4nc6rd8g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The history entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryEntryDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `HISTORY_ENTRY_NOT_FOUND`: The notification history entry was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"HISTORY_ENTRY_NOT_FOUND":{"summary":"HISTORY_ENTRY_NOT_FOUND","value":{"message":"The notification history entry was not found.","error":"HISTORY_ENTRY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a History Entry","tags":["Salons / Notifications / History"]}},"/v1/salons/{salonId}/notifications/preferences":{"get":{"description":"Returns the saved channel preferences: your own as a member or signed-in client, or the salon's with `salonWide`. A channel without a saved preference is on.","operationId":"NotificationPreferencesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"salonWide","required":false,"in":"query","description":"The salon's preferences, which apply to every message it sends, instead of your own","schema":{"default":false,"example":true,"type":"boolean"}},{"name":"channel","required":false,"in":"query","description":"Only the preference of this channel","schema":{"enum":["push","email","sms","whatsapp"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The preferences","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreferenceDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Preferences","tags":["Salons / Notifications / Preferences"]},"patch":{"description":"Turns a channel on or off: for you as a member or signed-in client, or for the whole salon with `salonWide`, which needs the Manage Settings permission. When the salon turns a channel off, it sends nothing through it.","operationId":"NotificationPreferencesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePreferenceDto"}}}},"responses":{"200":{"description":"The preference was saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePreferenceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update a Preference","tags":["Salons / Notifications / Preferences"]}},"/v1/salons/{salonId}/notifications/push-subscriptions":{"get":{"description":"Returns the signed-in client's push subscriptions with this endpoint, to check whether this browser is subscribed. For signed-in clients of the salon; members use their account's push subscriptions.","operationId":"NotificationPushSubscriptionsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"endpoint","required":true,"in":"query","description":"Push service URL of the browser or device","schema":{"example":"https://fcm.googleapis.com/fcm/send/eYk3bX9Qm2c:APA91bHk7sT2wq","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The matching push subscriptions","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PushSubscriptionDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}}},"summary":"Get All Push Subscriptions","tags":["Salons / Notifications / Push Subscriptions"]},"post":{"description":"Subscribes a browser to web push notifications and sends it a welcome notification. Subscribing an endpoint that already exists moves it to the signed-in client and refreshes its keys. For signed-in clients of the salon; members use their account's push subscriptions.","operationId":"NotificationPushSubscriptionsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePushSubscriptionDto"}}}},"responses":{"201":{"description":"The push subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushSubscriptionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}}},"summary":"Create a Push Subscription","tags":["Salons / Notifications / Push Subscriptions"]},"delete":{"description":"Stops web push notifications to a browser. For signed-in clients of the salon; members use their account's push subscriptions.","operationId":"NotificationPushSubscriptionsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"endpoint","required":true,"in":"query","description":"Push service URL of the browser or device","schema":{"example":"https://fcm.googleapis.com/fcm/send/eYk3bX9Qm2c:APA91bHk7sT2wq","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The push subscription was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePushSubscriptionResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}}}}}}},"summary":"Delete a Push Subscription","tags":["Salons / Notifications / Push Subscriptions"]}},"/v1/salons/{salonId}/notifications/sender-profiles":{"get":{"description":"Returns the salon's sender profiles, at most one per channel. Needs the Manage Salon permission.","operationId":"NotificationSenderProfilesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"channel","required":false,"in":"query","description":"Only the profile of this channel","schema":{"enum":["push","email","sms","whatsapp"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The sender profiles","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SenderProfileDto"}}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Sender Profiles","tags":["Salons / Notifications / Sender Profiles"]},"post":{"description":"Makes the salon send one channel its own way: `email` through its own SMTP server, `sms` with an alphanumeric sender ID. One profile per channel. Email profiles are used right away; SMS sender IDs only after a review. Needs a plan with custom sender profiles. Needs the Manage Salon permission.","operationId":"NotificationSenderProfilesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSenderProfileDto"}}}},"responses":{"201":{"description":"The new sender profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderProfileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `SENDER_PROFILE_ALREADY_EXISTS`: A sender profile already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"SENDER_PROFILE_ALREADY_EXISTS":{"summary":"SENDER_PROFILE_ALREADY_EXISTS","value":{"message":"A sender profile already exists.","error":"SENDER_PROFILE_ALREADY_EXISTS","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}}},"summary":"Create a Sender Profile","tags":["Salons / Notifications / Sender Profiles"]}},"/v1/salons/{salonId}/notifications/sender-profiles/{senderProfileId}":{"get":{"description":"Returns a sender profile. Needs the Manage Salon permission.","operationId":"NotificationSenderProfilesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"senderProfileId","required":true,"in":"path","description":"Sender profile ID","schema":{"example":"spr_01hb6q4r9swz8ktv3x7nc5td2k","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The sender profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderProfileDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NOTIFICATION_PROFILE_NOT_FOUND`: The notification profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOTIFICATION_PROFILE_NOT_FOUND":{"summary":"NOTIFICATION_PROFILE_NOT_FOUND","value":{"message":"The notification profile was not found.","error":"NOTIFICATION_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Sender Profile","tags":["Salons / Notifications / Sender Profiles"]},"patch":{"description":"Changes the settings of the profile's channel. A new SMS sender ID goes back to review; new email credentials need both the username and the password. Needs a plan with custom sender profiles. Needs the Manage Salon permission.","operationId":"NotificationSenderProfilesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"senderProfileId","required":true,"in":"path","description":"Sender profile ID","schema":{"example":"spr_01hb6q4r9swz8ktv3x7nc5td2k","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSenderProfileDto"}}}},"responses":{"200":{"description":"The sender profile was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSenderProfileResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INCOMPLETE_EMAIL_CREDENTIALS_PROVIDED`: Incomplete email credentials were provided.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INCOMPLETE_EMAIL_CREDENTIALS_PROVIDED":{"summary":"INCOMPLETE_EMAIL_CREDENTIALS_PROVIDED","value":{"message":"Incomplete email credentials were provided.","error":"INCOMPLETE_EMAIL_CREDENTIALS_PROVIDED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `SENDER_PROFILE_NOT_FOUND`: The sender profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SENDER_PROFILE_NOT_FOUND":{"summary":"SENDER_PROFILE_NOT_FOUND","value":{"message":"The sender profile was not found.","error":"SENDER_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Sender Profile","tags":["Salons / Notifications / Sender Profiles"]},"delete":{"description":"Deletes a sender profile; the channel goes back to sending the standard way. Needs the Manage Salon permission.","operationId":"NotificationSenderProfilesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"senderProfileId","required":true,"in":"path","description":"Sender profile ID","schema":{"example":"spr_01hb6q4r9swz8ktv3x7nc5td2k","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The sender profile was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSenderProfileResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SENDER_PROFILE_NOT_FOUND`: The sender profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SENDER_PROFILE_NOT_FOUND":{"summary":"SENDER_PROFILE_NOT_FOUND","value":{"message":"The sender profile was not found.","error":"SENDER_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Sender Profile","tags":["Salons / Notifications / Sender Profiles"]}},"/v1/salons/{salonId}/notifications/sender-profiles/{senderProfileId}/validate":{"post":{"description":"Checks whether the profile's settings work, e.g. by connecting to the email server, without sending anything. Needs the Manage Salon permission.","operationId":"NotificationSenderProfilesController_validate","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"senderProfileId","required":true,"in":"path","description":"Sender profile ID","schema":{"example":"spr_01hb6q4r9swz8ktv3x7nc5td2k","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"Whether the settings work","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateSenderProfileResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SENDER_PROFILE_NOT_FOUND`: The sender profile was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SENDER_PROFILE_NOT_FOUND":{"summary":"SENDER_PROFILE_NOT_FOUND","value":{"message":"The sender profile was not found.","error":"SENDER_PROFILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Validate a Sender Profile","tags":["Salons / Notifications / Sender Profiles"]}},"/v1/salons/{salonId}/notifications/phone-numbers":{"get":{"description":"Returns a page of the salon's phone numbers for sending SMS, newest first, including released ones.","operationId":"NotificationPhoneNumbersController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Phone numbers per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the phone number","schema":{"example":"555","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `value`, `status`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of phone numbers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Phone Numbers","tags":["Salons / Notifications / Phone Numbers"]},"post":{"description":"Buys a phone number for sending SMS. Buying is currently turned off: contact support to get a number. Needs the Manage Salon permission.","operationId":"NotificationPhoneNumbersController_purchase","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchasePhoneNumberDto"}}}},"responses":{"201":{"description":"The new phone number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PHONE_NUMBER_PURCHASE_DISABLED`: Please contact support to purchase phone numbers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PHONE_NUMBER_PURCHASE_DISABLED":{"summary":"PHONE_NUMBER_PURCHASE_DISABLED","value":{"message":"Please contact support to purchase phone numbers.","error":"PHONE_NUMBER_PURCHASE_DISABLED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Buy a Phone Number","tags":["Salons / Notifications / Phone Numbers"]}},"/v1/salons/{salonId}/notifications/phone-numbers/available":{"get":{"description":"Returns a page of phone numbers the salon can buy in a country, with their monthly price in credits. Results are cached for 30 seconds. Needs the Manage Salon permission.","operationId":"NotificationPhoneNumbersController_getAllAvailable","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Digits the number must contain","schema":{"example":"555","type":"string"}},{"name":"country","required":true,"in":"query","description":"Country, as an ISO 3166-1 alpha-2 code","schema":{"example":"US","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Phone numbers per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"types","required":false,"in":"query","description":"Types of numbers, as a repeated parameter (`types=local&types=toll_free`)","schema":{"type":"array","items":{"type":"string","enum":["toll_free","local","mobile"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of phone numbers that can be bought","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailablePhoneNumberListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Available Phone Numbers","tags":["Salons / Notifications / Phone Numbers"]}},"/v1/salons/{salonId}/notifications/phone-numbers/{phoneNumberId}":{"get":{"description":"Returns one of the salon's phone numbers.","operationId":"NotificationPhoneNumbersController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"phoneNumberId","required":true,"in":"path","description":"Phone number ID","schema":{"example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The phone number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PHONE_NUMBER_NOT_FOUND`: The requested phone number was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PHONE_NUMBER_NOT_FOUND":{"summary":"PHONE_NUMBER_NOT_FOUND","value":{"message":"The requested phone number was not found.","error":"PHONE_NUMBER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Phone Number","tags":["Salons / Notifications / Phone Numbers"]},"patch":{"description":"Turns call forwarding on (to a number in the same country) or off with `null`. Turning it on costs credits for the rest of the billing period, once per period. Needs the Manage Salon permission.","operationId":"NotificationPhoneNumbersController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"phoneNumberId","required":true,"in":"path","description":"Phone number ID","schema":{"example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhoneNumberDto"}}}},"responses":{"200":{"description":"The phone number was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePhoneNumberResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `FORWARDING_COUNTRY_MISMATCH`: Calls can only be forwarded to phone numbers in the same country.\n- `INSUFFICIENT_CREDITS`: There are not enough credits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"FORWARDING_COUNTRY_MISMATCH":{"summary":"FORWARDING_COUNTRY_MISMATCH","value":{"message":"Calls can only be forwarded to phone numbers in the same country.","error":"FORWARDING_COUNTRY_MISMATCH","statusCode":400}},"INSUFFICIENT_CREDITS":{"summary":"INSUFFICIENT_CREDITS","value":{"message":"There are not enough credits.","error":"INSUFFICIENT_CREDITS","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PHONE_NUMBER_NOT_FOUND`: The requested phone number was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PHONE_NUMBER_NOT_FOUND":{"summary":"PHONE_NUMBER_NOT_FOUND","value":{"message":"The requested phone number was not found.","error":"PHONE_NUMBER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Phone Number","tags":["Salons / Notifications / Phone Numbers"]},"delete":{"description":"Releases a phone number: SMS can no longer be sent from it and it stops being billed. The number stays in the list as `released`. Needs the Manage Salon permission.","operationId":"NotificationPhoneNumbersController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"phoneNumberId","required":true,"in":"path","description":"Phone number ID","schema":{"example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The phone number was released","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePhoneNumberResultDto"}}}},"400":{"description":"- `PHONE_NUMBER_ALREADY_RELEASED`: This phone number has already been released.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PHONE_NUMBER_ALREADY_RELEASED":{"summary":"PHONE_NUMBER_ALREADY_RELEASED","value":{"message":"This phone number has already been released.","error":"PHONE_NUMBER_ALREADY_RELEASED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PHONE_NUMBER_NOT_FOUND`: The requested phone number was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PHONE_NUMBER_NOT_FOUND":{"summary":"PHONE_NUMBER_NOT_FOUND","value":{"message":"The requested phone number was not found.","error":"PHONE_NUMBER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Phone Number","tags":["Salons / Notifications / Phone Numbers"]}},"/v1/salons/{salonId}/notifications/compliance/{complianceSubmissionId}":{"get":{"description":"Returns a compliance submission with its review status, refreshed from the carrier while the review is open. When it is approved, its phone number becomes active. Cached for 5 minutes.","operationId":"NotificationComplianceController_getStatus","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"complianceSubmissionId","required":true,"in":"path","description":"Compliance submission ID","schema":{"example":"csub_01hb8s6t3vwz2ktm5x9nc7wd4p","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The compliance submission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceSubmissionDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `COMPLIANCE_SUBMISSION_NOT_FOUND`: The requested compliance submission was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COMPLIANCE_SUBMISSION_NOT_FOUND":{"summary":"COMPLIANCE_SUBMISSION_NOT_FOUND","value":{"message":"The requested compliance submission was not found.","error":"COMPLIANCE_SUBMISSION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Compliance Submission","tags":["Salons / Notifications / Compliance"]},"delete":{"description":"Deletes a compliance submission and withdraws it from the carrier. Needs the Manage Salon permission.","operationId":"NotificationComplianceController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"complianceSubmissionId","required":true,"in":"path","description":"Compliance submission ID","schema":{"example":"csub_01hb8s6t3vwz2ktm5x9nc7wd4p","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The compliance submission was deleted"},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `COMPLIANCE_SUBMISSION_NOT_FOUND`: The requested compliance submission was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COMPLIANCE_SUBMISSION_NOT_FOUND":{"summary":"COMPLIANCE_SUBMISSION_NOT_FOUND","value":{"message":"The requested compliance submission was not found.","error":"COMPLIANCE_SUBMISSION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Compliance Submission","tags":["Salons / Notifications / Compliance"]}},"/v1/salons/{salonId}/notifications/compliance":{"get":{"description":"Returns the latest compliance submission of a phone number, with its review status refreshed from the carrier while the review is open. Cached for 5 minutes.","operationId":"NotificationComplianceController_getStatusByPhoneNumber","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"phoneNumberId","required":true,"in":"query","description":"Phone number ID","schema":{"example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The compliance submission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceSubmissionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `COMPLIANCE_SUBMISSION_NOT_FOUND`: The requested compliance submission was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"COMPLIANCE_SUBMISSION_NOT_FOUND":{"summary":"COMPLIANCE_SUBMISSION_NOT_FOUND","value":{"message":"The requested compliance submission was not found.","error":"COMPLIANCE_SUBMISSION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get the Compliance Submission of a Phone Number","tags":["Salons / Notifications / Compliance"]}},"/v1/salons/{salonId}/notifications/compliance/initialize":{"post":{"description":"Starts (or resumes) the carrier verification a toll-free number needs before it can send SMS, and returns a token for the carrier's registration form. Calling it again returns a fresh token and keeps what was already entered. Needs the Manage Salon permission.","operationId":"NotificationComplianceController_initialize","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitializeComplianceDto"}}}},"responses":{"201":{"description":"The registration form token and the submission ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitializeComplianceResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PHONE_NUMBER_NOT_FOUND`: The requested phone number was not found.\n- `ACCOUNT_NOT_FOUND`: The requested account was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PHONE_NUMBER_NOT_FOUND":{"summary":"PHONE_NUMBER_NOT_FOUND","value":{"message":"The requested phone number was not found.","error":"PHONE_NUMBER_NOT_FOUND","statusCode":404}},"ACCOUNT_NOT_FOUND":{"summary":"ACCOUNT_NOT_FOUND","value":{"message":"The requested account was not found.","error":"ACCOUNT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Start a Toll-Free Verification","tags":["Salons / Notifications / Compliance"]}},"/v1/salons/{salonId}/notifications/sms-country-requirements":{"get":{"description":"Returns what the salon needs to send SMS to each country, by ISO 3166-1 alpha-2 code: whether an alphanumeric sender ID works or a phone number is required, and which number types. Countries that aren't listed have no known requirements.","operationId":"NotificationSmsCountryRequirementsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The requirements, by country code","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SmsCountryRequirementDto"},"example":{"US":{"type":"phone_number_required","supportedNumberTypes":["toll_free","local"]},"GB":{"type":"alphanumeric_free"}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All SMS Country Requirements","tags":["Salons / Notifications / SMS Country Requirements"]}},"/v1/salons/{salonId}/notifications":{"get":{"description":"Returns a page of in-app notifications, newest first. Only your own notifications in this salon, as a member or as a signed-in client. The metadata lists the IDs of every unread one.","operationId":"NotificationsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these notifications, comma-separated","schema":{"example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Notifications per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the title","schema":{"example":"appointment","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `readAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of notifications","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Notifications","tags":["Salons / Notifications"]}},"/v1/salons/{salonId}/notifications/{notificationId}":{"get":{"description":"Returns one in-app notification. Only your own notifications in this salon, as a member or as a signed-in client.","operationId":"NotificationsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"notificationId","required":true,"in":"path","description":"Notification ID","schema":{"example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NOTIFICATION_NOT_FOUND`: The requested notification was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOTIFICATION_NOT_FOUND":{"summary":"NOTIFICATION_NOT_FOUND","value":{"message":"The requested notification was not found.","error":"NOTIFICATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Notification","tags":["Salons / Notifications"]}},"/v1/salons/{salonId}/notifications/read":{"post":{"description":"Marks every unread notification as read. Only your own notifications in this salon, as a member or as a signed-in client.","operationId":"NotificationsController_readAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"All notifications are read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadAllNotificationsResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Read All Notifications","tags":["Salons / Notifications"]}},"/v1/salons/{salonId}/notifications/send":{"post":{"description":"Sends a message written by hand to one client or member by email, SMS, WhatsApp or push, and returns its history entry. The content is checked for spam and abuse first, SMS and WhatsApp use the salon's credits, and SMS to clients needs their consent. WhatsApp sends a template with `templateId` and `templateVariables` instead of `content`. Needs the Manage Clients permission for clients and Manage Members for members. Limited to 3 a minute, 20 an hour and 50 a day per salon, and 1 a minute, 3 an hour and 5 a day per recipient.","operationId":"NotificationsController_send","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendNotificationDto"}}}},"responses":{"201":{"description":"The history entry of the sent message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryEntryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `CLIENT_SMS_CONSENT_MISSING`: The client has not agreed to receive text messages.\n- `RECIPIENT_UNREACHABLE`: The recipient cannot be reached through this channel.\n- `NOTIFICATION_CONTENT_NOT_VALID`: The notification content is not valid.\n- `INSUFFICIENT_CREDITS`: There are not enough credits.\n- `NOTIFICATION_NOT_SENT`: The notification could not be sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"CLIENT_SMS_CONSENT_MISSING":{"summary":"CLIENT_SMS_CONSENT_MISSING","value":{"message":"The client has not agreed to receive text messages.","error":"CLIENT_SMS_CONSENT_MISSING","statusCode":400}},"RECIPIENT_UNREACHABLE":{"summary":"RECIPIENT_UNREACHABLE","value":{"message":"The recipient cannot be reached through this channel.","error":"RECIPIENT_UNREACHABLE","statusCode":400}},"NOTIFICATION_CONTENT_NOT_VALID":{"summary":"NOTIFICATION_CONTENT_NOT_VALID","value":{"message":"The notification content is not valid.","error":"NOTIFICATION_CONTENT_NOT_VALID","statusCode":400}},"INSUFFICIENT_CREDITS":{"summary":"INSUFFICIENT_CREDITS","value":{"message":"There are not enough credits.","error":"INSUFFICIENT_CREDITS","statusCode":400}},"NOTIFICATION_NOT_SENT":{"summary":"NOTIFICATION_NOT_SENT","value":{"message":"The notification could not be sent.","error":"NOTIFICATION_NOT_SENT","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CLIENT_NOT_FOUND`: The requested client was not found.\n- `MEMBER_NOT_FOUND`: The requested member was not found.\n- `WHATSAPP_TEMPLATE_NOT_FOUND`: The requested WhatsApp template was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLIENT_NOT_FOUND":{"summary":"CLIENT_NOT_FOUND","value":{"message":"The requested client was not found.","error":"CLIENT_NOT_FOUND","statusCode":404}},"MEMBER_NOT_FOUND":{"summary":"MEMBER_NOT_FOUND","value":{"message":"The requested member was not found.","error":"MEMBER_NOT_FOUND","statusCode":404}},"WHATSAPP_TEMPLATE_NOT_FOUND":{"summary":"WHATSAPP_TEMPLATE_NOT_FOUND","value":{"message":"The requested WhatsApp template was not found.","error":"WHATSAPP_TEMPLATE_NOT_FOUND","statusCode":404}}}}}},"429":{"description":"Too many requests. Please try again later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Send a Notification","tags":["Salons / Notifications"]}},"/v1/salons/{salonId}/notifications/{notificationId}/read":{"post":{"description":"Marks a notification as read. Only your own notifications in this salon, as a member or as a signed-in client.","operationId":"NotificationsController_read","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"notificationId","required":true,"in":"path","description":"Notification ID","schema":{"example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The notification is read","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadNotificationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NOTIFICATION_NOT_FOUND`: The requested notification was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOTIFICATION_NOT_FOUND":{"summary":"NOTIFICATION_NOT_FOUND","value":{"message":"The requested notification was not found.","error":"NOTIFICATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Read a Notification","tags":["Salons / Notifications"]}},"/v1/salons/{salonId}/domains":{"get":{"description":"Returns a page of the salon's domains, newest first: its onsoftalon.com subdomain and the custom domains added, each with the DNS records it needs. Needs the `domains/manage` permission.","operationId":"DomainsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these domains, comma-separated","schema":{"example":"dom_01h2xcejqtf2nbrexx3vqjhp42","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Domains per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the domain name","schema":{"example":"yoursalon.com","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only domains of this type","schema":{"enum":["subdomain","custom"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt` or `name`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of domains","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Domains","tags":["Salons / Domains"]},"post":{"description":"Adds a custom domain, such as booking.yoursalon.com, as `pending`. Add the DNS records in `dnsRecords` at your DNS provider (or use Connect a Domain); the domain becomes `active` once they are found and can then be made the salon's primary domain. Needs the `domains/manage` permission and a plan with custom domains.","operationId":"DomainsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDomainDto"}}}},"responses":{"201":{"description":"The new domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `DOMAIN_NAME_IN_USE`: This domain name is already in use.\n- `INVALID_DOMAIN_NAME`: The domain name is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"DOMAIN_NAME_IN_USE":{"summary":"DOMAIN_NAME_IN_USE","value":{"message":"This domain name is already in use.","error":"DOMAIN_NAME_IN_USE","statusCode":400}},"INVALID_DOMAIN_NAME":{"summary":"INVALID_DOMAIN_NAME","value":{"message":"The domain name is invalid.","error":"INVALID_DOMAIN_NAME","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}}},"summary":"Create a Domain","tags":["Salons / Domains"]}},"/v1/salons/{salonId}/domains/{domainId}":{"get":{"description":"Returns a domain with the DNS records it needs and whether each was found. Needs the `domains/manage` permission.","operationId":"DomainsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"domainId","required":true,"in":"path","description":"Domain ID","schema":{"example":"dom_01h2xcejqtf2nbrexx3vqjhp42","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `DOMAIN_NOT_FOUND`: The requested domain was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"DOMAIN_NOT_FOUND":{"summary":"DOMAIN_NOT_FOUND","value":{"message":"The requested domain was not found.","error":"DOMAIN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Domain","tags":["Salons / Domains"]},"delete":{"description":"Removes a custom domain; the booking site stops answering on it. The primary domain and the onsoftalon.com subdomain cannot be deleted. Needs the `domains/manage` permission.","operationId":"DomainsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"domainId","required":true,"in":"path","description":"Domain ID","schema":{"example":"dom_01h2xcejqtf2nbrexx3vqjhp42","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The domain was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDomainResultDto"}}}},"400":{"description":"- `CANNOT_DELETE_PRIMARY_DOMAIN`: The primary domain cannot be deleted.\n- `CANNOT_DELETE_SUBDOMAIN`: The subdomain cannot be deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CANNOT_DELETE_PRIMARY_DOMAIN":{"summary":"CANNOT_DELETE_PRIMARY_DOMAIN","value":{"message":"The primary domain cannot be deleted.","error":"CANNOT_DELETE_PRIMARY_DOMAIN","statusCode":400}},"CANNOT_DELETE_SUBDOMAIN":{"summary":"CANNOT_DELETE_SUBDOMAIN","value":{"message":"The subdomain cannot be deleted.","error":"CANNOT_DELETE_SUBDOMAIN","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `DOMAIN_NOT_FOUND`: The requested domain was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"DOMAIN_NOT_FOUND":{"summary":"DOMAIN_NOT_FOUND","value":{"message":"The requested domain was not found.","error":"DOMAIN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Domain","tags":["Salons / Domains"]}},"/v1/salons/{salonId}/domains/{domainId}/verify":{"post":{"description":"Checks a pending custom domain's DNS records now instead of waiting for the regular check. The check runs in the background: load the domain again in a few seconds. Needs the `domains/manage` permission and a plan with custom domains.","operationId":"DomainsController_verify","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"domainId","required":true,"in":"path","description":"Domain ID","schema":{"example":"dom_01h2xcejqtf2nbrexx3vqjhp42","type":"string"}},{"name":"debug","required":false,"in":"query","description":"true runs the DNS checks right away and returns their detailed results instead of the domain, without changing anything","schema":{"example":false,"type":"boolean"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The domain, with a message when a check was queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainVerificationDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `DOMAIN_NOT_FOUND`: The requested domain was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"DOMAIN_NOT_FOUND":{"summary":"DOMAIN_NOT_FOUND","value":{"message":"The requested domain was not found.","error":"DOMAIN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Verify a Domain","tags":["Salons / Domains"]}},"/v1/salons/{salonId}/domains/{domainId}/connect":{"get":{"description":"Checks whether the custom domain's DNS provider supports Domain Connect. If it does, open `applyUrl` to sign in at the provider and approve the DNS records, then come back to the dashboard. Needs the `domains/manage` permission and a plan with custom domains.","operationId":"DomainsController_connect","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"domainId","required":true,"in":"path","description":"Domain ID","schema":{"example":"dom_01h2xcejqtf2nbrexx3vqjhp42","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Whether the provider is supported, and the link to approve the records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainConnectDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `DOMAIN_NOT_FOUND`: The requested domain was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"DOMAIN_NOT_FOUND":{"summary":"DOMAIN_NOT_FOUND","value":{"message":"The requested domain was not found.","error":"DOMAIN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Connect a Domain","tags":["Salons / Domains"]}},"/v1/salons/{salonId}/themes":{"get":{"description":"Returns a page of the salon's themes (custom websites), last changed first: drafts, the published theme and earlier published versions. Needs the `settings/manage` permission.","operationId":"ThemesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these themes, comma-separated","schema":{"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","type":"array","items":{"type":"string"}}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the theme name","schema":{"example":"website","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Themes per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `updatedAt`, `createdAt` or `name`","schema":{"default":"updatedAt","example":"updatedAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of themes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Themes","tags":["Salons / Themes"]},"post":{"description":"Creates a draft theme, empty or as a copy of another theme (`fromThemeId`), with `files` applied on top. A theme has at most 200 files, 512 KB each and 2 MB in all. Publish it with the appearance setting `customWebsite.themeId`. Needs the `settings/manage` permission and a plan with custom websites.","operationId":"ThemesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateThemeDto"}}}},"responses":{"201":{"description":"The new theme","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_THEME_FILE`: The content of a theme file must be text.\n- `INVALID_THEME_FILE_PATH`: The theme file path is invalid.\n- `INVALID_THEME_SETTINGS`: theme.json is not valid JSON.\n- `THEME_FILE_TOO_LARGE`: A theme file is too large.\n- `THEME_TOO_MANY_FILES`: The theme has too many files.\n- `THEME_TOO_LARGE`: The theme is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_THEME_FILE":{"summary":"INVALID_THEME_FILE","value":{"message":"The content of a theme file must be text.","error":"INVALID_THEME_FILE","statusCode":400}},"INVALID_THEME_FILE_PATH":{"summary":"INVALID_THEME_FILE_PATH","value":{"message":"The theme file path is invalid.","error":"INVALID_THEME_FILE_PATH","statusCode":400}},"INVALID_THEME_SETTINGS":{"summary":"INVALID_THEME_SETTINGS","value":{"message":"theme.json is not valid JSON.","error":"INVALID_THEME_SETTINGS","statusCode":400}},"THEME_FILE_TOO_LARGE":{"summary":"THEME_FILE_TOO_LARGE","value":{"message":"A theme file is too large.","error":"THEME_FILE_TOO_LARGE","statusCode":400}},"THEME_TOO_MANY_FILES":{"summary":"THEME_TOO_MANY_FILES","value":{"message":"The theme has too many files.","error":"THEME_TOO_MANY_FILES","statusCode":400}},"THEME_TOO_LARGE":{"summary":"THEME_TOO_LARGE","value":{"message":"The theme is too large.","error":"THEME_TOO_LARGE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Theme","tags":["Salons / Themes"]}},"/v1/salons/{salonId}/themes/published":{"get":{"description":"Returns the theme the booking site shows, with its files, or null when the salon shows the standard booking site. No authentication needed, like the site itself.","operationId":"ThemesController_getPublished","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The published theme with its files, or null","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get the Published Theme","tags":["Salons / Themes"]}},"/v1/salons/{salonId}/themes/starter":{"get":{"description":"Returns the standard booking site in Liquid, as a template to change files from. A theme stores only the files that replace parts of the standard site (a page, the layout, a section such as components/header.liquid); every other part stays the standard site. Needs the `settings/manage` permission.","operationId":"ThemesController_getStarter","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The starter theme's files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StarterThemeDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get the Starter Theme","tags":["Salons / Themes"]}},"/v1/salons/{salonId}/themes/{themeId}":{"get":{"description":"Returns a theme with its size, whether it is published and the errors that keep it from being published. Expand `files` for the files. Needs the `settings/manage` permission.","operationId":"ThemesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"themeId","required":true,"in":"path","description":"Theme ID","schema":{"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `files`","schema":{"type":"array","items":{"type":"string","enum":["files"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The theme","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Theme","tags":["Salons / Themes"]},"patch":{"description":"Renames a draft theme or changes its files: send only the changed files, null removes one. Send the `version` you loaded; the response has the new one. Published themes and earlier published versions cannot be changed: copy them instead. Needs the `settings/manage` permission and a plan with custom websites.","operationId":"ThemesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"themeId","required":true,"in":"path","description":"Theme ID","schema":{"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateThemeDto"}}}},"responses":{"200":{"description":"The updated theme","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_THEME_FILE`: The content of a theme file must be text.\n- `INVALID_THEME_FILE_PATH`: The theme file path is invalid.\n- `INVALID_THEME_SETTINGS`: theme.json is not valid JSON.\n- `THEME_FILE_TOO_LARGE`: A theme file is too large.\n- `THEME_TOO_MANY_FILES`: The theme has too many files.\n- `THEME_TOO_LARGE`: The theme is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_THEME_FILE":{"summary":"INVALID_THEME_FILE","value":{"message":"The content of a theme file must be text.","error":"INVALID_THEME_FILE","statusCode":400}},"INVALID_THEME_FILE_PATH":{"summary":"INVALID_THEME_FILE_PATH","value":{"message":"The theme file path is invalid.","error":"INVALID_THEME_FILE_PATH","statusCode":400}},"INVALID_THEME_SETTINGS":{"summary":"INVALID_THEME_SETTINGS","value":{"message":"theme.json is not valid JSON.","error":"INVALID_THEME_SETTINGS","statusCode":400}},"THEME_FILE_TOO_LARGE":{"summary":"THEME_FILE_TOO_LARGE","value":{"message":"A theme file is too large.","error":"THEME_FILE_TOO_LARGE","statusCode":400}},"THEME_TOO_MANY_FILES":{"summary":"THEME_TOO_MANY_FILES","value":{"message":"The theme has too many files.","error":"THEME_TOO_MANY_FILES","statusCode":400}},"THEME_TOO_LARGE":{"summary":"THEME_TOO_LARGE","value":{"message":"The theme is too large.","error":"THEME_TOO_LARGE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `THEME_PUBLISHED`: A published theme cannot be changed or deleted.\n- `THEME_VERSION_CONFLICT`: The theme was changed in the meantime.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_PUBLISHED":{"summary":"THEME_PUBLISHED","value":{"message":"A published theme cannot be changed or deleted.","error":"THEME_PUBLISHED","statusCode":409}},"THEME_VERSION_CONFLICT":{"summary":"THEME_VERSION_CONFLICT","value":{"message":"The theme was changed in the meantime.","error":"THEME_VERSION_CONFLICT","statusCode":409}}}}}}},"summary":"Update a Theme","tags":["Salons / Themes"]},"delete":{"description":"Deletes a theme and its files. The published theme cannot be deleted; deleting an earlier published version removes it from the publish history. Needs the `settings/manage` permission.","operationId":"ThemesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"themeId","required":true,"in":"path","description":"Theme ID","schema":{"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The theme was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteThemeResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `THEME_PUBLISHED`: A published theme cannot be changed or deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_PUBLISHED":{"summary":"THEME_PUBLISHED","value":{"message":"A published theme cannot be changed or deleted.","error":"THEME_PUBLISHED","statusCode":409}}}}}}},"summary":"Delete a Theme","tags":["Salons / Themes"]}},"/v1/salons/{salonId}/themes/{themeId}/assets":{"post":{"description":"Adds an image or video uploaded with POST /salons/{salonId}/files (purpose \"theme\") to the theme's assets in theme.json, under a unique name with its extension. Pages use it with {{ 'hero.jpg' | asset_url }}. Not for published themes. Needs the `settings/manage` permission and a plan with custom websites.","operationId":"ThemesController_createAsset","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"themeId","required":true,"in":"path","description":"Theme ID","schema":{"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateThemeAssetDto"}}}},"responses":{"201":{"description":"The asset and the theme's new theme.json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeAssetDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_THEME_ASSET_PURPOSE`: Only files uploaded for themes can be theme assets.\n- `INVALID_THEME_ASSET_TYPE`: A theme asset must be an image or a video.\n- `INVALID_THEME_FILE`: The content of a theme file must be text.\n- `INVALID_THEME_FILE_PATH`: The theme file path is invalid.\n- `INVALID_THEME_SETTINGS`: theme.json is not valid JSON.\n- `THEME_FILE_TOO_LARGE`: A theme file is too large.\n- `THEME_TOO_MANY_FILES`: The theme has too many files.\n- `THEME_TOO_LARGE`: The theme is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_THEME_ASSET_PURPOSE":{"summary":"INVALID_THEME_ASSET_PURPOSE","value":{"message":"Only files uploaded for themes can be theme assets.","error":"INVALID_THEME_ASSET_PURPOSE","statusCode":400}},"INVALID_THEME_ASSET_TYPE":{"summary":"INVALID_THEME_ASSET_TYPE","value":{"message":"A theme asset must be an image or a video.","error":"INVALID_THEME_ASSET_TYPE","statusCode":400}},"INVALID_THEME_FILE":{"summary":"INVALID_THEME_FILE","value":{"message":"The content of a theme file must be text.","error":"INVALID_THEME_FILE","statusCode":400}},"INVALID_THEME_FILE_PATH":{"summary":"INVALID_THEME_FILE_PATH","value":{"message":"The theme file path is invalid.","error":"INVALID_THEME_FILE_PATH","statusCode":400}},"INVALID_THEME_SETTINGS":{"summary":"INVALID_THEME_SETTINGS","value":{"message":"theme.json is not valid JSON.","error":"INVALID_THEME_SETTINGS","statusCode":400}},"THEME_FILE_TOO_LARGE":{"summary":"THEME_FILE_TOO_LARGE","value":{"message":"A theme file is too large.","error":"THEME_FILE_TOO_LARGE","statusCode":400}},"THEME_TOO_MANY_FILES":{"summary":"THEME_TOO_MANY_FILES","value":{"message":"The theme has too many files.","error":"THEME_TOO_MANY_FILES","statusCode":400}},"THEME_TOO_LARGE":{"summary":"THEME_TOO_LARGE","value":{"message":"The theme is too large.","error":"THEME_TOO_LARGE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.\n- `FILE_NOT_FOUND`: The requested file was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}},"FILE_NOT_FOUND":{"summary":"FILE_NOT_FOUND","value":{"message":"The requested file was not found.","error":"FILE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `THEME_PUBLISHED`: A published theme cannot be changed or deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_PUBLISHED":{"summary":"THEME_PUBLISHED","value":{"message":"A published theme cannot be changed or deleted.","error":"THEME_PUBLISHED","statusCode":409}}}}}}},"summary":"Create a Theme Asset","tags":["Salons / Themes"]}},"/v1/salons/{salonId}/themes/{themeId}/assets/{name}":{"delete":{"description":"Removes an asset from the theme's theme.json. The file stays, as earlier published versions can still show it. Not for published themes. Needs the `settings/manage` permission and a plan with custom websites.","operationId":"ThemesController_deleteAsset","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"themeId","required":true,"in":"path","description":"Theme ID","schema":{"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","type":"string"}},{"name":"name","required":true,"in":"path","description":"The asset's name in theme.json","schema":{"example":"hero.jpg","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The theme's new theme.json","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteThemeAssetResultDto"}}}},"400":{"description":"- `INVALID_THEME_FILE`: The content of a theme file must be text.\n- `INVALID_THEME_FILE_PATH`: The theme file path is invalid.\n- `INVALID_THEME_SETTINGS`: theme.json is not valid JSON.\n- `THEME_FILE_TOO_LARGE`: A theme file is too large.\n- `THEME_TOO_MANY_FILES`: The theme has too many files.\n- `THEME_TOO_LARGE`: The theme is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INVALID_THEME_FILE":{"summary":"INVALID_THEME_FILE","value":{"message":"The content of a theme file must be text.","error":"INVALID_THEME_FILE","statusCode":400}},"INVALID_THEME_FILE_PATH":{"summary":"INVALID_THEME_FILE_PATH","value":{"message":"The theme file path is invalid.","error":"INVALID_THEME_FILE_PATH","statusCode":400}},"INVALID_THEME_SETTINGS":{"summary":"INVALID_THEME_SETTINGS","value":{"message":"theme.json is not valid JSON.","error":"INVALID_THEME_SETTINGS","statusCode":400}},"THEME_FILE_TOO_LARGE":{"summary":"THEME_FILE_TOO_LARGE","value":{"message":"A theme file is too large.","error":"THEME_FILE_TOO_LARGE","statusCode":400}},"THEME_TOO_MANY_FILES":{"summary":"THEME_TOO_MANY_FILES","value":{"message":"The theme has too many files.","error":"THEME_TOO_MANY_FILES","statusCode":400}},"THEME_TOO_LARGE":{"summary":"THEME_TOO_LARGE","value":{"message":"The theme is too large.","error":"THEME_TOO_LARGE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `INSUFFICIENT_ENTITLEMENTS`: Your subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"INSUFFICIENT_ENTITLEMENTS":{"summary":"INSUFFICIENT_ENTITLEMENTS","value":{"message":"Your subscription plan does not include this feature.","error":"INSUFFICIENT_ENTITLEMENTS","statusCode":403}}}}}},"404":{"description":"- `THEME_NOT_FOUND`: The requested theme was not found.\n- `THEME_ASSET_NOT_FOUND`: The requested theme asset was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_NOT_FOUND":{"summary":"THEME_NOT_FOUND","value":{"message":"The requested theme was not found.","error":"THEME_NOT_FOUND","statusCode":404}},"THEME_ASSET_NOT_FOUND":{"summary":"THEME_ASSET_NOT_FOUND","value":{"message":"The requested theme asset was not found.","error":"THEME_ASSET_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `THEME_PUBLISHED`: A published theme cannot be changed or deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"THEME_PUBLISHED":{"summary":"THEME_PUBLISHED","value":{"message":"A published theme cannot be changed or deleted.","error":"THEME_PUBLISHED","statusCode":409}}}}}}},"summary":"Delete a Theme Asset","tags":["Salons / Themes"]}},"/v1/salons/{salonId}/conversations/response-examples":{"get":{"description":"Returns a page of the salon's reply corrections, which teach the AI Receptionist how to answer general questions, newest first by default. Needs the Manage Settings permission.","operationId":"ConversationResponseExamplesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these response examples, comma-separated","schema":{"example":"954e87af-762b-4d5c-b3d7-fc399c236af6","type":"array","items":{"type":"string"}}},{"name":"messageId","required":false,"in":"query","description":"Only the response example of this assistant message","schema":{"example":"msg_01m82v0d7ge6xtxk21ct54g8kw","type":"string"}},{"name":"isActive","required":false,"in":"query","description":"Only response examples the assistant uses (`true`) or not (`false`)","schema":{"example":true,"type":"boolean"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Response examples per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of response examples","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseExampleListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Response Examples","tags":["Salons / Conversations / Response Examples"]},"post":{"description":"Saves a correction of an assistant reply, so the AI Receptionist replies better next time. The response examples in `replacedResponseExampleIds` are deleted in the same step. One per message and up to 20 per salon. Needs the Manage Settings permission.","operationId":"ConversationResponseExamplesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponseExampleDto"}}}},"responses":{"201":{"description":"The new response example","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseExampleDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `MESSAGE_NOT_CORRECTABLE`: Only text replies from the assistant to general questions can be corrected.\n- `RESPONSE_EXAMPLE_LIMIT_REACHED`: A salon can have up to 20 response examples.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"MESSAGE_NOT_CORRECTABLE":{"summary":"MESSAGE_NOT_CORRECTABLE","value":{"message":"Only text replies from the assistant to general questions can be corrected.","error":"MESSAGE_NOT_CORRECTABLE","statusCode":400}},"RESPONSE_EXAMPLE_LIMIT_REACHED":{"summary":"RESPONSE_EXAMPLE_LIMIT_REACHED","value":{"message":"A salon can have up to 20 response examples.","error":"RESPONSE_EXAMPLE_LIMIT_REACHED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `MESSAGE_NOT_FOUND`: The requested message was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MESSAGE_NOT_FOUND":{"summary":"MESSAGE_NOT_FOUND","value":{"message":"The requested message was not found.","error":"MESSAGE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `RESPONSE_EXAMPLE_ALREADY_EXISTS`: A response example already exists for this message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESPONSE_EXAMPLE_ALREADY_EXISTS":{"summary":"RESPONSE_EXAMPLE_ALREADY_EXISTS","value":{"message":"A response example already exists for this message.","error":"RESPONSE_EXAMPLE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Response Example","tags":["Salons / Conversations / Response Examples"]}},"/v1/salons/{salonId}/conversations/response-examples/{responseExampleId}":{"get":{"description":"Returns a reply correction of the salon. Needs the Manage Settings permission.","operationId":"ConversationResponseExamplesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"responseExampleId","required":true,"in":"path","description":"Response example ID","schema":{"example":"954e87af-762b-4d5c-b3d7-fc399c236af6","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The response example","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseExampleDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESPONSE_EXAMPLE_NOT_FOUND`: The requested response example was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESPONSE_EXAMPLE_NOT_FOUND":{"summary":"RESPONSE_EXAMPLE_NOT_FOUND","value":{"message":"The requested response example was not found.","error":"RESPONSE_EXAMPLE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Response Example","tags":["Salons / Conversations / Response Examples"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. `correctedResponse` can only be changed on response examples saved with one. Needs the Manage Settings permission.","operationId":"ConversationResponseExamplesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"responseExampleId","required":true,"in":"path","description":"Response example ID","schema":{"example":"954e87af-762b-4d5c-b3d7-fc399c236af6","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResponseExampleDto"}}}},"responses":{"200":{"description":"The response example was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseExampleResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `RESPONSE_EXAMPLE_RESPONSE_NOT_EDITABLE`: The corrected response can't be set for corrections saved without an example.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"RESPONSE_EXAMPLE_RESPONSE_NOT_EDITABLE":{"summary":"RESPONSE_EXAMPLE_RESPONSE_NOT_EDITABLE","value":{"message":"The corrected response can't be set for corrections saved without an example.","error":"RESPONSE_EXAMPLE_RESPONSE_NOT_EDITABLE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `RESPONSE_EXAMPLE_NOT_FOUND`: The requested response example was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESPONSE_EXAMPLE_NOT_FOUND":{"summary":"RESPONSE_EXAMPLE_NOT_FOUND","value":{"message":"The requested response example was not found.","error":"RESPONSE_EXAMPLE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Response Example","tags":["Salons / Conversations / Response Examples"]},"delete":{"description":"Deletes a reply correction; the AI Receptionist stops using it. Needs the Manage Settings permission.","operationId":"ConversationResponseExamplesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"responseExampleId","required":true,"in":"path","description":"Response example ID","schema":{"example":"954e87af-762b-4d5c-b3d7-fc399c236af6","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The response example was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseExampleResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `RESPONSE_EXAMPLE_NOT_FOUND`: The requested response example was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESPONSE_EXAMPLE_NOT_FOUND":{"summary":"RESPONSE_EXAMPLE_NOT_FOUND","value":{"message":"The requested response example was not found.","error":"RESPONSE_EXAMPLE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Response Example","tags":["Salons / Conversations / Response Examples"]}},"/v1/salons/{salonId}/conversations/response-examples/prepare":{"post":{"description":"Analyzes a correction of an assistant reply with AI and returns what to save: the lesson, the corrected reply as an example, a suggested knowledge base change and the existing examples it replaces. Nothing is saved; review the result and send it to `Create a Response Example`. Only text replies to general questions can be corrected, not booking or keyword replies. Needs the Manage Settings permission.","operationId":"ConversationResponseExamplesController_prepare","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareResponseExampleDto"}}}},"responses":{"201":{"description":"The analyzed correction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparedResponseExampleDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `MESSAGE_NOT_CORRECTABLE`: Only text replies from the assistant to general questions can be corrected.\n- `RESPONSE_EXAMPLE_ANALYSIS_FAILED`: The correction could not be analyzed. Please try again.\n- `AI_DISABLED`: AI is currently disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"MESSAGE_NOT_CORRECTABLE":{"summary":"MESSAGE_NOT_CORRECTABLE","value":{"message":"Only text replies from the assistant to general questions can be corrected.","error":"MESSAGE_NOT_CORRECTABLE","statusCode":400}},"RESPONSE_EXAMPLE_ANALYSIS_FAILED":{"summary":"RESPONSE_EXAMPLE_ANALYSIS_FAILED","value":{"message":"The correction could not be analyzed. Please try again.","error":"RESPONSE_EXAMPLE_ANALYSIS_FAILED","statusCode":400}},"AI_DISABLED":{"summary":"AI_DISABLED","value":{"message":"AI is currently disabled.","error":"AI_DISABLED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `MESSAGE_NOT_FOUND`: The requested message was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MESSAGE_NOT_FOUND":{"summary":"MESSAGE_NOT_FOUND","value":{"message":"The requested message was not found.","error":"MESSAGE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Prepare a Response Example","tags":["Salons / Conversations / Response Examples"]}},"/v1/salons/{salonId}/conversations/knowledge-sources":{"get":{"description":"Returns a page of the links the AI Receptionist learns about the salon from, oldest first by default. Needs the Manage Settings permission.","operationId":"ConversationKnowledgeSourcesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these knowledge sources, comma-separated","schema":{"example":"0b475ee6-9c1f-46ac-976a-ddf47215bd1f","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Knowledge sources per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `lastSyncedAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of knowledge sources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeSourceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Knowledge Sources","tags":["Salons / Conversations / Knowledge Sources"]},"post":{"description":"Adds a link to the salon's knowledge base and syncs it in the background: the page (or every page an `llms.txt` file links to) is read so the AI Receptionist can answer from it. Up to 10 links per salon. Needs the Manage Settings permission.","operationId":"ConversationKnowledgeSourcesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKnowledgeSourceDto"}}}},"responses":{"201":{"description":"The new knowledge source, with status `pending`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeSourceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `KNOWLEDGE_SOURCE_URL_INVALID`: The link is not valid.\n- `KNOWLEDGE_SOURCE_LIMIT_REACHED`: A salon can have up to 10 links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"KNOWLEDGE_SOURCE_URL_INVALID":{"summary":"KNOWLEDGE_SOURCE_URL_INVALID","value":{"message":"The link is not valid.","error":"KNOWLEDGE_SOURCE_URL_INVALID","statusCode":400}},"KNOWLEDGE_SOURCE_LIMIT_REACHED":{"summary":"KNOWLEDGE_SOURCE_LIMIT_REACHED","value":{"message":"A salon can have up to 10 links.","error":"KNOWLEDGE_SOURCE_LIMIT_REACHED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"409":{"description":"- `KNOWLEDGE_SOURCE_ALREADY_EXISTS`: This link is already added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"KNOWLEDGE_SOURCE_ALREADY_EXISTS":{"summary":"KNOWLEDGE_SOURCE_ALREADY_EXISTS","value":{"message":"This link is already added.","error":"KNOWLEDGE_SOURCE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Knowledge Source","tags":["Salons / Conversations / Knowledge Sources"]}},"/v1/salons/{salonId}/conversations/knowledge-sources/{knowledgeSourceId}/sync":{"post":{"description":"Reads the link again in the background, so the AI Receptionist knows about changes; its status goes back to `pending`. Needs the Manage Settings permission.","operationId":"ConversationKnowledgeSourcesController_sync","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"knowledgeSourceId","required":true,"in":"path","description":"Knowledge source ID","schema":{"example":"0b475ee6-9c1f-46ac-976a-ddf47215bd1f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The sync has started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeSourceResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `KNOWLEDGE_SOURCE_NOT_FOUND`: The requested link was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"KNOWLEDGE_SOURCE_NOT_FOUND":{"summary":"KNOWLEDGE_SOURCE_NOT_FOUND","value":{"message":"The requested link was not found.","error":"KNOWLEDGE_SOURCE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Sync a Knowledge Source","tags":["Salons / Conversations / Knowledge Sources"]}},"/v1/salons/{salonId}/conversations/knowledge-sources/{knowledgeSourceId}":{"delete":{"description":"Removes a link and everything the AI Receptionist learned from it. Needs the Manage Settings permission.","operationId":"ConversationKnowledgeSourcesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"knowledgeSourceId","required":true,"in":"path","description":"Knowledge source ID","schema":{"example":"0b475ee6-9c1f-46ac-976a-ddf47215bd1f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The knowledge source was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeSourceResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `KNOWLEDGE_SOURCE_NOT_FOUND`: The requested link was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"KNOWLEDGE_SOURCE_NOT_FOUND":{"summary":"KNOWLEDGE_SOURCE_NOT_FOUND","value":{"message":"The requested link was not found.","error":"KNOWLEDGE_SOURCE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Knowledge Source","tags":["Salons / Conversations / Knowledge Sources"]}},"/v1/salons/{salonId}/conversations":{"get":{"description":"Returns a page of the salon's AI Receptionist inbox: conversations on WhatsApp, Messenger (including Instagram), Telegram and the booking site chat. By default the ones with the newest message come first, with `latestMessage` included. Needs the Manage Conversations permission.","operationId":"ConversationsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these conversations, comma-separated","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Conversations per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the contact's first name, last name, email address or phone number","schema":{"example":"cooper","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only conversations with this status","schema":{"enum":["in_progress","resolved","needs_attention"],"type":"string"}},{"name":"type","required":false,"in":"query","description":"Only conversations of this kind","schema":{"enum":["message","comment","call"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `updatedAt`. Leave out to sort by the newest message","schema":{"example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `latestMessage` (the newest message), `messages` (all messages)","schema":{"type":"array","items":{"type":"string","enum":["latestMessage","messages"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of conversations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Conversations","tags":["Salons / Conversations"]}},"/v1/salons/{salonId}/conversations/{conversationId}":{"get":{"description":"Returns a conversation of the salon. Needs the Manage Conversations permission.","operationId":"ConversationsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `latestMessage` (the newest message), `messages` (all messages)","schema":{"type":"array","items":{"type":"string","enum":["latestMessage","messages"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The conversation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Conversation","tags":["Salons / Conversations"]},"patch":{"description":"Changes the contact details, status or whether the AI Receptionist replies, and leaves the rest as it is. Each change is noted in the conversation as a system message. Needs the Manage Conversations permission.","operationId":"ConversationsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationDto"}}}},"responses":{"200":{"description":"The conversation was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Conversation","tags":["Salons / Conversations"]},"delete":{"description":"Deletes a conversation with all its messages. Needs the Manage Conversations permission.","operationId":"ConversationsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The conversation was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Conversation","tags":["Salons / Conversations"]}},"/v1/salons/{salonId}/conversations/{conversationId}/trigger":{"post":{"description":"Has the AI Receptionist reply to the client's latest message now; the reply arrives as a new message. Fails with 400 when the latest message isn't from the client, the assistant is off for the conversation or the salon, the conversation needs attention, or the salon is out of credits. Needs the Manage Conversations permission.","operationId":"ConversationsController_trigger","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The reply is on its way","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResultDto"}}}},"400":{"description":"- `CONVERSATION_HAS_NO_MESSAGES`: The conversation has no messages.\n- `LATEST_MESSAGE_NOT_FROM_CLIENT`: The latest message must be from the client.\n- `CONVERSATION_ASSISTANT_DISABLED`: The AI Receptionist is off for this conversation.\n- `CONVERSATION_NEEDS_ATTENTION`: The conversation needs attention from the team.\n- `AI_DISABLED`: AI is currently disabled.\n- `SALON_ASSISTANT_DISABLED`: The AI Receptionist is off for this salon.\n- `INSUFFICIENT_CREDITS`: There are not enough credits.\n- `SUBSCRIPTION_VERIFICATION_FAILED`: The subscription could not be verified. Please try again.\n- `ASSISTANT_ALREADY_PROCESSING`: The AI Receptionist is already writing a reply.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_HAS_NO_MESSAGES":{"summary":"CONVERSATION_HAS_NO_MESSAGES","value":{"message":"The conversation has no messages.","error":"CONVERSATION_HAS_NO_MESSAGES","statusCode":400}},"LATEST_MESSAGE_NOT_FROM_CLIENT":{"summary":"LATEST_MESSAGE_NOT_FROM_CLIENT","value":{"message":"The latest message must be from the client.","error":"LATEST_MESSAGE_NOT_FROM_CLIENT","statusCode":400}},"CONVERSATION_ASSISTANT_DISABLED":{"summary":"CONVERSATION_ASSISTANT_DISABLED","value":{"message":"The AI Receptionist is off for this conversation.","error":"CONVERSATION_ASSISTANT_DISABLED","statusCode":400}},"CONVERSATION_NEEDS_ATTENTION":{"summary":"CONVERSATION_NEEDS_ATTENTION","value":{"message":"The conversation needs attention from the team.","error":"CONVERSATION_NEEDS_ATTENTION","statusCode":400}},"AI_DISABLED":{"summary":"AI_DISABLED","value":{"message":"AI is currently disabled.","error":"AI_DISABLED","statusCode":400}},"SALON_ASSISTANT_DISABLED":{"summary":"SALON_ASSISTANT_DISABLED","value":{"message":"The AI Receptionist is off for this salon.","error":"SALON_ASSISTANT_DISABLED","statusCode":400}},"INSUFFICIENT_CREDITS":{"summary":"INSUFFICIENT_CREDITS","value":{"message":"There are not enough credits.","error":"INSUFFICIENT_CREDITS","statusCode":400}},"SUBSCRIPTION_VERIFICATION_FAILED":{"summary":"SUBSCRIPTION_VERIFICATION_FAILED","value":{"message":"The subscription could not be verified. Please try again.","error":"SUBSCRIPTION_VERIFICATION_FAILED","statusCode":400}},"ASSISTANT_ALREADY_PROCESSING":{"summary":"ASSISTANT_ALREADY_PROCESSING","value":{"message":"The AI Receptionist is already writing a reply.","error":"ASSISTANT_ALREADY_PROCESSING","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.\n- `MESSAGE_NOT_FOUND`: The requested message was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}},"MESSAGE_NOT_FOUND":{"summary":"MESSAGE_NOT_FOUND","value":{"message":"The requested message was not found.","error":"MESSAGE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Trigger the AI Receptionist","tags":["Salons / Conversations"]}},"/v1/salons/{salonId}/conversations/{conversationId}/suggest":{"post":{"description":"Writes a reply the AI Receptionist would send, for a member to review and send; nothing is sent or saved. Uses the salon's credits, and fails with 400 when the assistant is off for the salon or the salon is out of credits. Needs the Manage Conversations permission.","operationId":"ConversationsController_suggest","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"instruction":{"type":"string","description":"What the reply should say or how it should sound","example":"Offer Friday morning and keep it short"}}}}}},"responses":{"201":{"description":"The suggested reply","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestedReplyDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `AI_DISABLED`: AI is currently disabled.\n- `SALON_ASSISTANT_DISABLED`: The AI Receptionist is off for this salon.\n- `INSUFFICIENT_CREDITS`: There are not enough credits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"AI_DISABLED":{"summary":"AI_DISABLED","value":{"message":"AI is currently disabled.","error":"AI_DISABLED","statusCode":400}},"SALON_ASSISTANT_DISABLED":{"summary":"SALON_ASSISTANT_DISABLED","value":{"message":"The AI Receptionist is off for this salon.","error":"SALON_ASSISTANT_DISABLED","statusCode":400}},"INSUFFICIENT_CREDITS":{"summary":"INSUFFICIENT_CREDITS","value":{"message":"There are not enough credits.","error":"INSUFFICIENT_CREDITS","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.\n- `MISSING_ENTITLEMENT`: The subscription plan does not include this feature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}},"MISSING_ENTITLEMENT":{"summary":"MISSING_ENTITLEMENT","value":{"message":"The subscription plan does not include this feature.","error":"MISSING_ENTITLEMENT","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Suggest a Reply","tags":["Salons / Conversations"]}},"/v1/salons/{salonId}/conversations/{conversationId}/typing":{"post":{"description":"Shows the client that the salon is typing for the next 20 seconds, in the booking site chat. Call it again while the member keeps typing. Needs the Manage Conversations permission.","operationId":"ConversationsController_typing","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The indicator is shown","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Send a Typing Indicator","tags":["Salons / Conversations"]}},"/v1/salons/{salonId}/conversations/{conversationId}/messages":{"get":{"description":"Returns a page of the conversation's messages, newest first by default, including notes and system messages. Needs the Manage Conversations permission.","operationId":"ConversationMessagesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these messages, comma-separated","schema":{"example":"msg_01m82v0d7ge6xtxk21ct54g8kw","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Messages per page, from 5 to 25","schema":{"default":25,"example":25,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the message text","schema":{"example":"friday","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of messages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Messages","tags":["Salons / Conversations / Messages"]},"post":{"description":"Sends a message to the client on the conversation's channel as the signed-in member, and sets the conversation to `in_progress`. A `note` is only saved in the inbox for the team. Needs the Manage Conversations permission.","operationId":"ConversationMessagesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMessageDto"}}}},"responses":{"201":{"description":"The new message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `LIVE_CHAT_DISABLED`: This conversation channel is currently disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"LIVE_CHAT_DISABLED":{"summary":"LIVE_CHAT_DISABLED","value":{"message":"This conversation channel is currently disabled.","error":"LIVE_CHAT_DISABLED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `CONVERSATION_NOT_FOUND`: The requested conversation was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CONVERSATION_NOT_FOUND":{"summary":"CONVERSATION_NOT_FOUND","value":{"message":"The requested conversation was not found.","error":"CONVERSATION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Message","tags":["Salons / Conversations / Messages"]}},"/v1/salons/{salonId}/conversations/{conversationId}/messages/{messageId}":{"get":{"description":"Returns a message of the conversation. Needs the Manage Conversations permission.","operationId":"ConversationMessagesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"conversationId","required":true,"in":"path","description":"Conversation ID","schema":{"example":"conv_01m82v0d7eez5tqhjfd20mpyns","type":"string"}},{"name":"messageId","required":true,"in":"path","description":"Message ID","schema":{"example":"msg_01m82v0d7ge6xtxk21ct54g8kw","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `MESSAGE_NOT_FOUND`: The requested message was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"MESSAGE_NOT_FOUND":{"summary":"MESSAGE_NOT_FOUND","value":{"message":"The requested message was not found.","error":"MESSAGE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Message","tags":["Salons / Conversations / Messages"]}},"/v1/salons/{salonId}/members/{memberId}/time-off":{"get":{"description":"Returns a page of a member's time off, newest first by default. Members manage their own time off; other members' need the Manage Members permission.","operationId":"MemberTimeOffController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these time off entries, comma-separated","schema":{"example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Entries per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"vacation","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `startAt`","schema":{"default":"createdAt","example":"startAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of time off","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeOffListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Time Off","tags":["Salons / Members / Time Off"]},"post":{"description":"Adds a period when the member can't be booked, such as a vacation or sick leave. Members manage their own time off; other members' need the Manage Members permission.","operationId":"MemberTimeOffController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTimeOffDto"}}}},"responses":{"201":{"description":"The new time off","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeOffDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create Time Off","tags":["Salons / Members / Time Off"]}},"/v1/salons/{salonId}/members/{memberId}/time-off/{timeOffId}":{"get":{"description":"Returns one time off entry. Members manage their own time off; other members' need the Manage Members permission.","operationId":"MemberTimeOffController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeOffId","required":true,"in":"path","description":"Time off ID","schema":{"example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The time off","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeOffDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TIME_OFF_NOT_FOUND`: The requested time off was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TIME_OFF_NOT_FOUND":{"summary":"TIME_OFF_NOT_FOUND","value":{"message":"The requested time off was not found.","error":"TIME_OFF_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get Time Off","tags":["Salons / Members / Time Off"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Members manage their own time off; other members' need the Manage Members permission.","operationId":"MemberTimeOffController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeOffId","required":true,"in":"path","description":"Time off ID","schema":{"example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTimeOffDto"}}}},"responses":{"200":{"description":"The time off was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTimeOffResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_TIME_OFF_PERIOD`: The time off must end after it starts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_TIME_OFF_PERIOD":{"summary":"INVALID_TIME_OFF_PERIOD","value":{"message":"The time off must end after it starts.","error":"INVALID_TIME_OFF_PERIOD","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TIME_OFF_NOT_FOUND`: The requested time off was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TIME_OFF_NOT_FOUND":{"summary":"TIME_OFF_NOT_FOUND","value":{"message":"The requested time off was not found.","error":"TIME_OFF_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update Time Off","tags":["Salons / Members / Time Off"]},"delete":{"description":"Removes a time off entry, so the member can be booked in that period again. Members manage their own time off; other members' need the Manage Members permission.","operationId":"MemberTimeOffController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"timeOffId","required":true,"in":"path","description":"Time off ID","schema":{"example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The time off was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTimeOffResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TIME_OFF_NOT_FOUND`: The requested time off was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TIME_OFF_NOT_FOUND":{"summary":"TIME_OFF_NOT_FOUND","value":{"message":"The requested time off was not found.","error":"TIME_OFF_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete Time Off","tags":["Salons / Members / Time Off"]}},"/v1/salons/{salonId}/members/{memberId}/special-days":{"get":{"description":"Returns a page of a member's special days, by date. Members manage their own special days; other members' need the Manage Members permission.","operationId":"MemberSpecialDaysController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these special days, comma-separated","schema":{"example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Special days per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"locationId","required":false,"in":"query","description":"Only special days at this location","schema":{"example":"loc_01h455vb4pex5vsknk084sn02q","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"Only special days on or after this date, as YYYY-MM-DD","schema":{"example":"2026-07-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Only special days on or before this date, as YYYY-MM-DD","schema":{"example":"2026-07-31","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `date`, `createdAt`","schema":{"default":"date","example":"date","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of special days","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialDayListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Special Days","tags":["Salons / Members / Special Days"]},"post":{"description":"Sets a member's hours at a location for one date, replacing their weekly hours there, or makes it a day off. The date can't be in the past and the member must be assigned to the location. Members manage their own special days; other members' need the Manage Members permission.","operationId":"MemberSpecialDaysController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpecialDayDto"}}}},"responses":{"201":{"description":"The new special day","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialDayDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `SPECIAL_DAY_DATE_IN_PAST`: Special days cannot be set for past dates.\n- `MEMBER_NOT_ASSIGNED_TO_LOCATION`: The member is not assigned to this location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"SPECIAL_DAY_DATE_IN_PAST":{"summary":"SPECIAL_DAY_DATE_IN_PAST","value":{"message":"Special days cannot be set for past dates.","error":"SPECIAL_DAY_DATE_IN_PAST","statusCode":400}},"MEMBER_NOT_ASSIGNED_TO_LOCATION":{"summary":"MEMBER_NOT_ASSIGNED_TO_LOCATION","value":{"message":"The member is not assigned to this location.","error":"MEMBER_NOT_ASSIGNED_TO_LOCATION","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"409":{"description":"- `SPECIAL_DAY_ALREADY_EXISTS`: A special day already exists for this date.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SPECIAL_DAY_ALREADY_EXISTS":{"summary":"SPECIAL_DAY_ALREADY_EXISTS","value":{"message":"A special day already exists for this date.","error":"SPECIAL_DAY_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Special Day","tags":["Salons / Members / Special Days"]}},"/v1/salons/{salonId}/members/{memberId}/special-days/{specialDayId}":{"get":{"description":"Returns one of a member's special days. Members manage their own special days; other members' need the Manage Members permission.","operationId":"MemberSpecialDaysController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"specialDayId","required":true,"in":"path","description":"Special day ID","schema":{"example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The special day","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecialDayDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SPECIAL_DAY_NOT_FOUND`: The requested special day was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SPECIAL_DAY_NOT_FOUND":{"summary":"SPECIAL_DAY_NOT_FOUND","value":{"message":"The requested special day was not found.","error":"SPECIAL_DAY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Special Day","tags":["Salons / Members / Special Days"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Special days in the past can't be changed. Members manage their own special days; other members' need the Manage Members permission.","operationId":"MemberSpecialDaysController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"specialDayId","required":true,"in":"path","description":"Special day ID","schema":{"example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSpecialDayDto"}}}},"responses":{"200":{"description":"The special day was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSpecialDayResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `SPECIAL_DAY_DATE_IN_PAST`: Special days cannot be set for past dates.\n- `SPECIAL_DAY_PERIODS_REQUIRED`: At least one period is required when the member is working.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"SPECIAL_DAY_DATE_IN_PAST":{"summary":"SPECIAL_DAY_DATE_IN_PAST","value":{"message":"Special days cannot be set for past dates.","error":"SPECIAL_DAY_DATE_IN_PAST","statusCode":400}},"SPECIAL_DAY_PERIODS_REQUIRED":{"summary":"SPECIAL_DAY_PERIODS_REQUIRED","value":{"message":"At least one period is required when the member is working.","error":"SPECIAL_DAY_PERIODS_REQUIRED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SPECIAL_DAY_NOT_FOUND`: The requested special day was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SPECIAL_DAY_NOT_FOUND":{"summary":"SPECIAL_DAY_NOT_FOUND","value":{"message":"The requested special day was not found.","error":"SPECIAL_DAY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Special Day","tags":["Salons / Members / Special Days"]},"delete":{"description":"Removes a special day; the member's weekly hours apply on that date again. Members manage their own special days; other members' need the Manage Members permission.","operationId":"MemberSpecialDaysController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"specialDayId","required":true,"in":"path","description":"Special day ID","schema":{"example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The special day was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSpecialDayResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SPECIAL_DAY_NOT_FOUND`: The requested special day was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SPECIAL_DAY_NOT_FOUND":{"summary":"SPECIAL_DAY_NOT_FOUND","value":{"message":"The requested special day was not found.","error":"SPECIAL_DAY_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Special Day","tags":["Salons / Members / Special Days"]}},"/v1/salons/{salonId}/members/{memberId}/special-days/bulk":{"post":{"description":"Sets the same hours, or a day off, on up to 31 dates at once. Special days that already exist on these dates are replaced. Each date is saved on its own: dates in the past end up in `failed`. Members manage their own special days; other members' need the Manage Members permission.","operationId":"MemberSpecialDaysController_createBulk","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkSpecialDayDto"}}}},"responses":{"201":{"description":"The saved special days and the dates that failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkSpecialDaysResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `MEMBER_NOT_ASSIGNED_TO_LOCATION`: The member is not assigned to this location.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"MEMBER_NOT_ASSIGNED_TO_LOCATION":{"summary":"MEMBER_NOT_ASSIGNED_TO_LOCATION","value":{"message":"The member is not assigned to this location.","error":"MEMBER_NOT_ASSIGNED_TO_LOCATION","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create Special Days","tags":["Salons / Members / Special Days"]}},"/v1/salons/{salonId}/blocked-times":{"get":{"description":"Returns a page of blocked times, newest first by default. Without the Manage Members permission, members see their own and salon-wide blocked times and manage only their own.","operationId":"BlockedTimesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these blocked times, comma-separated","schema":{"example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Blocked times per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"lunch","type":"string"}},{"name":"memberId","required":false,"in":"query","description":"Only blocked times of this member","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `startAt`","schema":{"default":"createdAt","example":"startAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of blocked times","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedTimeListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Blocked Times","tags":["Salons / Blocked Times"]},"post":{"description":"Blocks a period, such as a break or training, for a member or the whole salon, so it can't be booked. Without the Manage Members permission, members see their own and salon-wide blocked times and manage only their own.","operationId":"BlockedTimesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBlockedTimeDto"}}}},"responses":{"201":{"description":"The new blocked time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedTimeDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INVALID_BLOCKED_TIME_TYPE`: Invalid blocked time type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INVALID_BLOCKED_TIME_TYPE":{"summary":"INVALID_BLOCKED_TIME_TYPE","value":{"message":"Invalid blocked time type.","error":"INVALID_BLOCKED_TIME_TYPE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create a Blocked Time","tags":["Salons / Blocked Times"]}},"/v1/salons/{salonId}/blocked-times/{blockedTimeId}":{"get":{"description":"Returns a blocked time. Without the Manage Members permission, members see their own and salon-wide blocked times and manage only their own.","operationId":"BlockedTimesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"blockedTimeId","required":true,"in":"path","description":"Blocked time ID","schema":{"example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The blocked time","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockedTimeDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BLOCKED_TIME_NOT_FOUND`: The requested blocked time was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BLOCKED_TIME_NOT_FOUND":{"summary":"BLOCKED_TIME_NOT_FOUND","value":{"message":"The requested blocked time was not found.","error":"BLOCKED_TIME_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Blocked Time","tags":["Salons / Blocked Times"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are; blocked times synced from a connected calendar can't be changed. Without the Manage Members permission, members see their own and salon-wide blocked times and manage only their own.","operationId":"BlockedTimesController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"blockedTimeId","required":true,"in":"path","description":"Blocked time ID","schema":{"example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBlockedTimeDto"}}}},"responses":{"200":{"description":"The blocked time was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBlockedTimeResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `INTEGRATION_MANAGED_BLOCKED_TIME`: This blocked time is managed by an integration and cannot be modified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"INTEGRATION_MANAGED_BLOCKED_TIME":{"summary":"INTEGRATION_MANAGED_BLOCKED_TIME","value":{"message":"This blocked time is managed by an integration and cannot be modified.","error":"INTEGRATION_MANAGED_BLOCKED_TIME","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BLOCKED_TIME_NOT_FOUND`: The requested blocked time was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BLOCKED_TIME_NOT_FOUND":{"summary":"BLOCKED_TIME_NOT_FOUND","value":{"message":"The requested blocked time was not found.","error":"BLOCKED_TIME_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Blocked Time","tags":["Salons / Blocked Times"]},"delete":{"description":"Deletes a blocked time, which frees that time for booking again; blocked times synced from a connected calendar can't be deleted. Without the Manage Members permission, members see their own and salon-wide blocked times and manage only their own.","operationId":"BlockedTimesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"blockedTimeId","required":true,"in":"path","description":"Blocked time ID","schema":{"example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The blocked time was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteBlockedTimeResultDto"}}}},"400":{"description":"- `INTEGRATION_MANAGED_BLOCKED_TIME`: This blocked time is managed by an integration and cannot be modified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INTEGRATION_MANAGED_BLOCKED_TIME":{"summary":"INTEGRATION_MANAGED_BLOCKED_TIME","value":{"message":"This blocked time is managed by an integration and cannot be modified.","error":"INTEGRATION_MANAGED_BLOCKED_TIME","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `BLOCKED_TIME_NOT_FOUND`: The requested blocked time was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BLOCKED_TIME_NOT_FOUND":{"summary":"BLOCKED_TIME_NOT_FOUND","value":{"message":"The requested blocked time was not found.","error":"BLOCKED_TIME_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Blocked Time","tags":["Salons / Blocked Times"]}},"/v1/salons/{salonId}/members/{memberId}/calendars":{"get":{"description":"Returns a member's source and destination calendars from connected calendar integrations. For your own member it lists every calendar of your connections, with `isActive` on the selected ones; for others only the selected calendars. Members manage their own calendars; other members' need the Manage Members permission.","operationId":"MemberCalendarsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The member's calendars","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberCalendarsDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get Calendars","tags":["Salons / Members / Calendars"]},"put":{"description":"Replaces the selected calendars: events in source calendars block the member's time, and appointments are copied to the destination calendar. Calendars left out are removed. Only members themselves can add calendars; for others you can only remove them. Members manage their own calendars; other members' need the Manage Members permission.","operationId":"MemberCalendarsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalendarDto"}}}},"responses":{"200":{"description":"The selected calendars","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberCalendarsResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Update Calendars","tags":["Salons / Members / Calendars"]}},"/v1/salons/{salonId}/members/{memberId}/calendars/sync":{"post":{"description":"Syncs the member's selected calendars with their providers now, instead of waiting for the next change notification. Members manage their own calendars; other members' need the Manage Members permission.","operationId":"MemberCalendarsController_sync","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"connectionId","required":false,"in":"query","description":"Only the calendars of this integration connection","schema":{"example":"conn_01h9z2m5qc8xr4vt7w3kbn6fd2","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The synced calendars","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncMemberCalendarsResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NO_CALENDARS_FOUND`: No calendars were found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NO_CALENDARS_FOUND":{"summary":"NO_CALENDARS_FOUND","value":{"message":"No calendars were found.","error":"NO_CALENDARS_FOUND","statusCode":404}}}}}}},"summary":"Sync Calendars","tags":["Salons / Members / Calendars"]}},"/v1/salons/{salonId}/members/{memberId}/calendars/refresh":{"post":{"description":"Renews the change notifications of the member's source calendars, so new events keep blocking their time. Members manage their own calendars; other members' need the Manage Members permission.","operationId":"MemberCalendarsController_refresh","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"memberId","required":true,"in":"path","description":"Member ID, or `@me` for your own member in this salon","schema":{"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b","type":"string"}},{"name":"connectionId","required":false,"in":"query","description":"Only the calendars of this integration connection","schema":{"example":"conn_01h9z2m5qc8xr4vt7w3kbn6fd2","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"201":{"description":"The refreshed calendars","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshMemberCalendarsResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `NO_CALENDARS_FOUND`: No calendars were found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NO_CALENDARS_FOUND":{"summary":"NO_CALENDARS_FOUND","value":{"message":"No calendars were found.","error":"NO_CALENDARS_FOUND","statusCode":404}}}}}}},"summary":"Refresh Calendars","tags":["Salons / Members / Calendars"]}},"/v1/salons/{salonId}/closed-periods":{"get":{"description":"Returns a page of the periods when the salon is closed, newest first by default.","operationId":"ClosedPeriodsController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these closed periods, comma-separated","schema":{"example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Closed periods per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name","schema":{"example":"christmas","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only closed periods of this kind","schema":{"enum":["holiday","maintenance","staff_training","private_event","other"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `startAt`","schema":{"default":"createdAt","example":"startAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of closed periods","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosedPeriodListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Closed Periods","tags":["Salons / Closed Periods"]},"post":{"description":"Closes the whole salon for a period, such as a holiday, so nothing can be booked; existing appointments are kept. Needs the Manage Members permission.","operationId":"ClosedPeriodsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClosedPeriodDto"}}}},"responses":{"201":{"description":"The new closed period","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosedPeriodDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Create a Closed Period","tags":["Salons / Closed Periods"]}},"/v1/salons/{salonId}/closed-periods/{closedPeriodId}":{"get":{"description":"Returns a period when the salon is closed.","operationId":"ClosedPeriodsController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"closedPeriodId","required":true,"in":"path","description":"Closed period ID","schema":{"example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The closed period","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosedPeriodDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CLOSED_PERIOD_NOT_FOUND`: The requested closed period was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLOSED_PERIOD_NOT_FOUND":{"summary":"CLOSED_PERIOD_NOT_FOUND","value":{"message":"The requested closed period was not found.","error":"CLOSED_PERIOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Closed Period","tags":["Salons / Closed Periods"]},"patch":{"description":"Changes the fields sent and leaves the rest as they are. Needs the Manage Members permission.","operationId":"ClosedPeriodsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"closedPeriodId","required":true,"in":"path","description":"Closed period ID","schema":{"example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClosedPeriodDto"}}}},"responses":{"200":{"description":"The closed period was updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClosedPeriodResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CLOSED_PERIOD_NOT_FOUND`: The requested closed period was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLOSED_PERIOD_NOT_FOUND":{"summary":"CLOSED_PERIOD_NOT_FOUND","value":{"message":"The requested closed period was not found.","error":"CLOSED_PERIOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Closed Period","tags":["Salons / Closed Periods"]},"delete":{"description":"Deletes a closed period, which opens that time for booking again. Needs the Manage Members permission.","operationId":"ClosedPeriodsController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"closedPeriodId","required":true,"in":"path","description":"Closed period ID","schema":{"example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The closed period was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteClosedPeriodResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `CLOSED_PERIOD_NOT_FOUND`: The requested closed period was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CLOSED_PERIOD_NOT_FOUND":{"summary":"CLOSED_PERIOD_NOT_FOUND","value":{"message":"The requested closed period was not found.","error":"CLOSED_PERIOD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Closed Period","tags":["Salons / Closed Periods"]}},"/v1/salons/{salonId}/conversations/sessions":{"post":{"description":"Starts the booking site chat for a visitor, who needs an email address, a phone number or both. The conversation is created with the first message. Works without authentication, while the salon's web chat is on.","operationId":"ConversationSessionsController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChatSessionDto"}}}},"responses":{"201":{"description":"The new chat session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSessionDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `LIVE_CHAT_DISABLED`: This conversation channel is currently disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"LIVE_CHAT_DISABLED":{"summary":"LIVE_CHAT_DISABLED","value":{"message":"This conversation channel is currently disabled.","error":"LIVE_CHAT_DISABLED","statusCode":400}}}}}}},"summary":"Create a Chat Session","tags":["Salons / Conversations / Sessions"]}},"/v1/salons/{salonId}/conversations/sessions/{sessionId}/messages":{"get":{"description":"Returns a page of the messages in the chat session's conversation, newest first by default. Works without authentication: the session ID is the key.","operationId":"ConversationSessionsController_getAllMessages","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"sessionId","required":true,"in":"path","description":"Chat session ID","schema":{"example":"convs_01m82v0d7ge6xtxk26npjvg5jp","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these messages, comma-separated","schema":{"example":"msg_01m82v0d7ge6xtxk21ct54g8kw","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Messages per page, from 5 to 25","schema":{"default":25,"example":25,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the message text","schema":{"example":"friday","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of messages","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Chat Session Messages","tags":["Salons / Conversations / Sessions"]},"post":{"description":"Sends the visitor's message to the salon; the first one starts the conversation, and a resolved conversation opens again. `type` is ignored. Works without authentication and is limited to 3 messages per minute per session.","operationId":"ConversationSessionsController_createMessage","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"sessionId","required":true,"in":"path","description":"Chat session ID","schema":{"example":"convs_01m82v0d7ge6xtxk26npjvg5jp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMessageDto"}}}},"responses":{"201":{"description":"The new message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `LIVE_CHAT_DISABLED`: This conversation channel is currently disabled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"LIVE_CHAT_DISABLED":{"summary":"LIVE_CHAT_DISABLED","value":{"message":"This conversation channel is currently disabled.","error":"LIVE_CHAT_DISABLED","statusCode":400}}}}}},"404":{"description":"- `SESSION_NOT_FOUND`: The requested session was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SESSION_NOT_FOUND":{"summary":"SESSION_NOT_FOUND","value":{"message":"The requested session was not found.","error":"SESSION_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create a Chat Session Message","tags":["Salons / Conversations / Sessions"]}},"/v1/salons/{salonId}/action-links":{"post":{"description":"Creates a signed link to the salon's booking site that lets a client act without signing in, such as confirming, rescheduling or canceling an appointment or paying an invoice. Workflows add these links to their messages on their own; use this to send one yourself.","operationId":"ActionLinksController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateActionLinkDto"}}}},"responses":{"201":{"description":"The link to send","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionLinkDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.\n- `SALON_PRIMARY_DOMAIN_NOT_FOUND`: The salon primary domain was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}},"SALON_PRIMARY_DOMAIN_NOT_FOUND":{"summary":"SALON_PRIMARY_DOMAIN_NOT_FOUND","value":{"message":"The salon primary domain was not found.","error":"SALON_PRIMARY_DOMAIN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Create an Action Link","tags":["Salons / Action Links"]}},"/v1/salons/{salonId}/files":{"get":{"description":"Returns a page of the salon's files, newest first. Needs the Manage Salon permission.","operationId":"FilesController_getAll","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"ids","required":false,"in":"query","description":"Only these files, comma-separated","schema":{"example":"file_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Files per page, from 1 to 100","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the file name","schema":{"example":"jane-cooper","type":"string"}},{"name":"purpose","required":false,"in":"query","description":"Only files with this purpose","schema":{"enum":["general","billing","theme"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `originalName`, `sizeBytes`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Files","tags":["Salons / Files"]},"post":{"description":"Uploads a file as `multipart/form-data` and returns its public `url`, to use in fields that take a file, such as `avatar`. Images, PDF, text, CSV, video and audio files are allowed. Up to 10 MB per file, within the salon's storage limit (512 MB unless the plan says otherwise). Any member can upload.","operationId":"FilesController_create","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The file"},"purpose":{"type":"string","enum":["general","theme"],"default":"general","description":"What the file is for: `general`, or `theme` for custom website assets"}},"required":["file"]}}}},"responses":{"201":{"description":"The uploaded file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `FILE_REQUIRED`: No file was provided.\n- `UNSUPPORTED_FILE_TYPE`: This file type is not supported.\n- `FILE_TOO_LARGE`: The file exceeds the maximum size of 10 MB.\n- `FILE_CREATION_RESTRICTED`: Files with this purpose cannot be uploaded.\n- `STORAGE_QUOTA_EXCEEDED`: The storage limit has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"FILE_REQUIRED":{"summary":"FILE_REQUIRED","value":{"message":"No file was provided.","error":"FILE_REQUIRED","statusCode":400}},"UNSUPPORTED_FILE_TYPE":{"summary":"UNSUPPORTED_FILE_TYPE","value":{"message":"This file type is not supported.","error":"UNSUPPORTED_FILE_TYPE","statusCode":400}},"FILE_TOO_LARGE":{"summary":"FILE_TOO_LARGE","value":{"message":"The file exceeds the maximum size of 10 MB.","error":"FILE_TOO_LARGE","statusCode":400}},"FILE_CREATION_RESTRICTED":{"summary":"FILE_CREATION_RESTRICTED","value":{"message":"Files with this purpose cannot be uploaded.","error":"FILE_CREATION_RESTRICTED","statusCode":400}},"STORAGE_QUOTA_EXCEEDED":{"summary":"STORAGE_QUOTA_EXCEEDED","value":{"message":"The storage limit has been reached.","error":"STORAGE_QUOTA_EXCEEDED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}}},"summary":"Upload a File","tags":["Salons / Files"]}},"/v1/salons/{salonId}/files/{fileId}":{"get":{"description":"Returns one file of the salon. Needs the Manage Salon permission.","operationId":"FilesController_getById","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"fileId","required":true,"in":"path","description":"File ID","schema":{"example":"file_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `FILE_NOT_FOUND`: The requested file was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FILE_NOT_FOUND":{"summary":"FILE_NOT_FOUND","value":{"message":"The requested file was not found.","error":"FILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a File","tags":["Salons / Files"]},"delete":{"description":"Deletes a file; its URL stops working. Invoices can't be deleted. Needs the Manage Salon permission.","operationId":"FilesController_delete","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"fileId","required":true,"in":"path","description":"File ID","schema":{"example":"file_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The file was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFileResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `NOT_A_MEMBER`: You are not a member of this salon.\n- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.\n- `FILE_DELETION_RESTRICTED`: This file cannot be deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NOT_A_MEMBER":{"summary":"NOT_A_MEMBER","value":{"message":"You are not a member of this salon.","error":"NOT_A_MEMBER","statusCode":403}},"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}},"FILE_DELETION_RESTRICTED":{"summary":"FILE_DELETION_RESTRICTED","value":{"message":"This file cannot be deleted.","error":"FILE_DELETION_RESTRICTED","statusCode":403}}}}}},"404":{"description":"- `FILE_NOT_FOUND`: The requested file was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FILE_NOT_FOUND":{"summary":"FILE_NOT_FOUND","value":{"message":"The requested file was not found.","error":"FILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a File","tags":["Salons / Files"]}},"/v1/salons/{salonId}/files/import":{"post":{"description":"Downloads a file from a public link and stores it like an upload, returning its own `url`, to use in fields that take a file, such as `images`. The type is read from the file itself: images, PDF, text, CSV, video and audio files are allowed. Up to 10 MB per file, within the salon's storage limit (512 MB unless the plan says otherwise). Any member can import.","operationId":"FilesController_import","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFileDto"}}}},"responses":{"201":{"description":"The imported file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `FILE_DOWNLOAD_FAILED`: FILE_DOWNLOAD_FAILED\n- `UNSUPPORTED_FILE_TYPE`: This file type is not supported.\n- `FILE_TOO_LARGE`: The file exceeds the maximum size of 10 MB.\n- `FILE_CREATION_RESTRICTED`: Files with this purpose cannot be uploaded.\n- `STORAGE_QUOTA_EXCEEDED`: The storage limit has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"FILE_DOWNLOAD_FAILED":{"summary":"FILE_DOWNLOAD_FAILED","value":{"message":"FILE_DOWNLOAD_FAILED","error":"FILE_DOWNLOAD_FAILED","statusCode":400}},"UNSUPPORTED_FILE_TYPE":{"summary":"UNSUPPORTED_FILE_TYPE","value":{"message":"This file type is not supported.","error":"UNSUPPORTED_FILE_TYPE","statusCode":400}},"FILE_TOO_LARGE":{"summary":"FILE_TOO_LARGE","value":{"message":"The file exceeds the maximum size of 10 MB.","error":"FILE_TOO_LARGE","statusCode":400}},"FILE_CREATION_RESTRICTED":{"summary":"FILE_CREATION_RESTRICTED","value":{"message":"Files with this purpose cannot be uploaded.","error":"FILE_CREATION_RESTRICTED","statusCode":400}},"STORAGE_QUOTA_EXCEEDED":{"summary":"STORAGE_QUOTA_EXCEEDED","value":{"message":"The storage limit has been reached.","error":"STORAGE_QUOTA_EXCEEDED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `INSUFFICIENT_PERMISSIONS`: You do not have the required permissions to access this resource.\n- `MEMBER_DEACTIVATED`: This member account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"INSUFFICIENT_PERMISSIONS":{"summary":"INSUFFICIENT_PERMISSIONS","value":{"message":"You do not have the required permissions to access this resource.","error":"INSUFFICIENT_PERMISSIONS","statusCode":403}},"MEMBER_DEACTIVATED":{"summary":"MEMBER_DEACTIVATED","value":{"message":"This member account has been deactivated.","error":"MEMBER_DEACTIVATED","statusCode":403}}}}}},"429":{"description":"Too many requests. Please try again later. Limited to 30 a minute and 300 an hour, per IP address and per salon.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Import a File","tags":["Salons / Files"]}},"/v1/billing/products":{"get":{"description":"Returns a page of the active products a salon can buy from Softalon once, such as credit packs, with their active prices, newest first.","operationId":"ProductsController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these products, comma-separated","schema":{"example":"bprod_01h9t6n4p8qf3tvw7m2bxcd5gk","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Products per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the product name","schema":{"example":"credits","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only products of this type","schema":{"enum":["credits"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProductListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Products","tags":["Billing / Products"]}},"/v1/billing/products/{productId}":{"get":{"description":"Returns an active product with its active prices.","operationId":"ProductsController_getById","parameters":[{"name":"productId","required":true,"in":"path","description":"Product ID","schema":{"example":"bprod_01h9t6n4p8qf3tvw7m2bxcd5gk","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProductDto"}}}},"404":{"description":"- `PRODUCT_NOT_FOUND`: The requested product was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRODUCT_NOT_FOUND":{"summary":"PRODUCT_NOT_FOUND","value":{"message":"The requested product was not found.","error":"PRODUCT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Product","tags":["Billing / Products"]}},"/v1/billing/plans":{"get":{"description":"Returns a page of the active Softalon subscription plans with their active prices, newest first. Pass `salonId` to learn whether that salon can still start a free trial (`metadata.isTrialEligible`).","operationId":"PlansController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these plans, comma-separated","schema":{"example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Plans per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the plan name","schema":{"example":"pro","type":"string"}},{"name":"salonId","required":false,"in":"query","description":"Salon to check trial eligibility for; a salon that already had a subscription can't start another trial","schema":{"example":"sal_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of plans","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPlanListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Plans","tags":["Billing / Plans"]}},"/v1/billing/plans/{planId}":{"get":{"description":"Returns an active plan with its active prices.","operationId":"PlansController_getById","parameters":[{"name":"planId","required":true,"in":"path","description":"Plan ID","schema":{"example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPlanDto"}}}},"404":{"description":"- `PLAN_NOT_FOUND`: The requested plan was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PLAN_NOT_FOUND":{"summary":"PLAN_NOT_FOUND","value":{"message":"The requested plan was not found.","error":"PLAN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Plan","tags":["Billing / Plans"]}},"/v1/billing/plans/{planId}/prices":{"get":{"description":"Returns the plan's active prices, newest first, e.g. monthly and yearly. Without `page` and `perPage`, returns all of them.","operationId":"PlansController_getPrices","parameters":[{"name":"planId","required":true,"in":"path","description":"Plan ID","schema":{"example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Prices per page, from 5 to 25","schema":{"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Not used: prices can't be searched","schema":{"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of the plan's prices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPriceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Plan Prices","tags":["Billing / Plans"]}},"/v1/billing/prices":{"get":{"description":"Returns a page of the active prices of one plan or product, newest first. Pass exactly one of `planId` and `productId`, otherwise the request fails with 400.","operationId":"PricesController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these prices, comma-separated","schema":{"example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Prices per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"productId","required":false,"in":"query","description":"Prices of this product; send this or `planId`, not both","schema":{"example":"bprod_01h9t6n4p8qf3tvw7m2bxcd5gk","type":"string"}},{"name":"planId","required":false,"in":"query","description":"Prices of this plan; send this or `productId`, not both","schema":{"example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea","type":"string"}},{"name":"currency","required":false,"in":"query","description":"Only prices in this three-letter currency code","schema":{"example":"USD","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related objects to include, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["plan","product"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of prices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPriceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PLAN_OR_PRODUCT_ID_REQUIRED`: Either a plan ID or a product ID is required, but not both.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PLAN_OR_PRODUCT_ID_REQUIRED":{"summary":"PLAN_OR_PRODUCT_ID_REQUIRED","value":{"message":"Either a plan ID or a product ID is required, but not both.","error":"PLAN_OR_PRODUCT_ID_REQUIRED","statusCode":400}}}}}}},"summary":"Get All Prices","tags":["Billing / Prices (Products & Plans)"]}},"/v1/billing/prices/{priceId}":{"get":{"description":"Returns an active price with its plan or product.","operationId":"PricesController_getById","parameters":[{"name":"priceId","required":true,"in":"path","description":"Price ID","schema":{"example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The price","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPriceDto"}}}},"404":{"description":"- `PRICE_NOT_FOUND`: The requested price was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Price","tags":["Billing / Prices (Products & Plans)"]}},"/v1/billing/rate-card":{"get":{"description":"How many credits SMS, WhatsApp and AI conversations cost, from the active credit rates. With `countryCode`, notification prices are only those for that country or for every country. No authentication needed.","operationId":"RateCardController_get","parameters":[{"name":"countryCode","required":false,"in":"query","description":"ISO 3166-1 alpha-2 country code of the recipients, e.g. `US`","schema":{"example":"US","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The rate card","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateCardDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get the Rate Card","tags":["Billing / Rate Card"]}},"/v1/partners/resources":{"get":{"description":"Returns a page of resources for partners (sales decks, marketing material), newest first. Active partners only.","operationId":"ResourcesController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these resources, comma-separated","schema":{"example":"3f2b8c1e-7a4d-4e9b-8c6f-1d2e3a4b5c6d","type":"array","items":{"type":"string"}}},{"name":"category","required":false,"in":"query","description":"Only resources of this category","schema":{"enum":["sales","marketing","onboarding"],"type":"string"}},{"name":"language","required":false,"in":"query","description":"Only resources in this language","schema":{"enum":["en","de","fr","es","it","pt","hr","bs","sr"],"type":"string"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the title","schema":{"example":"deck","type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only items created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Resources per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","title","category","language"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of resources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerResourceListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get All Resources","tags":["Partners / Resources"]}},"/v1/partners/resources/{resourceId}":{"get":{"description":"Returns a resource for partners. Active partners only.","operationId":"ResourcesController_getById","parameters":[{"name":"resourceId","required":true,"in":"path","description":"Resource ID","schema":{"example":"3f2b8c1e-7a4d-4e9b-8c6f-1d2e3a4b5c6d","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerResourceDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `RESOURCE_NOT_FOUND`: The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"RESOURCE_NOT_FOUND":{"summary":"RESOURCE_NOT_FOUND","value":{"message":"The requested resource was not found.","error":"RESOURCE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Resource","tags":["Partners / Resources"]}},"/v1/partners/salons":{"get":{"description":"Returns the salons the partner set up for clients and still holds, soonest expiry first, with how many the partner can hold. Partners on a tier that allows creating salons.","operationId":"SalonsController_getAll","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The partner's client salons","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSalonListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.\n- `SALON_CREATION_NOT_ALLOWED`: SALON_CREATION_NOT_ALLOWED","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}},"SALON_CREATION_NOT_ALLOWED":{"summary":"SALON_CREATION_NOT_ALLOWED","value":{"message":"SALON_CREATION_NOT_ALLOWED","error":"SALON_CREATION_NOT_ALLOWED","statusCode":403}}}}}}},"summary":"Get All Client Salons","tags":["Partners / Salons"]},"post":{"description":"Gives a salon the partner created for a client (`POST /salons` with `expiresAt`) a trial of the chosen plan without a card, with a custom website, until the salon expires. The salon becomes the partner's lead. Hand it over with `POST /salons/{salonId}/transfer` (a member without an account gets it with their invitation): the expiry ends, the trial is canceled and the new owner sets up billing without a trial. Unless handed over, the salon is deleted when it expires. Partners on a tier that allows creating salons.","operationId":"SalonsController_create","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePartnerSalonDto"}}}},"responses":{"201":{"description":"The salon and its expiry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSalonResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `INVALID_EXPIRES_AT`: INVALID_EXPIRES_AT\n- `SALON_NOT_EXPIRING`: SALON_NOT_EXPIRING","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"INVALID_EXPIRES_AT":{"summary":"INVALID_EXPIRES_AT","value":{"message":"INVALID_EXPIRES_AT","error":"INVALID_EXPIRES_AT","statusCode":400}},"SALON_NOT_EXPIRING":{"summary":"SALON_NOT_EXPIRING","value":{"message":"SALON_NOT_EXPIRING","error":"SALON_NOT_EXPIRING","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.\n- `SALON_CREATION_NOT_ALLOWED`: SALON_CREATION_NOT_ALLOWED\n- `NOT_SALON_OWNER`: Only the salon owner can perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}},"SALON_CREATION_NOT_ALLOWED":{"summary":"SALON_CREATION_NOT_ALLOWED","value":{"message":"SALON_CREATION_NOT_ALLOWED","error":"SALON_CREATION_NOT_ALLOWED","statusCode":403}},"NOT_SALON_OWNER":{"summary":"NOT_SALON_OWNER","value":{"message":"Only the salon owner can perform this action.","error":"NOT_SALON_OWNER","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.\n- `PRICE_NOT_FOUND`: The requested price was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}},"PRICE_NOT_FOUND":{"summary":"PRICE_NOT_FOUND","value":{"message":"The requested price was not found.","error":"PRICE_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `BILLING_PROFILE_ALREADY_EXISTS`: A billing profile already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"BILLING_PROFILE_ALREADY_EXISTS":{"summary":"BILLING_PROFILE_ALREADY_EXISTS","value":{"message":"A billing profile already exists.","error":"BILLING_PROFILE_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Set Up a Salon for a Client","tags":["Partners / Salons"]}},"/v1/partners/salons/{salonId}":{"patch":{"description":"Moves the expiry of a client salon (at most 60 days after it was created); its trial ends then too. Partners on a tier that allows creating salons.","operationId":"SalonsController_update","parameters":[{"name":"salonId","required":true,"in":"path","description":"Salon ID","schema":{"example":"sal_01h9x8w1x5y9z3a7b0c4d8e2f6","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerSalonDto"}}}},"responses":{"200":{"description":"The salon and its new expiry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSalonResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `INVALID_EXPIRES_AT`: INVALID_EXPIRES_AT\n- `SALON_NOT_EXPIRING`: SALON_NOT_EXPIRING","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"INVALID_EXPIRES_AT":{"summary":"INVALID_EXPIRES_AT","value":{"message":"INVALID_EXPIRES_AT","error":"INVALID_EXPIRES_AT","statusCode":400}},"SALON_NOT_EXPIRING":{"summary":"SALON_NOT_EXPIRING","value":{"message":"SALON_NOT_EXPIRING","error":"SALON_NOT_EXPIRING","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.\n- `SALON_CREATION_NOT_ALLOWED`: SALON_CREATION_NOT_ALLOWED\n- `NOT_SALON_OWNER`: Only the salon owner can perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}},"SALON_CREATION_NOT_ALLOWED":{"summary":"SALON_CREATION_NOT_ALLOWED","value":{"message":"SALON_CREATION_NOT_ALLOWED","error":"SALON_CREATION_NOT_ALLOWED","statusCode":403}},"NOT_SALON_OWNER":{"summary":"NOT_SALON_OWNER","value":{"message":"Only the salon owner can perform this action.","error":"NOT_SALON_OWNER","statusCode":403}}}}}},"404":{"description":"- `SALON_NOT_FOUND`: The requested salon was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALON_NOT_FOUND":{"summary":"SALON_NOT_FOUND","value":{"message":"The requested salon was not found.","error":"SALON_NOT_FOUND","statusCode":404}}}}}}},"summary":"Extend a Client Salon","tags":["Partners / Salons"]}},"/v1/partners/leads":{"get":{"description":"Returns a page of the signed-in partner's leads, newest first.","operationId":"LeadsController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these leads, comma-separated","schema":{"example":"lead_01h9x5m8n2p6q3r7s1t4v9w2x5","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Leads per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the account ID or salon ID: a full ID, or part of the UUID","schema":{"example":"8d4b2f6e","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","firstSaleAt"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `campaign`","schema":{"type":"array","items":{"type":"string","enum":["campaign"]}}},{"name":"createdAt","required":false,"in":"query","description":"Only items created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"campaignId","required":false,"in":"query","description":"Only data of this campaign","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of leads","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerLeadListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get All Leads","tags":["Partners / Leads"]}},"/v1/partners/leads/summary":{"get":{"description":"Returns, per period of the date range, how many leads joined a salon and how many only signed up, for a chart. Periods without leads are 0.","operationId":"LeadsController_getSummary","parameters":[{"name":"campaignId","required":false,"in":"query","description":"Only data of this campaign","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"First day of the range, as YYYY-MM-DD. Without both dates the range is the current month; with one, 30 days from or to it","schema":{"example":"2026-03-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Last day of the range, as YYYY-MM-DD","schema":{"example":"2026-03-31","type":"string"}},{"name":"groupBy","required":false,"in":"query","description":"Period to group by. Ignored when it doesn't fit the range (days up to 90 days, weeks 7 days to 2 years, months from 30 days, years from 180 days); by default picked from the range length","schema":{"enum":["day","week","month","year"],"type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of the dates and periods","schema":{"default":"UTC","example":"America/New_York","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Leads per period","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerLeadSummaryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get a Lead Summary","tags":["Partners / Leads"]}},"/v1/partners/leads/{leadId}":{"get":{"description":"Returns a lead. Partners can only get their own leads.","operationId":"LeadsController_getById","parameters":[{"name":"leadId","required":true,"in":"path","description":"Lead ID","schema":{"example":"lead_01h9x5m8n2p6q3r7s1t4v9w2x5","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `campaign`","schema":{"type":"array","items":{"type":"string","enum":["campaign"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The lead","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerLeadDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `LEAD_NOT_FOUND`: The requested lead was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"LEAD_NOT_FOUND":{"summary":"LEAD_NOT_FOUND","value":{"message":"The requested lead was not found.","error":"LEAD_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Lead","tags":["Partners / Leads"]}},"/v1/partners/sales":{"get":{"description":"Returns a page of the signed-in partner's sales, newest first, whatever their payment status.","operationId":"SalesController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these sales, comma-separated","schema":{"example":"sale_01h9x6y3z7a1b5c9d2e6f0g4h8","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Sales per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the salon ID: a full ID, or part of the UUID","schema":{"example":"3b7e1c9a","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","paymentStatus","amount","commissionAmount"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `campaign`","schema":{"type":"array","items":{"type":"string","enum":["campaign"]}}},{"name":"createdAt","required":false,"in":"query","description":"Only items created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"campaignId","required":false,"in":"query","description":"Only data of this campaign","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of sales","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSaleListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get All Sales","tags":["Partners / Sales"]}},"/v1/partners/sales/summary":{"get":{"description":"Returns, per period of the date range, the net amount (payments minus commission) and the commission of successful sales, for a chart. Periods without sales are 0.","operationId":"SalesController_getSummary","parameters":[{"name":"campaignId","required":false,"in":"query","description":"Only data of this campaign","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"First day of the range, as YYYY-MM-DD. Without both dates the range is the current month; with one, 30 days from or to it","schema":{"example":"2026-03-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Last day of the range, as YYYY-MM-DD","schema":{"example":"2026-03-31","type":"string"}},{"name":"groupBy","required":false,"in":"query","description":"Period to group by. Ignored when it doesn't fit the range (days up to 90 days, weeks 7 days to 2 years, months from 30 days, years from 180 days); by default picked from the range length","schema":{"enum":["day","week","month","year"],"type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of the dates and periods","schema":{"default":"UTC","example":"America/New_York","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Net amount and commission per period","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSaleSummaryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get a Sale Summary","tags":["Partners / Sales"]}},"/v1/partners/sales/{saleId}":{"get":{"description":"Returns a sale. Partners can only get their own sales.","operationId":"SalesController_getById","parameters":[{"name":"saleId","required":true,"in":"path","description":"Sale ID","schema":{"example":"sale_01h9x6y3z7a1b5c9d2e6f0g4h8","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `campaign`","schema":{"type":"array","items":{"type":"string","enum":["campaign"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The sale","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSaleDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `SALE_NOT_FOUND`: The requested sale was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"SALE_NOT_FOUND":{"summary":"SALE_NOT_FOUND","value":{"message":"The requested sale was not found.","error":"SALE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Sale","tags":["Partners / Sales"]}},"/v1/partners/campaigns/availability":{"get":{"description":"Checks whether a campaign code is still free. Pass `campaignId` to ignore that campaign's own code.","operationId":"CampaignsController_checkAvailability","parameters":[{"name":"code","required":true,"in":"query","description":"Code to check","schema":{"example":"JANECOOPER","type":"string"}},{"name":"campaignId","required":false,"in":"query","description":"Campaign whose own code doesn't count","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Whether the code is free","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCampaignAvailabilityDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Check a Campaign Code","tags":["Partners / Campaigns"]}},"/v1/partners/campaigns":{"get":{"description":"Returns a page of the signed-in partner's campaigns, newest first.","operationId":"CampaignsController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these campaigns, comma-separated","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Campaigns per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name or code","schema":{"example":"instagram","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","name","code"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only items created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `summary` (lifetime leads, sales and revenue)","schema":{"type":"array","items":{"type":"string","enum":["summary"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of campaigns","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCampaignListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get All Campaigns","tags":["Partners / Campaigns"]},"post":{"description":"Creates a campaign for the signed-in partner. Without a code, or when the partner's tier doesn't allow custom codes, an 8-character code is generated.","operationId":"CampaignsController_create","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignDto"}}}},"responses":{"201":{"description":"The new campaign","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCampaignDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `CAMPAIGN_CODE_ALREADY_IN_USE`: This campaign code is already in use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"CAMPAIGN_CODE_ALREADY_IN_USE":{"summary":"CAMPAIGN_CODE_ALREADY_IN_USE","value":{"message":"This campaign code is already in use.","error":"CAMPAIGN_CODE_ALREADY_IN_USE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Create a Campaign","tags":["Partners / Campaigns"]}},"/v1/partners/campaigns/summary":{"get":{"description":"Returns the net revenue (successful payments minus commission) of each campaign in the date range and its share of the total, for a chart. Only campaigns with sales are listed.","operationId":"CampaignsController_getSummary","parameters":[{"name":"startDate","required":false,"in":"query","description":"First day of the range, as YYYY-MM-DD. Without both dates the range is the current month; with one, 30 days from or to it","schema":{"example":"2026-03-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Last day of the range, as YYYY-MM-DD","schema":{"example":"2026-03-31","type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of the dates and periods","schema":{"default":"UTC","example":"America/New_York","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Net revenue by campaign","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCampaignRevenueSummaryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get a Campaign Summary","tags":["Partners / Campaigns"]}},"/v1/partners/campaigns/{campaignId}":{"get":{"description":"Returns a campaign. Partners can only get their own campaigns.","operationId":"CampaignsController_getById","parameters":[{"name":"campaignId","required":true,"in":"path","description":"Campaign ID","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include: `summary` (lifetime leads, sales and revenue)","schema":{"type":"array","items":{"type":"string","enum":["summary"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The campaign","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCampaignDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `CAMPAIGN_NOT_FOUND`: The requested campaign was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CAMPAIGN_NOT_FOUND":{"summary":"CAMPAIGN_NOT_FOUND","value":{"message":"The requested campaign was not found.","error":"CAMPAIGN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Campaign","tags":["Partners / Campaigns"]},"patch":{"description":"Renames a campaign; the code can't be changed. Partners can only update their own campaigns.","operationId":"CampaignsController_update","parameters":[{"name":"campaignId","required":true,"in":"path","description":"Campaign ID","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignDto"}}}},"responses":{"200":{"description":"The updated campaign's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerCampaignResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `CAMPAIGN_NOT_FOUND`: The requested campaign was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CAMPAIGN_NOT_FOUND":{"summary":"CAMPAIGN_NOT_FOUND","value":{"message":"The requested campaign was not found.","error":"CAMPAIGN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Campaign","tags":["Partners / Campaigns"]},"delete":{"description":"Deletes a campaign. Its leads and sales stay with the partner, without a campaign. Partners can only delete their own campaigns.","operationId":"CampaignsController_delete","parameters":[{"name":"campaignId","required":true,"in":"path","description":"Campaign ID","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The deleted campaign's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePartnerCampaignResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `CAMPAIGN_NOT_FOUND`: The requested campaign was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"CAMPAIGN_NOT_FOUND":{"summary":"CAMPAIGN_NOT_FOUND","value":{"message":"The requested campaign was not found.","error":"CAMPAIGN_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Campaign","tags":["Partners / Campaigns"]}},"/v1/partners/payouts":{"get":{"description":"Returns a page of the signed-in partner's payouts, newest first.","operationId":"PayoutsController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these payouts, comma-separated","schema":{"example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Payouts per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","amount","status"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"createdAt","required":false,"in":"query","description":"Only items created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only payouts with these statuses, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["pending","completed"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of payouts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerPayoutListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get All Payouts","tags":["Partners / Payouts"]},"post":{"description":"Requests a payout of earned commission for the signed-in partner. Without an amount the whole available balance (commission of successful sales minus all payouts) is requested. Partners must request at least their tier's minimum and always start as `pending`.","operationId":"PayoutsController_create","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePayoutDto"}}}},"responses":{"201":{"description":"The new payout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerPayoutDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `INSUFFICIENT_AVAILABLE_BALANCE`: Insufficient available balance.\n- `BELOW_MINIMUM_PAYOUT_AMOUNT`: The amount is below the minimum payout amount.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"INSUFFICIENT_AVAILABLE_BALANCE":{"summary":"INSUFFICIENT_AVAILABLE_BALANCE","value":{"message":"Insufficient available balance.","error":"INSUFFICIENT_AVAILABLE_BALANCE","statusCode":400}},"BELOW_MINIMUM_PAYOUT_AMOUNT":{"summary":"BELOW_MINIMUM_PAYOUT_AMOUNT","value":{"message":"The amount is below the minimum payout amount.","error":"BELOW_MINIMUM_PAYOUT_AMOUNT","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Create a Payout","tags":["Partners / Payouts"]}},"/v1/partners/payouts/{payoutId}":{"get":{"description":"Returns a payout. Partners can only get their own payouts.","operationId":"PayoutsController_getById","parameters":[{"name":"payoutId","required":true,"in":"path","description":"Payout ID","schema":{"example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The payout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerPayoutDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `PAYOUT_NOT_FOUND`: The requested payout was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYOUT_NOT_FOUND":{"summary":"PAYOUT_NOT_FOUND","value":{"message":"The requested payout was not found.","error":"PAYOUT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Payout","tags":["Partners / Payouts"]},"patch":{"description":"Changes the amount (`null` for the whole available balance). Partners can only update their own pending payouts.","operationId":"PayoutsController_update","parameters":[{"name":"payoutId","required":true,"in":"path","description":"Payout ID","schema":{"example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePayoutDto"}}}},"responses":{"200":{"description":"The updated payout's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerPayoutResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `PAYOUT_CANNOT_BE_UPDATED`: This payout cannot be updated.\n- `INSUFFICIENT_AVAILABLE_BALANCE`: Insufficient available balance.\n- `BELOW_MINIMUM_PAYOUT_AMOUNT`: The amount is below the minimum payout amount.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"PAYOUT_CANNOT_BE_UPDATED":{"summary":"PAYOUT_CANNOT_BE_UPDATED","value":{"message":"This payout cannot be updated.","error":"PAYOUT_CANNOT_BE_UPDATED","statusCode":400}},"INSUFFICIENT_AVAILABLE_BALANCE":{"summary":"INSUFFICIENT_AVAILABLE_BALANCE","value":{"message":"Insufficient available balance.","error":"INSUFFICIENT_AVAILABLE_BALANCE","statusCode":400}},"BELOW_MINIMUM_PAYOUT_AMOUNT":{"summary":"BELOW_MINIMUM_PAYOUT_AMOUNT","value":{"message":"The amount is below the minimum payout amount.","error":"BELOW_MINIMUM_PAYOUT_AMOUNT","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `PAYOUT_NOT_FOUND`: The requested payout was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYOUT_NOT_FOUND":{"summary":"PAYOUT_NOT_FOUND","value":{"message":"The requested payout was not found.","error":"PAYOUT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Payout","tags":["Partners / Payouts"]},"delete":{"description":"Deletes a payout, so its amount is available again. Partners can only delete their own pending payouts.","operationId":"PayoutsController_delete","parameters":[{"name":"payoutId","required":true,"in":"path","description":"Payout ID","schema":{"example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The deleted payout's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePartnerPayoutResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `PAYOUT_CANNOT_BE_DELETED`: This payout cannot be deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"PAYOUT_CANNOT_BE_DELETED":{"summary":"PAYOUT_CANNOT_BE_DELETED","value":{"message":"This payout cannot be deleted.","error":"PAYOUT_CANNOT_BE_DELETED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `PAYOUT_NOT_FOUND`: The requested payout was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PAYOUT_NOT_FOUND":{"summary":"PAYOUT_NOT_FOUND","value":{"message":"The requested payout was not found.","error":"PAYOUT_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Payout","tags":["Partners / Payouts"]}},"/v1/partners/conversions/summary":{"get":{"description":"Returns, per period of the date range, how many referred salons made a successful payment, for a chart. Periods without conversions are 0.","operationId":"ConversionsController_getSummary","parameters":[{"name":"campaignId","required":false,"in":"query","description":"Only data of this campaign","schema":{"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"First day of the range, as YYYY-MM-DD. Without both dates the range is the current month; with one, 30 days from or to it","schema":{"example":"2026-03-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Last day of the range, as YYYY-MM-DD","schema":{"example":"2026-03-31","type":"string"}},{"name":"groupBy","required":false,"in":"query","description":"Period to group by. Ignored when it doesn't fit the range (days up to 90 days, weeks 7 days to 2 years, months from 30 days, years from 180 days); by default picked from the range length","schema":{"enum":["day","week","month","year"],"type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of the dates and periods","schema":{"default":"UTC","example":"America/New_York","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"Conversions per period","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerConversionSummaryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get a Conversion Summary","tags":["Partners / Conversions"]}},"/v1/partners":{"get":{"description":"Returns the signed-in account's partner profile, as a page with at most one item.","operationId":"PartnersController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these partners, comma-separated","schema":{"example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Partners per page, from 5 to 25","schema":{"default":10,"example":10,"type":"number"}},{"name":"accountId","required":false,"in":"query","description":"Only the partner of this account, or `@me` for the signed-in account","schema":{"example":"@me","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by","schema":{"enum":["createdAt","updatedAt","country","role","audienceSize","experienceLevel","status"],"type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `account` (the partner's account), `tier`","schema":{"type":"array","items":{"type":"string","enum":["account","tier"]}}},{"name":"createdAt","required":false,"in":"query","description":"Only items created in this ISO 8601 interval, e.g. `2026-01-01/2026-02-01`","schema":{"example":"2026-01-01T00:00:00Z/2026-02-01T00:00:00Z","type":"string"}},{"name":"status","required":false,"in":"query","description":"Only partners with these statuses, comma-separated","schema":{"type":"array","items":{"type":"string","enum":["pending","active","inactive"]}}},{"name":"tierId","required":false,"in":"query","description":"Only partners on this tier","schema":{"example":"tier_01h9x8w1x5y9z3a7b0c4d8e2f6","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of partners","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Partners","tags":["Partners"]},"post":{"description":"Applies to the partner program with the signed-in account. With a default tier the partner is `active` on it right away, otherwise `pending` until reviewed; an active partner gets a Default Campaign. An account can have only one partner.","operationId":"PartnersController_create","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePartnerDto"}}}},"responses":{"201":{"description":"The new partner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_TIER_REQUIRED`: A partner tier is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_TIER_REQUIRED":{"summary":"PARTNER_TIER_REQUIRED","value":{"message":"A partner tier is required.","error":"PARTNER_TIER_REQUIRED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `TIER_NOT_FOUND`: The requested tier was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TIER_NOT_FOUND":{"summary":"TIER_NOT_FOUND","value":{"message":"The requested tier was not found.","error":"TIER_NOT_FOUND","statusCode":404}}}}}},"409":{"description":"- `PARTNER_ALREADY_EXISTS`: A partner account already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PARTNER_ALREADY_EXISTS":{"summary":"PARTNER_ALREADY_EXISTS","value":{"message":"A partner account already exists.","error":"PARTNER_ALREADY_EXISTS","statusCode":409}}}}}}},"summary":"Create a Partner","tags":["Partners"]}},"/v1/partners/{partnerId}":{"get":{"description":"Returns a partner. Partners can only get their own profile.","operationId":"PartnersController_getById","parameters":[{"name":"partnerId","required":true,"in":"path","description":"Partner ID","schema":{"example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc","type":"string"}},{"name":"expand","required":false,"in":"query","description":"Related data to include, comma-separated: `account` (the partner's account), `tier`","schema":{"type":"array","items":{"type":"string","enum":["account","tier"]}}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The partner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Partner","tags":["Partners"]},"patch":{"description":"Changes the fields sent. Partners always update their own profile, whatever the `partnerId`; the tier and status are set by Softalon.","operationId":"PartnersController_update","parameters":[{"name":"partnerId","required":true,"in":"path","description":"Partner ID","schema":{"example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerDto"}}}},"responses":{"200":{"description":"The updated partner's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.\n- `PARTNER_TIER_REQUIRED`: A partner tier is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}},"PARTNER_TIER_REQUIRED":{"summary":"PARTNER_TIER_REQUIRED","value":{"message":"A partner tier is required.","error":"PARTNER_TIER_REQUIRED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `TIER_NOT_FOUND`: The requested tier was not found.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"TIER_NOT_FOUND":{"summary":"TIER_NOT_FOUND","value":{"message":"The requested tier was not found.","error":"TIER_NOT_FOUND","statusCode":404}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Update a Partner","tags":["Partners"]},"delete":{"description":"Deletes the partner with its campaigns, leads, sales and payouts. Partners always delete their own profile, whatever the `partnerId`.","operationId":"PartnersController_delete","parameters":[{"name":"partnerId","required":true,"in":"path","description":"Partner ID","schema":{"example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The deleted partner's ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePartnerResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a Partner","tags":["Partners"]}},"/v1/partners/{partnerId}/summary":{"get":{"description":"Returns the balance (always current) and the sales, commission and leads in the date range, counting only successful payments. Partners always get their own summary, whatever the `partnerId`.","operationId":"PartnersController_getSummary","parameters":[{"name":"partnerId","required":true,"in":"path","description":"Partner ID","schema":{"example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"First day of the range, as YYYY-MM-DD. Without both dates the range is the current month; with one, 30 days from or to it","schema":{"example":"2026-03-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Last day of the range, as YYYY-MM-DD","schema":{"example":"2026-03-31","type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of the dates and periods","schema":{"default":"UTC","example":"America/New_York","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The partner's key numbers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSummaryDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}},"404":{"description":"- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Partner Summary","tags":["Partners"]}},"/v1/partners/{partnerId}/analytics":{"get":{"description":"Returns website visits that came through the partner's campaign codes, compared to the previous period of the same length. With `type`, returns only that section (the object or list of the matching field). Partners always get their own analytics, whatever the `partnerId`.","operationId":"AnalyticsController_getById","parameters":[{"name":"partnerId","required":true,"in":"path","description":"Partner ID","schema":{"example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"Start of the range, as an ISO 8601 date or date-time. Defaults to 30 days before `endDate`","schema":{"example":"2026-03-01","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"End of the range, as an ISO 8601 date or date-time. Defaults to now","schema":{"example":"2026-03-31","type":"string"}},{"name":"timezone","required":false,"in":"query","description":"IANA time zone of the peak traffic hours","schema":{"default":"UTC","example":"America/New_York","type":"string"}},{"name":"type","required":false,"in":"query","description":"Only this section; all of them when left out","schema":{"enum":["summary","top-channels","top-countries","top-pages","device-breakdown","top-campaigns","peak-traffic-hours"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The analytics, or only the section asked for with `type`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerAnalyticsDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `PARTNER_NOT_ACTIVE`: This partner is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"PARTNER_NOT_ACTIVE":{"summary":"PARTNER_NOT_ACTIVE","value":{"message":"This partner is not active.","error":"PARTNER_NOT_ACTIVE","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `PARTNER_NOT_FOUND`: The requested partner was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"PARTNER_NOT_FOUND":{"summary":"PARTNER_NOT_FOUND","value":{"message":"The requested partner was not found.","error":"PARTNER_NOT_FOUND","statusCode":403}}}}}}},"summary":"Get Partner Analytics","tags":["Partners / Analytics"]}},"/v1/workflows/templates":{"get":{"description":"Returns a page of the ready-made workflows salons can add, newest first by default. Works without authentication.","operationId":"WorkflowTemplatesController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these templates, comma-separated","schema":{"example":"wflt_01h7k2b8mqz5r9tvw3n6fdc4xp","type":"array","items":{"type":"string"}}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the name or the description","schema":{"example":"reminder","type":"string"}},{"name":"category","required":false,"in":"query","description":"Only templates in this category","schema":{"example":"reminders","type":"string"}},{"name":"language","required":false,"in":"query","description":"Only templates in this language","schema":{"enum":["en","de","fr","es","it","pt","hr","bs","sr"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `name`, `category`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Templates per page, from 5 to 25","schema":{"default":25,"example":25,"type":"number"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of workflow templates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplateListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All Workflow Templates","tags":["Workflows / Templates"]}},"/v1/workflows/templates/{workflowTemplateId}":{"get":{"description":"Returns a workflow template with its nodes and edges. Works without authentication.","operationId":"WorkflowTemplatesController_getById","parameters":[{"name":"workflowTemplateId","required":true,"in":"path","description":"Workflow template ID","schema":{"example":"wflt_01h7k2b8mqz5r9tvw3n6fdc4xp","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The workflow template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTemplateDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"404":{"description":"- `WORKFLOW_TEMPLATE_NOT_FOUND`: The requested workflow template was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_TEMPLATE_NOT_FOUND":{"summary":"WORKFLOW_TEMPLATE_NOT_FOUND","value":{"message":"The requested workflow template was not found.","error":"WORKFLOW_TEMPLATE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a Workflow Template","tags":["Workflows / Templates"]}},"/v1/workflows/{workflowId}/nodes/{nodeId}":{"post":{"description":"The webhook URL of a workflow with the `webhook` trigger: send a POST here from another system to start the workflow. No authentication; the request's `method`, `headers` (lowercase, without cookies), `query` and JSON `body` are available in the workflow as `$request`, e.g. `{{ $request.body.email }}`.\n\nProtect the URL with the trigger's condition, e.g. `{{ $request.headers.authorization === \"Bearer my-secret\" }}`: when it doesn't hold, no execution is started. Up to 60 calls a minute and 1,000 an hour per workflow.","operationId":"WorkflowsWebhookController_handleWebhook","parameters":[{"name":"workflowId","required":true,"in":"path","description":"Workflow ID","schema":{"example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp","type":"string"}},{"name":"nodeId","required":true,"in":"path","description":"ID of the workflow's start node","schema":{"example":"0f8b6c2e-3d4a-4b7e-9c1f-2a5d8e7b6c41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":false,"description":"Any JSON, available in the workflow as `$request.body`","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"example":{"firstName":"Jane","lastName":"Cooper","email":"jane@yoursalon.com","phoneNumber":"+12025550143"}}}}},"responses":{"202":{"description":"The started execution, or `null` when the condition doesn't hold","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWorkflowResultDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `WORKFLOW_NOT_ACTIVE`: The workflow is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"WORKFLOW_NOT_ACTIVE":{"summary":"WORKFLOW_NOT_ACTIVE","value":{"message":"The workflow is not active.","error":"WORKFLOW_NOT_ACTIVE","statusCode":400}}}}}},"403":{"description":"- `NO_SUBSCRIPTION`: An active subscription is required.\n- `SUBSCRIPTION_INCOMPLETE`: The subscription is incomplete. An active subscription is required.\n- `SUBSCRIPTION_CANCELED`: The subscription has been canceled. An active subscription is required.\n- `SUBSCRIPTION_UNPAID`: The subscription is unpaid. An active subscription is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"NO_SUBSCRIPTION":{"summary":"NO_SUBSCRIPTION","value":{"message":"An active subscription is required.","error":"NO_SUBSCRIPTION","statusCode":403}},"SUBSCRIPTION_INCOMPLETE":{"summary":"SUBSCRIPTION_INCOMPLETE","value":{"message":"The subscription is incomplete. An active subscription is required.","error":"SUBSCRIPTION_INCOMPLETE","statusCode":403}},"SUBSCRIPTION_CANCELED":{"summary":"SUBSCRIPTION_CANCELED","value":{"message":"The subscription has been canceled. An active subscription is required.","error":"SUBSCRIPTION_CANCELED","statusCode":403}},"SUBSCRIPTION_UNPAID":{"summary":"SUBSCRIPTION_UNPAID","value":{"message":"The subscription is unpaid. An active subscription is required.","error":"SUBSCRIPTION_UNPAID","statusCode":403}}}}}},"404":{"description":"- `WORKFLOW_NOT_FOUND`: The requested workflow was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WORKFLOW_NOT_FOUND":{"summary":"WORKFLOW_NOT_FOUND","value":{"message":"The requested workflow was not found.","error":"WORKFLOW_NOT_FOUND","statusCode":404}}}}}},"429":{"description":"Too many requests. Please try again later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"security":[],"summary":"Trigger a Webhook Workflow","tags":["Workflows"]}},"/v1/notifications/whatsapp-templates":{"get":{"description":"Returns a page of the WhatsApp templates that can be sent with Send a Notification, by ID. WhatsApp messages must use one of them, filled with `templateVariables`.","operationId":"WhatsAppTemplatesController_getAll","parameters":[{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Templates per page, from 5 to 100","schema":{"default":25,"example":25,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the display name","schema":{"example":"reminder","type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `id`, `name`, `createdAt`","schema":{"default":"id","example":"id","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of WhatsApp templates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}}},"summary":"Get All WhatsApp Templates","tags":["Notifications / WhatsApp Templates"]}},"/v1/notifications/whatsapp-templates/{whatsappTemplateId}":{"get":{"description":"Returns a WhatsApp template, with the placeholders its `templateVariables` fill.","operationId":"WhatsAppTemplatesController_getById","parameters":[{"name":"whatsappTemplateId","required":true,"in":"path","description":"WhatsApp template ID","schema":{"example":"appointment_reminder","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The WhatsApp template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateDto"}}}},"404":{"description":"- `WHATSAPP_TEMPLATE_NOT_FOUND`: The requested WhatsApp template was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"WHATSAPP_TEMPLATE_NOT_FOUND":{"summary":"WHATSAPP_TEMPLATE_NOT_FOUND","value":{"message":"The requested WhatsApp template was not found.","error":"WHATSAPP_TEMPLATE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a WhatsApp Template","tags":["Notifications / WhatsApp Templates"]}},"/v1/files":{"get":{"description":"Returns a page of the files uploaded by the signed-in account, newest first.","operationId":"FilesController_getAll","parameters":[{"name":"ids","required":false,"in":"query","description":"Only these files, comma-separated","schema":{"example":"file_01h2xcejqtf2nbrexx3vqjhp41","type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","description":"Page, starting at 1","schema":{"default":1,"example":1,"type":"number"}},{"name":"perPage","required":false,"in":"query","description":"Files per page, from 1 to 100","schema":{"default":10,"example":10,"type":"number"}},{"name":"searchQuery","required":false,"in":"query","description":"Matches the file name","schema":{"example":"jane-cooper","type":"string"}},{"name":"purpose","required":false,"in":"query","description":"Only files with this purpose","schema":{"enum":["general","billing","theme"],"type":"string"}},{"name":"sortColumn","required":false,"in":"query","description":"Field to sort by, e.g. `createdAt`, `originalName`, `sizeBytes`","schema":{"default":"createdAt","example":"createdAt","type":"string"}},{"name":"sortDirection","required":false,"in":"query","description":"Sort order","schema":{"enum":["ASC","DESC"],"type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"A page of files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileListDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Get All Files","tags":["Files"]},"post":{"description":"Uploads a file as `multipart/form-data` and returns its public `url`, to use in fields that take a file, such as `avatar`. Images, PDF, text, CSV, video and audio files are allowed. Up to 10 MB per file and 256 MB per account.","operationId":"FilesController_create","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The file"},"purpose":{"type":"string","enum":["general","theme"],"default":"general","description":"What the file is for: `general`, or `theme` for custom website assets"}},"required":["file"]}}}},"responses":{"201":{"description":"The uploaded file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `FILE_REQUIRED`: No file was provided.\n- `UNSUPPORTED_FILE_TYPE`: This file type is not supported.\n- `FILE_TOO_LARGE`: The file exceeds the maximum size of 10 MB.\n- `FILE_CREATION_RESTRICTED`: Files with this purpose cannot be uploaded.\n- `STORAGE_QUOTA_EXCEEDED`: The storage limit has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"FILE_REQUIRED":{"summary":"FILE_REQUIRED","value":{"message":"No file was provided.","error":"FILE_REQUIRED","statusCode":400}},"UNSUPPORTED_FILE_TYPE":{"summary":"UNSUPPORTED_FILE_TYPE","value":{"message":"This file type is not supported.","error":"UNSUPPORTED_FILE_TYPE","statusCode":400}},"FILE_TOO_LARGE":{"summary":"FILE_TOO_LARGE","value":{"message":"The file exceeds the maximum size of 10 MB.","error":"FILE_TOO_LARGE","statusCode":400}},"FILE_CREATION_RESTRICTED":{"summary":"FILE_CREATION_RESTRICTED","value":{"message":"Files with this purpose cannot be uploaded.","error":"FILE_CREATION_RESTRICTED","statusCode":400}},"STORAGE_QUOTA_EXCEEDED":{"summary":"STORAGE_QUOTA_EXCEEDED","value":{"message":"The storage limit has been reached.","error":"STORAGE_QUOTA_EXCEEDED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}}},"summary":"Upload a File","tags":["Files"]}},"/v1/files/{fileId}":{"get":{"description":"Returns one file of the account.","operationId":"FilesController_getById","parameters":[{"name":"fileId","required":true,"in":"path","description":"File ID","schema":{"example":"file_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"404":{"description":"- `FILE_NOT_FOUND`: The requested file was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FILE_NOT_FOUND":{"summary":"FILE_NOT_FOUND","value":{"message":"The requested file was not found.","error":"FILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Get a File","tags":["Files"]},"delete":{"description":"Deletes a file; its URL stops working. Invoices can't be deleted.","operationId":"FilesController_delete","parameters":[{"name":"fileId","required":true,"in":"path","description":"File ID","schema":{"example":"file_01h2xcejqtf2nbrexx3vqjhp41","type":"string"}},{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"responses":{"200":{"description":"The file was deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFileResultDto"}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.\n- `FILE_DELETION_RESTRICTED`: This file cannot be deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}},"FILE_DELETION_RESTRICTED":{"summary":"FILE_DELETION_RESTRICTED","value":{"message":"This file cannot be deleted.","error":"FILE_DELETION_RESTRICTED","statusCode":403}}}}}},"404":{"description":"- `FILE_NOT_FOUND`: The requested file was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FILE_NOT_FOUND":{"summary":"FILE_NOT_FOUND","value":{"message":"The requested file was not found.","error":"FILE_NOT_FOUND","statusCode":404}}}}}}},"summary":"Delete a File","tags":["Files"]}},"/v1/files/import":{"post":{"description":"Downloads a file from a public link and stores it like an upload, returning its own `url`, to use in fields that take a file, such as `avatar`. The type is read from the file itself: images, PDF, text, CSV, video and audio files are allowed. Up to 10 MB per file and 256 MB per account.","operationId":"FilesController_import","parameters":[{"name":"X-Language","in":"header","required":false,"description":"Override the language for error messages. Supported: `en`, `de`, `fr`, `es`, `it`, `pt`, `hr`, `bs`, `sr`.","schema":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"default":"en"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportAccountFileDto"}}}},"responses":{"201":{"description":"The imported file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDto"}}}},"400":{"description":"- `FIELD_VALIDATION_ERROR`: Validation failed: firstName must be a string; perPage must not be greater than 25.\n- `FILE_DOWNLOAD_FAILED`: FILE_DOWNLOAD_FAILED\n- `UNSUPPORTED_FILE_TYPE`: This file type is not supported.\n- `FILE_TOO_LARGE`: The file exceeds the maximum size of 10 MB.\n- `FILE_CREATION_RESTRICTED`: Files with this purpose cannot be uploaded.\n- `STORAGE_QUOTA_EXCEEDED`: The storage limit has been reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"FIELD_VALIDATION_ERROR":{"summary":"FIELD_VALIDATION_ERROR","value":{"message":"Validation failed: firstName must be a string; perPage must not be greater than 25.","error":"FIELD_VALIDATION_ERROR","statusCode":400}},"FILE_DOWNLOAD_FAILED":{"summary":"FILE_DOWNLOAD_FAILED","value":{"message":"FILE_DOWNLOAD_FAILED","error":"FILE_DOWNLOAD_FAILED","statusCode":400}},"UNSUPPORTED_FILE_TYPE":{"summary":"UNSUPPORTED_FILE_TYPE","value":{"message":"This file type is not supported.","error":"UNSUPPORTED_FILE_TYPE","statusCode":400}},"FILE_TOO_LARGE":{"summary":"FILE_TOO_LARGE","value":{"message":"The file exceeds the maximum size of 10 MB.","error":"FILE_TOO_LARGE","statusCode":400}},"FILE_CREATION_RESTRICTED":{"summary":"FILE_CREATION_RESTRICTED","value":{"message":"Files with this purpose cannot be uploaded.","error":"FILE_CREATION_RESTRICTED","statusCode":400}},"STORAGE_QUOTA_EXCEEDED":{"summary":"STORAGE_QUOTA_EXCEEDED","value":{"message":"The storage limit has been reached.","error":"STORAGE_QUOTA_EXCEEDED","statusCode":400}}}}}},"401":{"description":"- `AUTHENTICATION_REQUIRED`: Authentication is required to access this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"AUTHENTICATION_REQUIRED":{"summary":"AUTHENTICATION_REQUIRED","value":{"message":"Authentication is required to access this resource.","error":"AUTHENTICATION_REQUIRED","statusCode":401}}}}}},"403":{"description":"- `ACCOUNT_DEACTIVATED`: This account has been deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"},"examples":{"ACCOUNT_DEACTIVATED":{"summary":"ACCOUNT_DEACTIVATED","value":{"message":"This account has been deactivated.","error":"ACCOUNT_DEACTIVATED","statusCode":403}}}}}},"429":{"description":"Too many requests. Please try again later. Limited to 30 a minute and 300 an hour, per IP address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Import a File","tags":["Files"]}}},"info":{"title":"Softalon API","description":"The All-In-One Salon Booking and Scheduling Software.\n\n## Authentication\n\nThe Softalon API supports the following authentication methods:\n\n### Access Token (OAuth 2.0)\n\nAll API apps use the standard OAuth 2.0 protocol. Pass the access token in the `Authorization` header:\n\n```\nAuthorization: Bearer <access_token>\n```\n\n**Salon Apps** act on behalf of a salon using the **Client Credentials** grant type (machine-to-machine).\nRequest a token from the token endpoint using your app's `client_id` and `client_secret`:\n\n```\nPOST https://connect.softalon.com/oauth2/token\nContent-Type: application/x-www-form-urlencoded\n\ngrant_type=client_credentials&client_id=<client_id>&client_secret=<client_secret>&scope=<scopes>\n```\n\n**Account Apps** act on behalf of an authorized user using the **Authorization Code** grant type.\nRedirect the user to authorize your app:\n\n```\nGET https://connect.softalon.com/oauth2/auth?response_type=code&client_id=<client_id>&redirect_uri=<redirect_uri>&scope=<scopes>&state=<state>\n```\n\nThen exchange the authorization code for an access token:\n\n```\nPOST https://connect.softalon.com/oauth2/token\nContent-Type: application/x-www-form-urlencoded\n\ngrant_type=authorization_code&code=<code>&redirect_uri=<redirect_uri>&client_id=<client_id>&client_secret=<client_secret>\n```\n\n### Client Session\n\nClient sessions authenticate end-customers (e.g. clients using the booking portal) within a salon context. \nPass the session ID in the `X-Client-Session-Id` header:\n\n```\nX-Client-Session-Id: <client_session_id>\n```\n\n## Localization\n\nAPI error messages are returned in the language specified by the request. The language is determined using the following priority:\n\n1. **`language` cookie** — Persistent user preference (e.g., set by a language switcher in the UI).\n2. **`X-Language` header** — Per-request override. Pass a supported language code to receive error messages in that language.\n3. **`Accept-Language` header** — Standard browser header, used as a fallback.\n4. **English (`en`)** — Default if none of the above are provided or recognized.\n\n### Supported Languages\n\n| Code | Language |\n| --- | --- |\n| `en` | English |\n| `de` | German |\n| `fr` | French |\n| `es` | Spanish |\n| `it` | Italian |\n| `pt` | Portuguese |\n| `hr` | Croatian |\n| `bs` | Bosnian |\n| `sr` | Serbian |\n\n### Example\n\n```\nX-Language: de\n```\n\nResponse:\n\n```json\n{\n  \"error\": \"CLIENT_NOT_FOUND\",\n  \"message\": \"Der angeforderte Kunde wurde nicht gefunden.\",\n  \"statusCode\": 404\n}\n```\n\n## Webhooks\n\nWebhooks allow your application to receive real-time notifications when events occur in Softalon. \nInstead of polling the API for changes, you register an endpoint URL and Softalon will send HTTP POST requests to it whenever subscribed events fire.\n\n### Setting Up Webhooks\n\nCreate a webhook endpoint via the [Webhook Endpoints API](#tag/salons--webhook-endpoints/GET/v1/salons/{salonId}/webhook-endpoints) with a `url` and a list of `topics` you want to subscribe to. \nSoftalon will generate a `secret` for the endpoint that you'll use to verify incoming payloads.\n\n### Payload Structure\n\nEvery webhook delivery is an HTTP POST with a JSON body containing the event envelope:\n\n```json\n{\n  \"topic\": \"clients/client.created\",\n  \"event\": {\n    \"id\": \"evt_01JKX...\",\n    \"type\": \"clients/client.created\",\n    \"scope\": \"primary\",\n    \"resource\": \"client\",\n    \"resourceId\": \"cli_01h2xcejqtf2nbrexx3vqjhp41\",\n    \"salonId\": \"sal_01h2xcejqtf2nbrexx3vqjhp41\",\n    \"data\": {\n      \"object\": { \"...\": \"full resource object\" },\n      \"previousAttributes\": null\n    },\n    \"timestamp\": \"2025-06-01T12:00:00.000Z\",\n    \"transactionId\": \"txn_01JKX...\",\n    \"sequenceNumber\": 1\n  }\n}\n```\n\nFor **update** events (`*.updated`), `data.previousAttributes` contains only the fields that changed, with their values **before** the update. For **created** and **deleted** events, `previousAttributes` is `null`.\n\n### Headers\n\nEvery webhook request includes the following headers:\n\n| Header | Description |\n| --- | --- |\n| `Content-Type` | Always `application/json` |\n| `User-Agent` | Always `Softalon API` |\n| `X-Webhook-Signature` | HMAC-SHA256 signature of the JSON-serialized request body (see Signature Verification) |\n| `X-Webhook-Topic` | The event topic (e.g., `clients/client.created`) |\n| `X-Webhook-Endpoint-Id` | The ID of the webhook endpoint that matched |\n| `X-Webhook-Delivery-Id` | Unique ID of this delivery attempt (useful for deduplication and debugging) |\n\n### Source IP\n\nDo not rely on IP allowlisting for webhook verification — our source IP address may change without notice. Always use [signature verification](#section/Webhooks/Signature-Verification) to authenticate incoming webhook requests.\n\n### Signature Verification\n\nTo verify that a webhook request is authentic, compute an HMAC-SHA256 hash of the request body using your endpoint's `secret` and compare it to the `X-Webhook-Signature` header.\n\nThe signature is computed over `JSON.stringify(body)` — the JSON-serialized payload. This means you can verify the signature by calling `JSON.stringify()` on the parsed request body, without needing access to the raw bytes.\n\nThe signature uses the format `sha256=<hex-digest>`. Example verification in Node.js:\n\n```javascript\nconst crypto = require(\"crypto\");\n\nfunction verifyWebhookSignature(parsedBody, signature, secret) {\n  const expected = \"sha256=\" + crypto\n    .createHmac(\"sha256\", secret)\n    .update(JSON.stringify(parsedBody))\n    .digest(\"hex\");\n  return crypto.timingSafeEqual(\n    Buffer.from(signature, \"utf8\"),\n    Buffer.from(expected, \"utf8\")\n  );\n}\n```\n\n### Event Types\n\nEvents are categorized into two scopes:\n\n- **Primary events** (`scope: \"primary\"`) — Core CRUD lifecycle events (`created`, `updated`, `deleted`). These are always published when the underlying resource changes.\n- **Derived events** (`scope: \"derived\"`) — Conditional state-change events (e.g., `booking/appointment.confirmed`, `finances/invoice.paid`). These are published only when a resource transitions to a specific state.\n\n### Event Ordering\n\nWebhook events are **not guaranteed to arrive in the order they occurred**. This is a fundamental characteristic of distributed systems — network latency, retries, and concurrent processing can all cause events to be delivered out of sequence. For example, you might receive a `clients/client.updated` event before the corresponding `clients/client.created` event.\n\nEach event includes fields to help you determine the correct order:\n\n- **`timestamp`** — ISO 8601 timestamp of when the event occurred.\n- **`transactionId`** — Groups events that were produced in the same transaction. Events with the same `transactionId` are causally related.\n- **`sequenceNumber`** — The ordering position within a transaction. When multiple events share the same `transactionId`, use `sequenceNumber` to determine their relative order.\n\nIf your application is sensitive to ordering, we recommend implementing a short buffer (queue) on your side. Hold incoming events briefly and sort them by `timestamp` and `transactionId`/`sequenceNumber` before processing. This allows out-of-order events to arrive and be placed in the correct sequence.\n\n### Retries & Delivery\n\nWhen a webhook delivery fails (network error, timeout, or non-2xx response), Softalon automatically retries with exponential backoff:\n\n| Attempt | Delay |\n| --- | --- |\n| 1 | Immediate |\n| 2 | ~30 seconds |\n| 3 | ~1 minute |\n| 4 | ~2 minutes |\n| 5 | ~4 minutes |\n\nAfter 5 failed attempts, the delivery is marked as `exhausted` and no further retries are made for that event.\n\nIf 5 consecutive deliveries to the same endpoint are all exhausted (25 total failed attempts), the endpoint is **automatically disabled** (`isActive: false`) to prevent wasting resources on unreachable URLs. You can re-enable it via the API once the issue is resolved.\n\nYou can monitor delivery history and status via the [Webhook Deliveries API](#tag/salons--webhook-deliveries/GET/v1/salons/{salonId}/webhook-endpoints/{webhookEndpointId}/deliveries). Each delivery record includes the attempt count, status code, error message, and timestamps.\n\nEach webhook request includes an `X-Webhook-Delivery-Id` header that you can use for deduplication — if your endpoint receives the same delivery ID twice, you can safely ignore the duplicate.","version":"1.0.0","contact":{},"termsOfService":"https://www.softalon.com/terms"},"tags":[{"name":"Accounts","description":"Use `@me` in place of an account ID for the signed-in account."},{"name":"Accounts / Integrations","description":"Calendars connected to the account."},{"name":"Files","description":"Upload files to get a URL for fields that take a file, such as `avatar`."},{"name":"Salons / Members","description":"Use `@me` in place of a member ID for your own member in the salon."},{"name":"Salons / Locations","description":"Places where the salon offers services."},{"name":"Salons / Resources","description":"Things services need and only so many of exist at once, like rooms or chairs; they limit overlapping appointments."},{"name":"Salons / Services","description":"Services clients can book, with prices in the salon's currency; member and location assignments can override price and duration."},{"name":"Salons / Services / Resource Requirements","description":"Rooms, chairs or equipment a service needs; an appointment is only bookable when they are free."},{"name":"Salons / Products","description":"Products the salon sells, such as hair care."},{"name":"Salons / Appointments","description":"To book: pick a location, service and member, find free times with Search Availability or Get Available Time Slots, check the price with Prepare an Appointment, then Create an Appointment. Times are ISO 8601, and slots come back in UTC."},{"name":"Salons / Availability","description":"Free times for booking. Works without signing in."},{"name":"Salons / Reviews","description":"Without signing in, you see only approved reviews."},{"name":"Salons / Clients","description":"Clients of a salon. With a client session (`X-Client-Session-Id`), a client reads and updates only their own profile."},{"name":"Salons / Clients / Sessions","description":"Sign-in for clients on the booking site with a one-time code."},{"name":"Salons / Conversations","description":"The AI Receptionist inbox: WhatsApp, Messenger (including Instagram), Telegram and the booking site chat."},{"name":"Salons / Conversations / Sessions","description":"The booking site chat for visitors, without authentication."},{"name":"Salons / Conversations / Knowledge Sources","description":"Links the AI Receptionist learns about the salon from."},{"name":"Salons / Conversations / Response Examples","description":"Reply corrections that teach the AI Receptionist."},{"name":"Salons / Settings","description":"Settings are grouped in namespaces. Updates merge into the saved values."},{"name":"Salons / Themes","description":"Custom websites in Liquid. A theme holds only the files that replace parts of the standard booking site; publish one with the appearance setting `customWebsite.themeId`."},{"name":"Salons / Domains","description":"The booking site's onsoftalon.com subdomain and custom domains."},{"name":"Salons / Integrations","description":"Third-party services connected to the salon."},{"name":"Salons / Finances / Invoices","description":"Invoices the salon issues to its clients; amounts are decimals in the salon's currency."},{"name":"Salons / Finances / Payments","description":"Payments toward invoices and the salon's Softalon Payments account."},{"name":"Salons / Finances / Payments / Refunds","description":"Money given back to clients from a payment."},{"name":"Salons / Billing / Billing Profile","description":"The company details Softalon bills the salon to, its balance, and its credits for SMS, WhatsApp and the AI Receptionist."},{"name":"Salons / Billing / Subscriptions","description":"The salon's Softalon plan: free trial, renewals, coupons, cancellation and plan changes."},{"name":"Salons / Billing / Invoices","description":"Invoices from Softalon to the salon, for its subscription and credit purchases."},{"name":"Salons / Billing / Invoices / Payments","description":"Payment attempts for the salon's Softalon invoices."},{"name":"Salons / Billing / Payment Methods","description":"Cards the salon pays Softalon with, added through Stripe."},{"name":"Salons / Notifications","description":"In-app notifications for members and clients, and messages sent to them by email, SMS, WhatsApp or push."},{"name":"Salons / Notifications / History","description":"Messages the salon sent by email, SMS, WhatsApp and push."},{"name":"Salons / Notifications / Sender Profiles","description":"The salon's own email server or SMS sender ID."},{"name":"Salons / Notifications / Phone Numbers","description":"Phone numbers the salon sends SMS from."},{"name":"Salons / Notifications / Compliance","description":"Carrier registrations a phone number needs before it can send SMS."},{"name":"Salons / Notifications / Preferences","description":"Which channels are on, for you or for the whole salon."},{"name":"Salons / Notifications / Push Subscriptions","description":"Web push for signed-in clients."},{"name":"Salons / Workflows","description":"Automations: a trigger (an event such as `booking/appointment.created`, `manual` or `webhook`) followed by steps like sending an SMS, WhatsApp or email, waiting, conditions and HTTP requests."},{"name":"Salons / Workflow Executions","description":"Runs of a workflow, with the result of each step."},{"name":"Salons / Webhook Endpoints","description":"Your URLs that receive the salon's events, signed with HMAC-SHA256 (see Webhooks)."},{"name":"Salons / Webhook Deliveries","description":"The events sent to a webhook endpoint, with their status and retries."},{"name":"Salons / Reports","description":"Read-only SQL over the salon's reporting views, and ready-made reports."},{"name":"Workflows","description":"The public URL that starts a workflow with a webhook trigger."},{"name":"Workflows / Templates","description":"Ready-made workflows salons can add."},{"name":"Billing","description":"Revenue and subscription overview."},{"name":"Billing / Plans","description":"Softalon subscription plans and their prices."},{"name":"Billing / Prices (Products & Plans)","description":"What a plan or product costs, per billing interval or per purchase."},{"name":"Billing / Products","description":"One-time purchases from Softalon, such as credit packs."},{"name":"Billing / Coupons","description":"Discount codes for Softalon subscriptions."},{"name":"Billing / Credit Rates","description":"Credits charged for SMS, WhatsApp and AI conversations."},{"name":"Billing / Rate Card","description":"Credit prices for SMS, WhatsApp and AI conversations."},{"name":"Billing / Invoices","description":"Invoices of every salon."},{"name":"Billing / Payments","description":"Payments of every salon."},{"name":"Partners","description":"Profiles of the partner program."},{"name":"Partners / Campaigns","description":"Referral codes partners use in their links."},{"name":"Partners / Leads","description":"Accounts and salons a partner referred."},{"name":"Partners / Sales","description":"Payments of referred salons that earned commission."},{"name":"Partners / Conversions","description":"Referred salons that started paying."},{"name":"Partners / Payouts","description":"Payments of earned commission to partners."},{"name":"Partners / Tiers","description":"Commission levels of the partner program."},{"name":"Partners / Salons","description":"Salons partners set up for clients: an expiry and a trial without a card until handed over."},{"name":"Partners / Resources","description":"Files and folders for partners, like sales decks and marketing material."},{"name":"Partners / Analytics","description":"Website visits from a partner's campaign codes."},{"name":"Notifications / WhatsApp Templates","description":"Templates that WhatsApp messages must use."}],"servers":[],"components":{"securitySchemes":{"oauth2":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"OAuth 2.0 access token obtained from https://connect.softalon.com/oauth2/token"},"client-session":{"type":"apiKey","in":"header","name":"X-Client-Session-Id","description":"Client session ID for authenticating end-customers within a salon context."}},"schemas":{"AccountDto":{"type":"object","properties":{"id":{"type":"string","description":"Account ID","example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"avatar":{"type":"string","description":"Profile picture URL","nullable":true,"example":"https://storage.softalon.com/avatars/3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43.jpg"},"emailAddress":{"type":"string","description":"Email address, used to sign in","example":"jane@yoursalon.com"},"isEmailAddressVerified":{"type":"boolean","description":"Whether the email address is confirmed","example":true},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","nullable":true,"example":"+12025550143"},"language":{"type":"string","description":"Language of the app, emails and notifications, as a language code","nullable":true,"example":"en"},"defaultSalonId":{"type":"string","description":"Salon the app opens after signing in","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"isActive":{"type":"boolean","description":"Whether the account can sign in; deactivated accounts get `ACCOUNT_DEACTIVATED`","example":true},"createdAt":{"type":"string","description":"When the account was created","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the account was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","firstName","lastName","avatar","emailAddress","isEmailAddressVerified","phoneNumber","language","defaultSalonId","isActive","createdAt","updatedAt"]},"PaginationMetadataDto":{"type":"object","properties":{"page":{"type":"number","description":"Current page, starting at 1","example":1},"perPage":{"type":"number","description":"Items per page","example":10},"total":{"type":"number","description":"Number of items that match the filters, on all pages","example":50}},"required":["page","perPage","total"]},"ErrorResponseDto":{"type":"object","properties":{"message":{"type":"string","description":"What went wrong, in the request's language (validation errors name every invalid field, in English)","example":"The requested account was not found."},"error":{"type":"string","description":"Error code, the same in every language","example":"ACCOUNT_NOT_FOUND"},"statusCode":{"type":"number","description":"HTTP status code","example":404}},"required":["message","error","statusCode"]},"UpdateAccountDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"avatar":{"type":"string","description":"Profile picture: the `url` of an image uploaded with `POST /v1/files`, or `null` to remove it","nullable":true,"example":"https://storage.softalon.com/avatars/3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43.jpg"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format, or `null` to remove it","nullable":true,"example":"+12025550143"},"language":{"type":"string","description":"Language of the app, emails and notifications, as a language code","example":"en"},"defaultSalonId":{"type":"string","description":"Salon the app opens after signing in, or `null` for none","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"}}},"UpdateAccountResultDto":{"type":"object","properties":{"accountId":{"type":"string","description":"The updated account's ID","example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"avatar":{"type":"string","description":"The new profile picture URL. Only when it was changed","nullable":true,"example":"https://storage.softalon.com/avatars/3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43.jpg"}},"required":["accountId"]},"DeleteAccountResultDto":{"type":"object","properties":{"accountId":{"type":"string","description":"The deleted account's ID","example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"}},"required":["accountId"]},"IntegrationAuthorDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Softalon"},"emailAddress":{"type":"string","description":"Support email address","example":"support@softalon.com"}},"required":["name","emailAddress"]},"ConnectionMetadataDto":{"type":"object","properties":{"id":{"type":"string","description":"ID at the provider","example":"G-4XK2M9QZ7B"},"name":{"type":"string","description":"Name at the provider","example":"G-4XK2M9QZ7B"},"displayName":{"type":"string","description":"Name to show","example":"Your Salon website"},"displayDescription":{"type":"string","description":"Description to show","nullable":true,"example":null},"isActive":{"type":"boolean","description":"Whether the connection is in use","example":true}}},"ConnectionDto":{"type":"object","properties":{"id":{"type":"string","description":"Connection ID","example":"conn_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Account of the connection, for account integrations","nullable":true,"example":null},"salonId":{"type":"string","description":"Salon of the connection, for salon integrations","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"integrationId":{"type":"string","description":"Integration ID","example":"google-analytics"},"credentials":{"type":"string","description":"Always `<<<REDACTED>>>`: credentials are never returned","example":"<<<REDACTED>>>"},"metadata":{"description":"What the connection is linked to at the provider; other fields depend on the integration","allOf":[{"$ref":"#/components/schemas/ConnectionMetadataDto"}]},"isHealthy":{"type":"boolean","description":"Whether the connection worked when last checked with the provider","example":true},"createdAt":{"type":"string","description":"When the connection was created","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the connection was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","accountId","salonId","integrationId","credentials","metadata","isHealthy","createdAt","updatedAt"]},"IntegrationDto":{"type":"object","properties":{"id":{"type":"string","description":"Integration ID","example":"google-analytics"},"scope":{"type":"string","description":"`salon` integrations are connected per salon, `account` ones (calendars) per account","enum":["salon","account"],"example":"salon"},"name":{"type":"string","description":"Name","example":"Google Analytics"},"excerpt":{"type":"string","description":"Short summary","nullable":true,"example":"Track visits and bookings on your booking site."},"description":{"type":"string","description":"Full description, in Markdown","nullable":true,"example":"## Google Analytics\n\nConnect Google Analytics to …"},"url":{"type":"string","description":"Provider website","nullable":true,"example":"https://analytics.google.com"},"logo":{"type":"string","description":"Logo file name, from the integration's assets","example":"icon.svg"},"images":{"description":"Screenshot file names","example":[],"type":"array","items":{"type":"string"}},"categories":{"description":"Categories to group it by","example":["analytics"],"type":"array","items":{"type":"string"}},"capabilities":{"type":"array","description":"What it can do in Softalon","example":["analytics"],"items":{"type":"string","enum":["calendars","payments","conversations","analytics","marketing","workflows","reviews"]}},"extensions":{"type":"object","description":"What it adds to other features, e.g. workflow actions (`workflows.nodes`)","additionalProperties":true,"example":{"workflows":{"nodes":[{"actionType":"send-message","name":"Send WhatsApp Message","description":"Send a pre-approved message via WhatsApp.","icon":"message-circle"}]}}},"author":{"description":"Who built it","allOf":[{"$ref":"#/components/schemas/IntegrationAuthorDto"}]},"connections":{"description":"Your connections to it; empty when not connected","type":"array","items":{"$ref":"#/components/schemas/ConnectionDto"}},"supportsMultipleConnections":{"type":"boolean","description":"Whether it can be connected more than once","example":false},"isAvailable":{"type":"boolean","description":"Whether it can be connected now; `false` while it is not ready yet","example":true},"isActive":{"type":"boolean","description":"Whether it is enabled; inactive ones can't be connected","example":true},"createdAt":{"type":"string","description":"When the integration was added","example":"2026-05-04T00:00:00Z"},"updatedAt":{"type":"string","description":"When the integration was last changed","example":"2026-05-04T00:00:00Z"}},"required":["id","scope","name","excerpt","description","url","logo","images","categories","capabilities","author","connections","supportsMultipleConnections","isAvailable","isActive","createdAt","updatedAt"]},"DisconnectIntegrationResultDto":{"type":"object","properties":{"connectionIds":{"description":"IDs of the deleted connections","example":["conn_01h2xcejqtf2nbrexx3vqjhp41"],"type":"array","items":{"type":"string"}}},"required":["connectionIds"]},"ConnectionRedirectDto":{"type":"object","properties":{"redirectTo":{"type":"string","description":"Provider sign-in page to open; the connection is created when it redirects back","example":"https://accounts.google.com/o/oauth2/v2/auth?client_id=…"}},"required":["redirectTo"]},"ConnectionListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ConnectionDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"DeleteConnectionResultDto":{"type":"object","properties":{"connectionId":{"type":"string","description":"ID of the deleted connection","example":"conn_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["connectionId"]},"InvitationMemberDto":{"type":"object","properties":{"id":{"type":"string","description":"Member ID","example":"mbr_01h2xcejqtf2nbrexx3vqjhp41"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Linked account; `null` until the invitation is accepted","nullable":true,"example":null},"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address the invitation was sent to","example":"jane@yoursalon.com"},"role":{"type":"string","description":"Role in the salon","enum":["user","administrator","super_administrator","owner"],"example":"user"},"displayRole":{"type":"string","description":"Job title shown to clients","nullable":true,"example":"Hair Stylist"}},"required":["id","salonId","accountId","firstName","lastName","emailAddress","role","displayRole"]},"DomainDnsRecordDto":{"type":"object","properties":{"type":{"type":"string","description":"Record type","enum":["TXT","CNAME","A"],"example":"CNAME"},"host":{"type":"string","description":"Host (name) of the record, relative to the root domain; `@` is the root domain itself","example":"booking"},"value":{"type":"string","description":"Value of the record","example":"cname.softalon.com"},"purpose":{"type":"string","description":"`verification` proves you own the domain, `routing` points it to the booking site","enum":["verification","routing"],"example":"routing"},"isVerified":{"type":"boolean","description":"Whether the record was found with the right value","example":false}},"required":["type","host","value","purpose","isVerified"]},"DomainDto":{"type":"object","properties":{"id":{"type":"string","description":"Domain ID","example":"dom_01h2xcejqtf2nbrexx3vqjhp42"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Full domain name","example":"booking.yoursalon.com"},"type":{"type":"string","description":"`subdomain` is the salon's free address under onsoftalon.com, `custom` a domain of your own","enum":["subdomain","custom"],"example":"custom"},"status":{"type":"string","description":"`pending` until the DNS records are verified, then `active`","enum":["pending","active"],"example":"active"},"verificationToken":{"type":"string","description":"Value of the TXT record that proves you own the domain; null for subdomains","nullable":true,"example":"8f14e45fceea167a5a36dedd4bea2543"},"verifiedAt":{"type":"string","description":"When the TXT record was verified","nullable":true,"example":"2026-03-14T09:25:00.000Z"},"configuredAt":{"type":"string","description":"When the routing record was found and the domain went live","nullable":true,"example":"2026-03-14T09:30:00.000Z"},"lastCheckedAt":{"type":"string","description":"When the DNS records were last checked","nullable":true,"example":"2026-03-14T09:30:00.000Z"},"dnsRecords":{"description":"DNS records to add at your DNS provider; empty for subdomains","type":"array","items":{"$ref":"#/components/schemas/DomainDnsRecordDto"}},"createdAt":{"type":"string","description":"When the domain was added","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the domain was last changed","example":"2026-03-14T09:30:00.000Z"}},"required":["id","salonId","name","type","status","verificationToken","verifiedAt","configuredAt","lastCheckedAt","dnsRecords","createdAt","updatedAt"]},"InvitationSalonDto":{"type":"object","properties":{"id":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name","example":"Your Salon"},"subdomain":{"type":"string","description":"Subdomain on onsoftalon.com","example":"yoursalon"},"avatar":{"type":"string","description":"Logo URL","nullable":true,"example":"https://storage.softalon.com/file_01h2xcejqtf2nbrexx3vqjhp41"},"primaryDomain":{"description":"Domain of the booking site","allOf":[{"$ref":"#/components/schemas/DomainDto"}]}},"required":["id","name","subdomain","avatar","primaryDomain"]},"InvitationDto":{"type":"object","properties":{"id":{"type":"string","description":"Invitation ID","example":"invt_01h2xcejqtf2nbrexx3vqjhp41"},"salonId":{"type":"string","description":"Salon the member is invited to","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Invited member","example":"mbr_01h2xcejqtf2nbrexx3vqjhp41"},"member":{"description":"The invited member. Always included for the account's invitations; for a salon's, only with `expand=member`","allOf":[{"$ref":"#/components/schemas/InvitationMemberDto"}]},"salon":{"description":"The salon, with its primary domain. Only for the account's invitations","allOf":[{"$ref":"#/components/schemas/InvitationSalonDto"}]},"isTransfer":{"type":"boolean","description":"Whether accepting it also makes the member the salon's owner (an ownership transfer)","example":false},"createdAt":{"type":"string","description":"When the invitation was sent","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the invitation was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","salonId","memberId","isTransfer","createdAt","updatedAt"]},"InvitationListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/InvitationDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"MemberWorkingPeriodDto":{"type":"object","properties":{"startTime":{"type":"string","description":"Start, as HH:mm in the salon's time zone","example":"09:00"},"endTime":{"type":"string","description":"End, as HH:mm in the salon's time zone (`24:00` for midnight)","example":"17:00"}},"required":["startTime","endTime"]},"MemberWorkingDayDto":{"type":"object","properties":{"dayIndex":{"type":"number","description":"Day of the week, from 1 (Monday) to 7 (Sunday)","minimum":1,"maximum":7,"example":1},"isActive":{"type":"boolean","description":"Whether the member works on this day","example":true},"periods":{"description":"Working periods on this day, without overlaps","type":"array","items":{"$ref":"#/components/schemas/MemberWorkingPeriodDto"}}},"required":["dayIndex","isActive","periods"]},"MemberWorkingHoursDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"workingHours":{"description":"The seven days of the week","type":"array","items":{"$ref":"#/components/schemas/MemberWorkingDayDto"}}},"required":["locationId","workingHours"]},"MemberRatingDto":{"type":"object","properties":{"value":{"type":"number","description":"Average rating, from 1 to 5","example":4.8},"count":{"type":"number","description":"Number of reviews","example":37}},"required":["value","count"]},"LocationAssignmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Location assignment ID","example":"aloc_01h9q3t7vxe2kfbn6w8m4rzc5y"},"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"memberId":{"type":"string","description":"Member ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"createdAt":{"type":"string","description":"When the member was assigned","example":"2026-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the assignment was last changed","example":"2026-01-15T10:30:00.000Z"}},"required":["id","locationId","memberId","createdAt","updatedAt"]},"ServiceAssignmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Service assignment ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member who performs the service; `null` for a location assignment","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"locationId":{"type":"string","description":"Location that offers the service; `null` for a member assignment","nullable":true,"example":null},"price":{"type":"number","description":"Price in the salon's currency; a member's price wins over a location's, which wins over the service's","nullable":true,"example":85},"duration":{"type":"number","description":"Duration in minutes","nullable":true,"example":75},"bufferBefore":{"type":"number","description":"Minutes kept free before the appointment","nullable":true,"example":null},"bufferAfter":{"type":"number","description":"Minutes kept free after the appointment","nullable":true,"example":10},"createdAt":{"type":"string","description":"When the assignment was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the assignment was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","serviceId","memberId","locationId","price","duration","bufferBefore","bufferAfter","createdAt","updatedAt"]},"MemberDto":{"type":"object","properties":{"id":{"type":"string","description":"Member ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"ID of the Softalon account linked to the member; `null` until the member accepts an invitation","nullable":true,"example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address, unique within the salon","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","nullable":true,"example":"+12025550143"},"workingHours":{"description":"Weekly working hours, per assigned location","type":"array","items":{"$ref":"#/components/schemas/MemberWorkingHoursDto"}},"role":{"type":"string","description":"Role in the salon, which sets the member's permissions: `user` manages only their own profile, appointments and invoices; `administrator` also manages other members, appointments, invoices, clients and conversations; `super_administrator` also manages salon settings, locations, services and integrations; `owner` also manages billing","enum":["user","administrator","super_administrator","owner"],"example":"user"},"displayRole":{"type":"string","description":"Job title shown to clients","nullable":true,"example":"Senior Stylist"},"translations":{"type":"object","description":"Translations of the job title by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"displayRole":"Senior-Stylistin"}}},"avatar":{"type":"string","description":"Profile picture URL","nullable":true,"example":"https://storage.softalon.com/avatars/mbr_01h8m2k4qwz7ftv9r3n5ycxd6b.jpg"},"orderIndex":{"type":"number","description":"Position in the salon's member order, starting at 0","example":0},"isActive":{"type":"boolean","description":"Whether the member is active; deactivated members lose access to the salon","example":true},"rating":{"description":"Average rating from reviews, or `null` without reviews. Only with `expand=rating`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/MemberRatingDto"}]},"assignedLocations":{"description":"The member's assignments to active locations. Only with `expand=assignedLocations`","type":"array","items":{"$ref":"#/components/schemas/LocationAssignmentDto"}},"assignedServices":{"description":"The member's service assignments. Only with `expand=assignedServices`","type":"array","items":{"$ref":"#/components/schemas/ServiceAssignmentDto"}},"invitation":{"description":"The invitation sent to the member, or `null`. Only with `expand=invitation`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/InvitationDto"}]},"createdAt":{"type":"string","description":"When the member was created","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the member was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","salonId","accountId","firstName","lastName","emailAddress","phoneNumber","workingHours","role","displayRole","translations","avatar","orderIndex","isActive","createdAt","updatedAt"]},"DeclineInvitationResultDto":{"type":"object","properties":{"invitationId":{"type":"string","description":"ID of the declined invitation","example":"invt_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["invitationId"]},"AppDto":{"type":"object","properties":{"id":{"type":"string","description":"App ID, also its OAuth2 client ID","example":"app_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Account that owns the app, for account apps","nullable":true,"example":null},"salonId":{"type":"string","description":"Salon that owns the app, for salon apps","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name","example":"Front Desk Display"},"type":{"type":"string","description":"Always `external` for apps you create","enum":["external","internal"],"example":"external"},"scopes":{"description":"Scopes the app can ask for","example":["salons:read","appointments:read"],"type":"array","items":{"type":"string"}},"redirectUris":{"description":"Where the app may be sent back after signing in; their origins are allowed for CORS","example":["https://app.yoursalon.com/oauth/callback"],"type":"array","items":{"type":"string"}},"maskedClientSecret":{"type":"string","description":"The client secret with most characters hidden","nullable":true,"example":"a7*********************3f"},"createdAt":{"type":"string","description":"When the app was created","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the app was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","accountId","salonId","name","type","scopes","redirectUris","maskedClientSecret","createdAt","updatedAt"]},"AppListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/AppDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateAppDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Front Desk Display"},"scopes":{"description":"Scopes the app can ask for","example":["salons:read","appointments:read"],"type":"array","items":{"type":"string"}},"redirectUris":{"description":"Where the app may be sent back after signing in, as full URLs; their origins are allowed for CORS","example":["https://app.yoursalon.com/oauth/callback"],"type":"array","items":{"type":"string"}}},"required":["name"]},"AppCredentialsDto":{"type":"object","properties":{"clientId":{"type":"string","description":"OAuth2 client ID, the same as the app ID","example":"app_01h2xcejqtf2nbrexx3vqjhp41"},"clientSecret":{"type":"string","description":"OAuth2 client secret. Shown only once: store it safely, it can't be read again","example":"a7Kq2mXv9RtB4nLp8WcZ1yHd6FsJ3f"}},"required":["clientId","clientSecret"]},"CreateAppResultDto":{"type":"object","properties":{"app":{"description":"The new app","allOf":[{"$ref":"#/components/schemas/AppDto"}]},"credentials":{"description":"Its OAuth2 credentials","allOf":[{"$ref":"#/components/schemas/AppCredentialsDto"}]}},"required":["app","credentials"]},"UpdateAppDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Front Desk Display"},"scopes":{"description":"Scopes the app can ask for; replaces the current ones","example":["salons:read","appointments:read"],"type":"array","items":{"type":"string"}},"redirectUris":{"description":"Where the app may be sent back after signing in, as full URLs; replaces the current ones","example":["https://app.yoursalon.com/oauth/callback"],"type":"array","items":{"type":"string"}}}},"UpdateAppResultDto":{"type":"object","properties":{"appId":{"type":"string","description":"ID of the updated app","example":"app_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["appId"]},"DeleteAppResultDto":{"type":"object","properties":{"appId":{"type":"string","description":"ID of the deleted app","example":"app_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["appId"]},"HistoryEntryDto":{"type":"object","properties":{"id":{"type":"string","description":"History entry ID","example":"nhis_01hb3m9p2qwz5ktv7x4nc6rd8g"},"accountId":{"type":"string","description":"Account the message was sent to, for account messages","nullable":true,"example":null},"salonId":{"type":"string","description":"Salon that sent the message","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Member the message was sent to","nullable":true,"example":null},"clientId":{"type":"string","description":"Client the message was sent to","nullable":true,"example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"channel":{"type":"string","description":"Channel the message was sent through","enum":["push","email","sms","whatsapp"],"example":"sms"},"to":{"type":"string","description":"Where it was sent: email address, phone number in E.164 format, or the push recipient","nullable":true,"example":"+12025550143"},"subject":{"type":"string","description":"Subject, for emails and push notifications","nullable":true,"example":null},"content":{"type":"string","description":"Content that was sent","example":"Hi Jane, your appointment at Your Salon is confirmed for Mar 15 at 2:00 PM."},"metadata":{"type":"object","description":"Delivery details, such as the provider's message ID, delivery status and credits used","additionalProperties":true,"example":{"status":"delivered","credits":1}},"createdAt":{"type":"string","description":"When the message was sent","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the entry was last changed","example":"2026-03-14T09:21:09.000Z"}},"required":["id","accountId","salonId","memberId","clientId","channel","to","subject","content","metadata","createdAt","updatedAt"]},"HistoryEntryListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/HistoryEntryDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PreferenceDto":{"type":"object","properties":{"id":{"type":"string","description":"Preference ID","example":"npref_01hb5p3q8rwz7ktv2x6nc4sd9j"},"accountId":{"type":"string","description":"Account the preference belongs to","nullable":true,"example":null},"salonId":{"type":"string","description":"Salon the preference belongs to","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Member the preference belongs to; null with a salon ID for salon-wide preferences","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"clientId":{"type":"string","description":"Client the preference belongs to","nullable":true,"example":null},"channel":{"type":"string","description":"Channel","enum":["push","email","sms","whatsapp"],"example":"email"},"isEnabled":{"type":"boolean","description":"Whether notifications are sent through this channel","example":true},"createdAt":{"type":"string","description":"When the preference was created","example":"2026-03-01T18:04:11.000Z"},"updatedAt":{"type":"string","description":"When the preference was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","accountId","salonId","memberId","clientId","channel","isEnabled","createdAt","updatedAt"]},"UpdateAccountPreferenceDto":{"type":"object","properties":{"channel":{"type":"string","description":"Channel","enum":["push","email","sms","whatsapp"],"example":"sms"},"isEnabled":{"type":"boolean","description":"Whether messages are sent through this channel","example":false}},"required":["channel","isEnabled"]},"UpdatePreferenceResultDto":{"type":"object","properties":{"preferenceId":{"type":"string","description":"ID of the preference that was saved","example":"npref_01hb5p3q8rwz7ktv2x6nc4sd9j"}},"required":["preferenceId"]},"PushSubscriptionDto":{"type":"object","properties":{"id":{"type":"string","description":"Push subscription ID","example":"push_sub_01hb4n2p7qwz6ktv9x3nc5rd8h"},"accountId":{"type":"string","description":"Account the subscription belongs to","nullable":true,"example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"salonId":{"type":"string","description":"Salon of the client the subscription belongs to","nullable":true,"example":null},"clientId":{"type":"string","description":"Client the subscription belongs to","nullable":true,"example":null},"endpoint":{"type":"string","description":"Push service URL of the browser or device","example":"https://fcm.googleapis.com/fcm/send/eYk3bX9Qm2c:APA91bHk7sT2wq"},"p256dhKey":{"type":"string","description":"Public key of the subscription (`p256dh`)","example":"BNcRdreALRFXTkOOUHK1EtK2wtaz5Ry4YfYCA_0QTpQtUbVlUls0VJXg7A8u-Ts1XbjhazAkj7I99e8QcYP7DkM"},"authKey":{"type":"string","description":"Authentication secret of the subscription","example":"tBHItJI5svbpez7KI4CCXg"},"consecutiveFailures":{"type":"number","description":"Failed deliveries in a row; reset after a success","example":0},"lastUsedAt":{"type":"string","description":"When a notification was last delivered","nullable":true,"example":"2026-03-14T09:21:07.000Z"},"createdAt":{"type":"string","description":"When the subscription was created","example":"2026-03-01T18:04:11.000Z"},"updatedAt":{"type":"string","description":"When the subscription was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","accountId","salonId","clientId","endpoint","p256dhKey","authKey","consecutiveFailures","lastUsedAt","createdAt","updatedAt"]},"CreatePushSubscriptionDto":{"type":"object","properties":{"endpoint":{"type":"string","description":"Push service URL of the browser or device","example":"https://fcm.googleapis.com/fcm/send/eYk3bX9Qm2c:APA91bHk7sT2wq"},"p256dhKey":{"type":"string","description":"Public key of the subscription (`keys.p256dh`)","example":"BNcRdreALRFXTkOOUHK1EtK2wtaz5Ry4YfYCA_0QTpQtUbVlUls0VJXg7A8u-Ts1XbjhazAkj7I99e8QcYP7DkM"},"authKey":{"type":"string","description":"Authentication secret of the subscription (`keys.auth`)","example":"tBHItJI5svbpez7KI4CCXg"}},"required":["endpoint","p256dhKey","authKey"]},"DeletePushSubscriptionResultDto":{"type":"object","properties":{}},"NotificationDto":{"type":"object","properties":{"id":{"type":"string","description":"Notification ID","example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f"},"accountId":{"type":"string","description":"Account the notification is for, if it is an account notification","nullable":true,"example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"salonId":{"type":"string","description":"Salon of the member or client the notification is for","nullable":true,"example":null},"memberId":{"type":"string","description":"Member the notification is for","nullable":true,"example":null},"clientId":{"type":"string","description":"Client the notification is for","nullable":true,"example":null},"title":{"type":"string","description":"Title","example":"New appointment booked"},"body":{"type":"string","description":"Text","example":"Jane Cooper booked a Haircut for tomorrow at 10:00 AM."},"url":{"type":"string","description":"Page to open when the notification is clicked","nullable":true,"example":"/appointments/apt_01hb2m5n8qwz3ktv7x4nc9rd6f"},"readAt":{"type":"string","description":"When it was read, or null while it is unread","nullable":true,"example":null},"metadata":{"type":"object","description":"Extra details for displaying the notification","additionalProperties":true,"example":{}},"createdAt":{"type":"string","description":"When the notification was created","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the notification was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","accountId","salonId","memberId","clientId","title","body","url","readAt","metadata","createdAt","updatedAt"]},"NotificationListMetadataDto":{"type":"object","properties":{"page":{"type":"number","description":"Current page, starting at 1","example":1},"perPage":{"type":"number","description":"Items per page","example":10},"total":{"type":"number","description":"Number of items that match the filters, on all pages","example":50},"unreadIds":{"description":"IDs of all unread notifications that match the filters, on all pages","example":["not_01hb2k7m4qwz9rtv3x5nc8pd6f"],"type":"array","items":{"type":"string"}}},"required":["page","perPage","total","unreadIds"]},"NotificationListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/NotificationDto"}},"metadata":{"description":"Page and total, the IDs of unread notifications, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/NotificationListMetadataDto"}]}},"required":["data","metadata"]},"ReadAllNotificationsResultDto":{"type":"object","properties":{}},"ReadNotificationResultDto":{"type":"object","properties":{"notificationId":{"type":"string","description":"ID of the notification marked as read","example":"not_01hb2k7m4qwz9rtv3x5nc8pd6f"}},"required":["notificationId"]},"ActivityDto":{"type":"object","properties":{"id":{"type":"string","description":"Activity ID","example":"act_01h2xcejqtf2nbrexx3vqjhp41"},"outboxEventId":{"type":"string","description":"ID of the event the activity was recorded from","example":"9b2e4c1a-6d3f-4e8b-a1c7-2f5d8e9b0a16"},"type":{"type":"string","description":"Event type, as `{resource}.{action}`","example":"booking/appointment.created"},"scope":{"type":"string","description":"`primary` for a change to the resource, `derived` for an event that follows from one (e.g. an appointment that starts)","enum":["primary","derived"],"example":"primary"},"resource":{"type":"string","description":"Resource the activity is about","example":"booking/appointment"},"resourceId":{"type":"string","description":"ID of the resource","example":"appt_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Account the activity belongs to, for account activities","nullable":true,"example":null},"salonId":{"type":"string","description":"Salon the activity belongs to, for salon activities","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"description":{"type":"string","description":"What happened, in English","nullable":true,"example":"Jane Cooper created appointment Haircut"},"params":{"type":"object","description":"Who did it (`actor`) and to what (`target`), to show the description in other languages","additionalProperties":true,"example":{"actor":{"type":"member","id":"mbr_01h2xcejqtf2nbrexx3vqjhp41"},"target":{"name":"Haircut"}}},"data":{"type":"object","description":"The event, with secrets removed: `data.object` is the resource after the change and `data.previousAttributes` the changed fields before it","additionalProperties":true,"example":{"type":"booking/appointment.created","data":{"object":{"id":"appt_01h2xcejqtf2nbrexx3vqjhp41","status":"confirmed"}}}},"request":{"type":"object","description":"The request that caused it: who made it (`actor`), IP address, user agent and language","additionalProperties":true,"example":{"ipAddress":"203.0.113.24","language":"en","actor":{"principal":{"type":"account"},"subject":{"type":"member","id":"mbr_01h2xcejqtf2nbrexx3vqjhp41"}}}},"isVisible":{"type":"boolean","description":"Whether the activity is shown; hidden ones are never returned","example":true},"occurredAt":{"type":"string","description":"When it happened","example":"2026-03-14T09:21:07.000Z"},"createdAt":{"type":"string","description":"When the activity was recorded","example":"2026-03-14T09:21:08.000Z"},"updatedAt":{"type":"string","description":"When the activity was last changed","example":"2026-03-14T09:21:08.000Z"}},"required":["id","outboxEventId","type","scope","resource","resourceId","accountId","salonId","description","params","data","request","isVisible","occurredAt","createdAt","updatedAt"]},"ActivityListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ActivityDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"SubdomainAvailabilityDto":{"type":"object","properties":{"isAvailable":{"type":"boolean","description":"Whether the subdomain is free","example":true}},"required":["isAvailable"]},"SubscriptionPlanDto":{"type":"object","properties":{"id":{"type":"string","description":"Plan ID","example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea"},"name":{"type":"string","description":"Plan name","example":"Pro"},"description":{"type":"string","description":"Plan description","example":"Everything a growing salon needs"},"features":{"type":"object","description":"Feature list for display","additionalProperties":true,"example":{"aiReceptionist":true,"customDomain":true}},"trialPeriodDuration":{"type":"number","description":"Length of the free trial, in `trialPeriodDurationUnit`","example":14},"trialPeriodDurationUnit":{"type":"string","description":"Unit of the trial length","enum":["day","month","year"],"example":"day"},"entitlements":{"type":"object","description":"What the plan includes","additionalProperties":true,"example":{"limits.maxMembers":10,"limits.maxLocations":3,"limits.creditsPerMonth":500,"features.customDomain":true,"features.conversations":true,"features.apiAccess":true}},"isActive":{"type":"boolean","description":"Whether new subscriptions can use the plan","example":true}},"required":["id","name","description","features","trialPeriodDuration","trialPeriodDurationUnit","entitlements","isActive"]},"SubscriptionPriceDto":{"type":"object","properties":{"id":{"type":"string","description":"Price ID","example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb"},"planId":{"type":"string","description":"ID of the plan the price belongs to","nullable":true,"example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea"},"value":{"type":"number","description":"Price per billing interval","example":99},"discountedValue":{"type":"number","description":"Discounted price that is charged instead of `value`","nullable":true,"example":null},"interval":{"type":"number","description":"Length of the billing interval, in `intervalUnit`","nullable":true,"example":1},"intervalUnit":{"type":"string","description":"Unit of the billing interval","enum":["day","month","year"],"nullable":true,"example":"month"},"currency":{"type":"string","description":"Three-letter currency code","example":"USD"},"isActive":{"type":"boolean","description":"Whether new subscriptions can use the price","example":true}},"required":["id","planId","value","discountedValue","interval","intervalUnit","currency","isActive"]},"SubscriptionCouponDto":{"type":"object","properties":{"id":{"type":"string","description":"Coupon ID","example":"bcoup_01h8s5m3n7qf2tvw6k9bxcd4eh"},"name":{"type":"string","description":"Coupon name","example":"Spring 20% off"},"code":{"type":"string","description":"Coupon code","example":"SPRING20"},"type":{"type":"string","description":"How the coupon's value is applied","enum":["percentage","fixed_amount"],"example":"percentage"},"value":{"type":"number","description":"Percentage, or fixed amount in `currency`","example":20},"currency":{"type":"string","description":"Currency of a fixed amount","nullable":true,"example":null},"duration":{"type":"number","description":"How long the discount lasts, in `durationUnit`","example":3},"durationUnit":{"type":"string","description":"Unit of the discount length","enum":["day","month","year"],"example":"month"}},"required":["id","name","code","type","value","currency","duration","durationUnit"]},"SubscriptionDiscountDto":{"type":"object","properties":{"id":{"type":"string","description":"Discount ID","example":"bdi_01hb3n6q9rwz4stv8p5mxde2fg"},"subscriptionId":{"type":"string","description":"Subscription ID","example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe"},"couponId":{"type":"string","description":"Coupon ID","example":"bcoup_01h8s5m3n7qf2tvw6k9bxcd4eh"},"startedAt":{"type":"string","description":"When the discount started","example":"2026-03-01T09:00:00.000Z"},"expiresAt":{"type":"string","description":"When the discount ends","example":"2026-06-01T09:00:00.000Z"},"coupon":{"description":"The coupon","allOf":[{"$ref":"#/components/schemas/SubscriptionCouponDto"}]}},"required":["id","subscriptionId","couponId","startedAt","expiresAt"]},"SubscriptionDto":{"type":"object","properties":{"id":{"type":"string","description":"Subscription ID","example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe"},"billingProfileId":{"type":"string","description":"ID of the salon's billing profile","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"},"planId":{"type":"string","description":"Plan ID","example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea"},"priceId":{"type":"string","description":"Price ID","example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb"},"discountId":{"type":"string","description":"ID of the applied discount","nullable":true,"example":null},"status":{"type":"string","description":"Subscription status: `incomplete` (the first payment did not go through), `trialing`, `active`, `past_due` (a renewal payment is being retried), `canceled` or `unpaid`","enum":["incomplete","trialing","active","past_due","canceled","unpaid"],"example":"active"},"latestInvoiceId":{"type":"string","description":"ID of the latest invoice","nullable":true,"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj"},"entitlements":{"type":"object","description":"What the subscription includes: the plan's entitlements with the subscription's own changes applied","additionalProperties":true,"example":{"limits.maxMembers":10,"limits.maxLocations":3,"limits.creditsPerMonth":500,"features.customDomain":true,"features.conversations":true,"features.apiAccess":true}},"startedAt":{"type":"string","description":"When the subscription started","example":"2026-02-14T10:30:00.000Z"},"currentPeriodStart":{"type":"string","description":"Start of the current billing period","example":"2026-03-01T10:30:00.000Z"},"currentPeriodEnd":{"type":"string","description":"End of the current billing period","example":"2026-04-01T10:30:00.000Z"},"trialPeriodEnd":{"type":"string","description":"When the free trial ends, while trialing","nullable":true,"example":null},"nextBillingCycleAt":{"type":"string","description":"When the subscription renews next","example":"2026-04-01T10:30:00.000Z"},"canceledAt":{"type":"string","description":"When the subscription was canceled","nullable":true,"example":null},"cancelAtPeriodEnd":{"type":"boolean","description":"Whether the subscription ends at the end of the current period instead of renewing","example":false},"cancellationReason":{"type":"string","description":"Why the subscription is being canceled","enum":["too_expensive","lack_of_use","switched_to_competitor","temporary_needs","technical_issues","missing_features","customer_support","billing_issues","business_closed","prefer_not_to_say","other"],"nullable":true,"example":null},"plan":{"description":"The plan, on Get the Current Subscription","allOf":[{"$ref":"#/components/schemas/SubscriptionPlanDto"}]},"price":{"description":"The price, on Get the Current Subscription","allOf":[{"$ref":"#/components/schemas/SubscriptionPriceDto"}]},"discount":{"description":"The applied discount, on Get the Current Subscription","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionDiscountDto"}]},"createdAt":{"type":"string","description":"When the subscription was created","example":"2026-02-14T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the subscription was last changed","example":"2026-03-01T10:30:00.000Z"}},"required":["id","billingProfileId","planId","priceId","discountId","status","latestInvoiceId","entitlements","startedAt","currentPeriodStart","currentPeriodEnd","trialPeriodEnd","nextBillingCycleAt","canceledAt","cancelAtPeriodEnd","cancellationReason","createdAt","updatedAt"]},"SalonSummaryDto":{"type":"object","properties":{"locations":{"type":"number","description":"Locations","example":2},"services":{"type":"number","description":"Services","example":24},"members":{"type":"number","description":"Members","example":6},"clients":{"type":"number","description":"Clients","example":1280},"workflows":{"type":"number","description":"Workflows","example":4}},"required":["locations","services","members","clients","workflows"]},"OnboardingDto":{"type":"object","properties":{"isCompleted":{"type":"boolean","description":"Whether onboarding is finished","example":false},"isDismissed":{"type":"boolean","description":"Whether onboarding was skipped","example":false},"currentStep":{"type":"string","description":"Step onboarding stopped at","nullable":true,"example":"services"},"checklistDismissed":{"type":"boolean","description":"Whether the setup checklist was hidden","example":false},"checklistCompleted":{"description":"Checklist items that are done","example":["services","workingHours"],"type":"array","items":{"type":"string"}}},"required":["isCompleted","isDismissed","currentStep"]},"VersionDto":{"type":"object","properties":{"version":{"type":"number","description":"Version of the salon's setup data","example":1},"onboarding":{"description":"Onboarding progress","allOf":[{"$ref":"#/components/schemas/OnboardingDto"}]}},"required":["version","onboarding"]},"SalonDto":{"type":"object","properties":{"id":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"ID of the account that created the salon","example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"name":{"type":"string","description":"Salon name","example":"Your Salon"},"subdomain":{"type":"string","description":"Subdomain of the booking site, e.g. `yoursalon` for yoursalon.onsoftalon.com","example":"yoursalon"},"primaryDomainId":{"type":"string","description":"ID of the domain the booking site uses","nullable":true,"example":"dom_01h2xcejqtf2nbrexx3vqjhp42"},"primaryDomain":{"description":"The domain the booking site uses","allOf":[{"$ref":"#/components/schemas/DomainDto"}]},"category":{"type":"string","description":"Type of business","enum":["hair_salon","barbershop","hair_extension_studio","nail_salon","spa","head_spa_studio","massage_therapy","skincare_clinic","wellness_center","recovery_center","chiropractic_clinic","med_spa","lash_and_brow_studio","waxing_salon","makeup_artist","tanning_salon","spray_tan_studio","tattoo_studio","piercing_studio","grooming_salon","veterinary_clinic","beauty_salon","other"],"example":"hair_salon"},"avatar":{"type":"string","description":"Logo URL","nullable":true,"example":"https://storage.softalon.com/salons/sal_01h2xcejqtf2nbrexx3vqjhp41/avatar.png"},"isActive":{"type":"boolean","description":"Whether the salon is active; an inactive salon cannot be used","example":true},"firstAppointmentAt":{"type":"string","description":"When the salon's first appointment was booked","nullable":true,"example":"2026-03-15T10:00:00.000Z"},"lastAccessedAt":{"type":"string","description":"When the salon was last opened in the dashboard","nullable":true,"example":"2026-04-02T16:45:12.000Z"},"expiresAt":{"type":"string","description":"When the salon is deleted unless handed over first: only salons a partner set up for a client, `null` for every other salon","nullable":true,"example":null},"members":{"description":"Your membership in the salon","type":"array","items":{"$ref":"#/components/schemas/MemberDto"}},"subscription":{"description":"The salon's subscription, with expand=subscription","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionDto"}]},"summary":{"description":"Counts, with expand=summary","allOf":[{"$ref":"#/components/schemas/SalonSummaryDto"}]},"version":{"description":"Onboarding progress, with expand=version","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/VersionDto"}]},"createdAt":{"type":"string","description":"When the salon was created","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the salon was last changed","example":"2026-04-02T16:45:12.000Z"}},"required":["id","accountId","name","subdomain","primaryDomainId","category","avatar","isActive","firstAppointmentAt","lastAccessedAt","expiresAt","createdAt","updatedAt"]},"ResolvedSalonSummaryDto":{"type":"object","properties":{"locationsCount":{"type":"number","description":"Locations","example":2},"servicesCount":{"type":"number","description":"Services clients can see","example":24},"membersCount":{"type":"number","description":"Members","example":6}},"required":["locationsCount","servicesCount","membersCount"]},"ResolvedSalonDto":{"type":"object","properties":{"salon":{"description":"The salon, with its primary domain and subscription","allOf":[{"$ref":"#/components/schemas/SalonDto"}]},"settings":{"type":"object","description":"Settings of the namespaces general, company, booking, appearance, payments and conversations, by namespace and key","additionalProperties":true,"example":{"general":{"timezone":"America/New_York","language":"en"},"payments":{"currency":"USD"}}},"summary":{"description":"Counts","allOf":[{"$ref":"#/components/schemas/ResolvedSalonSummaryDto"}]},"integrations":{"type":"object","description":"Connected integrations the booking site uses (such as analytics), by integration","additionalProperties":true,"example":{}}},"required":["salon","settings","summary","integrations"]},"SalonListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/SalonDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"ShareSalonResourcesDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID","example":"loc_01h2xcejqtf2nbrexx3vqjhp49"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Member ID","example":"mbr_01h2xcejqtf2nbrexx3vqjhp47"},"timeSlot":{"type":"string","description":"Start of a time slot to preselect, for `booking`","example":"2026-04-10T14:00:00.000Z"}}},"ShareSalonDto":{"type":"object","properties":{"type":{"type":"string","description":"`booking` opens booking with the resources chosen; `resource` opens the page of the location, service or member (the first one given)","enum":["resource","booking"],"example":"booking"},"resources":{"description":"What the link opens","allOf":[{"$ref":"#/components/schemas/ShareSalonResourcesDto"}]}},"required":["type","resources"]},"ShareSalonResultDto":{"type":"object","properties":{"id":{"type":"string","description":"Short link ID; null when the full link is returned","nullable":true,"example":"V1StGXR8"},"link":{"type":"string","description":"The link to share","example":"yoursalon.link/b7Xk2p"}},"required":["id","link"]},"TransferSalonDto":{"type":"object","properties":{"memberId":{"type":"string","description":"Member who becomes the owner","example":"mbr_01h2xcejqtf2nbrexx3vqjhp47"}},"required":["memberId"]},"TransferSalonResultDto":{"type":"object","properties":{"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"invitationId":{"type":"string","description":"The member's invitation that now carries the transfer, when they have no account yet; null when the salon changed owners right away","nullable":true,"example":"invt_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["salonId","invitationId"]},"CancelTransferSalonResultDto":{"type":"object","properties":{"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"invitationId":{"type":"string","description":"The invitation that no longer carries the transfer","example":"invt_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["salonId","invitationId"]},"CreateSalonDto":{"type":"object","properties":{"name":{"type":"string","description":"Salon name","example":"Your Salon"},"subdomain":{"type":"string","description":"Subdomain of the booking site: 2 to 63 lowercase letters, numbers and hyphens","example":"yoursalon"},"category":{"type":"string","description":"Type of business","enum":["hair_salon","barbershop","hair_extension_studio","nail_salon","spa","head_spa_studio","massage_therapy","skincare_clinic","wellness_center","recovery_center","chiropractic_clinic","med_spa","lash_and_brow_studio","waxing_salon","makeup_artist","tanning_salon","spray_tan_studio","tattoo_studio","piercing_studio","grooming_salon","veterinary_clinic","beauty_salon","other"],"example":"hair_salon"},"activationId":{"type":"string","description":"Activation the salon is created from, from an activation link","example":"sact_01h2xcejqtf2nbrexx3vqjhp43"},"expiresAt":{"type":"string","description":"When the salon is deleted unless it's handed over first, for a salon a partner sets up for a client: in the future and at most 60 days from now. Partners on a tier that allows creating salons","example":"2026-12-07T10:00:00.000Z"}},"required":["name","subdomain","category"]},"UpdateSalonDto":{"type":"object","properties":{"name":{"type":"string","description":"Salon name","example":"Your Salon"},"subdomain":{"type":"string","description":"Subdomain of the booking site: 2 to 63 lowercase letters, numbers and hyphens","example":"yoursalon"},"primaryDomainId":{"type":"string","description":"Domain of the salon the booking site uses","example":"dom_01h2xcejqtf2nbrexx3vqjhp42"},"category":{"type":"string","description":"Type of business","enum":["hair_salon","barbershop","hair_extension_studio","nail_salon","spa","head_spa_studio","massage_therapy","skincare_clinic","wellness_center","recovery_center","chiropractic_clinic","med_spa","lash_and_brow_studio","waxing_salon","makeup_artist","tanning_salon","spray_tan_studio","tattoo_studio","piercing_studio","grooming_salon","veterinary_clinic","beauty_salon","other"],"example":"hair_salon"},"avatar":{"type":"string","description":"Logo URL of a file uploaded with POST /salons/{salonId}/files; null removes it","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"}}},"UpdateSalonResultDto":{"type":"object","properties":{"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"avatar":{"type":"string","description":"The new logo URL, when it changed; null when removed","nullable":true,"example":"https://storage.softalon.com/salons/sal_01h2xcejqtf2nbrexx3vqjhp41/avatar.png"}},"required":["salonId"]},"DeleteSalonResultDto":{"type":"object","properties":{"salonId":{"type":"string","description":"ID of the salon that was deleted or left","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["salonId"]},"ExtractSalonDto":{"type":"object","properties":{"template":{"type":"string","enum":["services","workingHours","translations"],"example":"services","description":"What to read: `services` (a price list), `workingHours` (the weekly opening hours) or `translations` (the text translated into the salon's additional languages)"},"files":{"type":"array","items":{"type":"string","format":"binary"},"maxItems":3,"description":"Up to 3 files to read: images, PDFs, text or CSV"},"text":{"type":"string","description":"Text to read, such as a pasted price list or a description of the opening hours. With `translations`, the text to translate (plain text, HTML or a message with variables)","example":"Mon-Fri 9-17, lunch 13-14, Sat 10-14, closed on Sundays"}},"required":["template"]},"ExtractedServiceDto":{"type":"object","properties":{"name":{"type":"string","description":"Service name","example":"Women's Haircut"},"category":{"type":"string","description":"Section of the price list, if it has one","nullable":true,"example":"Hair"},"description":{"type":"string","description":"Short description, if the price list has one","nullable":true,"example":"Includes wash and blow-dry"},"duration":{"type":"number","description":"Duration in minutes, estimated when not listed","example":45},"price":{"type":"number","description":"Price in the salon's currency; null when not listed","nullable":true,"example":65}},"required":["name","duration","price"]},"ExtractedPeriodDto":{"type":"object","properties":{"startTime":{"type":"string","description":"Opening time, as HH:mm","example":"09:00"},"endTime":{"type":"string","description":"Closing time, as HH:mm; 24:00 for midnight","example":"17:00"}},"required":["startTime","endTime"]},"ExtractedWorkingDayDto":{"type":"object","properties":{"dayIndex":{"type":"number","description":"Day of the week, 1 (Monday) to 7 (Sunday)","example":1},"isActive":{"type":"boolean","description":"Whether the salon is open","example":true},"periods":{"description":"Open periods in order; empty when closed","type":"array","items":{"$ref":"#/components/schemas/ExtractedPeriodDto"}}},"required":["dayIndex","isActive","periods"]},"ExtractionResultDto":{"type":"object","properties":{"items":{"description":"Services, with the template `services`","type":"array","items":{"$ref":"#/components/schemas/ExtractedServiceDto"}},"days":{"description":"The 7 days of the week, with the template `workingHours`","type":"array","items":{"$ref":"#/components/schemas/ExtractedWorkingDayDto"}},"translations":{"type":"object","description":"The text in each of the salon's additional languages, by language code, with the template `translations`. Empty when the salon has no additional languages","additionalProperties":{"type":"string"},"example":{"de":"Haarschnitt & Föhnen","fr":"Coupe et brushing"}}}},"CreateReportDto":{"type":"object","properties":{"sql":{"type":"string","description":"One PostgreSQL `SELECT` over the salon's `reports` views (e.g. `appointments`, `clients`, `invoices`, `payments`, `services`, `members`), with `$1`, `$2`, … placeholders for values","example":"SELECT COUNT(*)::int AS total FROM reports.appointments WHERE start_at BETWEEN $1 AND $2"},"params":{"type":"array","description":"Values of the placeholders, in order: strings, numbers, booleans or null, at most 100","example":["2026-08-01T00:00:00Z","2026-08-31T23:59:59Z"],"items":{}},"timezone":{"type":"string","description":"IANA time zone for date functions in the query. Defaults to UTC, also when the time zone is not valid","example":"America/New_York"}},"required":["sql"]},"BookingWebsiteMetricsDto":{"type":"object","properties":{"totalVisits":{"type":"number","description":"Visits (sessions)","example":1840},"uniqueVisitors":{"type":"number","description":"Unique visitors","example":962},"avgSessionDurationSeconds":{"type":"number","description":"Average session duration in seconds","example":75},"bounceRate":{"type":"number","description":"Share of sessions with a single page view, from 0 to 1","example":0.42}},"required":["totalVisits","uniqueVisitors","avgSessionDurationSeconds","bounceRate"]},"ReportChangeDto":{"type":"object","properties":{"value":{"type":"number","description":"The change: a fraction (0.125 = +12.5%) when `isPercentage`, otherwise the absolute difference (when the previous value was 0)","example":0.125},"isPercentage":{"type":"boolean","description":"Whether `value` is a relative change","example":true}},"required":["value","isPercentage"]},"BookingWebsiteMetricsChangeDto":{"type":"object","properties":{"totalVisits":{"description":"Change of visits","allOf":[{"$ref":"#/components/schemas/ReportChangeDto"}]},"uniqueVisitors":{"description":"Change of unique visitors","allOf":[{"$ref":"#/components/schemas/ReportChangeDto"}]},"avgSessionDurationSeconds":{"description":"Change of the average session duration","allOf":[{"$ref":"#/components/schemas/ReportChangeDto"}]},"bounceRate":{"description":"Change of the bounce rate","allOf":[{"$ref":"#/components/schemas/ReportChangeDto"}]}},"required":["totalVisits","uniqueVisitors","avgSessionDurationSeconds","bounceRate"]},"BookingWebsiteSummaryDto":{"type":"object","properties":{"totalVisits":{"type":"number","description":"Visits (sessions)","example":1840},"uniqueVisitors":{"type":"number","description":"Unique visitors","example":962},"avgSessionDurationSeconds":{"type":"number","description":"Average session duration in seconds","example":75},"bounceRate":{"type":"number","description":"Share of sessions with a single page view, from 0 to 1","example":0.42},"previous":{"description":"The same metrics for the previous period. Only when `type` is `summary`","allOf":[{"$ref":"#/components/schemas/BookingWebsiteMetricsDto"}]},"change":{"description":"Change compared to the previous period","allOf":[{"$ref":"#/components/schemas/BookingWebsiteMetricsChangeDto"}]}},"required":["totalVisits","uniqueVisitors","avgSessionDurationSeconds","bounceRate","change"]},"BookingWebsiteChannelDto":{"type":"object","properties":{"channel":{"type":"string","description":"Traffic channel","example":"Organic Search"},"visits":{"type":"number","description":"Visits","example":640},"percentage":{"type":"number","description":"Share of all visits, in percent","example":34.8}},"required":["channel","visits","percentage"]},"BookingWebsiteCountryDto":{"type":"object","properties":{"countryCode":{"type":"string","description":"ISO 3166-1 country code","example":"US"},"countryName":{"type":"string","description":"Country name","example":"United States"},"flag":{"type":"string","description":"Flag emoji","example":"🇺🇸"},"visits":{"type":"number","description":"Visits","example":1520},"percentage":{"type":"number","description":"Share of all visits, in percent","example":82.6}},"required":["countryCode","countryName","flag","visits","percentage"]},"BookingWebsitePageDto":{"type":"object","properties":{"path":{"type":"string","description":"Path of the page","example":"/services"},"name":{"type":"string","description":"Title of the page","example":"Services"},"views":{"type":"number","description":"Page views","example":410}},"required":["path","name","views"]},"BookingWebsiteDeviceDto":{"type":"object","properties":{"device":{"type":"string","description":"Device type","example":"Mobile"},"percentage":{"type":"number","description":"Share of all visits, in percent","example":71.3}},"required":["device","percentage"]},"BookingWebsiteCampaignDto":{"type":"object","properties":{"source":{"type":"string","description":"UTM source","example":"instagram"},"campaign":{"type":"string","description":"UTM campaign","example":"spring-balayage"},"visits":{"type":"number","description":"Visits","example":180},"percentage":{"type":"number","description":"Share of all visits, in percent","example":9.8}},"required":["source","campaign","visits","percentage"]},"BookingWebsitePeakHourDto":{"type":"object","properties":{"hour":{"type":"string","description":"Hour of the day in the requested time zone","example":"18:00"},"visits":{"type":"number","description":"Visits","example":210},"percentage":{"type":"number","description":"Share of all visits, in percent","example":11.4}},"required":["hour","visits","percentage"]},"BookingWebsiteReportDto":{"type":"object","properties":{"summary":{"description":"Visits, visitors, session duration and bounce rate","allOf":[{"$ref":"#/components/schemas/BookingWebsiteSummaryDto"}]},"topChannels":{"description":"Visits by traffic channel","type":"array","items":{"$ref":"#/components/schemas/BookingWebsiteChannelDto"}},"topCountries":{"description":"Visits by country","type":"array","items":{"$ref":"#/components/schemas/BookingWebsiteCountryDto"}},"topPages":{"description":"Most viewed pages","type":"array","items":{"$ref":"#/components/schemas/BookingWebsitePageDto"}},"deviceBreakdown":{"description":"Visits by device type","type":"array","items":{"$ref":"#/components/schemas/BookingWebsiteDeviceDto"}},"topCampaigns":{"description":"Visits by UTM campaign","type":"array","items":{"$ref":"#/components/schemas/BookingWebsiteCampaignDto"}},"peakTrafficHours":{"description":"Visits by hour of the day","type":"array","items":{"$ref":"#/components/schemas/BookingWebsitePeakHourDto"}}},"required":["summary","topChannels","topCountries","topPages","deviceBreakdown","topCampaigns","peakTrafficHours"]},"MemberListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/MemberDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateMemberDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address, unique within the salon","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","example":"+12025550143"},"role":{"type":"string","description":"Role in the salon. Can't be `owner` or higher than your own role","enum":["user","administrator","super_administrator","owner"],"example":"user"},"displayRole":{"type":"string","description":"Job title shown to clients","example":"Senior Stylist"},"translations":{"type":"object","description":"Translations of the job title by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"displayRole":"Senior-Stylistin"}}}},"required":["firstName","lastName","emailAddress","role"]},"ReorderMemberDto":{"type":"object","properties":{"members":{"type":"object","description":"New positions, as member ID → position (a whole number from 0). Members left out keep their position","additionalProperties":{"type":"integer","minimum":0},"example":{"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b":0,"mbr_01h8m3n7rta2gwx4s6p8zdye7c":1}}},"required":["members"]},"MemberOrderDto":{"type":"object","properties":{"id":{"type":"string","description":"Member ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"orderIndex":{"type":"number","description":"New position, starting at 0","example":0}},"required":["id","orderIndex"]},"ReorderMembersResultDto":{"type":"object","properties":{"members":{"description":"The members that were found in the salon, with their new positions","type":"array","items":{"$ref":"#/components/schemas/MemberOrderDto"}}},"required":["members"]},"MemberPeriodDto":{"type":"object","properties":{"startTime":{"type":"string","description":"Start, as HH:mm (24-hour) in the salon's time zone","example":"09:00"},"endTime":{"type":"string","description":"End, as HH:mm (24-hour) in the salon's time zone, after the start; `24:00` for midnight","example":"17:00"}},"required":["startTime","endTime"]},"MemberWorkingHourDto":{"type":"object","properties":{"dayIndex":{"type":"number","description":"Day of the week, from 1 (Monday) to 7 (Sunday)","minimum":1,"maximum":7,"example":1},"isActive":{"type":"boolean","description":"Whether the member works on this day","example":true},"periods":{"description":"Working periods on this day: 1 to 10 when the day is active, without overlaps and within the day","type":"array","items":{"$ref":"#/components/schemas/MemberPeriodDto"}}},"required":["dayIndex","isActive","periods"]},"LocationWorkingHoursDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location the hours apply to","example":"loc_01h455vb4pex5vsknk084sn02q"},"workingHours":{"description":"Exactly 7 days, one for each `dayIndex` from 1 to 7","type":"array","items":{"$ref":"#/components/schemas/MemberWorkingHourDto"}}},"required":["locationId","workingHours"]},"UpdateMemberDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address, unique within the salon. Ignored for members linked to an account","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","example":"+12025550143"},"workingHours":{"description":"Weekly working hours, at most one entry per location. Replaces all of the member's working hours","type":"array","items":{"$ref":"#/components/schemas/LocationWorkingHoursDto"}},"role":{"type":"string","description":"Role in the salon. Can't be `owner`, can't be higher than your own role, and is ignored when you update yourself","enum":["user","administrator","super_administrator","owner"],"example":"administrator"},"displayRole":{"type":"string","description":"Job title shown to clients","example":"Senior Stylist"},"translations":{"type":"object","description":"Translations of the job title by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"displayRole":"Senior-Stylistin"}}},"avatar":{"type":"string","description":"Profile picture: the `url` of an image uploaded with `POST /v1/files`, or `null` to remove it","nullable":true,"example":"https://storage.softalon.com/avatars/mbr_01h8m2k4qwz7ftv9r3n5ycxd6b.jpg"},"isActive":{"type":"boolean","description":"Whether the member is active. Activating a member counts toward the plan's member limit","example":true}}},"UpdateMemberResultDto":{"type":"object","properties":{"memberId":{"type":"string","description":"The updated member's ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"avatar":{"type":"string","description":"The new profile picture URL. Only when it was changed","nullable":true,"example":"https://storage.softalon.com/avatars/mbr_01h8m2k4qwz7ftv9r3n5ycxd6b.jpg"}},"required":["memberId"]},"DeleteMemberResultDto":{"type":"object","properties":{"memberId":{"type":"string","description":"The deleted member's ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"}},"required":["memberId"]},"LocationDepositPolicyDto":{"type":"object","properties":{"type":{"type":"string","description":"Kind of deposit","enum":["none","fixed","percentage"],"example":"none"},"value":{"type":"number","description":"Amount for `fixed`, percentage of the price for `percentage`, `0` for `none`","example":0}},"required":["type","value"]},"LocationCustomFieldDto":{"type":"object","properties":{"key":{"type":"string","description":"Key of the field, unique within the location","nullable":true,"example":"hair_length"},"scope":{"type":"string","description":"What the field belongs to","enum":["appointment","client"],"example":"appointment"},"label":{"type":"string","description":"Label shown to clients","example":"Hair length"},"description":{"type":"string","description":"Help text shown under the field","nullable":true,"example":"Helps us plan enough time for your appointment."},"translations":{"type":"object","description":"Translations of the label and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Haarlänge"}}},"type":{"type":"string","description":"Kind of input","enum":["text","long_text","number","email","website","phone","select","combobox","radio","checkbox","switch","date","time","datetime","color","slider"],"example":"select"},"config":{"type":"object","description":"Settings of the input, e.g. the options of a select","additionalProperties":true,"example":{"options":["Short","Medium","Long"]}},"isRequired":{"type":"boolean","description":"Whether clients must fill it in","example":false},"isActive":{"type":"boolean","description":"Whether the field is shown","example":true}},"required":["key","scope","label","type","config","isRequired","isActive"]},"LocationRatingDto":{"type":"object","properties":{"value":{"type":"number","description":"Average rating, from 1 to 5","example":4.7},"count":{"type":"number","description":"Number of reviews","example":52}},"required":["value","count"]},"LocationDto":{"type":"object","properties":{"id":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name, unique within the salon","example":"Downtown Studio"},"slug":{"type":"string","description":"URL-friendly name, unique within the salon, used in booking site links","example":"downtown-studio"},"description":{"type":"string","description":"Longer description shown on the booking site","nullable":true,"example":"Our flagship studio in the heart of downtown, with eight chairs and a private color bar."},"excerpt":{"type":"string","description":"Short summary shown in lists","nullable":true,"example":"Our flagship studio in the heart of downtown"},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Innenstadt","excerpt":"Direkt am Hauptplatz"}}},"orderIndex":{"type":"number","description":"Position in the salon's location order, starting at 0","example":0},"type":{"type":"string","description":"Kind of location: `salon` (a place with an address), `private` (e.g. a home studio, without a street address), `mobile` (at the client's place) or `virtual` (online)","enum":["salon","mobile","virtual","private"],"example":"salon"},"addressLine1":{"type":"string","description":"Street address","nullable":true,"example":"123 Main Street"},"addressLine2":{"type":"string","description":"Apartment, suite or floor","nullable":true,"example":"Suite 100"},"city":{"type":"string","description":"City","nullable":true,"example":"New York"},"state":{"type":"string","description":"State, province or region","nullable":true,"example":"NY"},"postalCode":{"type":"string","description":"Postal code","nullable":true,"example":"10001"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","nullable":true,"example":"US"},"longitude":{"type":"number","description":"Longitude","nullable":true,"example":-73.9857},"latitude":{"type":"number","description":"Latitude","nullable":true,"example":40.7484},"images":{"description":"Image URLs, in display order","example":["https://storage.softalon.com/locations/downtown-studio.jpg"],"type":"array","items":{"type":"string"}},"depositPolicy":{"description":"Deposit clients pay when they book here","allOf":[{"$ref":"#/components/schemas/LocationDepositPolicyDto"}]},"customFields":{"description":"Extra fields clients fill in when they book here","type":"array","items":{"$ref":"#/components/schemas/LocationCustomFieldDto"}},"isActive":{"type":"boolean","description":"Whether the location is open for booking","example":true},"assignments":{"description":"Members assigned to the location. Only with `expand=assignments`","type":"array","items":{"$ref":"#/components/schemas/LocationAssignmentDto"}},"rating":{"description":"Average rating from reviews, or `null` without reviews. Only with `expand=rating`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/LocationRatingDto"}]},"createdAt":{"type":"string","description":"When the location was created","example":"2026-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the location was last changed","example":"2026-02-03T08:12:45.000Z"}},"required":["id","salonId","name","slug","description","excerpt","translations","orderIndex","type","addressLine1","addressLine2","city","state","postalCode","country","longitude","latitude","images","depositPolicy","customFields","isActive","createdAt","updatedAt"]},"MemberLocationAssignmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Location assignment ID","example":"aloc_01h9q3t7vxe2kfbn6w8m4rzc5y"},"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"memberId":{"type":"string","description":"Member ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"createdAt":{"type":"string","description":"When the member was assigned","example":"2026-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the assignment was last changed","example":"2026-01-15T10:30:00.000Z"},"location":{"description":"The assigned location","allOf":[{"$ref":"#/components/schemas/LocationDto"}]}},"required":["id","locationId","memberId","createdAt","updatedAt","location"]},"CreateMemberLocationDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location to assign the member to","example":"loc_01h455vb4pex5vsknk084sn02q"}},"required":["locationId"]},"DeleteMemberLocationResultDto":{"type":"object","properties":{"assignmentId":{"type":"string","description":"The deleted assignment's ID","example":"aloc_01h9q3t7vxe2kfbn6w8m4rzc5y"}},"required":["assignmentId"]},"ServiceCustomFieldDto":{"type":"object","properties":{"key":{"type":"string","description":"Key the answer is stored under","nullable":true,"example":"hair_length"},"scope":{"type":"string","description":"Whether the answer belongs to the appointment or to the client","enum":["appointment","client"],"example":"appointment"},"label":{"type":"string","description":"Label of the field","example":"Hair length"},"description":{"type":"string","description":"Help text under the field","nullable":true,"example":"So we can plan enough time for your appointment."},"translations":{"type":"object","description":"Translations of the label and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Haarlänge"}}},"type":{"type":"string","description":"Type of input","enum":["text","long_text","number","email","website","phone","select","combobox","radio","checkbox","switch","date","time","datetime","color","slider"],"example":"select"},"config":{"type":"object","description":"Options of the input type, such as the choices of a select","additionalProperties":true,"example":{"options":["Short","Medium","Long"]}},"isRequired":{"type":"boolean","description":"Whether clients must fill it in","example":true},"isActive":{"type":"boolean","description":"Whether the field is asked","example":true}},"required":["key","scope","label","type","config","isRequired","isActive"]},"ServiceDepositPolicyDto":{"type":"object","properties":{"type":{"type":"string","description":"`none` (no deposit), `fixed` (an amount in the salon's currency) or `percentage` (of the price)","enum":["none","fixed","percentage"],"example":"percentage"},"value":{"type":"number","description":"Amount in the salon's currency for `fixed`, 0–100 for `percentage`, 0 for `none`","example":20}},"required":["type","value"]},"CategoryDto":{"type":"object","properties":{"id":{"type":"string","description":"Category ID","example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name, unique within the salon","example":"Hair Coloring"},"description":{"type":"string","description":"Description","nullable":true,"example":"Color, highlights and balayage."},"translations":{"type":"object","description":"Translations of the name and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haare"}}},"orderIndex":{"type":"number","description":"Position in the salon's list of categories, starting at 0","example":0},"createdAt":{"type":"string","description":"When the category was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the category was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","salonId","name","description","translations","orderIndex","createdAt","updatedAt"]},"TaxRateAssignedCountsDto":{"type":"object","properties":{"assignedProductsCount":{"type":"number","description":"Products that use the tax rate","example":4},"assignedServicesCount":{"type":"number","description":"Services that use the tax rate","example":12},"totalAssignmentsCount":{"type":"number","description":"Services and products together","example":16}},"required":["assignedProductsCount","assignedServicesCount","totalAssignmentsCount"]},"TaxRateDto":{"type":"object","properties":{"id":{"type":"string","description":"Tax rate ID","example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name shown on invoices","example":"Sales Tax"},"type":{"type":"string","description":"`inclusive`: prices already contain the tax; `exclusive`: the tax is added on top of the prices","enum":["inclusive","exclusive"],"example":"exclusive"},"rate":{"type":"number","description":"Rate in percent, from 0 to 100","example":8.875},"assignedCounts":{"description":"How many services and products use the tax rate. Only when getting tax rates","allOf":[{"$ref":"#/components/schemas/TaxRateAssignedCountsDto"}]},"createdAt":{"type":"string","description":"When the tax rate was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the tax rate was last changed","example":"2026-03-14T09:30:00.000Z"}},"required":["id","salonId","name","type","rate","createdAt","updatedAt"]},"ServiceRatingDto":{"type":"object","properties":{"value":{"type":"number","description":"Average rating, from 1 to 5","example":4.8},"count":{"type":"number","description":"Number of reviews","example":52}},"required":["value","count"]},"ServiceDto":{"type":"object","properties":{"id":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"categoryId":{"type":"string","description":"Category ID; `null` when the service has no category","nullable":true,"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"},"name":{"type":"string","description":"Name, unique within the salon","example":"Balayage"},"slug":{"type":"string","description":"URL-friendly name, unique within the salon; made from the name when the service is created","example":"balayage"},"excerpt":{"type":"string","description":"Short description shown in lists","nullable":true,"example":"Hand-painted, natural-looking highlights."},"description":{"type":"string","description":"Full description","nullable":true,"example":"Includes a consultation, toner and blow-dry. Plan about two hours for longer hair."},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","excerpt":"Waschen, Schneiden und Föhnen"}}},"orderIndex":{"type":"number","description":"Position within its category, starting at 0; categories keep their own order","example":2},"duration":{"type":"number","description":"Duration in minutes","example":120},"price":{"type":"number","description":"Price in the salon's currency (`0` for free, `null` when not set). Assignments can override it per member or location","nullable":true,"example":180},"taxRateId":{"type":"string","description":"Tax rate applied to the price","nullable":true,"example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"},"bufferBefore":{"type":"number","description":"Minutes kept free before each appointment","nullable":true,"example":null},"bufferAfter":{"type":"number","description":"Minutes kept free after each appointment","nullable":true,"example":15},"images":{"description":"Image URLs","example":["https://storage.softalon.com/services/balayage.jpg"],"type":"array","items":{"type":"string"}},"customFields":{"description":"Extra questions asked when the service is booked","type":"array","items":{"$ref":"#/components/schemas/ServiceCustomFieldDto"}},"depositPolicy":{"description":"Deposit clients pay when they book","allOf":[{"$ref":"#/components/schemas/ServiceDepositPolicyDto"}]},"isPrivate":{"type":"boolean","description":"Private services are hidden from clients on the booking site; they still get them by ID","example":false},"isActive":{"type":"boolean","description":"Whether the service can be booked","example":true},"category":{"description":"The category. Only with `expand=category`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CategoryDto"}]},"taxRate":{"description":"The tax rate. Only with `expand=taxRate`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/TaxRateDto"}]},"rating":{"description":"Average review rating; `null` without reviews. Only with `expand=rating`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ServiceRatingDto"}]},"assignments":{"description":"Member and location assignments with their overrides. Only with `expand=assignments`","type":"array","items":{"$ref":"#/components/schemas/ServiceAssignmentDto"}},"createdAt":{"type":"string","description":"When the service was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the service was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","salonId","categoryId","name","slug","excerpt","description","translations","orderIndex","duration","price","taxRateId","bufferBefore","bufferAfter","images","customFields","depositPolicy","isPrivate","isActive","createdAt","updatedAt"]},"MemberServiceAssignmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Service assignment ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member who performs the service; `null` for a location assignment","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"locationId":{"type":"string","description":"Location that offers the service; `null` for a member assignment","nullable":true,"example":null},"price":{"type":"number","description":"Price in the salon's currency; a member's price wins over a location's, which wins over the service's","nullable":true,"example":85},"duration":{"type":"number","description":"Duration in minutes","nullable":true,"example":75},"bufferBefore":{"type":"number","description":"Minutes kept free before the appointment","nullable":true,"example":null},"bufferAfter":{"type":"number","description":"Minutes kept free after the appointment","nullable":true,"example":10},"createdAt":{"type":"string","description":"When the assignment was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the assignment was last changed","example":"2026-05-02T16:45:30.000Z"},"service":{"description":"The assigned service","allOf":[{"$ref":"#/components/schemas/ServiceDto"}]}},"required":["id","serviceId","memberId","locationId","price","duration","bufferBefore","bufferAfter","createdAt","updatedAt","service"]},"CreateMemberServiceDto":{"type":"object","properties":{"serviceId":{"type":"string","description":"Service the member performs","example":"serv_01h7n6xq8vbt2kfz4rm9wc3d5e"},"price":{"type":"number","description":"The member's price for the service, in the salon's currency; 0 is free","example":65},"duration":{"type":"number","description":"The member's duration in minutes, from 5 to 1440 in steps of 5","example":45},"bufferBefore":{"type":"number","description":"Minutes kept free before the service, from 0 to 120 in steps of 5","example":0},"bufferAfter":{"type":"number","description":"Minutes kept free after the service, from 0 to 120 in steps of 5","example":10}},"required":["serviceId"]},"UpdateMemberServiceDto":{"type":"object","properties":{"price":{"type":"number","description":"The member's price for the service, in the salon's currency; 0 is free","nullable":true,"example":65},"duration":{"type":"number","description":"The member's duration in minutes, from 5 to 1440 in steps of 5","nullable":true,"example":45},"bufferBefore":{"type":"number","description":"Minutes kept free before the service, from 0 to 120 in steps of 5","nullable":true,"example":0},"bufferAfter":{"type":"number","description":"Minutes kept free after the service, from 0 to 120 in steps of 5","nullable":true,"example":10}}},"UpdateMemberServiceResultDto":{"type":"object","properties":{"assignmentId":{"type":"string","description":"The updated assignment's ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"}},"required":["assignmentId"]},"DeleteMemberServiceResultDto":{"type":"object","properties":{"assignmentId":{"type":"string","description":"The deleted assignment's ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"}},"required":["assignmentId"]},"CreateInvitationDto":{"type":"object","properties":{"memberId":{"type":"string","description":"Member to invite; the email goes to their email address","example":"mbr_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["memberId"]},"DeleteInvitationResultDto":{"type":"object","properties":{"invitationId":{"type":"string","description":"ID of the deleted invitation","example":"invt_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["invitationId"]},"LocationListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/LocationDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CustomFieldDto":{"type":"object","properties":{"key":{"type":"string","description":"Key of the field, unique within the location","example":"hair_length"},"scope":{"type":"string","description":"What the field belongs to","enum":["appointment","client"],"example":"appointment"},"label":{"type":"string","description":"Label shown to clients","example":"Hair length"},"description":{"type":"string","description":"Help text shown under the field","example":"Helps us plan enough time for your appointment."},"translations":{"type":"object","description":"Translations of the label and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Haarlänge"}}},"type":{"type":"string","description":"Kind of input","enum":["text","long_text","number","email","website","phone","select","combobox","radio","checkbox","switch","date","time","datetime","color","slider"],"example":"select"},"config":{"type":"object","description":"Settings of the input, e.g. the options of a select","additionalProperties":true,"default":{},"example":{"options":["Short","Medium","Long"]}},"isRequired":{"type":"boolean","description":"Whether clients must fill it in","example":false},"isActive":{"type":"boolean","description":"Whether the field is shown","example":true}},"required":["scope","label","type"]},"CreateLocationDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon, at least 3 characters","example":"Downtown Studio"},"description":{"type":"string","description":"Longer description shown on the booking site","example":"Our flagship studio in the heart of downtown, with eight chairs and a private color bar."},"excerpt":{"type":"string","description":"Short summary shown in lists","example":"Our flagship studio in the heart of downtown"},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Innenstadt","excerpt":"Direkt am Hauptplatz"}}},"type":{"type":"string","description":"Kind of location, which decides the address fields: `salon` needs `addressLine1`, `addressLine2`, `city`, `state`, `postalCode` and `country`; `private` needs `city`, `state`, `postalCode` and `country` only; `mobile` and `virtual` take no address","enum":["salon","mobile","virtual","private"],"example":"salon"},"addressLine1":{"type":"string","description":"Street address. Required for `salon`, not allowed otherwise","example":"123 Main Street"},"addressLine2":{"type":"string","description":"Apartment, suite or floor. Required for `salon` (an empty string when there is none), not allowed otherwise","example":"Suite 100"},"city":{"type":"string","description":"City. Required for `salon` and `private`, not allowed otherwise","example":"New York"},"state":{"type":"string","description":"State, province or region. Required for `salon` and `private`, not allowed otherwise","example":"NY"},"postalCode":{"type":"string","description":"Postal code. Required for `salon` and `private`, not allowed otherwise","example":"10001"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Required for `salon` and `private`, not allowed otherwise","example":"US"},"longitude":{"type":"number","description":"Longitude. Only for `salon`","example":-73.9857},"latitude":{"type":"number","description":"Latitude. Only for `salon`","example":40.7484},"images":{"description":"Image URLs of uploaded files, in display order","example":["https://storage.softalon.com/locations/downtown-studio.jpg"],"type":"array","items":{"type":"string"}},"customFields":{"description":"Extra fields clients fill in when they book here","type":"array","items":{"$ref":"#/components/schemas/CustomFieldDto"}}},"required":["name","type"]},"ReorderLocationDto":{"type":"object","properties":{"locations":{"type":"object","description":"New positions by location ID, each a whole number starting at 0","additionalProperties":{"type":"integer","minimum":0},"example":{"loc_01h455vb4pex5vsknk084sn02q":0,"loc_01h455vb4pex5vsknk084sn02r":1}}},"required":["locations"]},"LocationOrderDto":{"type":"object","properties":{"id":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"orderIndex":{"type":"number","description":"New position, starting at 0","example":0}},"required":["id","orderIndex"]},"ReorderLocationsResultDto":{"type":"object","properties":{"locations":{"description":"The locations that were found in the salon, with their new positions","type":"array","items":{"$ref":"#/components/schemas/LocationOrderDto"}}},"required":["locations"]},"UpdateLocationDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon, at least 3 characters","example":"Downtown Studio"},"description":{"type":"string","description":"Longer description shown on the booking site","example":"Our flagship studio in the heart of downtown, with eight chairs and a private color bar."},"excerpt":{"type":"string","description":"Short summary shown in lists","example":"Our flagship studio in the heart of downtown"},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Innenstadt","excerpt":"Direkt am Hauptplatz"}}},"type":{"type":"string","description":"Kind of location, which decides the address fields: `salon` needs `addressLine1`, `addressLine2`, `city`, `state`, `postalCode` and `country`; `private` needs `city`, `state`, `postalCode` and `country` only; `mobile` and `virtual` take no address","enum":["salon","mobile","virtual","private"],"example":"salon"},"addressLine1":{"type":"string","description":"Street address. Required for `salon`, not allowed otherwise","example":"123 Main Street"},"addressLine2":{"type":"string","description":"Apartment, suite or floor. Required for `salon` (an empty string when there is none), not allowed otherwise","example":"Suite 100"},"city":{"type":"string","description":"City. Required for `salon` and `private`, not allowed otherwise","example":"New York"},"state":{"type":"string","description":"State, province or region. Required for `salon` and `private`, not allowed otherwise","example":"NY"},"postalCode":{"type":"string","description":"Postal code. Required for `salon` and `private`, not allowed otherwise","example":"10001"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code. Required for `salon` and `private`, not allowed otherwise","example":"US"},"longitude":{"type":"number","description":"Longitude. Only for `salon`","example":-73.9857},"latitude":{"type":"number","description":"Latitude. Only for `salon`","example":40.7484},"images":{"description":"Image URLs of uploaded files, in display order","example":["https://storage.softalon.com/locations/downtown-studio.jpg"],"type":"array","items":{"type":"string"}},"customFields":{"description":"Extra fields clients fill in when they book here","type":"array","items":{"$ref":"#/components/schemas/CustomFieldDto"}},"slug":{"type":"string","description":"URL-friendly name, unique within the salon, used in booking site links","example":"downtown-studio"},"isActive":{"type":"boolean","description":"Whether the location is open for booking. Activating counts toward the plan's location limit","example":true}}},"UpdateLocationResultDto":{"type":"object","properties":{"locationId":{"type":"string","description":"The updated location's ID","example":"loc_01h455vb4pex5vsknk084sn02q"}},"required":["locationId"]},"DeleteLocationResultDto":{"type":"object","properties":{"locationId":{"type":"string","description":"The deleted location's ID","example":"loc_01h455vb4pex5vsknk084sn02q"}},"required":["locationId"]},"MeetingDto":{"type":"object","properties":{"id":{"type":"string","description":"Meeting ID","example":"meet_01hb8g7p4rqx2ktv6w9n3fzc5j"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"provider":{"type":"string","description":"Video provider","enum":["daily"],"example":"daily"},"providerId":{"type":"string","description":"Room name at the video provider","example":"sal_01h2xcejqtf2nbrexx3vqjhp41_mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"memberId":{"type":"string","description":"Member who hosts the room","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"createdAt":{"type":"string","description":"When the room was created","example":"2026-11-23T10:41:12.000Z"},"updatedAt":{"type":"string","description":"When the room was last changed","example":"2026-11-23T10:41:12.000Z"}},"required":["id","salonId","provider","providerId","memberId","createdAt","updatedAt"]},"MeetingListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/MeetingDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"AccessMeetingDto":{"type":"object","properties":{"userName":{"type":"string","description":"Name to show in the meeting; defaults to the member's name, or `Guest`","example":"Jane Cooper"}}},"AccessMeetingResultDto":{"type":"object","properties":{"id":{"type":"string","description":"Meeting ID","example":"meet_01hb8g7p4rqx2ktv6w9n3fzc5j"},"token":{"type":"string","description":"Host token for members of the salon; `null` for guests, who join with the URL only","nullable":true,"example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."},"url":{"type":"string","description":"Link to open the room; for guests it includes their name","example":"https://softalon.daily.co/sal_01h2xcejqtf2nbrexx3vqjhp41_mbr_01h8m2k4qwz7ftv9r3n5ycxd6b?user_name=Jane%20Cooper"}},"required":["id","token","url"]},"LocationServiceAssignmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Service assignment ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member who performs the service; `null` for a location assignment","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"locationId":{"type":"string","description":"Location that offers the service; `null` for a member assignment","nullable":true,"example":null},"price":{"type":"number","description":"Price in the salon's currency; a member's price wins over a location's, which wins over the service's","nullable":true,"example":85},"duration":{"type":"number","description":"Duration in minutes","nullable":true,"example":75},"bufferBefore":{"type":"number","description":"Minutes kept free before the appointment","nullable":true,"example":null},"bufferAfter":{"type":"number","description":"Minutes kept free after the appointment","nullable":true,"example":10},"createdAt":{"type":"string","description":"When the assignment was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the assignment was last changed","example":"2026-05-02T16:45:30.000Z"},"service":{"description":"The assigned service","allOf":[{"$ref":"#/components/schemas/ServiceDto"}]}},"required":["id","serviceId","memberId","locationId","price","duration","bufferBefore","bufferAfter","createdAt","updatedAt","service"]},"CreateLocationServiceDto":{"type":"object","properties":{"serviceId":{"type":"string","description":"Service the location offers","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"price":{"type":"number","description":"The location's price for the service, in the salon's currency; 0 is free","example":65},"duration":{"type":"number","description":"The location's duration in minutes, from 5 to 1440 in steps of 5","example":45},"bufferBefore":{"type":"number","description":"Minutes kept free before the service, from 0 to 120 in steps of 5","example":0},"bufferAfter":{"type":"number","description":"Minutes kept free after the service, from 0 to 120 in steps of 5","example":10}},"required":["serviceId"]},"UpdateLocationServiceDto":{"type":"object","properties":{"price":{"type":"number","description":"The location's price for the service, in the salon's currency; 0 is free","nullable":true,"example":65},"duration":{"type":"number","description":"The location's duration in minutes, from 5 to 1440 in steps of 5","nullable":true,"example":45},"bufferBefore":{"type":"number","description":"Minutes kept free before the service, from 0 to 120 in steps of 5","nullable":true,"example":0},"bufferAfter":{"type":"number","description":"Minutes kept free after the service, from 0 to 120 in steps of 5","nullable":true,"example":10}}},"UpdateLocationServiceResultDto":{"type":"object","properties":{"assignmentId":{"type":"string","description":"The updated assignment's ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"}},"required":["assignmentId"]},"DeleteLocationServiceResultDto":{"type":"object","properties":{"assignmentId":{"type":"string","description":"The deleted assignment's ID","example":"aserv_01h9q4b2nfk8t6xw3vz7m5dcre"}},"required":["assignmentId"]},"CategoryListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/CategoryDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateCategoryDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Hair Coloring"},"description":{"type":"string","description":"Description","example":"Color, highlights and balayage."},"translations":{"type":"object","description":"Translations of the name and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haare"}}}},"required":["name"]},"CreateBulkCategoryDto":{"type":"object","properties":{"categories":{"description":"Categories to create, in this order","type":"array","items":{"$ref":"#/components/schemas/CreateCategoryDto"}}},"required":["categories"]},"BulkCreateErrorDto":{"type":"object","properties":{"index":{"type":"number","description":"Position of the item in the request's list","example":1},"error":{"type":"object","description":"Why the item was not created","additionalProperties":true,"example":{"message":"The requested tax rate was not found.","error":"TAX_RATE_NOT_FOUND","statusCode":404}}},"required":["index","error"]},"CreateBulkCategoriesResultDto":{"type":"object","properties":{"successful":{"description":"The categories that were created","type":"array","items":{"$ref":"#/components/schemas/CategoryDto"}},"failed":{"description":"The categories that were not created, with the reason","example":[{"index":1,"error":{"message":"The requested category already exists.","error":"CATEGORY_ALREADY_EXISTS","statusCode":409}}],"type":"array","items":{"$ref":"#/components/schemas/BulkCreateErrorDto"}}},"required":["successful","failed"]},"UpdateCategoryDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Hair Coloring"},"description":{"type":"string","description":"Description","example":"Color, highlights and balayage."},"translations":{"type":"object","description":"Translations of the name and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haare"}}}}},"UpdateCategoryResultDto":{"type":"object","properties":{"categoryId":{"type":"string","description":"The updated category's ID","example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"}},"required":["categoryId"]},"ReorderCategoryDto":{"type":"object","properties":{"categories":{"type":"object","description":"New positions by category ID; each position is a whole number from 0","additionalProperties":{"type":"integer","minimum":0},"example":{"cat_01h2xd3n7pqk5w9rtv2m8fbx4c":0,"cat_01h7n4q2wxz8k5tvm3rb9fdc6a":1}}},"required":["categories"]},"CategoryOrderDto":{"type":"object","properties":{"id":{"type":"string","description":"Category ID","example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"},"orderIndex":{"type":"number","description":"New position, starting at 0","example":0}},"required":["id","orderIndex"]},"ReorderCategoriesResultDto":{"type":"object","properties":{"categories":{"description":"The categories that were found in the salon, with their new positions","type":"array","items":{"$ref":"#/components/schemas/CategoryOrderDto"}}},"required":["categories"]},"DeleteCategoryResultDto":{"type":"object","properties":{"categoryId":{"type":"string","description":"The deleted category's ID","example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"}},"required":["categoryId"]},"ServiceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ServiceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"ServiceCustomFieldInputDto":{"type":"object","properties":{"key":{"type":"string","description":"Key the answer is stored under","example":"hair_length"},"scope":{"type":"string","description":"Whether the answer belongs to the appointment or to the client","enum":["appointment","client"],"example":"appointment"},"label":{"type":"string","description":"Label of the field","example":"Hair length"},"description":{"type":"string","description":"Help text under the field","example":"So we can plan enough time for your appointment."},"translations":{"type":"object","description":"Translations of the label and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Haarlänge"}}},"type":{"type":"string","description":"Type of input","enum":["text","long_text","number","email","website","phone","select","combobox","radio","checkbox","switch","date","time","datetime","color","slider"],"example":"select"},"config":{"type":"object","description":"Options of the input type, such as the choices of a select","additionalProperties":true,"example":{"options":["Short","Medium","Long"]}},"isRequired":{"type":"boolean","description":"Whether clients must fill it in","example":true},"isActive":{"type":"boolean","description":"Whether the field is asked","example":true}},"required":["scope","label","type"]},"ServiceDepositPolicyInputDto":{"type":"object","properties":{"type":{"type":"string","description":"`none` (no deposit), `fixed` (an amount in the salon's currency) or `percentage` (of the price)","enum":["none","fixed","percentage"],"example":"percentage"},"value":{"type":"number","description":"Amount in the salon's currency for `fixed`, 0–100 for `percentage`, 0 for `none`","minimum":0,"example":20}},"required":["type","value"]},"CreateServiceDto":{"type":"object","properties":{"categoryId":{"type":"string","description":"Category to put the service in","example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"},"name":{"type":"string","description":"Name, unique within the salon","example":"Balayage"},"excerpt":{"type":"string","description":"Short description shown in lists","example":"Hand-painted, natural-looking highlights."},"description":{"type":"string","description":"Full description","example":"Includes a consultation, toner and blow-dry. Plan about two hours for longer hair."},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","excerpt":"Waschen, Schneiden und Föhnen"}}},"duration":{"type":"number","description":"Duration in minutes, from 5 to 1440 in steps of 5","minimum":5,"maximum":1440,"multipleOf":5,"example":120},"price":{"type":"number","description":"Price in the salon's currency; `0` for free. Leave it out when the price isn't set","example":180},"taxRateId":{"type":"string","description":"Tax rate applied to the price","example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"},"bufferBefore":{"type":"number","description":"Minutes kept free before each appointment, from 0 to 120 in steps of 5","minimum":0,"maximum":120,"multipleOf":5,"example":0},"bufferAfter":{"type":"number","description":"Minutes kept free after each appointment, from 0 to 120 in steps of 5","minimum":0,"maximum":120,"multipleOf":5,"example":15},"images":{"description":"Image URLs of uploaded files","example":["https://storage.softalon.com/services/balayage.jpg"],"type":"array","items":{"type":"string"}},"customFields":{"description":"Extra questions asked when the service is booked","type":"array","items":{"$ref":"#/components/schemas/ServiceCustomFieldInputDto"}},"depositPolicy":{"description":"Deposit clients pay when they book; none by default","allOf":[{"$ref":"#/components/schemas/ServiceDepositPolicyInputDto"}]},"isPrivate":{"type":"boolean","description":"Hide the service from clients on the booking site; `false` by default","example":false}},"required":["name","duration"]},"CreateBulkServiceDto":{"type":"object","properties":{"services":{"description":"Services to create, in this order","type":"array","items":{"$ref":"#/components/schemas/CreateServiceDto"}}},"required":["services"]},"CreateBulkServicesResultDto":{"type":"object","properties":{"successful":{"description":"The services that were created","type":"array","items":{"$ref":"#/components/schemas/ServiceDto"}},"failed":{"description":"The services that were not created, with the reason","type":"array","items":{"$ref":"#/components/schemas/BulkCreateErrorDto"}}},"required":["successful","failed"]},"ReorderServiceDto":{"type":"object","properties":{"services":{"type":"object","description":"New positions by service ID; each position is a whole number from 0","additionalProperties":{"type":"integer","minimum":0},"example":{"serv_01h2xd5k9mqf3r7twz8n4bvc6e":0,"serv_01h7n6xq8vbt2kfz4rm9wc3d5e":1}}},"required":["services"]},"ServiceOrderDto":{"type":"object","properties":{"id":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"orderIndex":{"type":"number","description":"New position, starting at 0","example":0}},"required":["id","orderIndex"]},"ReorderServicesResultDto":{"type":"object","properties":{"services":{"description":"The services that were found in the salon, with their new positions","type":"array","items":{"$ref":"#/components/schemas/ServiceOrderDto"}}},"required":["services"]},"UpdateServiceDto":{"type":"object","properties":{"categoryId":{"type":"string","description":"Category to put the service in; `null` removes it","nullable":true,"example":"cat_01h2xd3n7pqk5w9rtv2m8fbx4c"},"name":{"type":"string","description":"Name, unique within the salon. The slug stays the same","example":"Balayage"},"slug":{"type":"string","description":"URL-friendly name, unique within the salon","example":"balayage"},"excerpt":{"type":"string","description":"Short description shown in lists","example":"Hand-painted, natural-looking highlights."},"description":{"type":"string","description":"Full description","example":"Includes a consultation, toner and blow-dry. Plan about two hours for longer hair."},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","excerpt":"Waschen, Schneiden und Föhnen"}}},"duration":{"type":"number","description":"Duration in minutes, from 5 to 1440 in steps of 5","minimum":5,"maximum":1440,"multipleOf":5,"example":120},"price":{"type":"number","description":"Price in the salon's currency; `0` for free, `null` for not set","nullable":true,"example":180},"taxRateId":{"type":"string","description":"Tax rate applied to the price; `null` removes it","nullable":true,"example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"},"bufferBefore":{"type":"number","description":"Minutes kept free before each appointment, from 0 to 120 in steps of 5; `null` for none","nullable":true,"minimum":0,"maximum":120,"multipleOf":5,"example":0},"bufferAfter":{"type":"number","description":"Minutes kept free after each appointment, from 0 to 120 in steps of 5; `null` for none","nullable":true,"minimum":0,"maximum":120,"multipleOf":5,"example":15},"images":{"description":"Image URLs of uploaded files; replaces the whole list","example":["https://storage.softalon.com/services/balayage.jpg"],"type":"array","items":{"type":"string"}},"customFields":{"description":"Extra questions asked when the service is booked; replaces the whole list","type":"array","items":{"$ref":"#/components/schemas/ServiceCustomFieldInputDto"}},"depositPolicy":{"description":"Deposit clients pay when they book","allOf":[{"$ref":"#/components/schemas/ServiceDepositPolicyInputDto"}]},"isPrivate":{"type":"boolean","description":"Hide the service from clients on the booking site","example":false},"isActive":{"type":"boolean","description":"Whether the service can be booked","example":true}}},"UpdateServiceResultDto":{"type":"object","properties":{"serviceId":{"type":"string","description":"The updated service's ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"}},"required":["serviceId"]},"DeleteServiceResultDto":{"type":"object","properties":{"serviceId":{"type":"string","description":"The deleted service's ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"}},"required":["serviceId"]},"ResourceDto":{"type":"object","properties":{"id":{"type":"string","description":"Resource ID","example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name, unique within the salon","example":"Treatment Room"},"quantity":{"type":"number","description":"How many of it the salon has, i.e. how many appointments can use it at once","minimum":1,"example":3},"isActive":{"type":"boolean","description":"Whether the resource is in use","example":true},"createdAt":{"type":"string","description":"When the resource was created","example":"2026-01-15T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the resource was last changed","example":"2026-02-03T08:12:45.000Z"}},"required":["id","salonId","name","quantity","isActive","createdAt","updatedAt"]},"ResourceRequirementDto":{"type":"object","properties":{"id":{"type":"string","description":"Resource requirement ID","example":"rreq_01h6m3p9qwz2k7tvx5nb8rdc4f"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"resourceId":{"type":"string","description":"Resource ID","example":"rsrc_01h5r8t2kvq4m7xnw3bz9fdc6p"},"quantity":{"type":"number","description":"How many units of the resource one appointment uses","example":1},"resource":{"description":"The resource. Only with `expand=resource`","allOf":[{"$ref":"#/components/schemas/ResourceDto"}]},"service":{"description":"The service. Only with `expand=service`","allOf":[{"$ref":"#/components/schemas/ServiceDto"}]},"createdAt":{"type":"string","description":"When the requirement was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the requirement was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","serviceId","resourceId","quantity","createdAt","updatedAt"]},"ResourceRequirementListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ResourceRequirementDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateResourceRequirementDto":{"type":"object","properties":{"resourceId":{"type":"string","description":"Resource the service needs","example":"rsrc_01h5r8t2kvq4m7xnw3bz9fdc6p"},"quantity":{"type":"number","description":"How many units of the resource one appointment uses, 1 or more","minimum":1,"default":1,"example":1}},"required":["resourceId"]},"UpdateResourceRequirementDto":{"type":"object","properties":{"quantity":{"type":"number","description":"How many units of the resource one appointment uses, 1 or more","minimum":1,"example":2}}},"UpdateResourceRequirementResultDto":{"type":"object","properties":{"resourceRequirementId":{"type":"string","description":"The updated requirement's ID","example":"rreq_01h6m3p9qwz2k7tvx5nb8rdc4f"}},"required":["resourceRequirementId"]},"DeleteResourceRequirementResultDto":{"type":"object","properties":{"resourceRequirementId":{"type":"string","description":"The deleted requirement's ID","example":"rreq_01h6m3p9qwz2k7tvx5nb8rdc4f"}},"required":["resourceRequirementId"]},"ResourceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ResourceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateResourceDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Treatment Room"},"quantity":{"type":"number","description":"How many of it the salon has, i.e. how many appointments can use it at once","minimum":1,"example":3}},"required":["name","quantity"]},"UpdateResourceDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Treatment Room"},"quantity":{"type":"number","description":"How many of it the salon has, i.e. how many appointments can use it at once","minimum":1,"example":4},"isActive":{"type":"boolean","description":"Whether the resource is in use","example":true}}},"UpdateResourceResultDto":{"type":"object","properties":{"resourceId":{"type":"string","description":"The updated resource's ID","example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d"}},"required":["resourceId"]},"DeleteResourceResultDto":{"type":"object","properties":{"resourceId":{"type":"string","description":"The deleted resource's ID","example":"rsrc_01h7k3m9xq2vz8fbt5n4wcyr6d"}},"required":["resourceId"]},"RequestSessionDto":{"type":"object","properties":{"emailAddress":{"type":"string","description":"The client's email address","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"The client's phone number in E.164 format","example":"+12025550143"}}},"RequestClientSessionResultDto":{"type":"object","properties":{"requestId":{"type":"string","description":"Session request ID, sent with the code to `POST /v1/salons/{salonId}/clients/sessions`","example":"clsrq_01m82v0d7ge6xtxk2h7mhd9f4c"},"firstName":{"type":"string","description":"The client's first name, for a personal greeting","example":"Jane"}},"required":["requestId","firstName"]},"CreateClientSessionDto":{"type":"object","properties":{"requestId":{"type":"string","description":"Session request ID from `POST /v1/salons/{salonId}/clients/sessions/request`","example":"clsrq_01m82v0d7ge6xtxk2h7mhd9f4c"},"code":{"type":"string","description":"The 6-digit one-time code the client got","example":"482913"}},"required":["requestId","code"]},"ClientAppointmentsSummaryDto":{"type":"object","properties":{"total":{"type":"number","description":"All appointments of the client","example":14},"byStatus":{"type":"object","description":"Appointments by status","additionalProperties":{"type":"number"},"example":{"awaiting_payment":0,"awaiting_confirmation":0,"confirmed":1,"declined":0,"no_show":1,"canceled":2,"completed":10}},"firstAppointmentAt":{"type":"string","description":"Start of the first completed appointment","nullable":true,"example":"2026-01-12T15:00:00.000Z"},"lastAppointmentAt":{"type":"string","description":"Start of the latest completed appointment","nullable":true,"example":"2026-04-28T10:30:00.000Z"}},"required":["total","byStatus","firstAppointmentAt","lastAppointmentAt"]},"ClientReviewsSummaryDto":{"type":"object","properties":{"value":{"type":"number","description":"Average rating, from 1 to 5","example":4.8},"count":{"type":"number","description":"Number of reviews","example":5}},"required":["value","count"]},"ClientBookingSummaryDto":{"type":"object","properties":{"appointments":{"$ref":"#/components/schemas/ClientAppointmentsSummaryDto"},"reviews":{"$ref":"#/components/schemas/ClientReviewsSummaryDto"}},"required":["appointments","reviews"]},"ClientFinancesSummaryDto":{"type":"object","properties":{"total":{"type":"number","description":"Total of finalized invoices","example":845},"paid":{"type":"number","description":"Amount paid on finalized invoices","example":845},"tips":{"type":"number","description":"Tips paid","example":55},"unpaid":{"type":"number","description":"Amount of finalized invoices not paid yet","example":0},"expected":{"type":"number","description":"Total of invoices not finalized yet, e.g. of upcoming appointments","example":120}},"required":["total","paid","tips","unpaid","expected"]},"ClientDto":{"type":"object","properties":{"id":{"type":"string","description":"Client ID","example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"dateOfBirth":{"type":"string","description":"Date of birth, as YYYY-MM-DD","nullable":true,"example":"1990-05-15"},"emailAddress":{"type":"string","description":"Email address, unique in the salon. A client has an email address, a phone number or both","nullable":true,"example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format, unique in the salon","nullable":true,"example":"+12025550143"},"language":{"type":"string","description":"Language the client reads messages in; set from the booking site. `null` for the salon's language","nullable":true,"example":"de"},"avatar":{"type":"string","description":"Profile picture URL","nullable":true,"example":"https://storage.softalon.com/avatars/cli_01m82v0d7ge6xtxk2aqj338zs3.jpg"},"hasTransactionalConsent":{"type":"boolean","description":"Whether the client agreed to get messages about their appointments (confirmations, reminders)","example":true},"hasMarketingConsent":{"type":"boolean","description":"Whether the client agreed to get marketing messages","example":false},"notes":{"type":"string","description":"Notes of the salon about the client","nullable":true,"example":"Prefers morning appointments"},"customFields":{"type":"object","description":"Values of the salon's custom client fields, by field key","additionalProperties":true,"example":{"allergies":"None","referredBy":"Instagram"}},"firstVisitAt":{"type":"string","description":"When the client's first appointment was completed","nullable":true,"example":"2026-01-12T15:00:00.000Z"},"lastVisitAt":{"type":"string","description":"When the client's latest appointment was completed","nullable":true,"example":"2026-04-28T10:30:00.000Z"},"lastSessionAt":{"type":"string","description":"When the client last signed in on the booking site","nullable":true,"example":"2026-04-20T18:12:44.000Z"},"isActive":{"type":"boolean","description":"Whether the client is active; inactive clients can't sign in on the booking site","example":true},"bookingSummary":{"description":"Appointment and review summary. Only with `expand=bookingSummary`","allOf":[{"$ref":"#/components/schemas/ClientBookingSummaryDto"}]},"financesSummary":{"description":"Payment summary. Only with `expand=financesSummary`","allOf":[{"$ref":"#/components/schemas/ClientFinancesSummaryDto"}]},"createdAt":{"type":"string","description":"When the client was created","example":"2026-01-10T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the client was last changed","example":"2026-04-28T11:02:15.000Z"}},"required":["id","salonId","firstName","lastName","dateOfBirth","emailAddress","phoneNumber","language","avatar","hasTransactionalConsent","hasMarketingConsent","notes","customFields","firstVisitAt","lastVisitAt","lastSessionAt","isActive","createdAt","updatedAt"]},"ClientSessionResultDto":{"type":"object","properties":{"sessionId":{"type":"string","description":"Client session ID. Send it in the `X-Client-Session-Id` header; it's valid for 7 days","example":"clis_01m82v0d7ge6xtxk2fj5kdb54w"},"client":{"description":"The signed-in client","allOf":[{"$ref":"#/components/schemas/ClientDto"}]}},"required":["sessionId","client"]},"RevokeClientSessionsResultDto":{"type":"object","properties":{"ids":{"description":"The session IDs that were sent; missing when all sessions were revoked","example":["clis_01m82v0d7ge6xtxk2fj5kdb54w"],"type":"array","items":{"type":"string"}}}},"ClientListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ClientDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateClientDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"dateOfBirth":{"type":"string","description":"Date of birth, as YYYY-MM-DD","nullable":true,"example":"1990-05-15"},"emailAddress":{"type":"string","description":"Email address, unique in the salon","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format, unique in the salon","example":"+12025550143"},"language":{"type":"string","description":"Language the client reads messages in; set from the booking site. `null` for the salon's language","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"nullable":true,"example":"de"},"notes":{"type":"string","description":"Notes of the salon about the client","example":"Prefers morning appointments"},"hasTransactionalConsent":{"type":"boolean","description":"Whether the client agreed to get messages about their appointments","default":false,"example":true},"hasMarketingConsent":{"type":"boolean","description":"Whether the client agreed to get marketing messages","default":false,"example":false},"customFields":{"type":"object","description":"Values of the salon's custom client fields, by field key","additionalProperties":true,"example":{"allergies":"None","referredBy":"Instagram"}}},"required":["firstName","lastName"]},"CreateBulkClientDto":{"type":"object","properties":{"clients":{"description":"Clients to create, each like in `Create a Client`","type":"array","items":{"$ref":"#/components/schemas/CreateClientDto"}}},"required":["clients"]},"BulkClientErrorDto":{"type":"object","properties":{"index":{"type":"number","description":"Position of the client in the `clients` array, from 0","example":3},"error":{"type":"object","description":"Why it failed: the error message and its code","additionalProperties":true,"example":{"message":"Client with this email address already exists.","description":"CLIENT_ALREADY_EXISTS"}}},"required":["index","error"]},"CreateBulkClientsResultDto":{"type":"object","properties":{"successful":{"description":"Clients that were created","type":"array","items":{"$ref":"#/components/schemas/ClientDto"}},"failed":{"description":"Clients that couldn't be created, with the reason","type":"array","items":{"$ref":"#/components/schemas/BulkClientErrorDto"}}},"required":["successful","failed"]},"UpdateClientDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"dateOfBirth":{"type":"string","description":"Date of birth, as YYYY-MM-DD","nullable":true,"example":"1990-05-15"},"avatar":{"type":"string","description":"Profile picture: the `url` of an image uploaded with `POST /v1/files`, or `null` to remove it","nullable":true,"example":"https://storage.softalon.com/avatars/cli_01m82v0d7ge6xtxk2aqj338zs3.jpg"},"emailAddress":{"type":"string","description":"Email address, unique in the salon","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format, unique in the salon","example":"+12025550143"},"language":{"type":"string","description":"Language the client reads messages in; set from the booking site. `null` for the salon's language","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"nullable":true,"example":"de"},"hasTransactionalConsent":{"type":"boolean","description":"Whether the client agreed to get messages about their appointments","example":true},"hasMarketingConsent":{"type":"boolean","description":"Whether the client agreed to get marketing messages","example":false},"notes":{"type":"string","description":"Notes of the salon about the client. Ignored with a client session","example":"Prefers morning appointments"},"customFields":{"type":"object","description":"Values of the salon's custom client fields, by field key","additionalProperties":true,"example":{"allergies":"None","referredBy":"Instagram"}},"isActive":{"type":"boolean","description":"Whether the client is active; inactive clients can't sign in on the booking site. Ignored with a client session","example":true}}},"UpdateClientResultDto":{"type":"object","properties":{"clientId":{"type":"string","description":"Client ID","example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"avatar":{"type":"string","description":"The new profile picture URL, only when it was changed","nullable":true,"example":"https://storage.softalon.com/avatars/cli_01m82v0d7ge6xtxk2aqj338zs3.jpg"}},"required":["clientId"]},"DeleteClientResultDto":{"type":"object","properties":{"clientId":{"type":"string","description":"ID of the deleted client","example":"cli_01m82v0d7ge6xtxk2aqj338zs3"}},"required":["clientId"]},"AvailableLocationsDto":{"type":"object","properties":{"availableLocations":{"description":"Locations with free time","type":"array","items":{"$ref":"#/components/schemas/LocationDto"}},"unavailableLocations":{"description":"Locations that could only be booked by ignoring appointments or working hours","type":"array","items":{"$ref":"#/components/schemas/LocationDto"}}},"required":["availableLocations","unavailableLocations"]},"AvailableServicesDto":{"type":"object","properties":{"availableServices":{"description":"Services with free time","type":"array","items":{"$ref":"#/components/schemas/ServiceDto"}},"unavailableServices":{"description":"Services that could only be booked by ignoring appointments or working hours","type":"array","items":{"$ref":"#/components/schemas/ServiceDto"}}},"required":["availableServices","unavailableServices"]},"AvailableMembersDto":{"type":"object","properties":{"availableMembers":{"description":"Members with free time","type":"array","items":{"$ref":"#/components/schemas/MemberDto"}},"unavailableMembers":{"description":"Members who could only be booked by ignoring appointments or working hours","type":"array","items":{"$ref":"#/components/schemas/MemberDto"}}},"required":["availableMembers","unavailableMembers"]},"AvailabilityTimeSlotDto":{"type":"object","properties":{"interval":{"type":"string","description":"Start and end of the slot as an ISO 8601 interval in UTC; send the start as `timeSlot` when booking","example":"2026-12-04T15:00:00.000Z/2026-12-04T16:00:00.000Z"},"availableLocations":{"description":"Locations where the slot is free","example":["loc_01h455vb4pex5vsknk084sn02q"],"type":"array","items":{"type":"string"}},"availableServices":{"description":"Services that fit in the slot","example":["serv_01h2xd5k9mqf3r7twz8n4bvc6e"],"type":"array","items":{"type":"string"}},"availableMembers":{"description":"Members who are free in the slot","example":["mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"],"type":"array","items":{"type":"string"}},"unavailableLocations":{"description":"Locations that could only be booked by ignoring appointments or working hours","example":[],"type":"array","items":{"type":"string"}},"unavailableServices":{"description":"Services that could only be booked by ignoring appointments or working hours","example":[],"type":"array","items":{"type":"string"}},"unavailableMembers":{"description":"Members who could only be booked by ignoring appointments or working hours","example":[],"type":"array","items":{"type":"string"}},"unavailableReasons":{"type":"array","description":"Why the slot can't be booked normally: `appointments` (taken by other appointments or resources) or `availability` (outside working hours). Only filled in when booking anyway with `ignoreAppointments` or `ignoreAvailability`","example":[],"items":{"type":"string","enum":["appointments","availability"]}},"isSuggested":{"type":"boolean","description":"Whether the slot is one of the recommended ones (good time of day, several members free)","example":true},"suggestionScore":{"type":"number","description":"Score of a recommended slot; higher is better","example":50},"suggestionSummary":{"type":"string","description":"Why a recommended slot is recommended","example":"2 staff available • Afternoon slot • Popular day"}},"required":["interval","availableLocations","availableServices","availableMembers","unavailableLocations","unavailableServices","unavailableMembers","unavailableReasons","isSuggested"]},"GetAvailabilityItemDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Only this location","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Only this service","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Only this member","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"timeSlot":{"type":"string","description":"Only what is free at this exact start time (ISO 8601); also limits the search to that day","example":"2026-12-04T15:00:00.000Z"}}},"GetBulkAvailabilityDto":{"type":"object","properties":{"appointments":{"description":"The chain of appointments, in booking order, up to 10. Locations need a `serviceId` on each; services and members need `locationId` (and `serviceId` on the others); time slots need both on each. The first appointment's `timeSlot` limits locations, services and members to that start.","type":"array","items":{"$ref":"#/components/schemas/GetAvailabilityItemDto"}},"targetIndex":{"type":"number","description":"Position of the appointment whose services or members to return, from 0","default":0,"example":1},"timeSlot":{"type":"string","description":"Not used; set `timeSlot` on the first appointment instead","example":"2026-12-04T15:00:00.000Z"},"interval":{"type":"string","description":"ISO 8601 interval to search, `start/end`, or a start only. Defaults to today until the salon's booking window ends; time slots cover at most 31 days.","example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z"},"searchQuery":{"type":"string","description":"Matches the name of the locations, services or members (not used for time slots)","example":"balayage"},"sortColumn":{"type":"string","description":"Field to sort the locations, services or members by, e.g. `orderIndex`","example":"orderIndex"},"sortDirection":{"type":"string","description":"Sort order","enum":["ASC","DESC"]},"expand":{"description":"Related data to include in the returned locations, services or members, as in their own list endpoints","example":["rating"],"type":"array","items":{"type":"string"}},"mode":{"type":"string","description":"Which slots to return: `full` (every bookable start, for ranges up to 7 days), `change-points` (only where availability changes) or `auto` (time slots only)","enum":["full","change-points","auto"]},"maxWaitMinutes":{"type":"number","description":"Longest wait between two chained appointments, in minutes, from 0 to 120; defaults to the salon's setting","minimum":0,"maximum":120,"example":15},"ignoreAppointments":{"type":"boolean","description":"Also return times taken by appointments, listed as unavailable","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Also return times outside working hours, listed as unavailable","default":false,"example":false},"ignoreAppointmentIds":{"description":"Appointments to treat as free, e.g. the ones being rescheduled","example":["appt_01hb7k3m9qwz5ftv2r8n4ycx6d"],"type":"array","items":{"type":"string"}}},"required":["appointments"]},"SearchAvailabilityItemDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID; leave it out for any location","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member ID; leave it out for anyone available","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"}},"required":["serviceId"]},"SearchAvailabilityDto":{"type":"object","properties":{"appointments":{"description":"Appointments in booking order, from 1 to 10. A single appointment is a chain of one; the chain stays at one location.","type":"array","items":{"$ref":"#/components/schemas/SearchAvailabilityItemDto"}},"ignoreAppointmentIds":{"description":"Appointments to treat as free, e.g. the ones being rescheduled (also applies the salon's rescheduling rules)","example":["appt_01hb7k3m9qwz5ftv2r8n4ycx6d"],"type":"array","items":{"type":"string"}},"interval":{"type":"string","description":"ISO 8601 interval to search, `start/end`, or a start only. Defaults to today until the salon's booking window ends (at most 31 days); clients can't see past times or times outside the booking window.","example":"2026-12-01T00:00:00Z/2026-12-08T00:00:00Z"},"ignoreAppointments":{"type":"boolean","description":"Also return times taken by appointments, listed as unavailable","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Also return times outside working hours, listed as unavailable","default":false,"example":false},"maxWaitMinutes":{"type":"number","description":"Longest wait between two chained appointments, in minutes, from 0 to 120; defaults to the salon's setting","minimum":0,"maximum":120,"example":15},"mode":{"type":"string","description":"Which slots to return: `full` (every bookable start, for ranges up to 7 days), `change-points` (only where availability changes, for long ranges) or `auto` (picks one by the range)","enum":["full","change-points","auto"]}},"required":["appointments"]},"AvailabilitySearchAppointmentDto":{"type":"object","properties":{"interval":{"type":"string","description":"Start and end of this appointment as an ISO 8601 interval in UTC; send the start as its `timeSlot`","example":"2026-12-04T15:00:00.000Z/2026-12-04T16:00:00.000Z"},"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"The member who would perform it","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"unavailableReasons":{"type":"array","description":"Why the slot can't be booked normally: `appointments` (taken by other appointments or resources) or `availability` (outside working hours). Only filled in when booking anyway with `ignoreAppointments` or `ignoreAvailability`","example":[],"items":{"type":"string","enum":["appointments","availability"]}}},"required":["interval","locationId","serviceId","memberId","unavailableReasons"]},"AvailabilitySearchSlotDto":{"type":"object","properties":{"interval":{"type":"string","description":"From the start of the first to the end of the last appointment, as an ISO 8601 interval in UTC","example":"2026-12-04T15:00:00.000Z/2026-12-04T17:30:00.000Z"},"appointments":{"description":"The appointments of the chain, in request order","type":"array","items":{"$ref":"#/components/schemas/AvailabilitySearchAppointmentDto"}},"unavailableReasons":{"type":"array","description":"Why the slot can't be booked normally: `appointments` (taken by other appointments or resources) or `availability` (outside working hours). Only filled in when booking anyway with `ignoreAppointments` or `ignoreAvailability`","example":[],"items":{"type":"string","enum":["appointments","availability"]}},"isSuggested":{"type":"boolean","description":"Whether the slot is recommended","example":false}},"required":["interval","appointments","unavailableReasons","isSuggested"]},"InvoiceCouponSummaryDto":{"type":"object","properties":{"id":{"type":"string","description":"Coupon ID","example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"},"name":{"type":"string","description":"Coupon name","example":"Summer Sale"},"type":{"type":"string","description":"Coupon type","enum":["percentage","fixed"],"example":"percentage"},"value":{"type":"number","description":"Coupon value: a percentage or an amount","example":20},"amount":{"type":"number","description":"Discount on this invoice, as a decimal","example":9.1}},"required":["id","name","type","value","amount"]},"InvoiceTaxSummaryDto":{"type":"object","properties":{"id":{"type":"string","description":"Tax rate ID","example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h"},"name":{"type":"string","description":"Tax rate name","example":"Sales Tax"},"type":{"type":"string","description":"Whether the tax is included in the prices or added on top","enum":["inclusive","exclusive"],"example":"exclusive"},"rate":{"type":"number","description":"Rate in percent","example":8.875},"amount":{"type":"number","description":"Tax on this invoice, after discounts, as a decimal","example":3.23}},"required":["id","name","type","rate","amount"]},"InvoiceItemDto":{"type":"object","properties":{"id":{"type":"string","description":"Invoice item ID","example":"invi_01h9k3p7rtw2kfv5n8m3ycxb4d"},"invoiceId":{"type":"string","description":"Invoice ID","example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a"},"type":{"type":"string","description":"What the line is for","enum":["service","product","custom"],"example":"service"},"serviceId":{"type":"string","description":"Service of a `service` line","nullable":true,"example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"productId":{"type":"string","description":"Product of a `product` line","nullable":true,"example":null},"name":{"type":"string","description":"Name shown on the invoice","example":"Haircut"},"description":{"type":"string","description":"Description shown under the name","nullable":true,"example":"Wash, cut and blow-dry"},"quantity":{"type":"number","description":"Quantity","example":1},"unitAmount":{"type":"number","description":"Price of one unit in the invoice's currency, as a decimal (e.g. `45.5` for $45.50)","example":45.5},"amount":{"type":"number","description":"`unitAmount` × `quantity`, before discounts and taxes","example":45.5},"taxRateId":{"type":"string","description":"Tax rate of the line","nullable":true,"example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h"},"createdAt":{"type":"string","description":"When the line was created","example":"2026-05-02T16:30:00.000Z"},"updatedAt":{"type":"string","description":"When the line was last changed","example":"2026-05-02T16:30:00.000Z"}},"required":["id","invoiceId","type","name","description","quantity","unitAmount","amount","taxRateId","createdAt","updatedAt"]},"RefundDto":{"type":"object","properties":{"id":{"type":"string","description":"Refund ID","example":"rfd_01h9k5c8pqz3ktv6r2n7ycxd1f"},"paymentId":{"type":"string","description":"Payment the refund is for","example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e"},"referenceId":{"type":"string","description":"Refund ID at the payment provider; `null` for offline payments","nullable":true,"example":"re_3PbX2kLzR8qY1aBc0dEf4GhI"},"amount":{"type":"number","description":"Refunded amount in the payment's currency, as a decimal (e.g. `20.5` for $20.50)","example":20.5},"reason":{"type":"string","description":"Why the money was given back","enum":["customer_request"],"nullable":true,"example":"customer_request"},"status":{"type":"string","description":"`completed`, `failed`, or `unknown` while the payment provider hasn't confirmed it yet","enum":["completed","failed","unknown"],"example":"completed"},"statusChangedAt":{"type":"string","description":"When the status last changed","nullable":true,"example":"2026-05-02T16:45:30.000Z"},"createdAt":{"type":"string","description":"When the refund was created","example":"2026-05-02T16:45:30.000Z"},"updatedAt":{"type":"string","description":"When the refund was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","paymentId","referenceId","amount","reason","status","statusChangedAt","createdAt","updatedAt"]},"PaymentDto":{"type":"object","properties":{"id":{"type":"string","description":"Payment ID","example":"pay_01h9k4a2mwq7ftv3r9n5ycxd8e"},"invoiceId":{"type":"string","description":"Invoice the payment is for","example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a"},"paymentMethodId":{"type":"string","description":"How it was paid: `native` (Softalon Payments), `offline` (at the salon, e.g. cash), or a connected payment integration such as `stripe`","nullable":true,"example":"native"},"referenceId":{"type":"string","description":"ID of the checkout or payment at the payment provider; `null` for offline payments","nullable":true,"example":"ch_XXXXXXXXXXXXXX"},"url":{"type":"string","description":"Checkout page where the client pays; `null` for offline payments","nullable":true,"example":"https://whop.com/checkout/ch_XXXXXXXXXXXXXX"},"amount":{"type":"number","description":"Amount in the invoice's currency, as a decimal (e.g. `45.5` for $45.50). Anything above the amount due is a tip","example":45.5},"currency":{"type":"string","description":"Currency, as an ISO 4217 code","example":"USD"},"status":{"type":"string","description":"`pending` until the client pays at the checkout; offline payments are `completed` right away","enum":["pending","completed","failed","refunded","partially_refunded"],"example":"completed"},"statusChangedAt":{"type":"string","description":"When the status last changed","nullable":true,"example":"2026-05-02T16:45:30.000Z"},"metadata":{"type":"object","description":"Extra data of the payment, usually empty","additionalProperties":true,"example":{}},"invoice":{"description":"The invoice. Only with `expand=invoice`","allOf":[{"$ref":"#/components/schemas/InvoiceDto"}]},"refunds":{"description":"Refunds of the payment. Only with `expand=refunds`","type":"array","items":{"$ref":"#/components/schemas/RefundDto"}},"createdAt":{"type":"string","description":"When the payment was created","example":"2026-05-02T16:40:12.000Z"},"updatedAt":{"type":"string","description":"When the payment was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","invoiceId","paymentMethodId","referenceId","url","amount","currency","status","statusChangedAt","metadata","createdAt","updatedAt"]},"CouponDto":{"type":"object","properties":{"id":{"type":"string","description":"Coupon ID","example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name, unique in the salon","example":"Summer Sale"},"code":{"type":"string","description":"Code of the coupon. Codes sent are uppercased; without one, it's made from the name (e.g. `summer-sale`)","example":"SUMMER20"},"type":{"type":"string","description":"`percentage`: `value` percent off; `fixed`: `value` off in the salon's currency","enum":["percentage","fixed"],"example":"percentage"},"value":{"type":"number","description":"Discount: a percentage from 0 to 100, or an amount in the salon's currency (e.g. `10.5` for $10.50)","example":20},"isActive":{"type":"boolean","description":"Whether the coupon can be added to invoices","example":true},"createdAt":{"type":"string","description":"When the coupon was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the coupon was last changed","example":"2026-03-14T09:30:00.000Z"}},"required":["id","salonId","name","code","type","value","isActive","createdAt","updatedAt"]},"InvoiceDto":{"type":"object","properties":{"id":{"type":"string","description":"Invoice ID","example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"locationId":{"type":"string","description":"Location the invoice belongs to","example":"loc_01h455vb4pex5vsknk084sn02q"},"memberId":{"type":"string","description":"Member the revenue counts for","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"appointmentId":{"type":"string","description":"Appointment the invoice was created for","nullable":true,"example":"appt_01h2xcejqtf2nbrexx3vqjhp41"},"clientId":{"type":"string","description":"Client the invoice is for","nullable":true,"example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"groupId":{"type":"string","description":"Shared by the invoices of one booking with several appointments","nullable":true,"example":null},"invoiceNumber":{"type":"string","description":"Number as `YYYY-NNNN`, counting up per salon and year. Set when the invoice is finalized","nullable":true,"example":"2026-0042"},"dueAt":{"type":"string","description":"When payment is due. Set on finalizing from the salon's due days if empty; open invoices past it become `overdue`","nullable":true,"example":"2026-05-16T23:59:59.999Z"},"status":{"type":"string","description":"`draft` until finalized, then `open`, `paid` or `overdue`","enum":["draft","open","paid","overdue"],"example":"open"},"subtotal":{"type":"number","description":"Sum of the lines before discounts and taxes, in the invoice's currency, as a decimal (e.g. `45.5` for $45.50)","example":45.5},"couponId":{"type":"string","description":"Coupon applied to the invoice","nullable":true,"example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"},"couponSummary":{"description":"The applied coupon and its discount; `{}` without one","allOf":[{"$ref":"#/components/schemas/InvoiceCouponSummaryDto"}]},"taxSummary":{"description":"Taxes by tax rate","type":"array","items":{"$ref":"#/components/schemas/InvoiceTaxSummaryDto"}},"notes":{"type":"string","description":"Notes for the client, shown on the invoice","nullable":true,"example":"Thank you for visiting Your Salon!"},"internalNotes":{"type":"string","description":"Notes for the salon's team","nullable":true,"example":"Client asked to split the payment"},"total":{"type":"number","description":"Total after discounts and taxes, as a decimal","example":39.63},"totalDue":{"type":"number","description":"What is left to pay, as a decimal","example":39.63},"totalPaid":{"type":"number","description":"Paid so far (completed and refunded payments), as a decimal","example":0},"isPaid":{"type":"boolean","description":"Whether `totalPaid` covers the total","example":false},"currency":{"type":"string","description":"Currency, as an ISO 4217 code","example":"USD"},"isFinalized":{"type":"boolean","description":"Whether the invoice is finalized: it then has a number and a PDF, can be paid, and can't be changed","example":true},"finalizedAt":{"type":"string","description":"When the invoice was finalized","nullable":true,"example":"2026-05-02T16:35:00.000Z"},"recognizedAt":{"type":"string","description":"When the revenue counts in reports","example":"2026-05-02T16:30:00.000Z"},"previewUrl":{"type":"string","description":"PDF of the invoice, made when it's finalized","nullable":true,"example":"https://storage.softalon.com/file_01h9k9g2nwz4ktv7r3m8ycxd3k"},"items":{"description":"Lines of the invoice. Only with `expand=items`","type":"array","items":{"$ref":"#/components/schemas/InvoiceItemDto"}},"payments":{"description":"Payments toward the invoice. Only with `expand=payments`","type":"array","items":{"$ref":"#/components/schemas/PaymentDto"}},"coupon":{"description":"The coupon. Only with `expand=coupon`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CouponDto"}]},"location":{"description":"The location. Only with `expand=location`","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"member":{"description":"The member. Only with `expand=member`","allOf":[{"$ref":"#/components/schemas/MemberDto"}]},"client":{"description":"The client. Only with `expand=client`","allOf":[{"$ref":"#/components/schemas/ClientDto"}]},"createdAt":{"type":"string","description":"When the invoice was created","example":"2026-05-02T16:30:00.000Z"},"updatedAt":{"type":"string","description":"When the invoice was last changed","example":"2026-05-02T16:35:00.000Z"}},"required":["id","salonId","locationId","memberId","appointmentId","clientId","groupId","invoiceNumber","dueAt","status","subtotal","couponId","couponSummary","taxSummary","notes","internalNotes","total","totalDue","totalPaid","isPaid","currency","isFinalized","finalizedAt","recognizedAt","previewUrl","createdAt","updatedAt"]},"ReviewReviewerDto":{"type":"object","properties":{"fullName":{"type":"string","description":"Full name","example":"Jane Cooper"},"avatar":{"type":"string","description":"Avatar URL","nullable":true,"example":null}},"required":["fullName","avatar"]},"ReviewDto":{"type":"object","properties":{"id":{"type":"string","description":"Review ID","example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"appointmentId":{"type":"string","description":"The reviewed appointment; `null` for reviews without an appointment, such as imported ones","nullable":true,"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"},"integrationId":{"type":"string","description":"Integration the review was imported from, e.g. `google-reviews`; `null` for reviews left in Softalon. Imported reviews can only be approved, hidden or linked to an appointment.","nullable":true,"example":null},"externalId":{"type":"string","description":"ID of the review at the integration","nullable":true,"example":null},"reviewer":{"description":"Who wrote the review, taken from the appointment's client or the integration","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ReviewReviewerDto"}]},"locationRating":{"type":"number","description":"Rating of the location, from 1 to 5","example":5},"serviceRating":{"type":"number","description":"Rating of the service, from 1 to 5","example":5},"memberRating":{"type":"number","description":"Rating of the member, from 1 to 5","example":4},"overallRating":{"type":"number","description":"Average of the three ratings, rounded to 2 decimals","example":4.67},"content":{"type":"string","description":"What the client wrote","nullable":true,"example":"Jane did an amazing job with my balayage!"},"replyContent":{"type":"string","description":"The salon's public reply","nullable":true,"example":"Thank you, see you next time!"},"repliedAt":{"type":"string","description":"When the reply was last changed","nullable":true,"example":"2026-11-24T09:12:00.000Z"},"isApproved":{"type":"boolean","description":"Whether the review is published; new reviews wait for the salon's approval","example":true},"location":{"description":"The location, with `expand=location`","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"createdAt":{"type":"string","description":"When the review was left","example":"2026-11-23T18:30:00.000Z"},"updatedAt":{"type":"string","description":"When the review was last changed","example":"2026-11-24T09:12:00.000Z"}},"required":["id","salonId","locationId","appointmentId","integrationId","externalId","reviewer","locationRating","serviceRating","memberRating","overallRating","content","replyContent","repliedAt","isApproved","createdAt","updatedAt"]},"AppointmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Appointment ID","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"ID of the member who performs the service","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"clientId":{"type":"string","description":"Client ID; `null` for appointments without a client","nullable":true,"example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"invoiceId":{"type":"string","description":"ID of the appointment's invoice","nullable":true,"example":"inv_01hb7k4p2nfx8t6wz3vm5dcr9q"},"groupId":{"type":"string","description":"Shared by the appointments booked together in one bulk booking; `null` for single bookings","nullable":true,"example":"6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b"},"notes":{"type":"string","description":"Notes from the client, visible to the client","nullable":true,"example":"Please use fragrance-free products."},"internalNotes":{"type":"string","description":"Notes for the salon only, never shown to the client","nullable":true,"example":"Prefers Jane for color touch-ups."},"startAt":{"type":"string","description":"Start, in UTC","example":"2026-12-04T15:00:00.000Z"},"internalStartAt":{"type":"string","description":"Start including the buffer before the service, in UTC; the member is busy from here","example":"2026-12-04T14:50:00.000Z"},"endAt":{"type":"string","description":"End, in UTC","example":"2026-12-04T16:00:00.000Z"},"internalEndAt":{"type":"string","description":"End including the buffer after the service, in UTC; the member is busy until here","example":"2026-12-04T16:10:00.000Z"},"internalRange":{"type":"string","description":"The busy range from `internalStartAt` to `internalEndAt`, as a PostgreSQL range","example":"[\"2026-12-04 14:50:00+00\",\"2026-12-04 16:10:00+00\")"},"clientTimezone":{"type":"string","description":"The client's IANA time zone at booking, used to show times to the client","nullable":true,"example":"America/New_York"},"conflictedWithIds":{"description":"IDs of the member's other appointments that overlap this one (only in Get All Appointments for members)","example":["appt_01hb7m2q8rvx4kt6wz9n3fdc5p"],"type":"array","items":{"type":"string"}},"hasConflict":{"type":"boolean","description":"Whether the appointment overlaps another one of the member","example":false},"source":{"type":"string","description":"Where the booking came from: `booking` (booking site, app or API) or `conversations` (AI Receptionist)","enum":["booking","conversations"],"example":"booking"},"channel":{"type":"string","description":"Channel of the booking, e.g. `online` (client self-booking), `manual` (booked by staff) or the messaging channel","example":"online"},"status":{"type":"string","description":"Status: `awaiting_payment` (online payment pending), `awaiting_confirmation` (the salon has to confirm), `confirmed`, `declined`, `canceled`, `completed` or `no_show`. Awaiting statuses can become `confirmed` or `declined`; `confirmed` can become `completed`, `no_show` or `canceled`; the rest are final.","enum":["awaiting_payment","awaiting_confirmation","confirmed","declined","no_show","canceled","completed"],"example":"confirmed"},"cancellationReason":{"type":"string","description":"Why the appointment was canceled; set only when canceled","enum":["prefer_not_to_say","schedule_conflict","change_of_plans","found_alternative","health_reasons","financial_reasons","transportation_issues","weather_conditions","personal_emergency","not_needed_anymore","other"],"nullable":true,"example":"schedule_conflict"},"customFields":{"type":"object","description":"Answers to the custom fields of the booking form, by field key","additionalProperties":true,"example":{"allergies":"None","firstVisit":true}},"location":{"description":"The location, with `expand=location`","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"service":{"description":"The service, with `expand=service`","allOf":[{"$ref":"#/components/schemas/ServiceDto"}]},"member":{"description":"The member, with `expand=member`","allOf":[{"$ref":"#/components/schemas/MemberDto"}]},"client":{"description":"The client, with `expand=client`","allOf":[{"$ref":"#/components/schemas/ClientDto"}]},"invoice":{"description":"The invoice, with `expand=invoice`","allOf":[{"$ref":"#/components/schemas/InvoiceDto"}]},"review":{"description":"The client's review, with `expand=review`; `null` if there is none","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ReviewDto"}]},"createdAt":{"type":"string","description":"When the appointment was booked","example":"2026-11-23T10:41:12.000Z"},"updatedAt":{"type":"string","description":"When the appointment was last changed","example":"2026-11-23T10:41:12.000Z"}},"required":["id","salonId","locationId","serviceId","memberId","clientId","invoiceId","groupId","notes","internalNotes","startAt","internalStartAt","endAt","internalEndAt","internalRange","clientTimezone","source","channel","status","cancellationReason","customFields","createdAt","updatedAt"]},"AppointmentListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/AppointmentDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"BlockedTimeDto":{"type":"object","properties":{"id":{"type":"string","description":"Blocked time ID","example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Member who can't be booked; `null` blocks the whole salon","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"calendarId":{"type":"string","description":"Connected calendar the blocked time was synced from; such blocked times can't be changed or deleted here","nullable":true,"example":null},"name":{"type":"string","description":"Name","example":"Lunch break"},"description":{"type":"string","description":"Details","nullable":true,"example":"Back at 1 PM"},"type":{"type":"string","description":"Kind of blocked time; `calendar` is only used for blocked times synced from connected calendars","enum":["calendar","break","training","maintenance","personal","other"],"example":"break"},"startAt":{"type":"string","description":"Start, in UTC","example":"2026-12-04T17:00:00.000Z"},"endAt":{"type":"string","description":"End, in UTC","example":"2026-12-04T18:00:00.000Z"},"createdAt":{"type":"string","description":"When the blocked time was created","example":"2026-11-23T10:41:12.000Z"},"updatedAt":{"type":"string","description":"When the blocked time was last changed","example":"2026-11-23T10:41:12.000Z"}},"required":["id","salonId","memberId","calendarId","name","description","type","startAt","endAt","createdAt","updatedAt"]},"TimeOffDto":{"type":"object","properties":{"id":{"type":"string","description":"Time off ID","example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Member ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"name":{"type":"string","description":"Name","example":"Summer vacation"},"description":{"type":"string","description":"Details","nullable":true,"example":"Back on July 15"},"type":{"type":"string","description":"Kind of time off","enum":["vacation","sick","personal","occasion","other"],"example":"vacation"},"startAt":{"type":"string","description":"Start, in UTC","example":"2026-07-01T00:00:00.000Z"},"endAt":{"type":"string","description":"End, in UTC","example":"2026-07-14T23:59:59.000Z"},"createdAt":{"type":"string","description":"When the time off was created","example":"2026-06-02T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the time off was last changed","example":"2026-06-02T09:21:07.000Z"}},"required":["id","salonId","memberId","name","description","type","startAt","endAt","createdAt","updatedAt"]},"ClosedPeriodDto":{"type":"object","properties":{"id":{"type":"string","description":"Closed period ID","example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name","example":"Christmas"},"description":{"type":"string","description":"Details","nullable":true,"example":"We're back on December 27."},"type":{"type":"string","description":"Kind of closure","enum":["holiday","maintenance","staff_training","private_event","other"],"example":"holiday"},"startAt":{"type":"string","description":"Start, in UTC","example":"2026-12-24T05:00:00.000Z"},"endAt":{"type":"string","description":"End, in UTC","example":"2026-12-27T04:59:59.000Z"},"createdAt":{"type":"string","description":"When the closed period was created","example":"2026-11-23T10:41:12.000Z"},"updatedAt":{"type":"string","description":"When the closed period was last changed","example":"2026-11-23T10:41:12.000Z"}},"required":["id","salonId","name","description","type","startAt","endAt","createdAt","updatedAt"]},"SpecialDayPeriodDto":{"type":"object","properties":{"startTime":{"type":"string","description":"Start, as HH:mm in the salon's time zone","example":"10:00"},"endTime":{"type":"string","description":"End, as HH:mm in the salon's time zone","example":"14:00"}},"required":["startTime","endTime"]},"SpecialDayDto":{"type":"object","properties":{"id":{"type":"string","description":"Special day ID","example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"memberId":{"type":"string","description":"Member ID","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"locationId":{"type":"string","description":"Location the hours apply to","example":"loc_01h455vb4pex5vsknk084sn02q"},"date":{"type":"string","description":"Local date in the salon's time zone, as YYYY-MM-DD","example":"2026-07-04"},"isActive":{"type":"boolean","description":"Whether the member works on this date; `false` means a day off","example":true},"periods":{"description":"Working periods on this date; empty on a day off","type":"array","items":{"$ref":"#/components/schemas/SpecialDayPeriodDto"}},"note":{"type":"string","description":"Internal note","nullable":true,"example":"Trade fair"},"createdAt":{"type":"string","description":"When the special day was created","example":"2026-06-20T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the special day was last changed","example":"2026-06-21T16:45:30.000Z"}},"required":["id","salonId","memberId","locationId","date","isActive","periods","note","createdAt","updatedAt"]},"AppointmentCalendarDto":{"type":"object","properties":{"appointments":{"description":"Appointments that overlap the range, buffers included","type":"array","items":{"$ref":"#/components/schemas/AppointmentDto"}},"blockedTimes":{"description":"Blocked times in the range, with `withBlockedTimes=true`","type":"array","items":{"$ref":"#/components/schemas/BlockedTimeDto"}},"timeOff":{"description":"Members' time off in the range, with `withTimeOff=true`","type":"array","items":{"$ref":"#/components/schemas/TimeOffDto"}},"closedPeriods":{"description":"Closed periods in the range, with `withClosedPeriods=true`","type":"array","items":{"$ref":"#/components/schemas/ClosedPeriodDto"}},"specialDays":{"description":"Members' special days in the range, with `withSpecialDays=true`","type":"array","items":{"$ref":"#/components/schemas/SpecialDayDto"}}},"required":["appointments","blockedTimes","timeOff","closedPeriods","specialDays"]},"PrepareAppointmentDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member ID; leave it out to get the price of the member the salon would pick","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"timeSlot":{"type":"string","description":"Start time as an ISO 8601 date-time, e.g. the start of a slot from the availability endpoints (UTC)","example":"2026-12-04T15:00:00.000Z"},"couponCode":{"type":"string","description":"Coupon code to apply; an unknown code is ignored","example":"WELCOME10"}},"required":["locationId","serviceId","timeSlot"]},"AppointmentTaxLineDto":{"type":"object","properties":{"id":{"type":"string","description":"Tax rate ID","example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"},"name":{"type":"string","description":"Name","example":"Sales Tax"},"type":{"type":"string","description":"`exclusive` (added on top of the price) or `inclusive` (already in the price)","enum":["inclusive","exclusive"],"example":"exclusive"},"rate":{"type":"number","description":"Rate, in percent","example":8.875},"amount":{"type":"number","description":"Tax amount","example":7.1}},"required":["id","name","type","rate","amount"]},"AppointmentPaymentMethodDto":{"type":"object","properties":{"id":{"type":"string","description":"Payment method ID to send as `paymentMethodId`; `offline` is paying at the salon","example":"offline"},"name":{"type":"string","description":"Name","example":"Offline Payment"},"displayName":{"type":"string","description":"Name shown to the client","example":"Pay at the salon"},"displayDescription":{"type":"string","description":"Description shown to the client","nullable":true,"example":"Pay with cash or card after your appointment."},"isActive":{"type":"boolean","description":"Whether it can be used","example":true}},"required":["id","name","displayName","isActive"]},"AppointmentDepositPolicyDto":{"type":"object","properties":{"type":{"type":"string","description":"Kind of deposit: `none`, `fixed` (an amount) or `percentage` (of the total)","enum":["none","fixed","percentage"],"example":"percentage"},"value":{"type":"number","description":"Amount or percentage, depending on `type`","example":20}},"required":["type","value"]},"PrepareAppointmentResultDto":{"type":"object","properties":{"subtotal":{"type":"number","description":"Price before discount and taxes","example":80},"discount":{"type":"number","description":"Discount from the coupon","example":0},"taxSummary":{"description":"Taxes on the price","type":"array","items":{"$ref":"#/components/schemas/AppointmentTaxLineDto"}},"total":{"type":"number","description":"Total to pay","example":87.1},"currency":{"type":"string","description":"Currency, as an ISO 4217 code","example":"USD"},"paymentMethods":{"description":"Payment methods the client can choose","type":"array","items":{"$ref":"#/components/schemas/AppointmentPaymentMethodDto"}},"depositPolicy":{"description":"The deposit rule of the service, or else of the location or salon","allOf":[{"$ref":"#/components/schemas/AppointmentDepositPolicyDto"}]},"depositAmount":{"type":"number","description":"Deposit to pay when `paymentType` is `deposit`","example":17.42},"paymentTypes":{"type":"array","description":"Payment types the client can choose, to send as `paymentType`: `full` (pay everything online), `deposit` (pay the deposit online) or `none` (pay at the salon)","example":["full","none"],"items":{"type":"string","enum":["full","deposit","none"]}},"defaultPaymentMethodId":{"type":"string","description":"Payment method to preselect","nullable":true,"example":"offline"},"coupon":{"description":"The coupon of `couponCode`; `null` if none was sent or it wasn't found","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/CouponDto"}]},"memberId":{"type":"string","description":"The member the price is for; when no member was sent, the one the salon would pick","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"}},"required":["subtotal","discount","taxSummary","total","currency","paymentMethods","depositPolicy","depositAmount","paymentTypes","defaultPaymentMethodId","coupon"]},"PrepareBulkAppointmentItemDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member ID; leave it out for anyone available","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"timeSlot":{"type":"string","description":"Start time as an ISO 8601 date-time (UTC). Required for the first appointment; later ones without it follow right after the previous one.","example":"2026-12-04T15:00:00.000Z"}},"required":["locationId","serviceId"]},"PrepareBulkAppointmentDto":{"type":"object","properties":{"appointments":{"description":"The appointments, in booking order","type":"array","items":{"$ref":"#/components/schemas/PrepareBulkAppointmentItemDto"}},"couponCode":{"type":"string","description":"Coupon code to apply to every appointment","example":"WELCOME10"}},"required":["appointments"]},"PrepareBulkAppointmentsSummaryDto":{"type":"object","properties":{"subtotal":{"type":"number","description":"Sum of the subtotals","example":140},"discount":{"type":"number","description":"Sum of the discounts","example":0},"taxSummary":{"description":"Taxes, summed per tax rate","type":"array","items":{"$ref":"#/components/schemas/AppointmentTaxLineDto"}},"total":{"type":"number","description":"Sum of the totals","example":152.43},"depositAmount":{"type":"number","description":"Sum of the deposits","example":30.49},"currency":{"type":"string","description":"Currency, as an ISO 4217 code","example":"USD"}},"required":["subtotal","discount","taxSummary","total","depositAmount","currency"]},"PrepareBulkAppointmentsResultDto":{"type":"object","properties":{"appointments":{"description":"The preview of each appointment, in request order","type":"array","items":{"$ref":"#/components/schemas/PrepareAppointmentResultDto"}},"summary":{"description":"Totals of all appointments","allOf":[{"$ref":"#/components/schemas/PrepareBulkAppointmentsSummaryDto"}]}},"required":["appointments","summary"]},"ClientDetailsDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address. The client needs an email address or a phone number (or both): they find an existing client or create one","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format. Required when there is no email address","example":"+12025550143"},"notes":{"type":"string","description":"Notes about the client","example":"Sensitive scalp"},"hasTransactionalConsent":{"type":"boolean","description":"Whether the client agrees to messages about their appointments, such as reminders","example":true},"hasMarketingConsent":{"type":"boolean","description":"Whether the client agrees to marketing messages","example":false},"customFields":{"type":"object","description":"Answers to the salon's client custom fields, by field key","additionalProperties":true,"example":{"birthday":"1990-05-14"}}}},"CreateAppointmentDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member ID; leave it out for anyone available, picked by the salon's member selection setting","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"timeSlot":{"type":"string","description":"Start time as an ISO 8601 date-time, e.g. the start of a slot from the availability endpoints (UTC)","example":"2026-12-04T15:00:00.000Z"},"clientTimezone":{"type":"string","description":"The client's IANA time zone, used to show times in messages to the client","example":"America/New_York"},"paymentMethodId":{"type":"string","description":"Payment method from Prepare an Appointment; `offline` is paying at the salon","example":"offline"},"paymentType":{"type":"string","description":"`none` (pay at the salon), `full` (pay everything online) or `deposit` (pay the deposit online); must be one of the `paymentTypes` from Prepare an Appointment","enum":["none","full","deposit"],"example":"none"},"couponCode":{"type":"string","description":"Coupon code for a discount","example":"WELCOME10"},"clientDetails":{"description":"The client, found by email address or phone number or else created. Needed when booking without a member sign-in; signed-in clients book for themselves.","allOf":[{"$ref":"#/components/schemas/ClientDetailsDto"}]},"groupId":{"type":"string","description":"Links the appointment to others booked together; bulk bookings set it themselves","format":"uuid","example":"6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b"},"notes":{"type":"string","description":"Notes from the client, visible to the client","example":"Please use fragrance-free products."},"internalNotes":{"type":"string","description":"Notes for the salon only, never shown to the client","example":"Prefers Jane for color touch-ups."},"customFields":{"type":"object","description":"Answers to the custom fields of the booking form, by field key","additionalProperties":true,"example":{"allergies":"None"}},"ignoreAppointments":{"type":"boolean","description":"Book even if the member already has appointments at that time. Needs the Appointment Overrides permission.","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Book even outside working hours. Needs the Appointment Overrides permission.","default":false,"example":false},"idempotencyKey":{"type":"string","description":"Client-generated key (e.g. a UUID) that makes the request safe to retry: the same key returns the first result for 24 hours instead of booking again.","maxLength":255,"example":"0b8f5c1e-2d4a-4e7b-9f3c-6a1d8e2b4c7f"}},"required":["locationId","serviceId","timeSlot","paymentMethodId","paymentType"]},"CreateAppointmentResultDto":{"type":"object","properties":{"appointment":{"description":"The new appointment","allOf":[{"$ref":"#/components/schemas/AppointmentDto"}]},"invoice":{"description":"The appointment's invoice","allOf":[{"$ref":"#/components/schemas/InvoiceDto"}]},"payment":{"description":"The online payment to complete (e.g. its checkout link), when an online payment method was chosen","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentDto"}]}},"required":["appointment","invoice"]},"CreateBulkAppointmentItemDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"Service ID","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"Member ID; leave it out for anyone available","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"timeSlot":{"type":"string","description":"Start time as an ISO 8601 date-time (UTC). Required for the first appointment; later ones without it are chained right after the previous one.","nullable":true,"example":"2026-12-04T15:00:00.000Z"},"clientTimezone":{"type":"string","description":"The client's IANA time zone, used to show times in messages to the client","example":"America/New_York"},"clientDetails":{"description":"The client, found by email address or phone number or else created","allOf":[{"$ref":"#/components/schemas/ClientDetailsDto"}]},"notes":{"type":"string","description":"Notes from the client, visible to the client","example":"Please use fragrance-free products."},"internalNotes":{"type":"string","description":"Notes for the salon only, never shown to the client","example":"Prefers Jane for color touch-ups."},"customFields":{"type":"object","description":"Answers to the custom fields of the booking form, by field key","additionalProperties":true,"example":{"allergies":"None"}},"ignoreAppointments":{"type":"boolean","description":"Book even if the member already has appointments at that time. Needs the Appointment Overrides permission.","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Book even outside working hours. Needs the Appointment Overrides permission.","default":false,"example":false}},"required":["locationId","serviceId"]},"CreateBulkAppointmentDto":{"type":"object","properties":{"appointments":{"description":"The appointments, in booking order, from 1 to 10","type":"array","items":{"$ref":"#/components/schemas/CreateBulkAppointmentItemDto"}},"paymentMethodId":{"type":"string","description":"Payment method for all appointments; `offline` is paying at the salon","default":"offline","example":"offline"},"paymentType":{"type":"string","description":"`none` (pay at the salon), `full` (pay everything online) or `deposit` (pay the deposits online)","enum":["none","full","deposit"],"default":"none","example":"none"},"couponCode":{"type":"string","description":"Coupon code to apply to every appointment","nullable":true,"example":"WELCOME10"},"idempotencyKey":{"type":"string","description":"Client-generated key (e.g. a UUID) that makes the request safe to retry: the same key returns the first result for 24 hours instead of booking again.","maxLength":255,"example":"0b8f5c1e-2d4a-4e7b-9f3c-6a1d8e2b4c7f"}},"required":["appointments"]},"BulkAppointmentErrorDto":{"type":"object","properties":{"index":{"type":"number","description":"Position of the appointment in the request, from 0","example":1},"error":{"type":"object","description":"Why it failed, with the error code","additionalProperties":true,"example":{"message":"The selected time slot is not available.","error":"TIME_SLOT_NOT_AVAILABLE","statusCode":404}}},"required":["index","error"]},"CreateBulkAppointmentsResultDto":{"type":"object","properties":{"successful":{"description":"Booked appointments with their invoices and payments","type":"array","items":{"$ref":"#/components/schemas/CreateAppointmentResultDto"}},"failed":{"description":"Appointments that couldn't be booked","type":"array","items":{"$ref":"#/components/schemas/BulkAppointmentErrorDto"}}},"required":["successful","failed"]},"UpdateAppointmentDto":{"type":"object","properties":{"actionToken":{"type":"string","description":"Token of an action link (confirm, cancel or update) sent to the client, to act without signing in","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."},"status":{"type":"string","description":"New status. Awaiting statuses can become `confirmed` or `declined`; `confirmed` can become `completed`, `no_show` or `canceled`. Clients can only confirm or cancel.","enum":["awaiting_payment","awaiting_confirmation","confirmed","declined","no_show","canceled","completed"],"example":"canceled"},"cancellationReason":{"type":"string","description":"Why the appointment is canceled; defaults to `prefer_not_to_say` when canceling","enum":["prefer_not_to_say","schedule_conflict","change_of_plans","found_alternative","health_reasons","financial_reasons","transportation_issues","weather_conditions","personal_emergency","not_needed_anymore","other"],"example":"schedule_conflict"},"refundPayments":{"type":"boolean","description":"When a member cancels: also refund the online payments of the appointment","default":false,"example":true},"notes":{"type":"string","description":"Notes from the client, visible to the client; can't change once the appointment is final","example":"Running 5 minutes late."},"internalNotes":{"type":"string","description":"Notes for the salon only, never shown to the client","example":"Prefers Jane for color touch-ups."},"customFields":{"type":"object","description":"Answers to the custom fields of the booking form, by field key","additionalProperties":true,"example":{"allergies":"None"}},"ignoreAppointments":{"type":"boolean","description":"When confirming: confirm even if the member has other appointments at that time. Needs the Appointment Overrides permission.","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"When confirming: confirm even outside working hours. Needs the Appointment Overrides permission.","default":false,"example":false}}},"UpdateAppointmentResultDto":{"type":"object","properties":{"appointmentId":{"type":"string","description":"The updated appointment's ID","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"}},"required":["appointmentId"]},"RescheduleAppointmentDto":{"type":"object","properties":{"actionToken":{"type":"string","description":"Token of a reschedule action link sent to the client, to reschedule without signing in","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."},"locationId":{"type":"string","description":"New location ID; leave it out to keep the location","example":"loc_01h455vb4pex5vsknk084sn02q"},"serviceId":{"type":"string","description":"New service ID; leave it out to keep the service","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"memberId":{"type":"string","description":"New member ID; leave it out to keep the member, or send `null` for anyone available at the new time","nullable":true,"example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"timeSlot":{"type":"string","description":"New start time as an ISO 8601 date-time, e.g. a slot from the availability endpoints with `ignoreAppointmentIds` set to this appointment (UTC); leave it out to keep the time","example":"2026-12-05T17:30:00.000Z"},"clientTimezone":{"type":"string","description":"The client's IANA time zone","example":"America/New_York"},"ignoreAppointments":{"type":"boolean","description":"Move even if the member has other appointments at the new time. Needs the Appointment Overrides permission.","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Move even outside working hours. Needs the Appointment Overrides permission.","default":false,"example":false}}},"RescheduleAppointmentResultDto":{"type":"object","properties":{"appointmentId":{"type":"string","description":"The rescheduled appointment's ID","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"}},"required":["appointmentId"]},"ReassignAppointmentDto":{"type":"object","properties":{"memberId":{"type":"string","description":"Member to give the appointment to; leave it out to pick an available member with `selectionLogic`","example":"mbr_01h8m5t3vqx9kfbw2n7r4ycd8e"},"selectionLogic":{"type":"string","description":"How to pick the member when `memberId` is left out; defaults to the salon's member selection setting","enum":["first_available","random","round_robin","least_busy","cheapest_service","most_expensive_service"],"example":"least_busy"},"ignoreAppointments":{"type":"boolean","description":"Reassign even if the member has other appointments at that time. Needs the Appointment Overrides permission.","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Reassign even outside the member's working hours. Needs the Appointment Overrides permission.","default":false,"example":false}}},"ReassignAppointmentResultDto":{"type":"object","properties":{"appointmentId":{"type":"string","description":"The reassigned appointment's ID","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"},"memberId":{"type":"string","description":"The member the appointment now belongs to","example":"mbr_01h8m5t3vqx9kfbw2n7r4ycd8e"}},"required":["appointmentId","memberId"]},"ExtendAppointmentDto":{"type":"object","properties":{"delta":{"type":"number","description":"Minutes to add to the end; negative to shorten. The duration must stay above 0.","example":15},"ignoreAppointments":{"type":"boolean","description":"Extend even into the member's next appointments. Needs the Appointment Overrides permission.","default":false,"example":false},"ignoreAvailability":{"type":"boolean","description":"Extend even past working hours. Needs the Appointment Overrides permission.","default":false,"example":false}},"required":["delta"]},"ExtendAppointmentResultDto":{"type":"object","properties":{"appointmentId":{"type":"string","description":"The extended appointment's ID","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"}},"required":["appointmentId"]},"DeleteAppointmentResultDto":{"type":"object","properties":{"appointmentId":{"type":"string","description":"The deleted appointment's ID","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"}},"required":["appointmentId"]},"WorkflowNodePositionDto":{"type":"object","properties":{"x":{"type":"number","description":"Horizontal position","example":240},"y":{"type":"number","description":"Vertical position","example":120}},"required":["x","y"]},"WorkflowNodeDto":{"type":"object","properties":{"id":{"type":"string","description":"Node ID, unique within the workflow","example":"682718bb-6b47-4915-b4c1-5cc917100e94"},"type":{"type":"string","description":"Kind of step: `start` (the trigger), `action` (send a notification, wait, HTTP request or integration action), `conditional` (branches on an expression) or `end`","enum":["start","action","conditional","end"],"example":"action"},"position":{"description":"Where the node is drawn in the editor","allOf":[{"$ref":"#/components/schemas/WorkflowNodePositionDto"}]},"data":{"type":"object","description":"Settings of the step. Start: `trigger` (an event topic such as `booking/appointment.created`, `manual` or `webhook`) and an optional `condition`. Action: `action` (`notification`, `wait`, `http_request` or `integration`) and its `payload`. Conditional: `condition`. Values can use variables like `{{ $event.data.object.startAt }}`. A notification `payload` and an integration `config` can take `translations` by language, sent to clients in that language","additionalProperties":true,"example":{"action":"notification","payload":{"channel":"sms","recipient":"{{ $event.data.object.client.phoneNumber }}","content":"Hi {{ $event.data.object.client.firstName }}, see you tomorrow at Your Salon!"}}}},"required":["id","type","position","data"]},"WorkflowEdgeDto":{"type":"object","properties":{"id":{"type":"string","description":"Edge ID","example":"e-0f8b6c2e-682718bb"},"source":{"type":"string","description":"ID of the node the edge starts at","example":"0f8b6c2e-3d4a-4b7e-9c1f-2a5d8e7b6c41"},"sourceHandle":{"type":"string","description":"Output of the source node, e.g. `true` or `false` for a conditional node","example":"default"},"target":{"type":"string","description":"ID of the node the edge leads to","example":"682718bb-6b47-4915-b4c1-5cc917100e94"},"targetHandle":{"type":"string","description":"Input of the target node","example":"default"},"type":{"type":"string","description":"How the editor draws the edge","example":"default"}},"required":["id","source","sourceHandle","target","targetHandle","type"]},"WorkflowDto":{"type":"object","properties":{"id":{"type":"string","description":"Workflow ID","example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp"},"salonId":{"type":"string","description":"Salon the workflow belongs to","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"templateId":{"type":"string","description":"Template the workflow was created from","nullable":true,"example":"wflt_01h7k2b8mqz5r9tvw3n6fdc4xp"},"name":{"type":"string","description":"Name, unique within the salon","nullable":true,"example":"Appointment Reminder"},"description":{"type":"string","description":"Description","nullable":true,"example":"Texts clients a reminder 24 hours before their appointment."},"trigger":{"type":"string","description":"What starts the workflow, taken from its start node: an event topic (e.g. `booking/appointment.created`), `manual` (run from the app or the API) or `webhook` (an HTTP POST to its webhook URL)","nullable":true,"example":"booking/appointment.upcoming"},"nodes":{"description":"Steps of the workflow","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"description":"Connections between the steps","type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"requiredRelations":{"type":"array","description":"Related data the steps use (`field`, with `nested` relations), loaded when the workflow runs. Worked out from the nodes, `null` when none","items":{"type":"object","additionalProperties":true},"nullable":true,"example":[{"field":"client"},{"field":"service","nested":[{"field":"category"}]}]},"isActive":{"type":"boolean","description":"Whether the workflow runs when its trigger fires","example":true},"createdAt":{"type":"string","description":"When the workflow was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the workflow was last changed","example":"2026-03-20T16:45:00.000Z"}},"required":["id","salonId","templateId","name","description","trigger","nodes","edges","requiredRelations","isActive","createdAt","updatedAt"]},"WorkflowListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/WorkflowDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateWorkflowDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Appointment Reminder"},"description":{"type":"string","description":"Description","example":"Texts clients a reminder 24 hours before their appointment."},"nodes":{"description":"Steps of the workflow, with exactly one `start` node holding the trigger","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"description":"Connections between the steps","type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"templateId":{"type":"string","description":"Create the workflow from this template instead; `name`, `description`, `nodes` and `edges` must then be left out","example":"wflt_01h7k2b8mqz5r9tvw3n6fdc4xp"}}},"UpdateWorkflowDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Appointment Reminder"},"description":{"type":"string","description":"Description","example":"Texts clients a reminder 2 hours before their appointment."},"nodes":{"description":"Steps of the workflow, with exactly one `start` node holding the trigger. Replaces the current steps","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"description":"Connections between the steps. Replaces the current ones","type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"isActive":{"type":"boolean","description":"Whether the workflow runs when its trigger fires. Turning it off cancels its pending executions","example":true}}},"UpdateWorkflowResultDto":{"type":"object","properties":{"workflowId":{"type":"string","description":"ID of the updated workflow","example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp"}},"required":["workflowId"]},"StartWorkflowResultDto":{"type":"object","properties":{"executionId":{"type":"string","description":"The started execution, `null` when the workflow is not valid or its trigger condition does not hold","nullable":true,"example":"wflx_01h7k5p2nqf8w3rtz9m6bvc4da"}},"required":["executionId"]},"SyncWorkflowDto":{"type":"object","properties":{"templateIds":{"description":"Templates the salon should have workflows of. Workflows of templates not listed are deleted","example":["wflt_01h7k2b8mqz5r9tvw3n6fdc4xp","wflt_01h7k2c4nqw8f5tvx3m9bdr6pa"],"type":"array","items":{"type":"string"}}},"required":["templateIds"]},"InitializeDefaultsWorkflowDto":{"type":"object","properties":{"language":{"type":"string","description":"Language of the default templates","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"example":"en"},"replace":{"type":"boolean","description":"Replace the salon's current template workflows with the defaults. Without it, nothing changes when the salon already has template workflows","default":false,"example":false}},"required":["language"]},"DeleteWorkflowResultDto":{"type":"object","properties":{"workflowId":{"type":"string","description":"ID of the deleted workflow","example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp"}},"required":["workflowId"]},"WorkflowExecutionResultDto":{"type":"object","properties":{"nodeId":{"type":"string","description":"ID of the node that ran","example":"682718bb-6b47-4915-b4c1-5cc917100e94"},"result":{"type":"object","description":"Result of the step, such as a sent message or an HTTP response. Only `message` is returned when listing executions","additionalProperties":true,"example":{"message":"SMS sent to +12025550143."}},"metadata":{"type":"object","description":"Details about the step's run","additionalProperties":true,"example":{"timestamp":"2026-03-14T09:30:02.000Z"}}},"required":["nodeId","result","metadata"]},"WorkflowExecutionDto":{"type":"object","properties":{"id":{"type":"string","description":"Workflow execution ID","example":"wflx_01h7k5p2nqf8w3rtz9m6bvc4da"},"workflowId":{"type":"string","description":"Workflow that ran","example":"wfl_01h7k3m9qwz2f5tvx8n4bdc6rp"},"previousNodeId":{"type":"string","description":"Node that ran before the current one","nullable":true,"example":"0f8b6c2e-3d4a-4b7e-9c1f-2a5d8e7b6c41"},"currentNodeId":{"type":"string","description":"Node that is running or ran last","nullable":true,"example":"682718bb-6b47-4915-b4c1-5cc917100e94"},"nextNodeId":{"type":"string","description":"Node that runs next, e.g. after a wait","nullable":true,"example":null},"status":{"type":"string","description":"Status of the execution","enum":["pending","running","completed","failed","canceled"],"example":"completed"},"statusChangedAt":{"type":"string","description":"When the status last changed","example":"2026-03-14T09:30:02.000Z"},"context":{"type":"object","description":"Variables of the execution, such as `$event` (the event that triggered it), `$request` (the webhook request) and `$salon`. Only returned when getting a single execution","additionalProperties":true,"example":{"$event":{"type":"booking/appointment.upcoming","data":{"object":{"id":"appt_01h8n4k2pqw7f3rtv9m5bxc6da"}}}}},"results":{"description":"Outcomes of the steps that ran, in order","type":"array","items":{"$ref":"#/components/schemas/WorkflowExecutionResultDto"}},"createdAt":{"type":"string","description":"When the execution started","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the execution was last changed","example":"2026-03-14T09:30:02.000Z"}},"required":["id","workflowId","previousNodeId","currentNodeId","nextNodeId","status","statusChangedAt","results","createdAt","updatedAt"]},"WorkflowExecutionListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/WorkflowExecutionDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"SettingDto":{"type":"object","properties":{"id":{"type":"string","description":"Setting ID","example":"sett_01h2xcejqtf2nbrexx3vqjhp45"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"namespace":{"type":"string","description":"Group the setting belongs to","enum":["general","conversations","company","booking","appearance","payments","other"],"example":"general"},"key":{"type":"string","description":"Name of the setting in its namespace","example":"timezone"},"value":{"type":"object","description":"Value of the setting: a string, number, boolean, array or object, depending on the key","example":"America/New_York"},"createdAt":{"type":"string","description":"When the setting was first saved","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the setting was last changed","example":"2026-04-02T16:45:12.000Z"}},"required":["id","salonId","namespace","key","value","createdAt","updatedAt"]},"UpdateGeneralSettingDto":{"type":"object","properties":{"language":{"type":"string","description":"Main language of the salon: booking site, messages and AI Receptionist replies","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"example":"en"},"additionalLanguages":{"type":"array","description":"Additional languages of the booking site, besides the main language. Content can be translated into these","example":["de","fr"],"items":{"type":"string","enum":["en","de","fr","es","it","pt","hr","bs","sr"]}},"timezone":{"type":"string","description":"Time zone of the salon, as an IANA name","example":"America/New_York"},"weekStartsOn":{"type":"number","description":"First day of the week in calendars, from 0 (Sunday) to 6 (Saturday)","minimum":0,"maximum":6,"example":0},"timeFormat":{"type":"string","description":"12-hour or 24-hour clock","enum":["12","24"],"example":"12"},"dateFormat":{"type":"string","description":"How dates are written","enum":["MM/dd/yyyy","dd/MM/yyyy","dd.MM.yyyy","yyyy/MM/dd"],"example":"MM/dd/yyyy"}}},"PeriodDto":{"type":"object","properties":{"startTime":{"type":"string","description":"Opening time, as HH:mm in 24-hour format","example":"09:00"},"endTime":{"type":"string","description":"Closing time, as HH:mm after the opening time; 24:00 for midnight","example":"17:00"}},"required":["startTime","endTime"]},"WorkingHourDto":{"type":"object","properties":{"dayIndex":{"type":"number","description":"Day of the week, from 1 (Monday) to 7 (Sunday)","minimum":1,"maximum":7,"example":1},"isActive":{"type":"boolean","description":"Whether the salon is open that day","example":true},"periods":{"description":"Open periods that day, up to 10, not overlapping; at least one on open days","type":"array","items":{"$ref":"#/components/schemas/PeriodDto"}}},"required":["dayIndex","isActive","periods"]},"BusinessDetailsDto":{"type":"object","properties":{"name":{"type":"string","description":"Legal name of the business","example":"Your Salon LLC"},"address":{"type":"string","description":"Street address","example":"1250 Connecticut Ave NW"},"cityAndState":{"type":"string","description":"City, state and ZIP code","example":"Washington, DC 20036"},"emailAddress":{"type":"string","description":"Email address for billing","example":"billing@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","example":"+12025550143"},"taxId":{"type":"string","description":"Tax ID, such as an EIN","example":"12-3456789"}}},"ContactDetailsDto":{"type":"object","properties":{"address":{"type":"string","description":"Address shown to clients","example":"1250 Connecticut Ave NW, Washington, DC 20036"},"website":{"type":"string","description":"Website URL","example":"https://www.yoursalon.com"},"emailAddress":{"type":"string","description":"Email address shown to clients","example":"hello@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number shown to clients, in E.164 format","example":"+12025550143"}}},"SocialMediaDto":{"type":"object","properties":{"instagram":{"type":"string","description":"Instagram username, without @ or a link","example":"yoursalon"},"facebook":{"type":"string","description":"Facebook page name, without @ or a link","example":"yoursalon"},"twitter":{"type":"string","description":"X (Twitter) username, without @ or a link","example":"yoursalon"},"linkedin":{"type":"string","description":"LinkedIn page name, without a link","example":"your-salon"},"youtube":{"type":"string","description":"YouTube handle, without @ or a link","example":"yoursalon"},"tiktok":{"type":"string","description":"TikTok username, without @ or a link","example":"yoursalon"}}},"UpdateCompanySettingDto":{"type":"object","properties":{"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","example":"US"},"workingHours":{"description":"Weekly working hours: exactly 7 days, one per day index","type":"array","items":{"$ref":"#/components/schemas/WorkingHourDto"}},"businessDetails":{"description":"Business details shown on invoices","allOf":[{"$ref":"#/components/schemas/BusinessDetailsDto"}]},"contactDetails":{"description":"Contact details shown on the booking site","allOf":[{"$ref":"#/components/schemas/ContactDetailsDto"}]},"socialMedia":{"description":"Social media profiles linked from the booking site","allOf":[{"$ref":"#/components/schemas/SocialMediaDto"}]}}},"TimeSlotDto":{"type":"object","properties":{"step":{"type":"number","description":"Minutes between the start times offered, from 5 to 60 and dividing 60 evenly","nullable":true,"example":15},"showSuggestions":{"type":"boolean","description":"Whether to show suggested slots that keep the schedule without gaps first; the other slots can be expanded. Needs a plan that includes it","nullable":true,"example":true},"showUnavailableSlots":{"type":"boolean","description":"Whether to show booked slots too, so clients see the whole schedule. Needs a plan that includes it","nullable":true,"example":false}},"required":["step","showSuggestions","showUnavailableSlots"]},"AppointmentDefaultsDto":{"type":"object","properties":{"status":{"type":"string","description":"Status of appointments clients book: awaiting your confirmation, or confirmed right away","enum":["awaiting_confirmation","confirmed"],"example":"confirmed"},"resetStatusAfterReschedule":{"type":"boolean","description":"Whether an appointment the client reschedules goes back to awaiting confirmation","example":false},"memberSelectionLogic":{"type":"string","description":"Which member gets the appointment when the client does not choose one","enum":["first_available","random","round_robin","least_busy","cheapest_service","most_expensive_service"],"example":"first_available"}},"required":["status","resetStatusAfterReschedule","memberSelectionLogic"]},"BookingCustomFieldDto":{"type":"object","properties":{"key":{"type":"string","description":"Key the answer is stored under","example":"allergies"},"scope":{"type":"string","description":"Whether the answer belongs to the appointment or to the client","enum":["appointment","client"],"example":"client"},"label":{"type":"string","description":"Label of the field","example":"Allergies"},"description":{"type":"string","description":"Help text under the field","example":"Let us know about any allergies to hair or skin products."},"translations":{"type":"object","description":"Translations of the label and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Haarlänge"}}},"type":{"type":"string","description":"Type of input","enum":["text","long_text","number","email","website","phone","select","combobox","radio","checkbox","switch","date","time","datetime","color","slider"],"example":"long_text"},"config":{"type":"object","description":"Options of the input type, such as the choices of a select","additionalProperties":true,"example":{}},"isRequired":{"type":"boolean","description":"Whether clients must fill it in","example":false},"isActive":{"type":"boolean","description":"Whether the field is asked","example":true}},"required":["scope","label","type"]},"PoliciesAndRestrictionsDto":{"type":"object","properties":{"allowBulkBooking":{"type":"boolean","description":"Whether clients can book several services in one booking","example":true},"maxWaitTimeForBulkBooking":{"type":"number","description":"Longest wait in minutes between services booked together, up to 4320; null for no limit","nullable":true,"example":30},"allowRescheduling":{"type":"boolean","description":"Whether clients can reschedule online","example":true},"minTimeBeforeRescheduling":{"type":"number","description":"Minutes before the appointment that rescheduling closes, up to 4320","nullable":true,"example":1440},"allowCanceling":{"type":"boolean","description":"Whether clients can cancel online","example":true},"minTimeBeforeCanceling":{"type":"number","description":"Minutes before the appointment that canceling closes, up to 4320","nullable":true,"example":1440},"refundOnCanceling":{"type":"boolean","description":"Whether online payments are refunded when clients cancel online","example":true},"allowProfileUpdates":{"type":"boolean","description":"Whether clients can change their details online","example":true},"minTimeBeforeBooking":{"type":"number","description":"Minutes from now to the first time clients can book, up to 4320","example":60},"maxTimeForBookingInAdvance":{"type":"number","description":"Days ahead clients can book","example":90}},"required":["allowRescheduling","minTimeBeforeRescheduling","allowCanceling","minTimeBeforeCanceling","allowProfileUpdates","minTimeBeforeBooking","maxTimeForBookingInAdvance"]},"UpdateBookingSettingDto":{"type":"object","properties":{"timeSlot":{"description":"Time slots clients choose from","allOf":[{"$ref":"#/components/schemas/TimeSlotDto"}]},"appointmentDefaults":{"description":"Defaults of appointments clients book","allOf":[{"$ref":"#/components/schemas/AppointmentDefaultsDto"}]},"customFields":{"description":"Extra fields asked when booking; replaces the whole list","type":"array","items":{"$ref":"#/components/schemas/BookingCustomFieldDto"}},"policiesAndRestrictions":{"description":"Rules for booking, rescheduling and canceling online","allOf":[{"$ref":"#/components/schemas/PoliciesAndRestrictionsDto"}]}}},"AssistantDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the AI Receptionist replies to clients","example":true},"name":{"type":"string","description":"Name the AI Receptionist introduces itself with","example":"Ava"},"formality":{"type":"string","description":"Tone: `formal`, `neutral` or `casual`","example":"neutral"},"traits":{"description":"Up to 3 personality traits, such as `polite`, `concise`, `warm`, `funny`, `empathetic`, `luxury`, `helpful` or `energetic`","example":["warm","concise"],"type":"array","items":{"type":"string"}},"additionalDetails":{"type":"string","description":"Extra instructions, up to 1000 characters","example":"Always mention that parking is free behind the building."},"messageQuality":{"type":"string","description":"`standard` for fast replies at a lower credit cost, `enhanced` for better replies that cost more credits","example":"standard"},"replyToGreetings":{"type":"boolean","description":"Whether to reply to greetings like \"Hi\"","example":true},"replyToFarewells":{"type":"boolean","description":"Whether to reply to farewells like \"Thanks, bye\"","example":true},"replyToOffTopic":{"type":"boolean","description":"Whether to reply to off-topic messages; repeated ones go to a team member either way","example":false},"requireConfirmation":{"type":"boolean","description":"Whether to ask the client to confirm before booking, rescheduling or canceling","example":true},"sendIdleNudges":{"type":"boolean","description":"Whether to follow up with clients who stop replying in the middle of a booking","example":true},"idleNudgeDelay":{"type":"number","description":"Minutes to wait before following up, from 1 to 4320","example":10},"sendPaymentNudges":{"type":"boolean","description":"Whether to message clients after they pay for an appointment","example":true},"sendStatusNudges":{"type":"boolean","description":"Whether to message clients when their appointment request is confirmed or declined","example":true}}},"CustomKeywordDto":{"type":"object","properties":{"keyword":{"type":"string","description":"Word that triggers the reply","example":"parking"},"value":{"type":"string","description":"Reply sent instead of an AI reply","example":"Free parking is available behind the building."},"isActive":{"type":"boolean","description":"Whether the keyword is used","example":true}},"required":["keyword","value"]},"LiveChatDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the live chat shows on the booking site","example":true},"name":{"type":"string","description":"Name shown in the chat","example":"Your Salon"},"avatar":{"type":"string","description":"Picture URL shown in the chat, of a file uploaded with POST /salons/{salonId}/files; null removes it","format":"uri","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"},"status":{"type":"string","description":"Status line under the name","example":"Typically replies in a few minutes"},"greetingMessage":{"type":"string","description":"First message clients see","example":"Hi! How can we help you today?"},"translations":{"type":"object","description":"Translations of the name, status and greeting message by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","status":"Antwortet in wenigen Minuten"}}}}},"UpdateConversationsSettingDto":{"type":"object","properties":{"assistant":{"description":"The AI Receptionist","allOf":[{"$ref":"#/components/schemas/AssistantDto"}]},"knowledgeBase":{"type":"string","description":"What the AI Receptionist knows about the salon, such as policies and FAQs","example":"We offer free consultations for color services. Cancellations less than 24 hours ahead are charged 50%."},"customKeywords":{"description":"Keywords answered with a fixed reply; replaces the whole list","type":"array","items":{"$ref":"#/components/schemas/CustomKeywordDto"}},"liveChat":{"description":"The live chat on the booking site","allOf":[{"$ref":"#/components/schemas/LiveChatDto"}]}}},"AppIdentityDto":{"type":"object","properties":{"name":{"type":"string","description":"App name when the booking site is installed on a phone","example":"Your Salon"},"shortName":{"type":"string","description":"Short name under the app icon","example":"Your Salon"},"description":{"type":"string","description":"App description","example":"Book your next appointment at Your Salon."},"translations":{"type":"object","description":"Translations of the name, short name and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","shortName":"Salon"}}},"favicon":{"type":"string","description":"Browser tab icon URL, of a file uploaded with POST /salons/{salonId}/files; null removes it","format":"uri","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"},"iconSmall":{"type":"string","description":"Small app icon URL (192 × 192), of a file uploaded with POST /salons/{salonId}/files; null removes it","format":"uri","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"},"iconLarge":{"type":"string","description":"Large app icon URL (512 × 512), of a file uploaded with POST /salons/{salonId}/files; null removes it","format":"uri","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"}}},"AppearanceThemeDto":{"type":"object","properties":{"colorScheme":{"type":"string","description":"Main color: `neutral`, `red`, `rose`, `orange`, `green`, `blue`, `yellow`, `violet`, or `custom/#RRGGBB`","example":"custom/#6925D0"},"colorMode":{"type":"string","description":"Light or dark mode; `automatic` follows the visitor's device","enum":["light","dark","automatic"],"example":"automatic"},"borderRadius":{"type":"number","description":"Corner roundness, from 0 (square) to 1 (round)","minimum":0,"maximum":1,"example":0.5},"logo":{"type":"string","description":"Logo URL, of a file uploaded with POST /salons/{salonId}/files; null removes it","format":"uri","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"},"appIdentity":{"description":"How the booking site looks when installed on a phone","allOf":[{"$ref":"#/components/schemas/AppIdentityDto"}]},"removeBranding":{"type":"boolean","description":"Whether to hide the Softalon branding. Needs a plan that includes it","example":false}}},"HeaderLinkDto":{"type":"object","properties":{"label":{"type":"string","description":"Link text","example":"Services"},"translations":{"type":"object","description":"Translations of the label by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Termin buchen"}}},"href":{"type":"string","description":"Link target, a path or URL","example":"/services"}},"required":["label","href"]},"HeaderTopBarDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the bar above the header shows","example":true},"title":{"type":"string","description":"Title in the bar","example":"Spring offer"},"description":{"type":"string","description":"Text in the bar","example":"20% off all color services until April 30."},"translations":{"type":"object","description":"Translations of the title and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"title":"Neu bei uns","description":"Termine online buchen"}}},"variant":{"type":"string","description":"Color of the bar: `primary`, `secondary` or `destructive`","example":"primary"}}},"HeaderDto":{"type":"object","properties":{"layout":{"type":"string","description":"Header layout: `standard` or `centered`","example":"standard"},"isSticky":{"type":"boolean","description":"Whether the header stays visible while scrolling","example":true},"logoDisplay":{"type":"string","description":"What the header shows: the logo, the name as text, or both","enum":["logo","text","logo+text"],"example":"logo+text"},"logoText":{"type":"string","description":"Text shown as the name","example":"Your Salon"},"translations":{"type":"object","description":"Translations of the logo text by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"logoText":"Salon"}}},"links":{"description":"Links in the header","type":"array","items":{"$ref":"#/components/schemas/HeaderLinkDto"}},"topBar":{"description":"Bar above the header, for announcements","allOf":[{"$ref":"#/components/schemas/HeaderTopBarDto"}]}}},"LayoutSectionDto":{"type":"object","properties":{"type":{"type":"string","description":"Section of the home page: `hero`, `locations`, `services`, `members`, `gallery`, `reviews`, `about` or `booking_banner`","example":"services"},"config":{"type":"object","description":"Options of the section","additionalProperties":true,"example":{}},"isActive":{"type":"boolean","description":"Whether the section shows","example":true}},"required":["type","isActive"]},"LayoutHeroBackgroundDto":{"type":"object","properties":{"type":{"type":"string","description":"An image or a solid color","enum":["image","color"],"example":"image"},"image":{"type":"string","description":"Background image URL, for `image`, of a file uploaded with POST /salons/{salonId}/files; null removes it","format":"uri","nullable":true,"example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.png"},"color":{"type":"string","description":"Background color as hex, for `color`","example":"#1F1235"}},"required":["type"]},"LayoutHeroButtonDto":{"type":"object","properties":{"label":{"type":"string","description":"Button text","example":"Book now"},"translations":{"type":"object","description":"Translations of the label by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"label":"Termin buchen"}}},"variant":{"type":"string","description":"Button style, such as `default` or `secondary`","example":"default"},"href":{"type":"string","description":"Button target, a path or URL","example":"/booking"}},"required":["label","variant","href"]},"LayoutHeroDto":{"type":"object","properties":{"headline":{"type":"string","description":"Headline","example":"Welcome to Your Salon"},"description":{"type":"string","description":"Text under the headline","example":"Hair, nails and skincare in the heart of Washington, DC."},"translations":{"type":"object","description":"Translations of the headline and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"headline":"Willkommen","description":"Termine online buchen"}}},"contentPosition":{"type":"string","description":"Where the text sits, such as `bottom-left` or `center`","example":"bottom-left"},"background":{"description":"Background","allOf":[{"$ref":"#/components/schemas/LayoutHeroBackgroundDto"}]},"textColor":{"type":"string","description":"Text color as hex","example":"#FFFFFF"},"buttons":{"description":"Buttons","type":"array","items":{"$ref":"#/components/schemas/LayoutHeroButtonDto"}}}},"LayoutDto":{"type":"object","properties":{"sections":{"description":"Sections of the home page, in order","type":"array","items":{"$ref":"#/components/schemas/LayoutSectionDto"}},"hero":{"description":"Top section of the home page","allOf":[{"$ref":"#/components/schemas/LayoutHeroDto"}]}}},"BookingContactFieldDto":{"type":"object","properties":{"isVisible":{"type":"boolean","description":"Whether the field is asked","example":true},"isRequired":{"type":"boolean","description":"Whether clients must fill it in","example":true}},"required":["isVisible","isRequired"]},"BookingContactFieldsDto":{"type":"object","properties":{"emailAddress":{"description":"Email address field","allOf":[{"$ref":"#/components/schemas/BookingContactFieldDto"}]},"phoneNumber":{"description":"Phone number field","allOf":[{"$ref":"#/components/schemas/BookingContactFieldDto"}]}},"required":["emailAddress","phoneNumber"]},"BookingDto":{"type":"object","properties":{"steps":{"type":"array","description":"Booking steps, in order","example":["choose-location","choose-service","choose-member","choose-time","client-details","checkout"],"items":{"type":"string","enum":["choose-location","choose-service","choose-member","choose-time","client-details","checkout"]}},"excludedSteps":{"type":"array","description":"Steps that are skipped; only `choose-member` can be","example":[],"items":{"type":"string","enum":["choose-member"]}},"contactFields":{"description":"Contact details asked when booking","allOf":[{"$ref":"#/components/schemas/BookingContactFieldsDto"}]}}},"LocationsLayoutDto":{"type":"object","properties":{"type":{"type":"string","description":"List or grid","enum":["list","grid"],"example":"list"},"includeImage":{"type":"boolean","description":"Whether to show images","example":true},"includeRating":{"type":"boolean","description":"Whether to show ratings","example":true}}},"LocationsFiltersDto":{"type":"object","properties":{"showSearch":{"type":"boolean","description":"Whether to show a search box","example":false}}},"LocationsDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the locations page shows","example":true},"layout":{"description":"Layout","allOf":[{"$ref":"#/components/schemas/LocationsLayoutDto"}]},"filters":{"description":"Filters","allOf":[{"$ref":"#/components/schemas/LocationsFiltersDto"}]}}},"ServicesLayoutDto":{"type":"object","properties":{"type":{"type":"string","description":"List or grid","enum":["list","grid"],"example":"list"},"includeImage":{"type":"boolean","description":"Whether to show images","example":true},"includeRating":{"type":"boolean","description":"Whether to show ratings","example":true},"includeTax":{"type":"boolean","description":"Whether to show tax details before checkout","example":false}}},"ServicesFiltersDto":{"type":"object","properties":{"showSearch":{"type":"boolean","description":"Whether to show a search box","example":true},"showCategories":{"type":"boolean","description":"Whether to show categories","example":true}}},"ServicesDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the services page shows","example":true},"layout":{"description":"Layout","allOf":[{"$ref":"#/components/schemas/ServicesLayoutDto"}]},"filters":{"description":"Filters","allOf":[{"$ref":"#/components/schemas/ServicesFiltersDto"}]}}},"ReviewsFiltersDto":{"type":"object","properties":{"showSearch":{"type":"boolean","description":"Whether to show a search box","example":false}}},"ReviewsDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the reviews page shows","example":true},"filters":{"description":"Filters","allOf":[{"$ref":"#/components/schemas/ReviewsFiltersDto"}]},"collectReviews":{"type":"boolean","description":"Whether clients can leave a review after an appointment","example":true},"requireWrittenReview":{"type":"boolean","description":"Whether a review needs text, not only a rating","example":false}}},"MembersLayoutDto":{"type":"object","properties":{"type":{"type":"string","description":"List or grid","enum":["list","grid"],"example":"grid"},"includeImage":{"type":"boolean","description":"Whether to show pictures","example":true},"includeRating":{"type":"boolean","description":"Whether to show ratings","example":true}}},"MembersFiltersDto":{"type":"object","properties":{"showSearch":{"type":"boolean","description":"Whether to show a search box","example":false}}},"MembersDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the members page shows","example":true},"layout":{"description":"Layout","allOf":[{"$ref":"#/components/schemas/MembersLayoutDto"}]},"filters":{"description":"Filters","allOf":[{"$ref":"#/components/schemas/MembersFiltersDto"}]}}},"AboutDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the about page shows","example":true},"content":{"type":"string","description":"Text of the about page","example":"Your Salon has been styling Washington, DC since 2012."},"includeAddress":{"type":"boolean","description":"Whether to show the address","example":true},"includeWorkingHours":{"type":"boolean","description":"Whether to show the working hours","example":true},"includeAdditionalInformation":{"type":"boolean","description":"Whether to show the additional information","example":true},"additionalInformation":{"description":"Additional information items; required when `includeAdditionalInformation` is true","example":["Free Wi-Fi","Wheelchair accessible"],"type":"array","items":{"type":"string"}},"translations":{"type":"object","description":"Translations of the content and additional information by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"content":"Uber uns","additionalInformation":["Kostenloses WLAN"]}}}}},"GalleryDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the gallery page shows","example":true},"images":{"description":"Image URLs of files uploaded with POST /salons/{salonId}/files","example":["https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.jpg"],"type":"array","items":{"type":"string","format":"uri"}}}},"CustomPageDto":{"type":"object","properties":{"name":{"type":"string","description":"Page title","example":"Gift Cards"},"slug":{"type":"string","description":"Path of the page: lowercase letters, numbers, hyphens and slashes","example":"gift-cards"},"content":{"type":"string","description":"Content of the page, as HTML","example":"<p>Gift cards are available at the front desk.</p>"},"translations":{"type":"object","description":"Translations of the name and content by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","content":"Uber uns"}}}},"required":["name","slug"]},"FooterBlockDto":{"type":"object","properties":{"id":{"type":"string","description":"Block ID, unique in the footer","example":"contact"},"type":{"type":"string","description":"Kind of block, such as `text`","example":"text"},"config":{"type":"object","description":"Options of the block, such as `content` for text","additionalProperties":true,"example":{"content":"© 2026 Your Salon"}},"isActive":{"type":"boolean","description":"Whether the block shows","example":true}},"required":["id","type","isActive"]},"FooterColumnDto":{"type":"object","properties":{"id":{"type":"string","description":"Column ID, unique in the footer","example":"column-1"},"items":{"description":"Blocks in the column","type":"array","items":{"$ref":"#/components/schemas/FooterBlockDto"}}},"required":["id","items"]},"FooterDto":{"type":"object","properties":{"columns":{"description":"Columns of the footer","type":"array","items":{"$ref":"#/components/schemas/FooterColumnDto"}}}},"CustomDto":{"type":"object","properties":{"markup":{"type":"string","description":"HTML added to every page","example":"<div id=\"promo\"></div>"},"style":{"type":"string","description":"CSS added to every page","example":".hero h1 { letter-spacing: 0.02em; }"},"script":{"type":"string","description":"JavaScript added to every page","example":"console.log('Welcome');"}}},"CustomWebsiteDto":{"type":"object","properties":{"themeId":{"type":"string","description":"Theme to publish (one of the salon's themes, without errors); null turns the custom website off. Publishing keeps the last 20 published versions","nullable":true,"example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"isActive":{"type":"boolean","description":"false shows the standard booking site for a while and keeps the published theme; true or left out shows the theme","example":true}}},"UpdateAppearanceSettingsDto":{"type":"object","properties":{"theme":{"description":"Colors, logo and app icons","allOf":[{"$ref":"#/components/schemas/AppearanceThemeDto"}]},"header":{"description":"Header","allOf":[{"$ref":"#/components/schemas/HeaderDto"}]},"layout":{"description":"Home page","allOf":[{"$ref":"#/components/schemas/LayoutDto"}]},"booking":{"description":"Booking steps and contact fields","allOf":[{"$ref":"#/components/schemas/BookingDto"}]},"locations":{"description":"Locations page","allOf":[{"$ref":"#/components/schemas/LocationsDto"}]},"services":{"description":"Services page","allOf":[{"$ref":"#/components/schemas/ServicesDto"}]},"reviews":{"description":"Reviews page","allOf":[{"$ref":"#/components/schemas/ReviewsDto"}]},"members":{"description":"Members page","allOf":[{"$ref":"#/components/schemas/MembersDto"}]},"about":{"description":"About page","allOf":[{"$ref":"#/components/schemas/AboutDto"}]},"gallery":{"description":"Gallery page","allOf":[{"$ref":"#/components/schemas/GalleryDto"}]},"customPages":{"description":"Pages of your own; replaces the whole list","type":"array","items":{"$ref":"#/components/schemas/CustomPageDto"}},"footer":{"description":"Footer","allOf":[{"$ref":"#/components/schemas/FooterDto"}]},"custom":{"description":"Custom code on every page","allOf":[{"$ref":"#/components/schemas/CustomDto"}]},"customWebsite":{"description":"The custom website (theme) the booking site shows","allOf":[{"$ref":"#/components/schemas/CustomWebsiteDto"}]}}},"NativePaymentMethodDto":{"type":"object","properties":{"displayName":{"type":"string","description":"Name clients see","example":"Pay online"},"displayDescription":{"type":"string","description":"Description clients see","example":"Pay securely with card, Apple Pay or Google Pay."},"translations":{"type":"object","description":"Translations of the display name and display description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"displayName":"Barzahlung","displayDescription":"Im Salon bezahlen"}}},"isActive":{"type":"boolean","description":"Whether clients can pay online with Softalon Payments","example":true},"termsVersion":{"type":"string","description":"Version of the Softalon Payments Terms you accept; the time and who accepted are recorded","example":"2026-11-04"}}},"OfflinePaymentMethodDto":{"type":"object","properties":{"displayName":{"type":"string","description":"Name clients see","example":"Pay at the salon"},"displayDescription":{"type":"string","description":"Description clients see","example":"Pay with cash or card after your appointment."},"translations":{"type":"object","description":"Translations of the display name and display description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"displayName":"Barzahlung","displayDescription":"Im Salon bezahlen"}}},"isActive":{"type":"boolean","description":"Whether clients can choose it","example":true}},"required":["displayName","isActive"]},"AcceptedPaymentMethodsDto":{"type":"object","properties":{"order":{"description":"Order the payment methods are shown in: `native` (Softalon Payments), `offline` and payment integration IDs","example":["native","offline"],"type":"array","items":{"type":"string"}},"defaultPaymentMethodId":{"type":"string","description":"Payment method chosen by default; null for none","nullable":true,"example":"native"},"nativePaymentMethod":{"description":"Online payments with Softalon Payments","allOf":[{"$ref":"#/components/schemas/NativePaymentMethodDto"}]},"offlinePaymentMethod":{"description":"Paying at the salon","allOf":[{"$ref":"#/components/schemas/OfflinePaymentMethodDto"}]}}},"SalonDepositPolicyDto":{"type":"object","properties":{"type":{"type":"string","description":"`none`, a `fixed` amount, or a `percentage` of the price","enum":["none","fixed","percentage"],"example":"percentage"},"value":{"type":"number","description":"Amount in the salon's currency, or percent from 0 to 100; 0 for `none`","minimum":0,"example":20}},"required":["type","value"]},"CurrencyFormatDto":{"type":"object","properties":{"symbolPosition":{"type":"string","description":"Where the currency symbol goes: `before`, `beforeSpace`, `after` or `afterSpace`","example":"before"},"separator":{"type":"string","description":"Thousands and decimal separators, e.g. `commaDot` for 1,234.56","example":"commaDot"},"numberOfDecimals":{"type":"number","description":"Decimals shown","example":2}}},"UpdatePaymentsSettingDto":{"type":"object","properties":{"currency":{"type":"string","description":"Currency, as an ISO 4217 code","example":"USD"},"acceptedPaymentMethods":{"description":"Payment methods clients can use","allOf":[{"$ref":"#/components/schemas/AcceptedPaymentMethodsDto"}]},"depositPolicy":{"description":"Part of the price paid when booking, unless a service sets its own","allOf":[{"$ref":"#/components/schemas/SalonDepositPolicyDto"}]},"currencyFormat":{"description":"How amounts are written","allOf":[{"$ref":"#/components/schemas/CurrencyFormatDto"}]},"invoiceDueDays":{"type":"number","description":"Days until an invoice is due, from 0 to 365","example":14}}},"BillingProfileDto":{"type":"object","properties":{"id":{"type":"string","description":"Billing profile ID","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"entityName":{"type":"string","description":"Legal name on invoices","nullable":true,"example":"Your Salon LLC"},"emailAddress":{"type":"string","description":"Email address invoices and receipts are sent to","example":"billing@yoursalon.com"},"addressLine1":{"type":"string","description":"Street address","nullable":true,"example":"1250 Market Street"},"addressLine2":{"type":"string","description":"Apartment, suite or floor","nullable":true,"example":"Suite 300"},"city":{"type":"string","description":"City","nullable":true,"example":"San Francisco"},"state":{"type":"string","description":"State, province or region","nullable":true,"example":"CA"},"postalCode":{"type":"string","description":"Postal code","nullable":true,"example":"94102"},"country":{"type":"string","description":"Country, ISO 3166-1 alpha-2","nullable":true,"example":"US"},"taxId":{"type":"string","description":"Tax ID, e.g. EIN or VAT number","nullable":true,"example":"12-3456789"},"balances":{"type":"object","description":"Balance per currency that is used to pay the next invoices; currencies with a zero balance are left out","additionalProperties":{"type":"number"},"example":{"USD":25}},"credits":{"type":"number","description":"Credits left: one balance for SMS and WhatsApp messages and AI Receptionist replies","example":480},"primaryPaymentMethodId":{"type":"string","description":"ID of the primary payment method, charged first","nullable":true,"example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"},"backupPaymentMethodId":{"type":"string","description":"ID of the backup payment method, charged when the primary one fails","nullable":true,"example":null},"invoicePrefix":{"type":"string","description":"Prefix of the salon's invoice numbers","example":"K7Q2MX"},"latestInvoiceCounter":{"type":"number","description":"Number of the latest invoice","nullable":true,"example":3},"createdAt":{"type":"string","description":"When the billing profile was created","example":"2026-02-14T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the billing profile was last changed","example":"2026-02-14T10:30:00.000Z"}},"required":["id","salonId","entityName","emailAddress","addressLine1","addressLine2","city","state","postalCode","country","taxId","balances","credits","primaryPaymentMethodId","backupPaymentMethodId","invoicePrefix","latestInvoiceCounter","createdAt","updatedAt"]},"BalanceTransactionDto":{"type":"object","properties":{"id":{"type":"string","description":"Balance transaction ID","example":"baltx_01hd6r9t4vyz7wxa3s8qzfg5jn"},"billingProfileId":{"type":"string","description":"ID of the salon's billing profile","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"},"invoiceId":{"type":"string","description":"ID of the invoice the balance was applied to","nullable":true,"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj"},"type":{"type":"string","description":"What changed the balance","enum":["applied_to_invoice","unapplied_from_invoice","manual_adjustment","credit_note"],"example":"applied_to_invoice"},"currency":{"type":"string","description":"Three-letter currency code","example":"USD"},"amount":{"type":"number","description":"Change of the balance; negative when it was used","example":-25},"finalAmount":{"type":"number","description":"Balance in this currency after the change","example":0},"description":{"type":"string","description":"Note about the change","nullable":true,"example":"Applied to invoice K7Q2MX-0003"},"createdAt":{"type":"string","description":"When the change was made","example":"2026-03-01T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the transaction was last changed","example":"2026-03-01T09:00:00.000Z"}},"required":["id","billingProfileId","invoiceId","type","currency","amount","finalAmount","description","createdAt","updatedAt"]},"BillingBalanceDto":{"type":"object","properties":{"balances":{"type":"object","description":"Balance per currency; currencies with a zero balance are left out","additionalProperties":{"type":"number"},"example":{"USD":25}},"history":{"description":"Balance changes, newest first. Empty unless `withHistory` is `true`","type":"array","items":{"$ref":"#/components/schemas/BalanceTransactionDto"}}},"required":["balances","history"]},"CreditTransactionDto":{"type":"object","properties":{"id":{"type":"string","description":"Credit transaction ID","example":"bctx_01hd6r9t8wyz2xab5s3qzfg6kp"},"billingProfileId":{"type":"string","description":"ID of the salon's billing profile","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"},"invoiceId":{"type":"string","description":"ID of the invoice that added the credits","nullable":true,"example":"binv_01hc4p7r2swz5tvx9q6nyde3gj"},"type":{"type":"string","description":"What changed the credits: included in the subscription, a purchase, messages sent, or a manual change","enum":["subscription","one_off_purchase","usage_of_notifications","usage_of_conversations","manual_adjustment","credit_note"],"example":"one_off_purchase"},"amount":{"type":"number","description":"Change of the credits; negative when they were used","example":500},"finalAmount":{"type":"number","description":"Credits after the change","example":980},"description":{"type":"string","description":"Note about the change","nullable":true,"example":"500 credits"},"createdAt":{"type":"string","description":"When the change was made","example":"2026-03-01T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the transaction was last changed","example":"2026-03-01T09:00:00.000Z"}},"required":["id","billingProfileId","invoiceId","type","amount","finalAmount","description","createdAt","updatedAt"]},"BillingCreditsDto":{"type":"object","properties":{"value":{"type":"number","description":"Credits left: one balance for SMS and WhatsApp messages and AI Receptionist replies","example":480},"history":{"description":"Credit changes, newest first. Empty unless `withHistory` is `true`","type":"array","items":{"$ref":"#/components/schemas/CreditTransactionDto"}}},"required":["value","history"]},"CreateBillingProfileDto":{"type":"object","properties":{"entityName":{"type":"string","description":"Legal name on invoices","example":"Your Salon LLC"},"emailAddress":{"type":"string","description":"Email address invoices and receipts are sent to","example":"billing@yoursalon.com"},"addressLine1":{"type":"string","description":"Street address","example":"1250 Market Street"},"addressLine2":{"type":"string","description":"Apartment, suite or floor","example":"Suite 300"},"city":{"type":"string","description":"City","example":"San Francisco"},"state":{"type":"string","description":"State, province or region","example":"CA"},"postalCode":{"type":"string","description":"Postal code","example":"94102"},"country":{"type":"string","description":"Country, ISO 3166-1 alpha-2","example":"US"},"taxId":{"type":"string","description":"Tax ID, e.g. EIN or VAT number","nullable":true,"example":"12-3456789"}},"required":["entityName","emailAddress"]},"UpdateBillingProfileDto":{"type":"object","properties":{"entityName":{"type":"string","description":"Legal name on invoices","example":"Your Salon LLC"},"emailAddress":{"type":"string","description":"Email address invoices and receipts are sent to","example":"billing@yoursalon.com"},"addressLine1":{"type":"string","description":"Street address","example":"1250 Market Street"},"addressLine2":{"type":"string","description":"Apartment, suite or floor","example":"Suite 300"},"city":{"type":"string","description":"City","example":"San Francisco"},"state":{"type":"string","description":"State, province or region","example":"CA"},"postalCode":{"type":"string","description":"Postal code","example":"94102"},"country":{"type":"string","description":"Country, ISO 3166-1 alpha-2","example":"US"},"taxId":{"type":"string","description":"Tax ID, e.g. EIN or VAT number","nullable":true,"example":"12-3456789"},"primaryPaymentMethodId":{"type":"string","description":"ID of the payment method to charge first; must belong to the salon","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"},"backupPaymentMethodId":{"type":"string","description":"ID of the payment method to charge when the primary one fails; must belong to the salon","example":"bpm_01hb7m3q5swz8tvx4p2nyde9fg"}}},"UpdateBillingProfileResultDto":{"type":"object","properties":{"billingProfileId":{"type":"string","description":"The updated billing profile's ID","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"}},"required":["billingProfileId"]},"PaymentMethodDetailsDto":{"type":"object","properties":{"brand":{"type":"string","description":"Card brand","example":"visa"},"funding":{"type":"string","description":"Card funding: `credit`, `debit`, `prepaid` or `unknown`","example":"credit"},"last4":{"type":"string","description":"Last four digits of the card","example":"4242"},"expMonth":{"type":"number","description":"Expiration month, 1-12","example":8},"expYear":{"type":"number","description":"Expiration year","example":2028},"emailAddress":{"type":"string","description":"Email address of a Link payment method","example":"jane@yoursalon.com"}}},"PaymentMethodDto":{"type":"object","properties":{"id":{"type":"string","description":"Payment method ID","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"},"billingProfileId":{"type":"string","description":"ID of the salon's billing profile","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"},"paymentProvider":{"type":"string","description":"Payment provider","enum":["stripe","softalon"],"example":"stripe"},"referenceId":{"type":"string","description":"The payment method's ID at the payment provider","example":"pm_1PqR8sLkdIwHu7ixA1b2C3d4"},"type":{"type":"string","description":"Payment method type","enum":["card","link"],"example":"card"},"metadata":{"description":"Details for display: brand, last four digits and expiration for cards, email address for Link","allOf":[{"$ref":"#/components/schemas/PaymentMethodDetailsDto"}]},"isPrimary":{"type":"boolean","description":"Whether this is the primary payment method, charged first. Only in Get All Payment Methods","example":true},"isBackup":{"type":"boolean","description":"Whether this is the backup payment method, charged when the primary one fails. Only in Get All Payment Methods","example":false},"createdAt":{"type":"string","description":"When the payment method was added","example":"2026-02-14T10:30:00.000Z"},"updatedAt":{"type":"string","description":"When the payment method was last changed","example":"2026-02-14T10:30:00.000Z"}},"required":["id","billingProfileId","paymentProvider","referenceId","type","metadata","createdAt","updatedAt"]},"PaymentMethodListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PaymentMethodDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"InitializePaymentMethodDto":{"type":"object","properties":{"paymentProvider":{"type":"string","description":"Payment provider","enum":["stripe"],"example":"stripe"}},"required":["paymentProvider"]},"InitializePaymentMethodResultDto":{"type":"object","properties":{"id":{"type":"string","description":"ID of the setup at the payment provider","example":"seti_1PqR8sLkdIwHu7ixQ2w3E4r5"},"clientSecret":{"type":"string","description":"Client secret for collecting the card in the browser with the payment provider's SDK (Stripe.js)","example":"seti_1PqR8sLkdIwHu7ixQ2w3E4r5_secret_Pk7Lm4nXk29f"},"billingProfile":{"description":"The salon's billing profile","allOf":[{"$ref":"#/components/schemas/BillingProfileDto"}]}},"required":["id","clientSecret","billingProfile"]},"CreatePaymentMethodDto":{"type":"object","properties":{"paymentProvider":{"type":"string","description":"Payment provider","enum":["stripe"],"example":"stripe"},"referenceId":{"type":"string","description":"ID of the payment method collected with the payment provider's SDK after Initialize a Payment Method","example":"pm_1PqR8sLkdIwHu7ixA1b2C3d4"}},"required":["paymentProvider","referenceId"]},"UpdatePaymentMethodDto":{"type":"object","properties":{"expMonth":{"type":"number","description":"New expiration month, 1-12","minimum":1,"maximum":12,"example":8},"expYear":{"type":"number","description":"New expiration year, four digits","minimum":2000,"maximum":2100,"example":2029}},"required":["expMonth","expYear"]},"DeletePaymentMethodResultDto":{"type":"object","properties":{"paymentMethodId":{"type":"string","description":"The deleted payment method's ID","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"}},"required":["paymentMethodId"]},"CouponSummaryDto":{"type":"object","properties":{"id":{"type":"string","description":"Coupon ID","example":"bcoup_01h8s5m3n7qf2tvw6k9bxcd4eh"},"name":{"type":"string","description":"Coupon name","example":"Spring 20% off"},"type":{"type":"string","description":"How the coupon's value is applied","enum":["percentage","fixed_amount"],"example":"percentage"},"value":{"type":"number","description":"Percentage, or fixed amount in the coupon's currency","example":20},"amount":{"type":"number","description":"Amount taken off","example":19.8}},"required":["id","name","type","value","amount"]},"BillingInvoiceItemDto":{"type":"object","properties":{"id":{"type":"string","description":"Invoice item ID","example":"binvi_01hc4p7r9twz6vvx2q8nyde5gk"},"invoiceId":{"type":"string","description":"ID of the invoice the item belongs to","example":"binv_01hc4p7r2swz5tvx9q6nyde3gj"},"priceId":{"type":"string","description":"ID of the price that was billed","nullable":true,"example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb"},"name":{"type":"string","description":"Item name","example":"Pro"},"description":{"type":"string","description":"Item description, e.g. the billed period","nullable":true,"example":"Mar 1, 2026 - Apr 1, 2026"},"quantity":{"type":"number","description":"Quantity","example":1},"unitAmount":{"type":"number","description":"Price of one unit; negative for credits","example":99},"amount":{"type":"number","description":"Item total; negative for credits","example":99},"createdAt":{"type":"string","description":"When the item was created","example":"2026-03-01T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the item was last changed","example":"2026-03-01T09:00:00.000Z"}},"required":["id","invoiceId","priceId","name","description","quantity","unitAmount","amount","createdAt","updatedAt"]},"BillingInvoiceDto":{"type":"object","properties":{"id":{"type":"string","description":"Invoice ID","example":"binv_01hc4p7r2swz5tvx9q6nyde3gj"},"billingProfileId":{"type":"string","description":"ID of the salon's billing profile","example":"bpl_01h9x7k3m2qf8rtvw5n4bcd6ez"},"subscriptionId":{"type":"string","description":"ID of the subscription the invoice is for","nullable":true,"example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe"},"invoiceNumber":{"type":"string","description":"Invoice number, set when the invoice is finalized","nullable":true,"example":"K7Q2MX-0003"},"dueAt":{"type":"string","description":"When the invoice is due","nullable":true,"example":"2026-03-01T09:00:00.000Z"},"type":{"type":"string","description":"What the invoice is for: starting, changing or renewing a subscription, a one-off purchase (e.g. credits), or a custom charge","enum":["subscription/create","subscription/update","subscription/cycle","purchase/one-off","custom"],"example":"subscription/cycle"},"status":{"type":"string","description":"Invoice status. Lists never include draft invoices; `open` invoices can be paid","enum":["draft","open","paid","void"],"example":"paid"},"statusChangedAt":{"type":"string","description":"When the status last changed","nullable":true,"example":"2026-03-01T09:00:04.000Z"},"latestPaymentId":{"type":"string","description":"ID of the latest payment attempt","nullable":true,"example":"bpay_01hc5q8s3txz6vwy2r7pzef4hm"},"subtotal":{"type":"number","description":"Sum of the items","example":99},"couponId":{"type":"string","description":"ID of the applied coupon","nullable":true,"example":null},"couponSummary":{"description":"The applied coupon and the amount it took off; `{}` without one","allOf":[{"$ref":"#/components/schemas/CouponSummaryDto"}]},"total":{"type":"number","description":"Total after discounts","example":99},"totalAppliedBalance":{"type":"number","description":"Part of the total paid from the salon's balance","example":0},"totalDue":{"type":"number","description":"Amount left to pay after the applied balance","example":99},"currency":{"type":"string","description":"Three-letter currency code","example":"USD"},"isFinalized":{"type":"boolean","description":"Whether the invoice is final and can no longer change","example":true},"finalizedAt":{"type":"string","description":"When the invoice was finalized","nullable":true,"example":"2026-03-01T09:00:00.000Z"},"previewUrl":{"type":"string","description":"URL of the invoice PDF","nullable":true,"example":"https://storage.softalon.com/invoices/binv_01hc4p7r2swz5tvx9q6nyde3gj.pdf"},"receiptUrl":{"type":"string","description":"URL of the receipt PDF, once the invoice is paid","nullable":true,"example":"https://storage.softalon.com/receipts/binv_01hc4p7r2swz5tvx9q6nyde3gj.pdf"},"expiresAt":{"type":"string","description":"When an unpaid invoice expires","nullable":true,"example":null},"metadata":{"type":"object","description":"Extra data; for credit purchases, the credits it adds","additionalProperties":true,"example":{"credits":500}},"items":{"description":"The invoice's items, on Get an Invoice","type":"array","items":{"$ref":"#/components/schemas/BillingInvoiceItemDto"}},"createdAt":{"type":"string","description":"When the invoice was created","example":"2026-03-01T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the invoice was last changed","example":"2026-03-01T09:00:04.000Z"}},"required":["id","billingProfileId","subscriptionId","invoiceNumber","dueAt","type","status","statusChangedAt","latestPaymentId","subtotal","couponId","couponSummary","total","totalAppliedBalance","totalDue","currency","isFinalized","finalizedAt","previewUrl","receiptUrl","expiresAt","metadata","createdAt","updatedAt"]},"BillingInvoiceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/BillingInvoiceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateBillingInvoiceDto":{"type":"object","properties":{"productId":{"type":"string","description":"ID of the product to buy, e.g. a credit pack","example":"bprod_01h9t6n4p8qf3vwx7m2bycd5ej"},"quantity":{"type":"number","description":"How many to buy; the price is picked by quantity, cheapest first","example":1}},"required":["productId","quantity"]},"PayBillingInvoiceDto":{"type":"object","properties":{"paymentMethodId":{"type":"string","description":"ID of the payment method to charge","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"},"expectedTotalDue":{"type":"number","description":"The invoice's `totalDue` as shown to the person; the payment fails with `TOTAL_MISMATCH` when it changed","example":99}},"required":["paymentMethodId","expectedTotalDue"]},"PaymentNextActionDto":{"type":"object","properties":{"type":{"type":"string","description":"`ACTION`: confirm the payment in the browser with the client secret (e.g. 3D Secure). `REDIRECT`: send the person to `redirectTo`","enum":["ACTION","REDIRECT"],"example":"ACTION"},"clientSecret":{"type":"string","description":"Client secret for confirming the payment, with `ACTION`","example":"pi_3PqR8sLkdIwHu7ix0a1b2c3d_secret_Xk29fPq7Lm4n"},"redirectTo":{"type":"string","description":"Where to send the person to finish the payment","example":"https://checkout.stripe.com/c/pay/cs_live_a1b2c3d4"}},"required":["type"]},"PayInvoiceResultDto":{"type":"object","properties":{"invoice":{"description":"The invoice; `paid` once the payment went through","allOf":[{"$ref":"#/components/schemas/BillingInvoiceDto"}]},"nextAction":{"description":"What is left to finish the payment, or `null` when nothing is","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentNextActionDto"}]}},"required":["invoice","nextAction"]},"BillingPaymentDto":{"type":"object","properties":{"id":{"type":"string","description":"Payment ID","example":"bpay_01hc5q8s3txz6vwy2r7pzef4hm"},"invoiceId":{"type":"string","description":"ID of the invoice this payment is for","example":"binv_01hc4p7r2swz5tvx9q6nyde3gj"},"paymentMethodId":{"type":"string","description":"ID of the payment method that was charged","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"},"referenceId":{"type":"string","description":"The payment's ID at the payment provider","example":"pi_3PqR8sLkdIwHu7ix0a1b2c3d"},"status":{"type":"string","description":"Payment status","enum":["pending","succeeded","requires_action","failed","refunded","partially_refunded"],"example":"succeeded"},"statusChangedAt":{"type":"string","description":"When the status last changed","nullable":true,"example":"2026-03-01T09:00:04.000Z"},"amount":{"type":"number","description":"Amount charged, in the invoice currency","example":99},"currency":{"type":"string","description":"Three-letter currency code","example":"USD"},"failureReason":{"type":"string","description":"Why the payment failed","nullable":true,"example":null},"failureType":{"type":"string","description":"Kind of failure: `soft` can succeed on a retry, `hard` needs another payment method","enum":["soft","hard"],"nullable":true,"example":null},"invoice":{"description":"The invoice this payment is for","allOf":[{"$ref":"#/components/schemas/BillingInvoiceDto"}]},"createdAt":{"type":"string","description":"When the payment was created","example":"2026-03-01T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the payment was last changed","example":"2026-03-01T09:00:04.000Z"}},"required":["id","invoiceId","paymentMethodId","referenceId","status","statusChangedAt","amount","currency","failureReason","failureType","createdAt","updatedAt"]},"BillingPaymentListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/BillingPaymentDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"SubscriptionListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/SubscriptionDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"SubscriptionPreviewItemDto":{"type":"object","properties":{"priceId":{"type":"string","description":"Price ID","example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb"},"name":{"type":"string","description":"Item name","example":"Pro"},"description":{"type":"string","description":"The billed period","example":"Mar 15, 2026 - Apr 15, 2026"},"quantity":{"type":"number","description":"Quantity","example":1},"unitAmount":{"type":"number","description":"Price of one unit; negative for unused time credited back","example":99},"amount":{"type":"number","description":"Item total; negative for unused time credited back","example":99}},"required":["priceId","name","description","quantity","unitAmount","amount"]},"SubscriptionPreviewTotalsDto":{"type":"object","properties":{"subtotal":{"type":"number","description":"Sum of the items","example":99},"couponSummary":{"description":"The coupon and the amount it takes off; `{}` without one","allOf":[{"$ref":"#/components/schemas/CouponSummaryDto"}]},"total":{"type":"number","description":"Total after the coupon","example":79.2},"totalAppliedBalance":{"type":"number","description":"Part of the total paid from the salon's balance","example":25},"totalDue":{"type":"number","description":"Amount that will be charged. Send it as `expectedTotalDue` to confirm","example":54.2}},"required":["subtotal","couponSummary","total","totalAppliedBalance","totalDue"]},"SubscriptionPreviewDto":{"type":"object","properties":{"items":{"description":"Items that will be billed","type":"array","items":{"$ref":"#/components/schemas/SubscriptionPreviewItemDto"}},"coupon":{"description":"The coupon, when a valid `couponCode` was given","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/SubscriptionCouponDto"}]},"totals":{"description":"Totals","allOf":[{"$ref":"#/components/schemas/SubscriptionPreviewTotalsDto"}]}},"required":["items","coupon","totals"]},"CreateSubscriptionDto":{"type":"object","properties":{"priceId":{"type":"string","description":"ID of the plan's price to subscribe to","example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb"},"couponCode":{"type":"string","description":"Coupon code, not case-sensitive","example":"SPRING20"},"expectedTotalDue":{"type":"number","description":"`totals.totalDue` from Preview a Subscription; the request fails with `TOTAL_MISMATCH` when it changed","example":0},"paymentMethodId":{"type":"string","description":"ID of the payment method to charge; also required for a free trial. Becomes the primary payment method","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"}},"required":["priceId","expectedTotalDue","paymentMethodId"]},"CreateSubscriptionResultDto":{"type":"object","properties":{"subscription":{"description":"The subscription","allOf":[{"$ref":"#/components/schemas/SubscriptionDto"}]},"nextAction":{"description":"What is left to finish the first payment, or `null` when nothing is","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentNextActionDto"}]}},"required":["subscription","nextAction"]},"UpdateSubscriptionDto":{"type":"object","properties":{"couponCode":{"type":"string","description":"Coupon code to apply, not case-sensitive; `null` removes the current discount","nullable":true,"example":"SPRING20"},"cancelAtPeriodEnd":{"type":"boolean","description":"`true` ends the subscription at the end of the current period, `false` keeps it renewing","example":true},"cancellationReason":{"type":"string","description":"Why the subscription is being canceled; kept only with `cancelAtPeriodEnd: true`","enum":["too_expensive","lack_of_use","switched_to_competitor","temporary_needs","technical_issues","missing_features","customer_support","billing_issues","business_closed","prefer_not_to_say","other"],"example":"too_expensive"}}},"UpdateSubscriptionResultDto":{"type":"object","properties":{"subscription":{"description":"The updated subscription","allOf":[{"$ref":"#/components/schemas/SubscriptionDto"}]},"nextAction":{"description":"Always `null`","nullable":true,"example":null,"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentNextActionDto"}]}},"required":["subscription","nextAction"]},"UpdatePriceSubscriptionDto":{"type":"object","properties":{"priceId":{"type":"string","description":"ID of the new price","example":"bprice_01h7r4m6p3qf9tvw2n5bxcd8ec"},"prorateAt":{"type":"string","description":"The `prorateAt` the preview was made with, within the last 24 hours. The new billing period starts here","example":"2026-03-15T12:00:00.000Z"},"couponCode":{"type":"string","description":"Coupon code, not case-sensitive","example":"SPRING20"},"expectedTotalDue":{"type":"number","description":"`totals.totalDue` from Preview a Price Change; the request fails with `TOTAL_MISMATCH` when it changed","example":54.2},"paymentMethodId":{"type":"string","description":"ID of the payment method to charge for an upgrade; defaults to the primary payment method, and becomes the primary one when given","example":"bpm_01hb2k9p4rwz7stv3n6mxcd8ef"}},"required":["priceId","prorateAt","expectedTotalDue"]},"UpdateSubscriptionPriceResultDto":{"type":"object","properties":{"subscriptionId":{"type":"string","description":"The updated subscription's ID","example":"bsub_01ha2m5p8qwz3rtv7n4kxcd9fe"},"nextAction":{"description":"What is left to finish the payment for an upgrade, or `null` when nothing is","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentNextActionDto"}]}},"required":["subscriptionId","nextAction"]},"PaymentListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PaymentDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PaymentAccountDto":{"type":"object","properties":{"id":{"type":"string","description":"Payment account ID","example":"fpac_01h9k8f3pwq6ktv2r5n9ycxb2j"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"provider":{"type":"string","description":"Payment provider behind Softalon Payments","enum":["whop"],"example":"whop"},"externalId":{"type":"string","description":"Account ID at the payment provider","example":"biz_XXXXXXXXXXXXXX"},"status":{"type":"string","description":"`pending` until verification and payouts are set up, `active` when ready, `restricted` when the provider needs action","enum":["pending","active","restricted"],"example":"active"},"isActive":{"type":"boolean","description":"Whether the account can take payments","example":true},"createdAt":{"type":"string","description":"When the account was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the account was last changed","example":"2026-03-14T09:30:00.000Z"}},"required":["id","salonId","provider","externalId","status","isActive","createdAt","updatedAt"]},"PaymentAccountBalanceDto":{"type":"object","properties":{"amount":{"type":"number","description":"Available balance, as a decimal","example":1250.5},"currency":{"type":"string","description":"Currency, as an ISO 4217 code","example":"USD"},"pendingAmount":{"type":"number","description":"Balance not available for payout yet, as a decimal","example":200},"payoutStatus":{"type":"string","description":"Status of the payout account at the provider","nullable":true,"example":null}},"required":["amount","currency","pendingAmount","payoutStatus"]},"PaymentAccountSummaryDto":{"type":"object","properties":{"isProvisioned":{"type":"boolean","description":"Always `true`: the account is created on first use","example":true},"paymentMethodId":{"type":"string","description":"Payment method ID of Softalon Payments","example":"native"},"displayName":{"type":"string","description":"Name of the payment method","example":"Softalon Payments"},"account":{"description":"The account","allOf":[{"$ref":"#/components/schemas/PaymentAccountDto"}]},"balance":{"description":"Balance; `null` when the provider can't tell","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PaymentAccountBalanceDto"}]}},"required":["isProvisioned","paymentMethodId","displayName","account","balance"]},"PaymentAccountManageLinkDto":{"type":"object","properties":{"url":{"type":"string","description":"Short-lived link to the provider's page for verification and payout details. Returns to the salon's payment settings","example":"https://whop.com/account-links/XXXXXXXXXXXXXX"}},"required":["url"]},"CreateElementsPaymentDto":{"type":"object","properties":{"components":{"description":"Widgets the token is for. Defaults to `balance`, `payouts` and `withdraw`","example":["balance","payouts","withdraw"],"type":"array","items":{"type":"string"}}}},"PaymentAccountElementsSessionDto":{"type":"object","properties":{"provider":{"type":"string","description":"Payment provider the widgets come from","enum":["whop"],"example":"whop"},"clientToken":{"type":"string","description":"Short-lived token for the widgets","example":"XXXXXXXXXXXXXXXXXXXXXXXX"},"externalAccountId":{"type":"string","description":"Account ID at the payment provider","example":"biz_XXXXXXXXXXXXXX"},"expiresAt":{"type":"string","description":"When the token expires","nullable":true,"example":"2026-05-02T17:45:30.000Z"},"components":{"description":"Widgets the token is for","example":["balance","payouts","withdraw"],"type":"array","items":{"type":"string"}}},"required":["provider","clientToken","externalAccountId","expiresAt","components"]},"CreatePaymentDto":{"type":"object","properties":{"paymentMethodId":{"type":"string","description":"`offline` records a payment made at the salon (e.g. cash) as completed. `native` (Softalon Payments) or a connected payment integration such as `stripe` creates a checkout for the client","example":"offline"},"amount":{"type":"number","description":"Amount in the invoice's currency, as a decimal (e.g. `45.5` for $45.50). Defaults to what is left to pay; anything above it is a tip","example":45.5},"invoiceId":{"type":"string","description":"Invoice the payment is for","example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a"}},"required":["paymentMethodId","invoiceId"]},"RefundListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/RefundDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateRefundDto":{"type":"object","properties":{"amount":{"type":"number","description":"Amount to give back in the payment's currency, as a decimal (e.g. `20.5` for $20.50). With earlier refunds, at most the payment's amount","example":20.5},"reason":{"type":"string","description":"Why the money is given back","enum":["customer_request"],"example":"customer_request"}},"required":["amount","reason"]},"CouponListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/CouponDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateCouponDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique in the salon","example":"Summer Sale"},"code":{"type":"string","description":"Code of the coupon, saved in uppercase. Without one, it's made from the name","example":"SUMMER20"},"type":{"type":"string","description":"`percentage`: `value` percent off; `fixed`: `value` off in the salon's currency","enum":["percentage","fixed"],"example":"percentage"},"value":{"type":"number","description":"Discount: a percentage up to 100, or an amount in the salon's currency as a decimal (e.g. `10.5` for $10.50)","example":20}},"required":["name","type","value"]},"UpdateCouponDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique in the salon","example":"Summer Sale"},"isActive":{"type":"boolean","description":"Whether the coupon can be added to invoices","example":false}}},"UpdateCouponResultDto":{"type":"object","properties":{"couponId":{"type":"string","description":"ID of the updated coupon","example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"}},"required":["couponId"]},"DeleteCouponResultDto":{"type":"object","properties":{"couponId":{"type":"string","description":"ID of the deleted coupon","example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"}},"required":["couponId"]},"TaxRateListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/TaxRateDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateTaxRateDto":{"type":"object","properties":{"name":{"type":"string","description":"Name shown on invoices","example":"Sales Tax"},"type":{"type":"string","description":"`inclusive`: prices already contain the tax; `exclusive`: the tax is added on top of the prices","enum":["inclusive","exclusive"],"example":"exclusive"},"rate":{"type":"number","description":"Rate in percent, from 0 to 100","minimum":0,"maximum":100,"example":8.875}},"required":["name","type","rate"]},"UpdateTaxRateDto":{"type":"object","properties":{"name":{"type":"string","description":"Name shown on invoices","example":"State Sales Tax"}}},"UpdateTaxRateResultDto":{"type":"object","properties":{"taxRateId":{"type":"string","description":"ID of the updated tax rate","example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h"}},"required":["taxRateId"]},"AssignTaxRateDto":{"type":"object","properties":{"target":{"type":"string","description":"Assign the tax rate to all services or all products","enum":["service","product"],"example":"service"}},"required":["target"]},"AssignTaxRateResultDto":{"type":"object","properties":{"taxRateId":{"type":"string","description":"ID of the assigned or unassigned tax rate","example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h"}},"required":["taxRateId"]},"UnassignTaxRateDto":{"type":"object","properties":{"target":{"type":"string","description":"Remove the tax rate from the services or from the products that use it","enum":["service","product"],"example":"service"}},"required":["target"]},"WebhookEndpointDto":{"type":"object","properties":{"id":{"type":"string","description":"Webhook endpoint ID","example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp"},"salonId":{"type":"string","description":"Salon the endpoint belongs to","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"url":{"type":"string","description":"URL events are sent to with an HTTP POST","example":"https://api.yoursalon.com/webhooks/softalon"},"description":{"type":"string","description":"Description","nullable":true,"example":"Sync bookings to our CRM"},"topics":{"description":"Event topics the endpoint receives, or `*` for all","example":["booking/appointment.created","clients/client.updated"],"type":"array","items":{"type":"string"}},"secret":{"type":"string","description":"Secret for verifying the `X-Webhook-Signature` header. Masked, except right after creating the endpoint; get it with Get a Webhook Endpoint Secret","example":"k3v9***********************7f4g9"},"isActive":{"type":"boolean","description":"Whether events are sent to the endpoint","example":true},"createdAt":{"type":"string","description":"When the endpoint was created","example":"2026-04-02T10:00:00.000Z"},"updatedAt":{"type":"string","description":"When the endpoint was last changed","example":"2026-04-05T14:20:00.000Z"}},"required":["id","salonId","url","description","topics","secret","isActive","createdAt","updatedAt"]},"WebhookEndpointListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"WebhookEndpointSecretDto":{"type":"object","properties":{"webhookEndpointId":{"type":"string","description":"Webhook endpoint ID","example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp"},"secret":{"type":"string","description":"Secret for verifying the `X-Webhook-Signature` header","example":"k3v9x2m7q4w8r1t6y5u0p3a8s2d7f4g9"}},"required":["webhookEndpointId","secret"]},"CreateWebhookEndpointDto":{"type":"object","properties":{"url":{"type":"string","description":"HTTP or HTTPS URL events are sent to, without a fragment","example":"https://api.yoursalon.com/webhooks/softalon"},"description":{"type":"string","description":"Description","example":"Sync bookings to our CRM"},"topics":{"description":"Event topics to receive, or `*` for all. Defaults to none","example":["booking/appointment.created","clients/client.updated"],"type":"array","items":{"type":"string"}}},"required":["url"]},"UpdateWebhookEndpointDto":{"type":"object","properties":{"url":{"type":"string","description":"HTTP or HTTPS URL events are sent to, without a fragment","example":"https://api.yoursalon.com/webhooks/softalon"},"description":{"type":"string","description":"Description","example":"Sync bookings and clients to our CRM"},"topics":{"description":"Event topics to receive, or `*` for all. Replaces the current topics","example":["booking/appointment.created","booking/appointment.updated"],"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean","description":"Whether events are sent to the endpoint","example":false}}},"UpdateWebhookEndpointResultDto":{"type":"object","properties":{"webhookEndpointId":{"type":"string","description":"ID of the updated webhook endpoint","example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp"}},"required":["webhookEndpointId"]},"DeleteWebhookEndpointResultDto":{"type":"object","properties":{"webhookEndpointId":{"type":"string","description":"ID of the deleted webhook endpoint","example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp"}},"required":["webhookEndpointId"]},"WebhookDeliveryDto":{"type":"object","properties":{"id":{"type":"string","description":"Webhook delivery ID, also sent in the `X-Webhook-Delivery-Id` header","example":"wd_01h9x4n2pqk7w3rtv8m5bfc9ea"},"webhookEndpointId":{"type":"string","description":"Webhook endpoint the event is sent to","example":"we_01h9x3k7mqf2r8tvz5n4bwc6dp"},"salonId":{"type":"string","description":"Salon of the event","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"topic":{"type":"string","description":"Event topic","example":"booking/appointment.created"},"eventId":{"type":"string","description":"ID of the event, the same on every retry","example":"9b2f4c1a-6e3d-4a8b-b7c5-1d0e2f3a4b5c"},"payload":{"type":"object","description":"JSON body sent to the endpoint: `topic` and the `event`","additionalProperties":true,"example":{"topic":"booking/appointment.created","event":{"id":"9b2f4c1a-6e3d-4a8b-b7c5-1d0e2f3a4b5c","type":"booking/appointment.created","resourceId":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d","salonId":"sal_01h2xcejqtf2nbrexx3vqjhp41","data":{"object":{},"previousAttributes":null},"timestamp":"2026-04-05T14:20:00.000Z"}}},"status":{"type":"string","description":"`pending` (waiting to be sent or retried), `delivered` (the endpoint answered with 2xx), `failed` (the last attempt failed, it is retried) or `exhausted` (every attempt failed)","enum":["pending","delivered","failed","exhausted"],"example":"delivered"},"statusCode":{"type":"number","description":"HTTP status the endpoint answered the last attempt with","nullable":true,"example":200},"lastError":{"type":"string","description":"Error of the last failed attempt","nullable":true,"example":null},"attempts":{"type":"number","description":"Attempts made so far","example":1},"maxAttempts":{"type":"number","description":"Attempts made before giving up","example":5},"nextRetryAt":{"type":"string","description":"When the next attempt is made. Retries wait 30 seconds, then 1, 2 and 4 minutes","nullable":true,"example":null},"deliveredAt":{"type":"string","description":"When the endpoint accepted the event","nullable":true,"example":"2026-04-05T14:20:01.000Z"},"createdAt":{"type":"string","description":"When the delivery was created","example":"2026-04-05T14:20:00.000Z"},"updatedAt":{"type":"string","description":"When the delivery was last changed","example":"2026-04-05T14:20:01.000Z"}},"required":["id","webhookEndpointId","salonId","topic","eventId","payload","status","statusCode","lastError","attempts","maxAttempts","nextRetryAt","deliveredAt","createdAt","updatedAt"]},"WebhookDeliveryListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"InvoiceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/InvoiceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateInvoiceItemDto":{"type":"object","properties":{"type":{"type":"string","description":"What the line is for","enum":["service","product","custom"],"example":"service"},"serviceId":{"type":"string","description":"Service of the line. Required when `type` is `service`","example":"serv_01h2xd5k9mqf3r7twz8n4bvc6e"},"productId":{"type":"string","description":"Product of the line. Required when `type` is `product`","example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a"},"name":{"type":"string","description":"Name shown on the invoice, e.g. the service's or product's name","example":"Haircut"},"description":{"type":"string","description":"Description shown under the name","example":"Wash, cut and blow-dry"},"quantity":{"type":"number","description":"Quantity, at least 1","example":1},"unitAmount":{"type":"number","description":"Price of one unit in the salon's currency, as a decimal (e.g. `45.5` for $45.50)","example":45.5},"taxRateId":{"type":"string","description":"Tax rate of the line","example":"taxr_01h9k7e6qmz2ftv4r8n3ycxd5h"}},"required":["type","name","quantity","unitAmount"]},"CreateInvoiceDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location the invoice belongs to","example":"loc_01h455vb4pex5vsknk084sn02q"},"memberId":{"type":"string","description":"Member the revenue counts for. Members who can only manage their own invoices always get themselves","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"clientId":{"type":"string","description":"Client the invoice is for","nullable":true,"example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"dueAt":{"type":"string","description":"When payment is due, in ISO 8601. Without it, it's set on finalizing from the salon's invoice due days","example":"2026-05-16T23:59:59.999Z"},"items":{"description":"Lines of the invoice","type":"array","items":{"$ref":"#/components/schemas/CreateInvoiceItemDto"}},"couponId":{"type":"string","description":"An active coupon to apply","example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"},"notes":{"type":"string","description":"Notes for the client, shown on the invoice","example":"Thank you for visiting Your Salon!"},"internalNotes":{"type":"string","description":"Notes for the salon's team","example":"Client asked to split the payment"}},"required":["locationId","memberId"]},"UpdateInvoiceDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location the invoice belongs to","example":"loc_01h455vb4pex5vsknk084sn02q"},"memberId":{"type":"string","description":"Member the revenue counts for. Changing it to someone else needs the Manage Invoices permission","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"dueAt":{"type":"string","description":"When payment is due, in ISO 8601","example":"2026-05-16T23:59:59.999Z"},"items":{"description":"All lines of the invoice; replaces the current ones. Changing lines needs a plan with custom invoices","type":"array","items":{"$ref":"#/components/schemas/CreateInvoiceItemDto"}},"couponId":{"type":"string","description":"An active coupon to apply","example":"coup_01h9k6d4nwx5ftv8r3m2ycxb7g"},"notes":{"type":"string","description":"Notes for the client, shown on the invoice","example":"Thank you for visiting Your Salon!"},"internalNotes":{"type":"string","description":"Notes for the salon's team","example":"Client asked to split the payment"},"isFinalized":{"type":"boolean","description":"`true` finalizes the invoice: it gets a number, a due date and a PDF, becomes `open` (or `paid` if already paid) and can't be changed anymore. Needs at least one line","example":true}}},"UpdateInvoiceResultDto":{"type":"object","properties":{"invoiceId":{"type":"string","description":"ID of the updated invoice","example":"inv_01h9k3m5qwz8ftv2r7n4ycxd6a"}},"required":["invoiceId"]},"PayInvoiceDto":{"type":"object","properties":{"actionToken":{"type":"string","description":"Token of the invoice link, to pay without signing in as the client","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY3Rpb24iOiJpbnZvaWNlIn0.c2lnbmF0dXJl"},"paymentMethodId":{"type":"string","description":"An online payment method the salon accepts: `native` (Softalon Payments) or a connected payment integration such as `stripe`","example":"native"},"amount":{"type":"number","description":"Amount in the invoice's currency, as a decimal (e.g. `50` for $50.00). Defaults to what is left to pay; anything above it is a tip","example":50}},"required":["paymentMethodId"]},"ReviewListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ReviewDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"ReviewRatingCountDto":{"type":"object","properties":{"count":{"type":"number","description":"Number of reviews","example":31},"percentage":{"type":"number","description":"Share of all reviews, in percent","example":83.78}},"required":["count","percentage"]},"ReviewRatingDistributionDto":{"type":"object","properties":{"1":{"description":"1 star","allOf":[{"$ref":"#/components/schemas/ReviewRatingCountDto"}]},"2":{"description":"2 stars","allOf":[{"$ref":"#/components/schemas/ReviewRatingCountDto"}]},"3":{"description":"3 stars","allOf":[{"$ref":"#/components/schemas/ReviewRatingCountDto"}]},"4":{"description":"4 stars","allOf":[{"$ref":"#/components/schemas/ReviewRatingCountDto"}]},"5":{"description":"5 stars","allOf":[{"$ref":"#/components/schemas/ReviewRatingCountDto"}]}},"required":["1","2","3","4","5"]},"ReviewOverviewDto":{"type":"object","properties":{"value":{"type":"number","description":"Average rating, from 1 to 5; 0 without reviews","example":4.8},"count":{"type":"number","description":"Number of approved reviews","example":37},"byRating":{"description":"Reviews per star rating","allOf":[{"$ref":"#/components/schemas/ReviewRatingDistributionDto"}]}},"required":["value","count","byRating"]},"CreateReviewDto":{"type":"object","properties":{"actionToken":{"type":"string","description":"Token of a review action link sent to the client, to review the appointment without signing in","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."},"appointmentId":{"type":"string","description":"The completed appointment being reviewed; only members can leave it out","example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"},"locationId":{"type":"string","description":"Location ID; must be the appointment's location","example":"loc_01h455vb4pex5vsknk084sn02q"},"locationRating":{"type":"number","description":"Rating of the location, from 1 to 5","minimum":1,"maximum":5,"example":5},"serviceRating":{"type":"number","description":"Rating of the service, from 1 to 5","minimum":1,"maximum":5,"example":5},"memberRating":{"type":"number","description":"Rating of the member, from 1 to 5","minimum":1,"maximum":5,"example":4},"content":{"type":"string","description":"What the client wrote","example":"Jane did an amazing job with my balayage!"}},"required":["locationId","locationRating","serviceRating","memberRating"]},"UpdateReviewDto":{"type":"object","properties":{"appointmentId":{"type":"string","description":"Completed appointment to link the review to, or `null` to unlink it","nullable":true,"example":"appt_01hb7k3m9qwz5ftv2r8n4ycx6d"},"locationId":{"type":"string","description":"Location ID","example":"loc_01h455vb4pex5vsknk084sn02q"},"locationRating":{"type":"number","description":"Rating of the location, from 1 to 5","minimum":1,"maximum":5,"example":5},"serviceRating":{"type":"number","description":"Rating of the service, from 1 to 5","minimum":1,"maximum":5,"example":5},"memberRating":{"type":"number","description":"Rating of the member, from 1 to 5","minimum":1,"maximum":5,"example":5},"content":{"type":"string","description":"What the client wrote","example":"Jane did an amazing job with my balayage!"},"replyContent":{"type":"string","description":"The salon's public reply, or `null` to remove it","nullable":true,"example":"Thank you, see you next time!"},"isApproved":{"type":"boolean","description":"Whether the review is published; a client's edit always unpublishes it until the salon approves it again","example":true}}},"UpdateReviewResultDto":{"type":"object","properties":{"reviewId":{"type":"string","description":"The updated review's ID","example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h"}},"required":["reviewId"]},"DeleteReviewResultDto":{"type":"object","properties":{"reviewId":{"type":"string","description":"The deleted review's ID","example":"rev_01hb8f6n3pqz9ktw2v5r7mxc4h"}},"required":["reviewId"]},"ProductDto":{"type":"object","properties":{"id":{"type":"string","description":"Product ID","example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name, unique within the salon","example":"Argan Oil Shampoo"},"excerpt":{"type":"string","description":"Short description shown in lists","nullable":true,"example":"Sulfate-free shampoo for dry hair, 250 ml."},"description":{"type":"string","description":"Full description","nullable":true,"example":"Gently cleanses and adds shine. Safe for color-treated hair."},"price":{"type":"number","description":"Price in the salon's currency (`0` for free, `null` when not set)","nullable":true,"example":24.99},"taxRateId":{"type":"string","description":"Tax rate applied to the price","nullable":true,"example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"},"isActive":{"type":"boolean","description":"Whether the product can be sold","example":true},"taxRate":{"description":"The tax rate. Only with `expand=taxRate`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/TaxRateDto"}]},"createdAt":{"type":"string","description":"When the product was created","example":"2026-03-14T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the product was last changed","example":"2026-05-02T16:45:30.000Z"}},"required":["id","salonId","name","excerpt","description","price","taxRateId","isActive","createdAt","updatedAt"]},"ProductListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ProductDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateProductDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Argan Oil Shampoo"},"excerpt":{"type":"string","description":"Short description shown in lists","example":"Sulfate-free shampoo for dry hair, 250 ml."},"description":{"type":"string","description":"Full description","example":"Gently cleanses and adds shine. Safe for color-treated hair."},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","excerpt":"Waschen, Schneiden und Föhnen"}}},"price":{"type":"number","description":"Price in the salon's currency; `0` for free. Leave it out when the price isn't set","example":24.99},"taxRateId":{"type":"string","description":"Tax rate applied to the price","example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"}},"required":["name"]},"UpdateProductDto":{"type":"object","properties":{"name":{"type":"string","description":"Name, unique within the salon","example":"Argan Oil Shampoo"},"excerpt":{"type":"string","description":"Short description shown in lists","example":"Sulfate-free shampoo for dry hair, 250 ml."},"description":{"type":"string","description":"Full description","example":"Gently cleanses and adds shine. Safe for color-treated hair."},"translations":{"type":"object","description":"Translations of the name, excerpt and description by language code. The fields themselves are in the salon's language","additionalProperties":true,"example":{"de":{"name":"Haarschnitt","excerpt":"Waschen, Schneiden und Föhnen"}}},"price":{"type":"number","description":"Price in the salon's currency; `0` for free, `null` for not set","nullable":true,"example":24.99},"taxRateId":{"type":"string","description":"Tax rate applied to the price; `null` removes it","nullable":true,"example":"taxr_01h4k2m8npq6w3rtv9x5bfc7da"},"isActive":{"type":"boolean","description":"Whether the product can be sold","example":true}}},"UpdateProductResultDto":{"type":"object","properties":{"productId":{"type":"string","description":"The updated product's ID","example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a"}},"required":["productId"]},"DeleteProductResultDto":{"type":"object","properties":{"productId":{"type":"string","description":"The deleted product's ID","example":"prod_01h7n4q2wxz8k5tvm3rb9fdc6a"}},"required":["productId"]},"UpdatePreferenceDto":{"type":"object","properties":{"salonWide":{"type":"boolean","description":"Save it for the whole salon instead of only for you; members with the Manage Settings permission only","default":false,"example":false},"channel":{"type":"string","description":"Channel","enum":["push","email","sms","whatsapp"],"example":"sms"},"isEnabled":{"type":"boolean","description":"Whether messages are sent through this channel","example":false}},"required":["channel","isEnabled"]},"SenderProfileSmsDto":{"type":"object","properties":{"senderId":{"type":"string","description":"Alphanumeric sender ID shown instead of a phone number, up to 11 characters","example":"YourSalon"}},"required":["senderId"]},"SenderProfileEmailDto":{"type":"object","properties":{"host":{"type":"string","description":"SMTP server host","example":"smtp.yoursalon.com"},"port":{"type":"number","description":"SMTP server port","example":587},"secure":{"type":"boolean","description":"Whether the connection uses TLS from the start","example":false},"fromEmail":{"type":"string","description":"Address emails are sent from","example":"hello@yoursalon.com"},"fromName":{"type":"string","description":"Name emails are sent from","example":"Your Salon"}},"required":["host","port","fromEmail"]},"SenderProfileDto":{"type":"object","properties":{"id":{"type":"string","description":"Sender profile ID","example":"spr_01hb6q4r9swz8ktv3x7nc5td2k"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"channel":{"type":"string","description":"Channel","enum":["push","email","sms","whatsapp"],"example":"email"},"push":{"type":"object","description":"Push settings (none yet), for push profiles","additionalProperties":false,"nullable":true,"example":null},"sms":{"description":"SMS settings, for SMS profiles","nullable":true,"example":null,"type":"object","allOf":[{"$ref":"#/components/schemas/SenderProfileSmsDto"}]},"email":{"description":"Email server settings, for email profiles. The username and password are never returned.","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/SenderProfileEmailDto"}]},"isApproved":{"type":"boolean","description":"Whether the profile is used. Email and push profiles are approved right away; SMS sender IDs after a review.","example":true},"feedback":{"type":"string","description":"Why the profile was not approved","nullable":true,"example":null},"createdAt":{"type":"string","description":"When the profile was created","example":"2026-03-01T18:04:11.000Z"},"updatedAt":{"type":"string","description":"When the profile was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","salonId","channel","push","sms","email","isApproved","feedback","createdAt","updatedAt"]},"CreateSenderProfilePushDto":{"type":"object","properties":{}},"CreateSenderProfileSmsDto":{"type":"object","properties":{"senderId":{"type":"string","description":"Alphanumeric sender ID shown instead of a phone number, up to 11 characters","example":"YourSalon"}},"required":["senderId"]},"CreateSenderProfileEmailDto":{"type":"object","properties":{"host":{"type":"string","description":"SMTP server host","example":"smtp.yoursalon.com"},"port":{"type":"number","description":"SMTP server port","example":587},"username":{"type":"string","description":"SMTP username, stored encrypted","example":"hello@yoursalon.com"},"password":{"type":"string","description":"SMTP password, stored encrypted","example":"app-password-1234"},"secure":{"type":"boolean","description":"Use TLS from the start (usually port 465); otherwise STARTTLS is required","example":false},"fromEmail":{"type":"string","description":"Address emails are sent from","example":"hello@yoursalon.com"},"fromName":{"type":"string","description":"Name emails are sent from","example":"Your Salon"}},"required":["host","port","username","password","fromEmail"]},"CreateSenderProfileDto":{"type":"object","properties":{"channel":{"type":"string","description":"Channel of the profile","enum":["push","email","sms","whatsapp"],"example":"email"},"push":{"description":"Push settings (none yet); required for push profiles","allOf":[{"$ref":"#/components/schemas/CreateSenderProfilePushDto"}]},"sms":{"description":"SMS settings; required for SMS profiles","allOf":[{"$ref":"#/components/schemas/CreateSenderProfileSmsDto"}]},"email":{"description":"Email server settings; required for email profiles","allOf":[{"$ref":"#/components/schemas/CreateSenderProfileEmailDto"}]}},"required":["channel"]},"UpdateSenderProfilePushDto":{"type":"object","properties":{}},"UpdateSenderProfileSmsDto":{"type":"object","properties":{"senderId":{"type":"string","description":"Alphanumeric sender ID shown instead of a phone number, up to 11 characters. A new one goes back to review.","example":"YourSalon"}}},"UpdateSenderProfileEmailDto":{"type":"object","properties":{"host":{"type":"string","description":"SMTP server host","example":"smtp.yoursalon.com"},"port":{"type":"number","description":"SMTP server port","example":587},"username":{"type":"string","description":"SMTP username; send it together with the password","example":"hello@yoursalon.com"},"password":{"type":"string","description":"SMTP password; send it together with the username","example":"app-password-1234"},"secure":{"type":"boolean","description":"Use TLS from the start (usually port 465); otherwise STARTTLS is required","example":false},"fromEmail":{"type":"string","description":"Address emails are sent from","example":"hello@yoursalon.com"},"fromName":{"type":"string","description":"Name emails are sent from","example":"Your Salon"}}},"UpdateSenderProfileDto":{"type":"object","properties":{"push":{"description":"Push settings (none yet), for push profiles","allOf":[{"$ref":"#/components/schemas/UpdateSenderProfilePushDto"}]},"sms":{"description":"SMS settings, for SMS profiles","allOf":[{"$ref":"#/components/schemas/UpdateSenderProfileSmsDto"}]},"email":{"description":"Email server settings, for email profiles","allOf":[{"$ref":"#/components/schemas/UpdateSenderProfileEmailDto"}]}}},"UpdateSenderProfileResultDto":{"type":"object","properties":{"senderProfileId":{"type":"string","description":"ID of the updated sender profile","example":"spr_01hb6q4r9swz8ktv3x7nc5td2k"}},"required":["senderProfileId"]},"ValidateSenderProfileResultDto":{"type":"object","properties":{"isSuccessful":{"type":"boolean","description":"Whether the settings work","example":false},"message":{"type":"string","description":"What went wrong, when they don't","example":"Email configuration validation failed: Invalid login: 535 Authentication failed"}},"required":["isSuccessful"]},"DeleteSenderProfileResultDto":{"type":"object","properties":{"senderProfileId":{"type":"string","description":"ID of the deleted sender profile","example":"spr_01hb6q4r9swz8ktv3x7nc5td2k"}},"required":["senderProfileId"]},"PhoneNumberCapabilitiesDto":{"type":"object","properties":{"sms":{"type":"boolean","description":"Can send and receive SMS","example":true},"voice":{"type":"boolean","description":"Can make and receive calls","example":true},"mms":{"type":"boolean","description":"Can send and receive MMS","example":false}},"required":["sms","voice","mms"]},"PhoneNumberDto":{"type":"object","properties":{"id":{"type":"string","description":"Phone number ID","example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Messaging account of the salon the number belongs to","example":"nac_01hb7r3m8twz5ktv2x9nc4vd6p"},"value":{"type":"string","description":"Phone number in E.164 format","example":"+18005550143"},"providerId":{"type":"string","description":"ID of the number at the phone provider","example":"PN3f9c2b7e8a4d4f6b9c2e5d7a1b9e0c43"},"type":{"type":"string","description":"Type of number","enum":["toll_free","local","mobile"],"example":"toll_free"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","example":"US"},"capabilities":{"description":"What the number can do","allOf":[{"$ref":"#/components/schemas/PhoneNumberCapabilitiesDto"}]},"status":{"type":"string","description":"`pending` until its verification is approved, then `active`; `released` once deleted","enum":["pending","active","released"],"example":"active"},"forwardToValue":{"type":"string","description":"Phone number calls are forwarded to, in E.164 format, or null when forwarding is off","nullable":true,"example":"+12025550143"},"metadata":{"type":"object","description":"Billing details: monthly credits and when the number was last and is next billed","additionalProperties":true,"example":{"monthlyCredits":500,"lastBilledAt":"2026-03-01T18:04:11.000Z","nextBillingAt":"2026-03-31T18:04:11.000Z"}},"retentionExpiresAt":{"type":"string","description":"When a released number is given up for good","nullable":true,"example":null},"createdAt":{"type":"string","description":"When the number was bought","example":"2026-03-01T18:04:11.000Z"},"updatedAt":{"type":"string","description":"When the number was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","salonId","accountId","value","providerId","type","country","capabilities","status","forwardToValue","metadata","retentionExpiresAt","createdAt","updatedAt"]},"PhoneNumberListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PhoneNumberDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"AvailablePhoneNumberDto":{"type":"object","properties":{"value":{"type":"string","description":"Phone number in E.164 format","example":"+18005550143"},"type":{"type":"string","description":"Type of number","enum":["toll_free","local","mobile"],"example":"toll_free"},"friendlyName":{"type":"string","description":"Number formatted for display","example":"(800) 555-0143"},"locality":{"type":"string","description":"City of a local number","nullable":true,"example":null},"region":{"type":"string","description":"State or region of a local number","nullable":true,"example":null},"capabilities":{"description":"What the number can do","allOf":[{"$ref":"#/components/schemas/PhoneNumberCapabilitiesDto"}]},"monthlyPrice":{"type":"number","description":"Credits charged when bought and then every 30 days","example":500}},"required":["value","type","friendlyName","locality","region","capabilities","monthlyPrice"]},"AvailablePhoneNumberListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/AvailablePhoneNumberDto"}},"metadata":{"description":"Page and total","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PurchasePhoneNumberDto":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Number to buy, from the available phone numbers, in E.164 format","example":"+18005550143"},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","example":"US"},"type":{"type":"string","description":"Type of number","enum":["toll_free","local","mobile"],"example":"toll_free"}},"required":["phoneNumber","country","type"]},"UpdatePhoneNumberDto":{"type":"object","properties":{"forwardToValue":{"type":"string","description":"Phone number in the same country to forward calls to, in E.164 format, or null to turn forwarding off","nullable":true,"example":"+12025550143"}}},"UpdatePhoneNumberResultDto":{"type":"object","properties":{"phoneNumberId":{"type":"string","description":"ID of the updated phone number","example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m"}},"required":["phoneNumberId"]},"DeletePhoneNumberResultDto":{"type":"object","properties":{"phoneNumberId":{"type":"string","description":"ID of the released phone number","example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m"}},"required":["phoneNumberId"]},"ComplianceSubmissionDto":{"type":"object","properties":{"id":{"type":"string","description":"Compliance submission ID","example":"csub_01hb8s6t3vwz2ktm5x9nc7wd4p"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Messaging account of the salon","nullable":true,"example":"nac_01hb7r3m8twz5ktv2x9nc4vd6p"},"phoneNumberId":{"type":"string","description":"Phone number being verified","nullable":true,"example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m"},"type":{"type":"string","description":"Kind of registration","enum":["toll_free_verification","10dlc_brand","10dlc_campaign","alpha_sender_registration"],"example":"toll_free_verification"},"providerId":{"type":"string","description":"ID of the registration at the phone provider","example":"HH3f9c2b7e8a4d4f6b9c2e5d7a1b9e0c43"},"status":{"type":"string","description":"Review status. Once `approved`, the phone number becomes active.","enum":["draft","pending_review","in_review","approved","rejected","requires_update"],"example":"pending_review"},"rejectionReason":{"type":"string","description":"Why the registration was rejected","nullable":true,"example":null},"metadata":{"type":"object","description":"Provider details of the registration form","additionalProperties":true,"example":{"inquiryId":"RO3f9c2b7e8a4d4f6b9c2e5d7a1b9e0c43"}},"submittedAt":{"type":"string","description":"When the registration was submitted","nullable":true,"example":"2026-03-02T10:15:00.000Z"},"reviewedAt":{"type":"string","description":"When the review finished","nullable":true,"example":null},"createdAt":{"type":"string","description":"When the submission was created","example":"2026-03-01T18:04:11.000Z"},"updatedAt":{"type":"string","description":"When the submission was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","salonId","accountId","phoneNumberId","type","providerId","status","rejectionReason","metadata","submittedAt","reviewedAt","createdAt","updatedAt"]},"InitializeComplianceDto":{"type":"object","properties":{"phoneNumberId":{"type":"string","description":"Toll-free phone number to verify","example":"phn_01hb7r5s2twz9ktv4x8nc6vd3m"}},"required":["phoneNumberId"]},"InitializeComplianceResultDto":{"type":"object","properties":{"inquiryId":{"type":"string","description":"ID of the registration form at the phone provider","example":"RO3f9c2b7e8a4d4f6b9c2e5d7a1b9e0c43"},"inquirySessionToken":{"type":"string","description":"Token that opens the provider's embedded registration form, valid for 24 hours","example":"eyJhbGciOiJIUzI1NiJ9.eyJpbnF1aXJ5SWQiOiJSTzNmOWMifQ.sgn"},"complianceSubmissionId":{"type":"string","description":"ID of the compliance submission that tracks the review","example":"csub_01hb8s6t3vwz2ktm5x9nc7wd4p"}},"required":["inquiryId","inquirySessionToken","complianceSubmissionId"]},"SmsCountryRequirementDto":{"type":"object","properties":{"type":{"type":"string","description":"`alphanumeric_free`: a sender ID works right away; `alphanumeric_registration`: a sender ID needs registering; `phone_number_required`: messages need a phone number; `not_supported`: SMS can't be sent","enum":["alphanumeric_free","alphanumeric_registration","phone_number_required","not_supported"],"example":"phone_number_required"},"supportedNumberTypes":{"type":"array","description":"Types of phone numbers that work, when a number is required","example":["toll_free","local"],"items":{"type":"string","enum":["toll_free","local","mobile"]}}},"required":["type"]},"NotificationRecipientDto":{"type":"object","properties":{"type":{"type":"string","description":"Type of recipient: `client` or `member`","enum":["client","member"],"example":"client"},"id":{"type":"string","description":"Client ID or member ID","example":"cli_01m82v0d7ge6xtxk2aqj338zs3"}},"required":["type","id"]},"SendNotificationDto":{"type":"object","properties":{"recipient":{"description":"Who receives the message","allOf":[{"$ref":"#/components/schemas/NotificationRecipientDto"}]},"channel":{"type":"string","description":"Channel to send through","enum":["push","email","sms","whatsapp"],"example":"sms"},"subject":{"type":"string","description":"Subject, up to 255 characters. Required for email; the title of push notifications.","maxLength":255,"example":"Your appointment tomorrow"},"content":{"type":"string","description":"Message text, up to 5,000 characters. Required for every channel except WhatsApp.","maxLength":5000,"example":"Hi Jane, we have an opening tomorrow at 2:00 PM if you'd like to come in earlier."},"templateId":{"type":"string","description":"WhatsApp template to send. Required for WhatsApp.","example":"appointment_reminder"},"templateVariables":{"type":"object","description":"Values for the WhatsApp template's numbered placeholders","additionalProperties":{"type":"string"},"example":{"1":"Jane","2":"Your Salon","3":"Mar 15 at 2:00 PM"}}},"required":["recipient","channel"]},"DomainListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/DomainDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateDomainDto":{"type":"object","properties":{"name":{"type":"string","description":"Full domain name you own, such as a subdomain of your website; not under onsoftalon.com","example":"booking.yoursalon.com"}},"required":["name"]},"DeleteDomainResultDto":{"type":"object","properties":{"domainId":{"type":"string","description":"ID of the deleted domain","example":"dom_01h2xcejqtf2nbrexx3vqjhp42"}},"required":["domainId"]},"DomainVerificationDto":{"type":"object","properties":{"id":{"type":"string","description":"Domain ID","example":"dom_01h2xcejqtf2nbrexx3vqjhp42"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Full domain name","example":"booking.yoursalon.com"},"type":{"type":"string","description":"`subdomain` is the salon's free address under onsoftalon.com, `custom` a domain of your own","enum":["subdomain","custom"],"example":"custom"},"status":{"type":"string","description":"`pending` until the DNS records are verified, then `active`","enum":["pending","active"],"example":"active"},"verificationToken":{"type":"string","description":"Value of the TXT record that proves you own the domain; null for subdomains","nullable":true,"example":"8f14e45fceea167a5a36dedd4bea2543"},"verifiedAt":{"type":"string","description":"When the TXT record was verified","nullable":true,"example":"2026-03-14T09:25:00.000Z"},"configuredAt":{"type":"string","description":"When the routing record was found and the domain went live","nullable":true,"example":"2026-03-14T09:30:00.000Z"},"lastCheckedAt":{"type":"string","description":"When the DNS records were last checked","nullable":true,"example":"2026-03-14T09:30:00.000Z"},"dnsRecords":{"description":"DNS records to add at your DNS provider; empty for subdomains","type":"array","items":{"$ref":"#/components/schemas/DomainDnsRecordDto"}},"createdAt":{"type":"string","description":"When the domain was added","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the domain was last changed","example":"2026-03-14T09:30:00.000Z"},"message":{"type":"string","description":"Set when a check was queued; load the domain again in a few seconds","example":"Verification check queued. Please refresh in a few seconds."}},"required":["id","salonId","name","type","status","verificationToken","verifiedAt","configuredAt","lastCheckedAt","dnsRecords","createdAt","updatedAt"]},"DomainConnectDto":{"type":"object","properties":{"isSupported":{"type":"boolean","description":"Whether the DNS provider can set the records for you with Domain Connect","example":true},"providerName":{"type":"string","description":"Name of the DNS provider","example":"GoDaddy"},"applyUrl":{"type":"string","description":"Open this URL to sign in at the DNS provider and approve the records","example":"https://dcc.godaddy.com/manage/v2/domainTemplates/providers/softalon.com/services/subdomain-custom-domain/apply?domain=yoursalon.com&host=booking"},"logoUrl":{"type":"string","description":"Logo of the DNS provider","example":"https://www.google.com/s2/favicons?sz=128&domain=godaddy.com"}},"required":["isSupported"]},"ThemeFileDto":{"type":"object","properties":{"id":{"type":"string","description":"File ID","example":"a3bb189e-8bf9-3888-9912-ace4e6543002"},"themeId":{"type":"string","description":"Theme ID","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"path":{"type":"string","description":"The file's path in the theme: layout.liquid, pages/, components/, styles/, scripts/ or theme.json","example":"pages/index.liquid"},"content":{"type":"string","description":"Content of the file","example":"<h1>{{ brand.name }}</h1>"},"size":{"type":"number","description":"Bytes of the content","example":1024},"createdAt":{"type":"string","description":"When the file was created","example":"2026-11-20T10:00:00.000Z"},"updatedAt":{"type":"string","description":"When the file was last changed","example":"2026-11-21T14:30:00.000Z"}},"required":["id","themeId","path","content","size","createdAt","updatedAt"]},"ThemeDto":{"type":"object","properties":{"id":{"type":"string","description":"Theme ID","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Theme name","example":"My website"},"version":{"type":"number","description":"Goes up with every change. Send it back on updates: a different current version is a conflict (409)","example":3},"size":{"type":"number","description":"Bytes of all files","example":12288},"isPublished":{"type":"boolean","description":"Whether this is the theme the booking site shows (appearance setting customWebsite.themeId)","example":false},"publishedAt":{"type":"string","description":"When it was last published, null for drafts. Published versions (the last 20) cannot be changed; publish one again to restore it","nullable":true,"example":"2026-11-22T10:00:00.000Z"},"errors":{"description":"What keeps the theme from being published: Liquid that does not parse with the booking site's tags and filters, or components it uses but does not have. Drafts can be saved with errors; publishing a theme with errors fails (400 THEME_INVALID)","example":["pages/about.liquid: tag \"iff\" not found, line:3, col:1"],"type":"array","items":{"type":"string"}},"files":{"description":"The theme's files, with expand=files","type":"array","items":{"$ref":"#/components/schemas/ThemeFileDto"}},"createdAt":{"type":"string","description":"When the theme was created","example":"2026-11-20T10:00:00.000Z"},"updatedAt":{"type":"string","description":"When the theme was last changed","example":"2026-11-21T14:30:00.000Z"}},"required":["id","salonId","name","version","size","isPublished","publishedAt","createdAt","updatedAt"]},"ThemeListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ThemeDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"StarterThemeFileDto":{"type":"object","properties":{"path":{"type":"string","description":"The file's path","example":"pages/index.liquid"},"content":{"type":"string","description":"Content of the file","example":"{% native_render 'hero' %}"},"size":{"type":"number","description":"Bytes of the content","example":512}},"required":["path","content","size"]},"StarterThemeDto":{"type":"object","properties":{"name":{"type":"string","description":"Default name for a new theme","example":"My website"},"files":{"description":"Files, by path","type":"array","items":{"$ref":"#/components/schemas/StarterThemeFileDto"}}},"required":["name","files"]},"ThemeFileChangeDto":{"type":"object","properties":{"path":{"type":"string","description":"File path: lowercase letters, numbers, `-`, `_`, folders and `[slug]`, ending in `.liquid`, `.css` or `.js`, `locales/{language}.json` for the theme's texts, or `theme.json`","example":"pages/index.liquid"},"content":{"type":"string","nullable":true,"description":"The file's content; null removes the file","example":"<h1>{{ brand.name }}</h1>"}},"required":["path","content"]},"CreateThemeDto":{"type":"object","properties":{"fromThemeId":{"type":"string","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7","description":"A theme of the salon to copy (its files). Without it, the theme starts empty"},"name":{"type":"string","example":"My website","description":"Theme name, up to 100 characters. Defaults to the copied theme's name with (copy), or My website"},"files":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/ThemeFileChangeDto"}},{"type":"object","additionalProperties":{"type":"string","nullable":true}}],"example":[{"path":"pages/index.liquid","content":"<h1>{{ brand.name }}</h1>"},{"path":"components/old.liquid","content":null}],"description":"The theme's files on top of the copied theme (a new theme starts empty), like an update: `[{ path, content }]` (or an object of contents by path), a string creates or replaces a file, null removes it. A theme holds only the files that replace parts of the standard booking site"}}},"UpdateThemeDto":{"type":"object","properties":{"name":{"type":"string","description":"Theme name, up to 100 characters","example":"My website"},"files":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/ThemeFileChangeDto"}},{"type":"object","additionalProperties":{"type":"string","nullable":true}}],"example":[{"path":"pages/index.liquid","content":"<h1>{{ brand.name }}</h1>"},{"path":"components/old.liquid","content":null}],"description":"Only the changed files, as `[{ path, content }]` (or an object of contents by path). A string creates or replaces a file, null removes it"},"version":{"type":"number","example":3,"description":"The theme's version the change is based on. A different current version is a conflict (409)"}},"required":["version"]},"DeleteThemeResultDto":{"type":"object","properties":{"themeId":{"type":"string","description":"ID of the deleted theme","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"}},"required":["themeId"]},"CreateThemeAssetDto":{"type":"object","properties":{"fileId":{"type":"string","example":"file_01h2xcejqtf2nbrexx3vqjhp46","description":"An image or a video (MP4, WebM or MOV) uploaded with POST /salons/{salonId}/files and the purpose \"theme\""},"name":{"type":"string","example":"hero","description":"The asset's name without its extension, which comes from the file. Defaults to the file's name. A taken name gets a number: hero.jpg, hero-1.jpg, …"}},"required":["fileId"]},"ThemeSettingsFileDto":{"type":"object","properties":{"path":{"type":"string","description":"The file's path","example":"theme.json"},"content":{"type":"string","description":"The theme's theme.json after the change","example":"{\n    \"tokens\": \"salon\",\n    \"assets\": {\n        \"hero.jpg\": \"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.jpg\"\n    }\n}\n"}},"required":["path","content"]},"ThemeAssetDto":{"type":"object","properties":{"name":{"type":"string","description":"The asset's name. Use it in pages with {{ 'hero.jpg' | asset_url }}","example":"hero.jpg"},"url":{"type":"string","description":"URL of the file","example":"https://storage.softalon.com/files/file_01h2xcejqtf2nbrexx3vqjhp46.jpg"},"fileId":{"type":"string","description":"ID of the uploaded file","example":"file_01h2xcejqtf2nbrexx3vqjhp46"},"themeId":{"type":"string","description":"Theme ID","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"version":{"type":"number","description":"The theme's new version, for the next update","example":4},"file":{"description":"The theme's theme.json after the change","allOf":[{"$ref":"#/components/schemas/ThemeSettingsFileDto"}]}},"required":["name","url","fileId","themeId","version","file"]},"DeleteThemeAssetResultDto":{"type":"object","properties":{"name":{"type":"string","description":"Name of the removed asset","example":"hero.jpg"},"themeId":{"type":"string","description":"Theme ID","example":"7c9e6679-7425-40de-944b-e07fc1f90ae7"},"version":{"type":"number","description":"The theme's new version, for the next update","example":5},"file":{"description":"The theme's theme.json after the change","allOf":[{"$ref":"#/components/schemas/ThemeSettingsFileDto"}]}},"required":["name","themeId","version","file"]},"ResponseExampleDto":{"type":"object","properties":{"id":{"type":"string","description":"Response example ID","example":"954e87af-762b-4d5c-b3d7-fc399c236af6"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"messageId":{"type":"string","description":"The assistant message that was corrected","nullable":true,"example":"msg_01m82v0d7ge6xtxk21ct54g8kw"},"clientMessage":{"type":"string","description":"What the client asked","example":"Do you have parking?"},"originalResponse":{"type":"string","description":"The assistant's reply","example":"Yes, we have parking available."},"correctedResponse":{"type":"string","description":"The better reply, used as an example; `null` when only the lesson is kept","nullable":true,"example":"Yes! Free parking is right behind the building."},"lesson":{"type":"string","description":"What the assistant should do differently","example":"Mention that parking is free and where it is."},"isActive":{"type":"boolean","description":"Whether the assistant uses it","example":true},"createdAt":{"type":"string","description":"When the response example was created","example":"2026-04-28T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the response example was last changed","example":"2026-04-28T09:30:00.000Z"}},"required":["id","salonId","messageId","clientMessage","originalResponse","correctedResponse","lesson","isActive","createdAt","updatedAt"]},"ResponseExampleListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ResponseExampleDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PrepareResponseExampleDto":{"type":"object","properties":{"messageId":{"type":"string","description":"The assistant's text reply to correct","example":"msg_01m82v0d7ge6xtxk21ct54g8kw"},"correctedResponse":{"type":"string","description":"How the assistant should have replied, up to 2,000 characters","example":"Yes! Free parking is right behind the building."}},"required":["messageId","correctedResponse"]},"PreparedKnowledgeBaseEditDto":{"type":"object","properties":{"original":{"type":"string","description":"Passage of the current knowledge base to replace; `null` to add the text at the end","nullable":true,"example":"Parking is available on the street."},"updated":{"type":"string","description":"The new text","example":"Free parking is available behind the building."}},"required":["original","updated"]},"ReplacedResponseExampleDto":{"type":"object","properties":{"id":{"type":"string","description":"Response example ID","example":"954e87af-762b-4d5c-b3d7-fc399c236af6"},"lesson":{"type":"string","description":"Its lesson","example":"Keep replies short and formal."}},"required":["id","lesson"]},"PreparedResponseExampleDto":{"type":"object","properties":{"clientMessage":{"type":"string","description":"What the client asked","example":"Do you have parking?"},"originalResponse":{"type":"string","description":"The assistant's reply","example":"Yes, we have parking available."},"correctedResponse":{"type":"string","description":"The corrected reply to keep as an example; `null` when it has system data or knowledge base facts, so only the lesson is kept","nullable":true,"example":"Yes! Free parking is right behind the building."},"lesson":{"type":"string","description":"Tone, length or phrasing lesson; `null` when the correction has none","nullable":true,"example":"Mention that parking is free and where it is."},"knowledgeBase":{"description":"Fact suggested for the salon's knowledge base","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PreparedKnowledgeBaseEditDto"}]},"hasSystemData":{"type":"boolean","description":"Whether the correction changes data that comes from the salon's settings (times, prices, services, schedules, hours) or the booking flow, which a correction can't change","example":false},"assistantConflict":{"type":"string","description":"Why the lesson contradicts the AI Receptionist's settings; `null` when it doesn't","nullable":true,"example":null},"replacedResponseExamples":{"description":"Existing response examples the new one duplicates or contradicts; send their IDs as `replacedResponseExampleIds` to replace them","type":"array","items":{"$ref":"#/components/schemas/ReplacedResponseExampleDto"}}},"required":["clientMessage","originalResponse","correctedResponse","lesson","knowledgeBase","hasSystemData","assistantConflict","replacedResponseExamples"]},"CreateResponseExampleDto":{"type":"object","properties":{"messageId":{"type":"string","description":"The assistant's text reply that was corrected","example":"msg_01m82v0d7ge6xtxk21ct54g8kw"},"replacedResponseExampleIds":{"description":"Existing response examples to delete in favor of this one, e.g. the `replacedResponseExamples` of the prepared correction","example":["954e87af-762b-4d5c-b3d7-fc399c236af6"],"type":"array","items":{"type":"string"}},"clientMessage":{"type":"string","description":"What the client asked, up to 1,000 characters","example":"Do you have parking?"},"correctedResponse":{"type":"string","description":"The better reply to use as an example, up to 2,000 characters; `null` to keep only the lesson","nullable":true,"example":"Yes! Free parking is right behind the building."},"lesson":{"type":"string","description":"What the assistant should do differently, up to 500 characters","example":"Mention that parking is free and where it is."}},"required":["messageId","clientMessage","lesson"]},"UpdateResponseExampleDto":{"type":"object","properties":{"correctedResponse":{"type":"string","description":"The better reply, up to 2,000 characters. Only for response examples saved with one","example":"Yes! Free parking is right behind the building."},"lesson":{"type":"string","description":"What the assistant should do differently, up to 500 characters","example":"Mention that parking is free and where it is."},"isActive":{"type":"boolean","description":"Whether the assistant uses it","example":false}}},"ResponseExampleResultDto":{"type":"object","properties":{"responseExampleId":{"type":"string","description":"Response example ID","example":"954e87af-762b-4d5c-b3d7-fc399c236af6"}},"required":["responseExampleId"]},"KnowledgeSourceDto":{"type":"object","properties":{"id":{"type":"string","description":"Knowledge source ID","example":"0b475ee6-9c1f-46ac-976a-ddf47215bd1f"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"url":{"type":"string","description":"The link: a web page or an `llms.txt` file, whose linked pages are read too","example":"https://yoursalon.com/llms.txt"},"title":{"type":"string","description":"Title of the page","nullable":true,"example":"Your Salon"},"status":{"type":"string","description":"Sync status","enum":["pending","syncing","synced","failed"],"example":"synced"},"pageCount":{"type":"number","description":"Pages read on the last sync","example":12},"error":{"type":"string","description":"Why the last sync failed","nullable":true,"example":null},"lastSyncedAt":{"type":"string","description":"When the link was last synced","nullable":true,"example":"2026-04-28T09:31:12.000Z"},"createdAt":{"type":"string","description":"When the link was added","example":"2026-04-28T09:30:00.000Z"},"updatedAt":{"type":"string","description":"When the link was last changed","example":"2026-04-28T09:31:12.000Z"}},"required":["id","salonId","url","title","status","pageCount","error","lastSyncedAt","createdAt","updatedAt"]},"KnowledgeSourceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/KnowledgeSourceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateKnowledgeSourceDto":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) link to a web page or an `llms.txt` file, up to 2,048 characters","example":"https://yoursalon.com/llms.txt"}},"required":["url"]},"KnowledgeSourceResultDto":{"type":"object","properties":{"knowledgeSourceId":{"type":"string","description":"Knowledge source ID","example":"0b475ee6-9c1f-46ac-976a-ddf47215bd1f"}},"required":["knowledgeSourceId"]},"ConversationContactDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","nullable":true,"example":"Jane"},"lastName":{"type":"string","description":"Last name","nullable":true,"example":"Cooper"},"avatar":{"type":"string","description":"Profile picture URL","nullable":true,"example":null},"emailAddress":{"type":"string","description":"Email address","nullable":true,"example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","nullable":true,"example":"+12025550143"},"customFields":{"type":"object","description":"Extra details about the contact, by key","additionalProperties":true,"example":{}}},"required":["firstName","lastName","avatar","emailAddress","phoneNumber","customFields"]},"MessageSenderDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"avatar":{"type":"string","description":"Profile picture URL","nullable":true,"example":"https://storage.softalon.com/avatars/mbr_01h8m2k4qwz7ftv9r3n5ycxd6b.jpg"},"role":{"type":"string","description":"The member's role or display role in the salon","example":"Senior Stylist"}},"required":["firstName","lastName","avatar","role"]},"MessageDto":{"type":"object","properties":{"id":{"type":"string","description":"Message ID","example":"msg_01m82v0d7ge6xtxk21ct54g8kw"},"externalId":{"type":"string","description":"ID of the message on the channel, e.g. WhatsApp","nullable":true,"example":"wamid.HBgLMTIwMjU1NTAxNDMVAgARGBI5QTNDQTVCM0E0RjU2QTk4MQA="},"conversationId":{"type":"string","description":"Conversation ID","example":"conv_01m82v0d7eez5tqhjfd20mpyns"},"type":{"type":"string","description":"`regular` messages go to the client; `note` messages stay in the inbox for the team","enum":["regular","note"],"example":"regular"},"role":{"type":"string","description":"Who wrote it: the `client`, the AI Receptionist (`assistant`), a `member` of the salon, or `system` for changes in the conversation","enum":["system","client","assistant","member"],"example":"client"},"quality":{"type":"string","description":"AI model quality of an assistant message","enum":["standard","enhanced"],"example":"standard"},"sender":{"description":"The member who wrote the message by hand","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/MessageSenderDto"}]},"contentType":{"type":"string","description":"Kind of content","enum":["text","image","video","audio","file"],"example":"text"},"content":{"type":"string","description":"Text of the message, or the file URL for images, videos, audio and files","example":"Hi! Do you have anything open for a balayage on Friday?"},"metadata":{"type":"object","description":"Extra details, e.g. `image`/`audio` details (caption, transcript), `isNudge` for follow-ups, `isWorkflow` for messages sent by automations","additionalProperties":true,"example":{}},"createdAt":{"type":"string","description":"When the message was created","example":"2026-04-28T09:14:02.000Z"},"updatedAt":{"type":"string","description":"When the message was last changed","example":"2026-04-28T09:14:02.000Z"}},"required":["id","externalId","conversationId","type","role","quality","sender","contentType","content","metadata","createdAt","updatedAt"]},"ConversationDto":{"type":"object","properties":{"id":{"type":"string","description":"Conversation ID","example":"conv_01m82v0d7eez5tqhjfd20mpyns"},"externalId":{"type":"string","description":"ID of the chat on the channel, e.g. the WhatsApp phone number; for web chat, the session ID","nullable":true,"example":"12025550143"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"channel":{"type":"string","description":"Where the conversation happens; `messenger` includes Instagram, `live_chat` is the chat on the booking site","enum":["live_chat","whatsapp","messenger","telegram","twilio","bluebridge","email"],"example":"whatsapp"},"type":{"type":"string","description":"Kind of conversation","enum":["message","comment","call"],"example":"message"},"contact":{"description":"Who the salon is talking to","allOf":[{"$ref":"#/components/schemas/ConversationContactDto"}]},"clientId":{"type":"string","description":"The salon's client this conversation belongs to","nullable":true,"example":"cli_01m82v0d7ge6xtxk2aqj338zs3"},"status":{"type":"string","description":"`needs_attention` when the team should step in; `resolved` conversations go back to `in_progress` with the next message","enum":["in_progress","resolved","needs_attention"],"example":"in_progress"},"typingExpiresAt":{"type":"string","description":"Until when the client sees that the salon is typing, in the booking site chat","nullable":true,"example":null},"latestMessageId":{"type":"string","description":"ID of the newest message","nullable":true,"example":"msg_01m82v0d7ge6xtxk21ct54g8kw"},"latestMessage":{"description":"The newest message. With `expand=latestMessage`, and on the list when it uses the default order","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/MessageDto"}]},"messages":{"description":"All messages. Only with `expand=messages`","type":"array","items":{"$ref":"#/components/schemas/MessageDto"}},"isAssistantActive":{"type":"boolean","description":"Whether the AI Receptionist replies in this conversation; it turns off when the salon replies from the channel's own app","example":true},"memory":{"type":"string","description":"What the AI Receptionist remembers about the client, such as preferences","nullable":true,"example":"Prefers appointments with Emily on Saturday mornings."},"appointmentIds":{"description":"Appointments booked in this conversation","example":["appt_01m82v0d7ge6xtxk2pvc3bjabd"],"type":"array","items":{"type":"string"}},"state":{"type":"object","description":"Where the AI Receptionist is in a booking: the picked location, service, member, date and time","additionalProperties":true,"example":{"action":"book","serviceId":"serv_01h2xcejqtf2nbrexx3vqjhp41","selectedDate":"2026-05-01"}},"metadata":{"type":"object","description":"Channel details used to reply","additionalProperties":true,"example":{}},"createdAt":{"type":"string","description":"When the conversation started","example":"2026-04-28T09:14:02.000Z"},"updatedAt":{"type":"string","description":"When the conversation was last changed","example":"2026-04-28T09:15:40.000Z"}},"required":["id","externalId","salonId","channel","type","contact","clientId","status","typingExpiresAt","latestMessageId","isAssistantActive","memory","appointmentIds","state","metadata","createdAt","updatedAt"]},"ConversationListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ConversationDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"ConversationResultDto":{"type":"object","properties":{"conversationId":{"type":"string","description":"Conversation ID","example":"conv_01m82v0d7eez5tqhjfd20mpyns"}},"required":["conversationId"]},"SuggestedReplyDto":{"type":"object","properties":{"content":{"type":"string","description":"The suggested reply; nothing is sent","example":"Hi Jane! Emily has Friday at 10:00 AM or 2:30 PM open for a balayage. Which works better for you?"}},"required":["content"]},"UpdateConversationDto":{"type":"object","properties":{"contact":{"description":"Contact details; the fields sent are merged into the current ones","allOf":[{"$ref":"#/components/schemas/ConversationContactDto"}]},"status":{"type":"string","description":"Status","enum":["in_progress","resolved","needs_attention"],"example":"resolved"},"isAssistantActive":{"type":"boolean","description":"Whether the AI Receptionist replies in this conversation","example":false}}},"MessageListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/MessageDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateMessageDto":{"type":"object","properties":{"type":{"type":"string","description":"`regular` sends the message to the client; `note` keeps it in the inbox for the team","enum":["regular","note"],"default":"regular","example":"regular"},"content":{"type":"string","description":"Text of the message","example":"Hi Jane! Friday at 10:00 AM works. Should I book it for you?"}},"required":["content"]},"TimeOffListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/TimeOffDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateTimeOffDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Summer vacation"},"description":{"type":"string","description":"Details","example":"Back on July 15"},"type":{"type":"string","description":"Kind of time off","enum":["vacation","sick","personal","occasion","other"],"example":"vacation"},"startAt":{"type":"string","description":"Start, as an ISO 8601 date and time","example":"2026-07-01T00:00:00Z"},"endAt":{"type":"string","description":"End, as an ISO 8601 date and time","example":"2026-07-14T23:59:59Z"}},"required":["name","type","startAt","endAt"]},"UpdateTimeOffDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Summer vacation"},"description":{"type":"string","description":"Details","example":"Back on July 15"},"type":{"type":"string","description":"Kind of time off","enum":["vacation","sick","personal","occasion","other"],"example":"vacation"},"startAt":{"type":"string","description":"Start, as an ISO 8601 date and time","example":"2026-07-01T00:00:00Z"},"endAt":{"type":"string","description":"End, as an ISO 8601 date and time","example":"2026-07-14T23:59:59Z"}}},"UpdateTimeOffResultDto":{"type":"object","properties":{"timeOffId":{"type":"string","description":"The updated time off's ID","example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e"}},"required":["timeOffId"]},"DeleteTimeOffResultDto":{"type":"object","properties":{"timeOffId":{"type":"string","description":"The deleted time off's ID","example":"tof_01ha3d8nr2yw5mtp9x4scz7g6e"}},"required":["timeOffId"]},"SpecialDayListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/SpecialDayDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"SpecialDayPeriodInputDto":{"type":"object","properties":{"startTime":{"type":"string","description":"Start, as HH:mm in the salon's time zone","example":"10:00"},"endTime":{"type":"string","description":"End, as HH:mm in the salon's time zone","example":"14:00"}},"required":["startTime","endTime"]},"CreateSpecialDayDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location the hours apply to; the member must be assigned to it","example":"loc_01h455vb4pex5vsknk084sn02q"},"date":{"type":"string","description":"Local date in the salon's time zone, as YYYY-MM-DD; today or later","example":"2026-07-04"},"isActive":{"type":"boolean","description":"Whether the member works on this date; `false` makes it a day off","example":true},"periods":{"description":"Working periods on this date; ignored on a day off","type":"array","items":{"$ref":"#/components/schemas/SpecialDayPeriodInputDto"}},"note":{"type":"string","description":"Internal note, up to 255 characters","example":"Trade fair"}},"required":["locationId","date","isActive","periods"]},"CreateBulkSpecialDayDto":{"type":"object","properties":{"locationId":{"type":"string","description":"Location the hours apply to; the member must be assigned to it","example":"loc_01h455vb4pex5vsknk084sn02q"},"dates":{"description":"1 to 31 different local dates in the salon's time zone, as YYYY-MM-DD; today or later. Existing special days on these dates are replaced","example":["2026-07-04","2026-07-11"],"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean","description":"Whether the member works on these dates; `false` makes them days off","example":true},"periods":{"description":"Working periods on these dates; ignored on days off","type":"array","items":{"$ref":"#/components/schemas/SpecialDayPeriodInputDto"}},"note":{"type":"string","description":"Internal note, up to 255 characters","example":"Trade fair"}},"required":["locationId","dates","isActive","periods"]},"SpecialDayBulkErrorDto":{"type":"object","properties":{"index":{"type":"number","description":"Position of the date in the request's `dates`","example":0},"error":{"type":"object","description":"Why the date was not saved","additionalProperties":true,"example":{"message":"Special days cannot be set for past dates.","error":"SPECIAL_DAY_DATE_IN_PAST","statusCode":400}}},"required":["index","error"]},"CreateBulkSpecialDaysResultDto":{"type":"object","properties":{"successful":{"description":"The special days that were saved","type":"array","items":{"$ref":"#/components/schemas/SpecialDayDto"}},"failed":{"description":"The dates that were not saved, with the reason","type":"array","items":{"$ref":"#/components/schemas/SpecialDayBulkErrorDto"}}},"required":["successful","failed"]},"UpdateSpecialDayDto":{"type":"object","properties":{"isActive":{"type":"boolean","description":"Whether the member works on this date; `false` makes it a day off","example":true},"periods":{"description":"Working periods on this date; at least one when the member works","type":"array","items":{"$ref":"#/components/schemas/SpecialDayPeriodInputDto"}},"note":{"type":"string","description":"Internal note, up to 255 characters","example":"Trade fair"}}},"UpdateSpecialDayResultDto":{"type":"object","properties":{"specialDayId":{"type":"string","description":"The updated special day's ID","example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d"}},"required":["specialDayId"]},"DeleteSpecialDayResultDto":{"type":"object","properties":{"specialDayId":{"type":"string","description":"The deleted special day's ID","example":"spd_01ha2c7mq9xv4ktn8w3rbz6f5d"}},"required":["specialDayId"]},"BlockedTimeListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/BlockedTimeDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateBlockedTimeDto":{"type":"object","properties":{"memberId":{"type":"string","description":"Member who can't be booked; leave it out to block the whole salon. Members without the Manage Members permission always block their own time.","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"name":{"type":"string","description":"Name","example":"Lunch break"},"description":{"type":"string","description":"Details","example":"Back at 1 PM"},"type":{"type":"string","description":"Kind of blocked time; `calendar` can't be used here","enum":["calendar","break","training","maintenance","personal","other"],"example":"break"},"startAt":{"type":"string","description":"Start, as an ISO 8601 date-time","example":"2026-12-04T17:00:00.000Z"},"endAt":{"type":"string","description":"End, as an ISO 8601 date-time","example":"2026-12-04T18:00:00.000Z"}},"required":["name","type","startAt","endAt"]},"UpdateBlockedTimeDto":{"type":"object","properties":{"memberId":{"type":"string","description":"Member who can't be booked; assigning another member needs the Manage Members permission","example":"mbr_01h8m2k4qwz7ftv9r3n5ycxd6b"},"name":{"type":"string","description":"Name","example":"Lunch break"},"description":{"type":"string","description":"Details","example":"Back at 1 PM"},"type":{"type":"string","description":"Kind of blocked time","enum":["calendar","break","training","maintenance","personal","other"],"example":"training"},"startAt":{"type":"string","description":"Start, as an ISO 8601 date-time","example":"2026-12-04T17:00:00.000Z"},"endAt":{"type":"string","description":"End, as an ISO 8601 date-time","example":"2026-12-04T18:30:00.000Z"}}},"UpdateBlockedTimeResultDto":{"type":"object","properties":{"blockedTimeId":{"type":"string","description":"The updated blocked time's ID","example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f"}},"required":["blockedTimeId"]},"DeleteBlockedTimeResultDto":{"type":"object","properties":{"blockedTimeId":{"type":"string","description":"The deleted blocked time's ID","example":"btm_01hb8c2k7qwx4mtv9r3n5ysd6f"}},"required":["blockedTimeId"]},"MemberCalendarDto":{"type":"object","properties":{"id":{"type":"string","description":"Calendar ID: the provider's calendar ID when members view their own calendars, otherwise the Softalon calendar ID","example":"jane@yoursalon.com"},"integrationId":{"type":"string","description":"Integration the calendar comes from","enum":["google-calendar","office365-calendar"],"example":"google-calendar"},"connectionId":{"type":"string","description":"Integration connection the calendar belongs to","example":"conn_01h9z2m5qc8xr4vt7w3kbn6fd2"},"name":{"type":"string","description":"Calendar name","example":"Work"},"connectionName":{"type":"string","description":"Name of the connection, usually the account's email address","example":"jane@yoursalon.com"},"isActive":{"type":"boolean","description":"Whether the calendar is selected","example":true}},"required":["id","integrationId","connectionId","name","connectionName","isActive"]},"MemberCalendarsDto":{"type":"object","properties":{"source":{"description":"Calendars whose events block the member's time in Softalon","type":"array","items":{"$ref":"#/components/schemas/MemberCalendarDto"}},"destination":{"description":"Calendar the member's appointments are copied to","type":"array","items":{"$ref":"#/components/schemas/MemberCalendarDto"}}},"required":["source","destination"]},"CalendarSelectionDto":{"type":"object","properties":{"id":{"type":"string","description":"The calendar's ID at the provider","example":"jane@yoursalon.com"},"integrationId":{"type":"string","description":"Integration the calendar comes from","example":"google-calendar"},"connectionId":{"type":"string","description":"Integration connection the calendar belongs to","example":"conn_01h9z2m5qc8xr4vt7w3kbn6fd2"}},"required":["id","integrationId","connectionId"]},"UpdateCalendarDto":{"type":"object","properties":{"source":{"description":"Up to 5 calendars whose events block the member's time in Softalon","type":"array","items":{"$ref":"#/components/schemas/CalendarSelectionDto"}},"destination":{"description":"At most 1 calendar that the member's appointments are copied to","type":"array","items":{"$ref":"#/components/schemas/CalendarSelectionDto"}}},"required":["source","destination"]},"UpdateMemberCalendarsResultDto":{"type":"object","properties":{"source":{"description":"IDs of the selected source calendars","example":["jane@yoursalon.com"],"type":"array","items":{"type":"string"}},"destination":{"description":"ID of the selected destination calendar","example":["jane@yoursalon.com"],"type":"array","items":{"type":"string"}}},"required":["source","destination"]},"SyncMemberCalendarsResultDto":{"type":"object","properties":{"calendarIds":{"description":"IDs of the calendars that were synced","example":["cal_01ha4e9ps3zx6nvq2y5tdz8h7f"],"type":"array","items":{"type":"string"}}},"required":["calendarIds"]},"RefreshMemberCalendarsResultDto":{"type":"object","properties":{"calendarIds":{"description":"IDs of the calendars whose subscriptions were renewed","example":["cal_01ha4e9ps3zx6nvq2y5tdz8h7f"],"type":"array","items":{"type":"string"}}},"required":["calendarIds"]},"ClosedPeriodListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/ClosedPeriodDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreateClosedPeriodDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Christmas"},"description":{"type":"string","description":"Details","example":"We're back on December 27."},"type":{"type":"string","description":"Kind of closure","enum":["holiday","maintenance","staff_training","private_event","other"],"example":"holiday"},"startAt":{"type":"string","description":"Start, as an ISO 8601 date-time","example":"2026-12-24T00:00:00-05:00"},"endAt":{"type":"string","description":"End, as an ISO 8601 date-time","example":"2026-12-26T23:59:59-05:00"}},"required":["name","type","startAt","endAt"]},"UpdateClosedPeriodDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Christmas"},"description":{"type":"string","description":"Details","example":"We're back on December 28."},"type":{"type":"string","description":"Kind of closure","enum":["holiday","maintenance","staff_training","private_event","other"],"example":"holiday"},"startAt":{"type":"string","description":"Start, as an ISO 8601 date-time","example":"2026-12-24T00:00:00-05:00"},"endAt":{"type":"string","description":"End, as an ISO 8601 date-time","example":"2026-12-27T23:59:59-05:00"}}},"UpdateClosedPeriodResultDto":{"type":"object","properties":{"closedPeriodId":{"type":"string","description":"The updated closed period's ID","example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g"}},"required":["closedPeriodId"]},"DeleteClosedPeriodResultDto":{"type":"object","properties":{"closedPeriodId":{"type":"string","description":"The deleted closed period's ID","example":"cpd_01hb8d4m2nqx7ktv5w9r3fyc8g"}},"required":["closedPeriodId"]},"CreateChatSessionDto":{"type":"object","properties":{"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address","example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","example":"+12025550143"}},"required":["firstName","lastName"]},"ConversationSessionDto":{"type":"object","properties":{"id":{"type":"string","description":"Session ID, used in the session's message routes","example":"convs_01m82v0d7ge6xtxk26npjvg5jp"},"salonId":{"type":"string","description":"Salon ID","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"firstName":{"type":"string","description":"First name","example":"Jane"},"lastName":{"type":"string","description":"Last name","example":"Cooper"},"emailAddress":{"type":"string","description":"Email address","nullable":true,"example":"jane@yoursalon.com"},"phoneNumber":{"type":"string","description":"Phone number in E.164 format","nullable":true,"example":"+12025550143"},"ipAddress":{"type":"string","description":"IP address the session was created from","example":"203.0.113.42"},"userAgent":{"type":"string","description":"Browser the session was created from","example":"Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15"},"conversationId":{"type":"string","description":"The conversation, created with the session's first message","nullable":true,"example":null},"createdAt":{"type":"string","description":"When the session was created","example":"2026-04-28T09:13:55.000Z"},"updatedAt":{"type":"string","description":"When the session was last changed","example":"2026-04-28T09:13:55.000Z"}},"required":["id","salonId","firstName","lastName","emailAddress","phoneNumber","ipAddress","userAgent","conversationId","createdAt","updatedAt"]},"CreateActionLinkDto":{"type":"object","properties":{"action":{"type":"string","description":"What the link lets the client do: `confirm`, `update`, `reschedule`, `cancel`, `manage` (reschedule or cancel) or `review` an appointment, `invoice` or `payment` to view or pay an invoice, or join a video `meeting`","enum":["confirm","update","reschedule","cancel","review","invoice","meeting","manage","payment"],"example":"confirm"},"resourceId":{"type":"string","description":"ID of what the action is for: the appointment; the invoice for `invoice` and `payment`; the meeting, appointment or member for `meeting`","example":"appt_01h2xcejqtf2nbrexx3vqjhp4a"}},"required":["action","resourceId"]},"ActionLinkDto":{"type":"object","properties":{"link":{"type":"string","description":"The link to send to the client: a short link, or the full booking site link when shortening is not available","example":"https://yoursalon.link/b7Xk2p"},"token":{"type":"string","description":"Signed token in the link; the booking site opens it at /a/{token}","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzYWxvbklkIjoic2FsXzAxaDJ4Y2VqcXRmMm5icmV4eDN2cWpocDQxIiwiYWN0aW9uIjoiY29uZmlybSJ9.4Xq2p9"}},"required":["link","token"]},"FileDto":{"type":"object","properties":{"id":{"type":"string","description":"File ID","example":"file_01h2xcejqtf2nbrexx3vqjhp41"},"accountId":{"type":"string","description":"Account that owns the file, for account files","nullable":true,"example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"salonId":{"type":"string","description":"Salon that owns the file, for salon files","nullable":true,"example":null},"url":{"type":"string","description":"Public URL of the file; use it wherever a field takes an uploaded file, such as `avatar`","example":"https://storage.softalon.com/file_01h2xcejqtf2nbrexx3vqjhp41"},"originalName":{"type":"string","description":"File name it was uploaded with","example":"jane-cooper.jpg"},"mimeType":{"type":"string","description":"MIME type","example":"image/jpeg"},"sizeBytes":{"type":"number","description":"Size in bytes","example":248320},"purpose":{"type":"string","description":"What the file is for: `general` for uploads, `billing` for invoices, `theme` for custom website assets","enum":["general","billing","theme"],"nullable":true,"example":"general"},"metadata":{"type":"object","description":"Extra details","additionalProperties":true,"example":{}},"createdAt":{"type":"string","description":"When the file was uploaded","example":"2026-03-14T09:21:07.000Z"},"updatedAt":{"type":"string","description":"When the file was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","accountId","salonId","url","originalName","mimeType","sizeBytes","purpose","metadata","createdAt","updatedAt"]},"FileListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/FileDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"ImportFileDto":{"type":"object","properties":{"url":{"type":"string","description":"Public HTTP or HTTPS link to the file, with a domain name. Redirects are followed","example":"https://www.yoursalon.com/images/balayage.jpg"},"purpose":{"type":"string","enum":["general","theme"],"default":"general","description":"What the file is for: `general`, or `theme` for custom website assets"}},"required":["url"]},"DeleteFileResultDto":{"type":"object","properties":{"id":{"type":"string","description":"ID of the deleted file","example":"file_01h2xcejqtf2nbrexx3vqjhp41"}},"required":["id"]},"BillingPlanDto":{"type":"object","properties":{"id":{"type":"string","description":"Plan ID","example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea"},"name":{"type":"string","description":"Plan name","example":"Pro"},"description":{"type":"string","description":"Plan description","example":"Everything a growing salon needs"},"features":{"type":"object","description":"What to show about the plan, e.g. its feature bullets","additionalProperties":true,"example":{"bullets":["aiReceptionist","onlineBooking","customDomain"]}},"trialPeriodDuration":{"type":"number","description":"Length of the free trial, in `trialPeriodDurationUnit`","example":14},"trialPeriodDurationUnit":{"type":"string","description":"Unit of the trial length","enum":["day","month","year"],"example":"day"},"entitlements":{"type":"object","description":"What the plan includes: limits (e.g. `limits.maxMembers`) and features (e.g. `features.customDomain`)","additionalProperties":true,"example":{"limits.maxMembers":10,"limits.maxLocations":3,"limits.creditsPerMonth":500,"features.customDomain":true,"features.conversations":true,"features.apiAccess":true}},"isActive":{"type":"boolean","description":"Whether new subscriptions can use the plan","example":true},"prices":{"description":"The plan's active prices, e.g. monthly and yearly; included when getting plans","type":"array","items":{"$ref":"#/components/schemas/BillingPriceDto"}},"createdAt":{"type":"string","description":"When the plan was created","example":"2026-01-15T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the plan was last changed","example":"2026-01-15T09:00:00.000Z"}},"required":["id","name","description","features","trialPeriodDuration","trialPeriodDurationUnit","entitlements","isActive","createdAt","updatedAt"]},"BillingPriceDto":{"type":"object","properties":{"id":{"type":"string","description":"Price ID","example":"bprice_01h7r4k8n2qf5tvw9m3bxcd7eb"},"planId":{"type":"string","description":"ID of the plan the price belongs to","nullable":true,"example":"bplan_01h7r4k2m9qf5tvw8n3bxcd6ea"},"productId":{"type":"string","description":"ID of the product the price belongs to","nullable":true,"example":null},"minQuantity":{"type":"number","description":"Smallest quantity the price applies to","nullable":true,"example":null},"maxQuantity":{"type":"number","description":"Largest quantity the price applies to","nullable":true,"example":null},"value":{"type":"number","description":"Price per billing interval, or per purchase for a product","example":99},"discountedValue":{"type":"number","description":"Discounted price that is charged instead of `value`","nullable":true,"example":null},"interval":{"type":"number","description":"Length of the billing interval, in `intervalUnit`; `null` for products","nullable":true,"example":1},"intervalUnit":{"type":"string","description":"Unit of the billing interval; `null` for products","enum":["day","month","year"],"nullable":true,"example":"month"},"currency":{"type":"string","description":"Three-letter currency code","example":"USD"},"isActive":{"type":"boolean","description":"Whether the price can be bought","example":true},"plan":{"description":"The plan, with `expand=plan` (always included when getting a single price)","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/BillingPlanDto"}]},"product":{"description":"The product, with `expand=product` (always included when getting a single price)","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/BillingProductDto"}]},"createdAt":{"type":"string","description":"When the price was created","example":"2026-01-15T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the price was last changed","example":"2026-01-15T09:00:00.000Z"}},"required":["id","planId","productId","minQuantity","maxQuantity","value","discountedValue","interval","intervalUnit","currency","isActive","createdAt","updatedAt"]},"BillingProductDto":{"type":"object","properties":{"id":{"type":"string","description":"Product ID","example":"bprod_01h9t6n4p8qf3tvw7m2bxcd5gk"},"name":{"type":"string","description":"Product name","example":"500 Credits"},"description":{"type":"string","description":"Product description","example":"Credits for SMS, WhatsApp and the AI Receptionist"},"type":{"type":"string","description":"Product type","enum":["credits"],"example":"credits"},"credits":{"type":"number","description":"Credits the product adds, for `credits` products","nullable":true,"example":500},"isActive":{"type":"boolean","description":"Whether the product can be bought","example":true},"prices":{"description":"The product's active prices; included when getting products","type":"array","items":{"$ref":"#/components/schemas/BillingPriceDto"}},"createdAt":{"type":"string","description":"When the product was created","example":"2026-01-15T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the product was last changed","example":"2026-01-15T09:00:00.000Z"}},"required":["id","name","description","type","credits","isActive","createdAt","updatedAt"]},"BillingProductListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/BillingProductDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"BillingPlanListMetadataDto":{"type":"object","properties":{"page":{"type":"number","description":"Current page, starting at 1","example":1},"perPage":{"type":"number","description":"Items per page","example":10},"total":{"type":"number","description":"Number of items that match the filters, on all pages","example":50},"isTrialEligible":{"type":"boolean","description":"Whether the salon given in `salonId` can still start a free trial; always `true` without `salonId`","example":true}},"required":["page","perPage","total","isTrialEligible"]},"BillingPlanListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/BillingPlanDto"}},"metadata":{"description":"Page and total, the filters of the request and trial eligibility","allOf":[{"$ref":"#/components/schemas/BillingPlanListMetadataDto"}]}},"required":["data","metadata"]},"BillingPriceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/BillingPriceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreditRateCriteriaDto":{"type":"object","properties":{"channel":{"type":"string","description":"Notification channel. Only for `notification` rates","enum":["push","email","sms","whatsapp"],"example":"sms"},"countryCode":{"type":"string","description":"ISO 3166-1 alpha-2 country of the recipient, or `null` for every country. Only for `notification` rates","nullable":true,"example":"US"},"quality":{"type":"string","description":"AI model quality. Only for `conversation` rates","enum":["standard","enhanced"],"example":"standard"}}},"RateCardEntryDto":{"type":"object","properties":{"type":{"type":"string","description":"What the entry is for","enum":["notification","conversation"],"example":"notification"},"criteria":{"description":"What the entry applies to","allOf":[{"$ref":"#/components/schemas/CreditRateCriteriaDto"}]},"credits":{"type":"number","description":"Credits per `unitDivisor` units (e.g. SMS segments or AI tokens)","example":2},"unitDivisor":{"type":"number","description":"Number of units `credits` is charged for: credits used = credits × quantity / unitDivisor","example":1}},"required":["type","criteria","credits","unitDivisor"]},"RateCardDto":{"type":"object","properties":{"entries":{"description":"One entry per kind of usage","type":"array","items":{"$ref":"#/components/schemas/RateCardEntryDto"}}},"required":["entries"]},"PartnerTierDto":{"type":"object","properties":{"id":{"type":"string","description":"Tier ID","example":"tier_01h9x8w1x5y9z3a7b0c4d8e2f6"},"name":{"type":"string","description":"Name, unique","example":"Gold"},"commissionRate":{"type":"number","description":"Share of each sale the partner earns, from 0 to 1 (0.2 = 20%)","example":0.2},"commissionType":{"type":"string","description":"`first_sale` pays commission only on a referred salon's first payment; `all_sales` on every payment","enum":["first_sale","all_sales"],"example":"all_sales"},"minimumPayoutAmount":{"type":"number","description":"Smallest payout a partner can request","example":50},"allowCampaignCustomCodes":{"type":"boolean","description":"Whether partners on this tier can choose their own campaign codes; otherwise codes are generated","example":true},"allowSalonCreation":{"type":"boolean","description":"Whether partners on this tier can create salons for their clients","example":false},"isDefault":{"type":"boolean","description":"Whether new partners are approved on this tier right after applying; at most one tier is the default","example":true},"commissionDuration":{"type":"number","description":"For how many months after a referred salon's first payment commission is earned; `null` for no limit","nullable":true,"example":12},"createdAt":{"type":"string","description":"When the tier was created","example":"2026-02-10T08:00:00.000Z"},"updatedAt":{"type":"string","description":"When the tier was last changed","example":"2026-04-18T13:22:41.000Z"}},"required":["id","name","commissionRate","commissionType","minimumPayoutAmount","allowCampaignCustomCodes","allowSalonCreation","isDefault","commissionDuration","createdAt","updatedAt"]},"PartnerResourceDto":{"type":"object","properties":{"id":{"type":"string","description":"Resource ID","example":"3f2b8c1e-7a4d-4e9b-8c6f-1d2e3a4b5c6d"},"title":{"type":"string","description":"Title","example":"Sales deck"},"description":{"type":"string","description":"Short description; `null` without one","nullable":true,"example":"The deck to show salon owners in a first meeting"},"type":{"type":"string","description":"How the resource looks (its icon); every resource is a link that opens in a new tab","enum":["link","file","folder","video"],"example":"file"},"category":{"type":"string","description":"Category","enum":["sales","marketing","onboarding"],"example":"sales"},"language":{"type":"string","description":"Language of the content","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"example":"en"},"url":{"type":"string","description":"Link to the file or folder, e.g. on Google Drive","example":"https://drive.google.com/file/d/FILE_ID/view"},"createdAt":{"type":"string","description":"When the resource was created","example":"2026-02-10T08:00:00.000Z"},"updatedAt":{"type":"string","description":"When the resource was last changed","example":"2026-04-18T13:22:41.000Z"}},"required":["id","title","description","type","category","language","url","createdAt","updatedAt"]},"PartnerResourceListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PartnerResourceDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PartnerSalonListDto":{"type":"object","properties":{"data":{"description":"Salons the partner set up for clients and still holds, soonest expiry first","type":"array","items":{"$ref":"#/components/schemas/SalonDto"}},"metadata":{"type":"object","description":"How many there are and how many the partner can hold","example":{"total":2,"limit":10}}},"required":["data","metadata"]},"CreatePartnerSalonDto":{"type":"object","properties":{"salonId":{"type":"string","description":"The salon to set up for a client: one the partner created with `expiresAt`, without billing","example":"sal_01h9x8w1x5y9z3a7b0c4d8e2f6"},"priceId":{"type":"string","description":"Price of the plan the salon trials until it expires or is handed over","example":"bprice_01h9x8w1x5y9z3a7b0c4d8e2f6"}},"required":["salonId","priceId"]},"PartnerSalonResultDto":{"type":"object","properties":{"salonId":{"type":"string","description":"Salon ID","example":"sal_01h9x8w1x5y9z3a7b0c4d8e2f6"},"expiresAt":{"type":"string","description":"When the salon is deleted unless handed over first","example":"2026-12-07T10:00:00.000Z"}},"required":["salonId","expiresAt"]},"UpdatePartnerSalonDto":{"type":"object","properties":{"expiresAt":{"type":"string","description":"The new expiry: in the future and at most 60 days after the salon was created. The trial ends then too","example":"2026-12-21T10:00:00.000Z"}},"required":["expiresAt"]},"PartnerCampaignStatsDto":{"type":"object","properties":{"leads":{"type":"number","description":"Leads from the campaign","example":32},"sales":{"type":"number","description":"Sales from the campaign","example":9},"revenue":{"type":"number","description":"Sum of the amounts of those sales","example":891}},"required":["leads","sales","revenue"]},"PartnerCampaignDto":{"type":"object","properties":{"id":{"type":"string","description":"Campaign ID","example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7"},"partnerId":{"type":"string","description":"ID of the partner the campaign belongs to","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"},"name":{"type":"string","description":"Name","example":"Instagram bio"},"code":{"type":"string","description":"Referral code, unique across all campaigns","example":"JANECOOPER"},"summary":{"description":"Leads, sales and revenue. Only with `expand=summary`","allOf":[{"$ref":"#/components/schemas/PartnerCampaignStatsDto"}]},"createdAt":{"type":"string","description":"When the campaign was created","example":"2026-03-06T11:00:00.000Z"},"updatedAt":{"type":"string","description":"When the campaign was last changed","example":"2026-03-06T11:00:00.000Z"}},"required":["id","partnerId","name","code","createdAt","updatedAt"]},"PartnerLeadDto":{"type":"object","properties":{"id":{"type":"string","description":"Lead ID","example":"lead_01h9x5m8n2p6q3r7s1t4v9w2x5"},"partnerId":{"type":"string","description":"ID of the partner who referred the lead","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"},"campaignId":{"type":"string","description":"ID of the campaign the lead came through","nullable":true,"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7"},"campaign":{"description":"The campaign. Only with `expand=campaign`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PartnerCampaignDto"}]},"accountId":{"type":"string","description":"ID of the referred account","example":"8d4b2f6e-1a3c-4e7b-9f2d-6c8a0e4b1d35"},"salonId":{"type":"string","description":"ID of the referred salon; `null` for the account's own lead, before it joins a salon","nullable":true,"example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Saved when the lead was created: the referred account's full name, or the salon's name for a salon lead (updated when the salon is renamed). `null` for leads from before names were saved","nullable":true,"example":"Bella Hair Studio"},"parentName":{"type":"string","description":"Name of the lead this one came from: for a salon lead, the referring account's lead (its full name). `null` for a lead without a parent","nullable":true,"example":"Jane Smith"},"firstSaleAt":{"type":"string","description":"When the salon first paid; commission duration counts from here","nullable":true,"example":"2026-04-01T08:12:45.000Z"},"createdAt":{"type":"string","description":"When the lead was created","example":"2026-03-18T15:30:00.000Z"},"updatedAt":{"type":"string","description":"When the lead was last changed","example":"2026-04-01T08:12:45.000Z"}},"required":["id","partnerId","campaignId","accountId","salonId","name","parentName","firstSaleAt","createdAt","updatedAt"]},"PartnerLeadListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PartnerLeadDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PartnerLeadDatasetsDto":{"type":"object","properties":{"salon":{"description":"Salon leads in each period, in the order of `labels`","example":[1,0,2],"type":"array","items":{"type":"number"}},"account":{"description":"Account leads not linked to a salon in each period, in the order of `labels`","example":[3,1,4],"type":"array","items":{"type":"number"}}},"required":["salon","account"]},"PartnerLeadTotalsDto":{"type":"object","properties":{"salon":{"type":"number","description":"Salon leads in the range","example":3},"account":{"type":"number","description":"Account leads in the range","example":8}},"required":["salon","account"]},"PartnerLeadSummaryDto":{"type":"object","properties":{"labels":{"description":"Periods of the range: `YYYY-MM-DD` for days and weeks (the Monday), `YYYY-MM` for months, `YYYY` for years","example":["2026-03-01","2026-03-02","2026-03-03"],"type":"array","items":{"type":"string"}},"datasets":{"description":"Values per period","allOf":[{"$ref":"#/components/schemas/PartnerLeadDatasetsDto"}]},"totals":{"description":"Totals","allOf":[{"$ref":"#/components/schemas/PartnerLeadTotalsDto"}]},"groupBy":{"type":"string","description":"The period the report is grouped by","enum":["day","week","month","year"],"example":"day"}},"required":["labels","datasets","totals","groupBy"]},"PartnerSaleDto":{"type":"object","properties":{"id":{"type":"string","description":"Sale ID","example":"sale_01h9x6y3z7a1b5c9d2e6f0g4h8"},"partnerId":{"type":"string","description":"ID of the partner who earned the commission","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"},"campaignId":{"type":"string","description":"ID of the campaign the salon came through","nullable":true,"example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7"},"campaign":{"description":"The campaign. Only with `expand=campaign`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PartnerCampaignDto"}]},"paymentId":{"type":"string","description":"ID of the salon's payment","example":"5e2a9c7d-3b1f-4d8a-a6e4-0c9b7f2d1e58"},"paymentStatus":{"type":"string","description":"Status of the payment; only `succeeded` sales count toward the balance","enum":["pending","succeeded","requires_action","failed","refunded","partially_refunded"],"example":"succeeded"},"salonId":{"type":"string","description":"ID of the referred salon","example":"sal_01h2xcejqtf2nbrexx3vqjhp41"},"name":{"type":"string","description":"Name of the salon that paid, saved with the sale and kept up to date when the salon is renamed. `null` for sales from before names were saved","nullable":true,"example":"Bella Hair Studio"},"amount":{"type":"number","description":"Amount of the payment","example":99},"commissionAmount":{"type":"number","description":"Commission the partner earned on it","example":19.8},"createdAt":{"type":"string","description":"When the sale was recorded","example":"2026-04-01T08:12:45.000Z"},"updatedAt":{"type":"string","description":"When the sale was last changed","example":"2026-04-01T08:12:45.000Z"}},"required":["id","partnerId","campaignId","paymentId","paymentStatus","salonId","name","amount","commissionAmount","createdAt","updatedAt"]},"PartnerSaleListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PartnerSaleDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PartnerSaleDatasetsDto":{"type":"object","properties":{"net":{"description":"Net amount (payments minus commission) in each period, in the order of `labels`","example":[79.2,0,158.4],"type":"array","items":{"type":"number"}},"commission":{"description":"Commission in each period, in the order of `labels`","example":[19.8,0,39.6],"type":"array","items":{"type":"number"}}},"required":["net","commission"]},"PartnerSaleTotalsDto":{"type":"object","properties":{"net":{"type":"number","description":"Net amount in the range","example":237.6},"commission":{"type":"number","description":"Commission in the range","example":59.4}},"required":["net","commission"]},"PartnerSaleSummaryDto":{"type":"object","properties":{"labels":{"description":"Periods of the range: `YYYY-MM-DD` for days and weeks (the Monday), `YYYY-MM` for months, `YYYY` for years","example":["2026-03-01","2026-03-02","2026-03-03"],"type":"array","items":{"type":"string"}},"datasets":{"description":"Values per period","allOf":[{"$ref":"#/components/schemas/PartnerSaleDatasetsDto"}]},"totals":{"description":"Totals","allOf":[{"$ref":"#/components/schemas/PartnerSaleTotalsDto"}]},"groupBy":{"type":"string","description":"The period the report is grouped by","enum":["day","week","month","year"],"example":"day"}},"required":["labels","datasets","totals","groupBy"]},"PartnerCampaignAvailabilityDto":{"type":"object","properties":{"isAvailable":{"type":"boolean","description":"Whether no other campaign uses the code","example":true}},"required":["isAvailable"]},"PartnerCampaignListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PartnerCampaignDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PartnerCampaignRevenueDatasetDto":{"type":"object","properties":{"value":{"description":"Net revenue (sales minus commission) of each campaign, in the order of `labels`","example":[540,210],"type":"array","items":{"type":"number"}},"percent":{"description":"Share of the total of each campaign, in percent","example":[72,28],"type":"array","items":{"type":"number"}}},"required":["value","percent"]},"PartnerCampaignRevenueTotalsDto":{"type":"object","properties":{"value":{"type":"number","description":"Net revenue of all campaigns","example":750}},"required":["value"]},"PartnerCampaignRevenueSummaryDto":{"type":"object","properties":{"labels":{"description":"Names of the campaigns with sales in the range","example":["Instagram bio","YouTube"],"type":"array","items":{"type":"string"}},"datasets":{"description":"One dataset with the values","type":"array","items":{"$ref":"#/components/schemas/PartnerCampaignRevenueDatasetDto"}},"totals":{"description":"Totals","allOf":[{"$ref":"#/components/schemas/PartnerCampaignRevenueTotalsDto"}]}},"required":["labels","datasets","totals"]},"CreateCampaignDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Instagram bio"},"code":{"type":"string","description":"Referral code, letters and digits only. Generated when left out or when the partner's tier doesn't allow custom codes","nullable":true,"example":"JANECOOPER"}},"required":["name"]},"UpdateCampaignDto":{"type":"object","properties":{"name":{"type":"string","description":"Name","example":"Instagram bio"}}},"UpdatePartnerCampaignResultDto":{"type":"object","properties":{"campaignId":{"type":"string","description":"The updated campaign's ID","example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7"}},"required":["campaignId"]},"DeletePartnerCampaignResultDto":{"type":"object","properties":{"campaignId":{"type":"string","description":"The deleted campaign's ID","example":"camp_01h9x4a2b7c5d8e3f6g9h1j4k7"}},"required":["campaignId"]},"PartnerPayoutDto":{"type":"object","properties":{"id":{"type":"string","description":"Payout ID","example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7"},"partnerId":{"type":"string","description":"ID of the partner who is paid","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"},"amount":{"type":"number","description":"Amount","example":120},"status":{"type":"string","description":"`pending` when requested, `completed` once paid","enum":["pending","completed"],"example":"pending"},"createdAt":{"type":"string","description":"When the payout was requested","example":"2026-05-01T09:00:00.000Z"},"updatedAt":{"type":"string","description":"When the payout was last changed","example":"2026-05-03T14:25:10.000Z"}},"required":["id","partnerId","amount","status","createdAt","updatedAt"]},"PartnerPayoutListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PartnerPayoutDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"CreatePayoutDto":{"type":"object","properties":{"amount":{"type":"number","description":"Amount to pay out; the whole available balance when left out","example":120}}},"UpdatePayoutDto":{"type":"object","properties":{"amount":{"type":"number","description":"Amount to pay out, or `null` for the whole available balance","nullable":true,"example":120}}},"UpdatePartnerPayoutResultDto":{"type":"object","properties":{"payoutId":{"type":"string","description":"The updated payout's ID","example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7"}},"required":["payoutId"]},"DeletePartnerPayoutResultDto":{"type":"object","properties":{"payoutId":{"type":"string","description":"The deleted payout's ID","example":"po_01h9x7j2k6m0n4p8q1r5s9t3v7"}},"required":["payoutId"]},"PartnerConversionDatasetsDto":{"type":"object","properties":{"value":{"description":"Converted salons in each period, in the order of `labels`","example":[0,2,1],"type":"array","items":{"type":"number"}}},"required":["value"]},"PartnerConversionTotalsDto":{"type":"object","properties":{"value":{"type":"number","description":"Converted salons in the range","example":3}},"required":["value"]},"PartnerConversionSummaryDto":{"type":"object","properties":{"labels":{"description":"Periods of the range: `YYYY-MM-DD` for days and weeks (the Monday), `YYYY-MM` for months, `YYYY` for years","example":["2026-03-01","2026-03-02","2026-03-03"],"type":"array","items":{"type":"string"}},"datasets":{"description":"Values per period","allOf":[{"$ref":"#/components/schemas/PartnerConversionDatasetsDto"}]},"totals":{"description":"Totals","allOf":[{"$ref":"#/components/schemas/PartnerConversionTotalsDto"}]},"groupBy":{"type":"string","description":"The period the report is grouped by","enum":["day","week","month","year"],"example":"day"}},"required":["labels","datasets","totals","groupBy"]},"PartnerDto":{"type":"object","properties":{"id":{"type":"string","description":"Partner ID","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"},"accountId":{"type":"string","description":"ID of the partner's account","example":"3f1c2b7e-8a4d-4f6b-9c2e-5d7a1b9e0c43"},"account":{"description":"The partner's account. Only with `expand=account`","allOf":[{"$ref":"#/components/schemas/AccountDto"}]},"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","example":"US"},"role":{"type":"string","description":"What kind of partner this is","enum":["influencer","website_owner","email_marketer","agency","other"],"example":"influencer"},"audienceSize":{"type":"string","description":"Size of the partner's audience","enum":["0-1k","1k-10k","10k-50k","50k-100k","100k+"],"example":"10k-50k"},"experienceLevel":{"type":"string","description":"Experience with affiliate marketing","enum":["none","less_than_1_year","1+_years"],"example":"1+_years"},"relevantWebsites":{"description":"Websites and social profiles of the partner","example":["https://www.instagram.com/janecooperhair"],"type":"array","items":{"type":"string"}},"strategy":{"type":"string","description":"How the partner plans to promote Softalon","example":"Weekly salon business tips on Instagram and YouTube with my referral link in the bio."},"trafficSources":{"type":"array","description":"Where the partner's traffic comes from","example":["social_media","blog"],"items":{"type":"string","enum":["social_media","blog","website","email","paid_ads","other"]}},"tierId":{"type":"string","description":"ID of the partner's commission tier","nullable":true,"example":"tier_01h9x8w1x5y9z3a7b0c4d8e2f6"},"tier":{"description":"The commission tier. Only with `expand=tier`","nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PartnerTierDto"}]},"status":{"type":"string","description":"`pending` after applying, `active` once approved (needs a tier), `inactive` when paused","enum":["pending","active","inactive"],"example":"active"},"createdAt":{"type":"string","description":"When the partner applied","example":"2026-03-02T10:15:00.000Z"},"updatedAt":{"type":"string","description":"When the partner was last changed","example":"2026-03-05T09:40:12.000Z"}},"required":["id","accountId","country","role","audienceSize","experienceLevel","relevantWebsites","strategy","trafficSources","tierId","status","createdAt","updatedAt"]},"PartnerListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/PartnerDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"PartnerBalanceDto":{"type":"object","properties":{"total":{"type":"number","description":"Commission earned so far minus all payouts (pending and completed): what can still be paid out","example":240},"pending":{"type":"number","description":"Requested payouts that are not completed yet","example":120}},"required":["total","pending"]},"PartnerSalesTotalsDto":{"type":"object","properties":{"total":{"type":"number","description":"Successful payments of referred salons in the range","example":1980},"commission":{"type":"number","description":"Commission earned on them","example":396}},"required":["total","commission"]},"PartnerLeadsTotalsDto":{"type":"object","properties":{"total":{"type":"number","description":"Referred salons in the range","example":14},"converted":{"type":"number","description":"Referred salons with a successful payment in the range","example":5}},"required":["total","converted"]},"PartnerSummaryDto":{"type":"object","properties":{"balance":{"description":"Current balance, regardless of the range","allOf":[{"$ref":"#/components/schemas/PartnerBalanceDto"}]},"sales":{"description":"Sales","allOf":[{"$ref":"#/components/schemas/PartnerSalesTotalsDto"}]},"leads":{"description":"Leads","allOf":[{"$ref":"#/components/schemas/PartnerLeadsTotalsDto"}]}},"required":["balance","sales","leads"]},"CreatePartnerDto":{"type":"object","properties":{"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","example":"US"},"role":{"type":"string","description":"What kind of partner this is","enum":["influencer","website_owner","email_marketer","agency","other"],"example":"influencer"},"audienceSize":{"type":"string","description":"Size of the partner's audience","enum":["0-1k","1k-10k","10k-50k","50k-100k","100k+"],"example":"10k-50k"},"experienceLevel":{"type":"string","description":"Experience with affiliate marketing","enum":["none","less_than_1_year","1+_years"],"example":"1+_years"},"relevantWebsites":{"description":"Websites and social profiles of the partner","example":["https://www.instagram.com/janecooperhair"],"type":"array","items":{"type":"string"}},"strategy":{"type":"string","description":"How the partner plans to promote Softalon","example":"Weekly salon business tips on Instagram and YouTube with my referral link in the bio."},"trafficSources":{"type":"array","description":"Where the partner's traffic comes from","example":["social_media","blog"],"items":{"type":"string","enum":["social_media","blog","website","email","paid_ads","other"]}}},"required":["country","role","audienceSize","experienceLevel","strategy","trafficSources"]},"UpdatePartnerDto":{"type":"object","properties":{"country":{"type":"string","description":"Country, as an ISO 3166-1 alpha-2 code","example":"US"},"role":{"type":"string","description":"What kind of partner this is","enum":["influencer","website_owner","email_marketer","agency","other"],"example":"influencer"},"audienceSize":{"type":"string","description":"Size of the partner's audience","enum":["0-1k","1k-10k","10k-50k","50k-100k","100k+"],"example":"10k-50k"},"experienceLevel":{"type":"string","description":"Experience with affiliate marketing","enum":["none","less_than_1_year","1+_years"],"example":"1+_years"},"relevantWebsites":{"description":"Websites and social profiles of the partner","example":["https://www.instagram.com/janecooperhair"],"type":"array","items":{"type":"string"}},"strategy":{"type":"string","description":"How the partner plans to promote Softalon","example":"Weekly salon business tips on Instagram and YouTube with my referral link in the bio."},"trafficSources":{"type":"array","description":"Where the partner's traffic comes from","example":["social_media","blog"],"items":{"type":"string","enum":["social_media","blog","website","email","paid_ads","other"]}}}},"UpdatePartnerResultDto":{"type":"object","properties":{"partnerId":{"type":"string","description":"The updated partner's ID","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"}},"required":["partnerId"]},"DeletePartnerResultDto":{"type":"object","properties":{"partnerId":{"type":"string","description":"The deleted partner's ID","example":"prtn_01h9x3k7m2q8w4e6r5t1y0vabc"}},"required":["partnerId"]},"PartnerAnalyticsChangeDto":{"type":"object","properties":{"value":{"type":"number","description":"Relative change as a fraction (0.125 = +12.5%); 1 when the previous value was 0 and the current one isn't","example":0.125},"isPercentage":{"type":"boolean","description":"Whether `value` is a relative change; always `true`","example":true}},"required":["value","isPercentage"]},"PartnerAnalyticsSummaryChangeDto":{"type":"object","properties":{"totalVisits":{"description":"Change of visits","allOf":[{"$ref":"#/components/schemas/PartnerAnalyticsChangeDto"}]},"uniqueVisitors":{"description":"Change of unique visitors","allOf":[{"$ref":"#/components/schemas/PartnerAnalyticsChangeDto"}]},"avgSessionDurationSeconds":{"description":"Change of the average session duration","allOf":[{"$ref":"#/components/schemas/PartnerAnalyticsChangeDto"}]},"bounceRate":{"description":"Change of the bounce rate","allOf":[{"$ref":"#/components/schemas/PartnerAnalyticsChangeDto"}]}},"required":["totalVisits","uniqueVisitors","avgSessionDurationSeconds","bounceRate"]},"PartnerAnalyticsSummaryDto":{"type":"object","properties":{"totalVisits":{"type":"number","description":"Visits (sessions)","example":1840},"uniqueVisitors":{"type":"number","description":"Unique visitors","example":962},"avgSessionDurationSeconds":{"type":"number","description":"Average session duration in seconds","example":75},"bounceRate":{"type":"number","description":"Share of sessions with a single page view, from 0 to 1","example":0.42},"change":{"description":"Change compared to the previous period","allOf":[{"$ref":"#/components/schemas/PartnerAnalyticsSummaryChangeDto"}]}},"required":["totalVisits","uniqueVisitors","avgSessionDurationSeconds","bounceRate","change"]},"PartnerAnalyticsChannelDto":{"type":"object","properties":{"channel":{"type":"string","description":"Referring domain, or `Direct`","example":"instagram.com"},"visits":{"type":"number","description":"Visits","example":640},"percentage":{"type":"number","description":"Share of all visits, in percent","example":34.8}},"required":["channel","visits","percentage"]},"PartnerAnalyticsCountryDto":{"type":"object","properties":{"countryCode":{"type":"string","description":"ISO 3166-1 country code","example":"US"},"countryName":{"type":"string","description":"Country name","example":"United States"},"flag":{"type":"string","description":"Flag emoji","example":"🇺🇸"},"visits":{"type":"number","description":"Visits","example":1520},"percentage":{"type":"number","description":"Share of all visits, in percent","example":82.6}},"required":["countryCode","countryName","flag","visits","percentage"]},"PartnerAnalyticsPageDto":{"type":"object","properties":{"path":{"type":"string","description":"URL of the page","example":"https://www.softalon.com/pricing"},"name":{"type":"string","description":"Title of the page","example":"Pricing"},"views":{"type":"number","description":"Page views","example":410}},"required":["path","name","views"]},"PartnerAnalyticsDeviceDto":{"type":"object","properties":{"device":{"type":"string","description":"Device type","example":"Mobile"},"percentage":{"type":"number","description":"Share of all visits, in percent","example":71}},"required":["device","percentage"]},"PartnerAnalyticsCampaignDto":{"type":"object","properties":{"source":{"type":"string","description":"UTM source, or `Direct`","example":"instagram"},"campaign":{"type":"string","description":"Campaign code","example":"JANECOOPER"},"visits":{"type":"number","description":"Visits","example":180},"percentage":{"type":"number","description":"Share of all visits, in percent","example":9.8}},"required":["source","campaign","visits","percentage"]},"PartnerAnalyticsPeakHourDto":{"type":"object","properties":{"hour":{"type":"string","description":"Hour of the day in the requested time zone","example":"18:00"},"visits":{"type":"number","description":"Visits","example":210},"percentage":{"type":"number","description":"Share of all visits, in percent","example":11.4}},"required":["hour","visits","percentage"]},"PartnerAnalyticsDto":{"type":"object","properties":{"summary":{"description":"Visits, visitors, session duration and bounce rate","allOf":[{"$ref":"#/components/schemas/PartnerAnalyticsSummaryDto"}]},"topChannels":{"description":"Top 5 referring domains","type":"array","items":{"$ref":"#/components/schemas/PartnerAnalyticsChannelDto"}},"topCountries":{"description":"Top 5 countries","type":"array","items":{"$ref":"#/components/schemas/PartnerAnalyticsCountryDto"}},"topPages":{"description":"Top 5 pages","type":"array","items":{"$ref":"#/components/schemas/PartnerAnalyticsPageDto"}},"deviceBreakdown":{"description":"Visits by device type","type":"array","items":{"$ref":"#/components/schemas/PartnerAnalyticsDeviceDto"}},"topCampaigns":{"description":"Top 5 sources and campaign codes","type":"array","items":{"$ref":"#/components/schemas/PartnerAnalyticsCampaignDto"}},"peakTrafficHours":{"description":"Top 5 hours of the day","type":"array","items":{"$ref":"#/components/schemas/PartnerAnalyticsPeakHourDto"}}},"required":["summary","topChannels","topCountries","topPages","deviceBreakdown","topCampaigns","peakTrafficHours"]},"WorkflowTemplateDto":{"type":"object","properties":{"id":{"type":"string","description":"Workflow template ID","example":"wflt_01h7k2b8mqz5r9tvw3n6fdc4xp"},"name":{"type":"string","description":"Name, unique per language","example":"Appointment Reminder"},"description":{"type":"string","description":"Description","nullable":true,"example":"Texts clients a reminder 24 hours before their appointment."},"category":{"type":"string","description":"Category the template is grouped under","nullable":true,"example":"reminders"},"language":{"type":"string","description":"Language of the template's texts","enum":["en","de","fr","es","it","pt","hr","bs","sr"],"example":"en"},"trigger":{"type":"string","description":"What starts workflows created from it: an event topic (e.g. `booking/appointment.created`), `manual` or `webhook`","nullable":true,"example":"booking/appointment.upcoming"},"nodes":{"description":"Steps of the workflow","type":"array","items":{"$ref":"#/components/schemas/WorkflowNodeDto"}},"edges":{"description":"Connections between the steps","type":"array","items":{"$ref":"#/components/schemas/WorkflowEdgeDto"}},"isActive":{"type":"boolean","description":"Whether salons can see and add the template","example":true},"isDefault":{"type":"boolean","description":"Whether the template is one of the defaults new salons start with","example":true},"createdAt":{"type":"string","description":"When the template was created","example":"2026-01-10T08:00:00.000Z"},"updatedAt":{"type":"string","description":"When the template was last changed","example":"2026-02-02T12:15:00.000Z"}},"required":["id","name","description","category","language","trigger","nodes","edges","isActive","isDefault","createdAt","updatedAt"]},"WorkflowTemplateListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/WorkflowTemplateDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"WhatsAppTemplateDto":{"type":"object","properties":{"id":{"type":"string","description":"Template ID, also its name at the WhatsApp provider","example":"appointment_reminder"},"name":{"type":"string","description":"Display name","example":"Appointment Reminder"},"content":{"type":"string","description":"Template text with numbered placeholders, filled from `templateVariables` when sending","example":"Hi {{1}}! Your appointment at {{2}} is on {{3}}."},"isActive":{"type":"boolean","description":"Whether the template can be used","example":true},"createdAt":{"type":"string","description":"When the template was created","example":"2026-03-01T18:04:11.000Z"},"updatedAt":{"type":"string","description":"When the template was last changed","example":"2026-03-14T09:21:07.000Z"}},"required":["id","name","content","isActive","createdAt","updatedAt"]},"WhatsAppTemplateListDto":{"type":"object","properties":{"data":{"description":"Items on this page","type":"array","items":{"$ref":"#/components/schemas/WhatsAppTemplateDto"}},"metadata":{"description":"Page and total, plus the filters of the request","allOf":[{"$ref":"#/components/schemas/PaginationMetadataDto"}]}},"required":["data","metadata"]},"ImportAccountFileDto":{"type":"object","properties":{"url":{"type":"string","description":"Public HTTP or HTTPS link to the file, with a domain name. Redirects are followed","example":"https://www.yoursalon.com/images/balayage.jpg"},"purpose":{"type":"string","enum":["general","theme"],"default":"general","description":"What the file is for: `general`, or `theme` for custom website assets"}},"required":["url"]}}},"security":[{"oauth2":[]},{"client-session":[]}],"x-tagGroups":[{"name":"Accounts","tags":["Accounts","Accounts / Activities","Accounts / Apps","Accounts / Integrations","Accounts / Integrations / Connections","Accounts / Invitations","Accounts / Notifications","Accounts / Notifications / History","Accounts / Notifications / Preferences","Accounts / Notifications / Push Subscriptions"]},{"name":"Salons","tags":["Salons","Salons / Action Links","Salons / Activities","Salons / Appointments","Salons / Apps (OAuth2)","Salons / Availability","Salons / Billing / Billing Profile","Salons / Billing / Invoices","Salons / Billing / Invoices / Payments","Salons / Billing / Payment Methods","Salons / Billing / Subscriptions","Salons / Blocked Times","Salons / Clients","Salons / Clients / Sessions","Salons / Closed Periods","Salons / Conversations","Salons / Conversations / Knowledge Sources","Salons / Conversations / Messages","Salons / Conversations / Response Examples","Salons / Conversations / Sessions","Salons / Domains","Salons / Files","Salons / Finances / Coupons","Salons / Finances / Invoices","Salons / Finances / Invoices / Items","Salons / Finances / Payments","Salons / Finances / Payments / Refunds","Salons / Finances / Tax Rates","Salons / Integrations","Salons / Integrations / Connections","Salons / Invitations","Salons / Locations","Salons / Locations / Services","Salons / Meetings","Salons / Members","Salons / Members / Calendars","Salons / Members / Locations","Salons / Members / Services","Salons / Members / Special Days","Salons / Members / Time Off","Salons / Notifications","Salons / Notifications / Compliance","Salons / Notifications / History","Salons / Notifications / Phone Numbers","Salons / Notifications / Preferences","Salons / Notifications / Push Subscriptions","Salons / Notifications / Sender Profiles","Salons / Notifications / SMS Country Requirements","Salons / Products","Salons / Reports","Salons / Resources","Salons / Reviews","Salons / Services","Salons / Services / Categories","Salons / Services / Resource Requirements","Salons / Settings","Salons / Themes","Salons / Webhook Deliveries","Salons / Webhook Endpoints","Salons / Workflow Executions","Salons / Workflows"]},{"name":"Billing","tags":["Billing / Plans","Billing / Prices (Products & Plans)","Billing / Products","Billing / Rate Card"]},{"name":"Partners","tags":["Partners","Partners / Analytics","Partners / Campaigns","Partners / Conversions","Partners / Leads","Partners / Payouts","Partners / Resources","Partners / Sales","Partners / Salons"]},{"name":"Workflows","tags":["Workflows","Workflows / Templates"]},{"name":"Notifications","tags":["Notifications / WhatsApp Templates"]},{"name":"Files","tags":["Files"]},{"name":"Webhooks","tags":["Webhooks / Booking","Webhooks / Clients","Webhooks / Conversations","Webhooks / Finances","Webhooks / Locations","Webhooks / Salons","Webhooks / Services"]}],"webhooks":{"salons/member.created":{"post":{"summary":"Member Created","description":"Fired when the `salons/member.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Salons"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"salons/member.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"salons/member.updated":{"post":{"summary":"Member Updated","description":"Fired when the `salons/member.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Salons"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"salons/member.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"salons/member.deleted":{"post":{"summary":"Member Deleted","description":"Fired when the `salons/member.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Salons"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"salons/member.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"locations/location.created":{"post":{"summary":"Location Created","description":"Fired when the `locations/location.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Locations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"locations/location.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"locations/location.updated":{"post":{"summary":"Location Updated","description":"Fired when the `locations/location.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Locations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"locations/location.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"locations/location.deleted":{"post":{"summary":"Location Deleted","description":"Fired when the `locations/location.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Locations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"locations/location.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"services/service.created":{"post":{"summary":"Service Created","description":"Fired when the `services/service.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Services"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"services/service.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"services/service.updated":{"post":{"summary":"Service Updated","description":"Fired when the `services/service.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Services"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"services/service.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"services/service.deleted":{"post":{"summary":"Service Deleted","description":"Fired when the `services/service.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Services"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"services/service.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"clients/client.created":{"post":{"summary":"Client Created","description":"Fired when the `clients/client.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"clients/client.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"clients/client.updated":{"post":{"summary":"Client Updated","description":"Fired when the `clients/client.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"clients/client.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"clients/client.deleted":{"post":{"summary":"Client Deleted","description":"Fired when the `clients/client.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"clients/client.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"clients/client.birthday":{"post":{"summary":"Client Birthday","description":"Fired when the `clients/client.birthday` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"clients/client.birthday"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"clients/client.lapsed":{"post":{"summary":"Client Lapsed","description":"Fired when the `clients/client.lapsed` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"clients/client.lapsed"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"clients/session_request.code_generated":{"post":{"summary":"Session Request Code Generated","description":"Fired when the `clients/session_request.code_generated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"clients/session_request.code_generated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"booking/appointment.created":{"post":{"summary":"Appointment Created","description":"Fired when the `booking/appointment.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Booking"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"booking/appointment.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"booking/appointment.updated":{"post":{"summary":"Appointment Updated","description":"Fired when the `booking/appointment.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Booking"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"booking/appointment.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"booking/appointment.deleted":{"post":{"summary":"Appointment Deleted","description":"Fired when the `booking/appointment.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Booking"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"booking/appointment.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"booking/appointment.upcoming":{"post":{"summary":"Appointment Upcoming","description":"Fired when the `booking/appointment.upcoming` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Booking"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"booking/appointment.upcoming"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"booking/appointment.started":{"post":{"summary":"Appointment Started","description":"Fired when the `booking/appointment.started` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Booking"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"booking/appointment.started"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"conversations/conversation.created":{"post":{"summary":"Conversation Created","description":"Fired when the `conversations/conversation.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Conversations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"conversations/conversation.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"conversations/conversation.updated":{"post":{"summary":"Conversation Updated","description":"Fired when the `conversations/conversation.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Conversations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"conversations/conversation.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"conversations/conversation.deleted":{"post":{"summary":"Conversation Deleted","description":"Fired when the `conversations/conversation.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Conversations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"conversations/conversation.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"finances/invoice.created":{"post":{"summary":"Invoice Created","description":"Fired when the `finances/invoice.created` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Finances"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"finances/invoice.created"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"finances/invoice.updated":{"post":{"summary":"Invoice Updated","description":"Fired when the `finances/invoice.updated` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Finances"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"finances/invoice.updated"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}},"finances/invoice.deleted":{"post":{"summary":"Invoice Deleted","description":"Fired when the `finances/invoice.deleted` event occurs. The request body contains the event envelope with the full resource object.","tags":["Webhooks / Finances"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"The event topic that triggered this webhook delivery.","example":"finances/invoice.deleted"},"event":{"type":"object","description":"The event envelope.","properties":{"id":{"type":"string","description":"Unique event identifier."},"type":{"type":"string","description":"The event type (same as topic)."},"scope":{"type":"string","enum":["primary","derived"],"description":"Whether this is a primary (CRUD) or derived (state-change) event."},"resource":{"type":"string","description":"The resource type (e.g., `client`, `appointment`)."},"resourceId":{"type":"string","description":"The TypeID of the affected resource."},"accountId":{"type":"string","nullable":true,"description":"The account ID associated with the event, if applicable."},"salonId":{"type":"string","nullable":true,"description":"The salon ID associated with the event."},"transactionId":{"type":"string","description":"Groups events that occurred in the same transaction."},"sequenceNumber":{"type":"integer","description":"Ordering position within a transaction."},"data":{"type":"object","description":"The event payload.","properties":{"object":{"type":"object","description":"The full resource object at the time of the event."},"previousAttributes":{"type":"object","nullable":true,"description":"For update events: the fields that changed, with their previous values. Null for created/deleted events."}}},"metadata":{"type":"object","nullable":true,"description":"Details about this occurrence of the event. For `booking/appointment.upcoming` and `clients/client.lapsed`, `offset` is the number of minutes from the appointment start or the last visit (e.g. -120 = 2 hours before, 86400 = 60 days after)."},"timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of when the event occurred."}}}}}}}},"responses":{"200":{"description":"Return a 2xx status to acknowledge receipt of the webhook."}}}}}}