{"swagger": "2.0", "basePath": "/", "paths": {"/alerts/recipients": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/AlertRecipient"}}}}, "summary": "The users and user groups notified per alert type", "operationId": "get_alert_recipients", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/AlertRecipient"}}}}, "summary": "Replace the recipients of one alert type", "operationId": "put_alert_recipients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertRecipientsUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/rules": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/AlertRule"}}}}, "summary": "The rule of every alert type: whether it is raised, its severity, threshold and window, and in-app notification", "operationId": "get_alert_rules", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertRule"}}}, "summary": "Change the rule of one alert type", "description": "It applies to the alerts raised from now on.", "operationId": "put_alert_rules", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertRuleUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Alert"}}}}, "summary": "Search alerts", "description": "Without orderBy they come most severe first, newest first within a severity.", "operationId": "post_alert_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertSearch"}}], "tags": ["alerts"]}}, "/alerts/summary": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertSummary"}}}, "summary": "Counts of the alerts by status, the critical ones not resolved and those resolved recently", "operationId": "post_alert_summary", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertSummaryQuery"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertDetail"}}}, "summary": "An alert with its audit trail", "operationId": "get_alert_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/{id_}/acknowledge": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertDetail"}}}, "summary": "Acknowledge an open alert", "operationId": "put_alert_acknowledge", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertComment"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/{id_}/assign": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertDetail"}}}, "summary": "Assign an alert to a user or a user group", "operationId": "put_alert_assign", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertAssign"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/{id_}/reopen": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertDetail"}}}, "summary": "Open a resolved alert again", "operationId": "put_alert_reopen", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertComment"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/alerts/{id_}/resolve": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AlertDetail"}}}, "summary": "Resolve an alert and the to-do or system errand it was raised from", "operationId": "put_alert_resolve", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AlertComment"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["alerts"]}}, "/articles": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Articles"}}}}, "summary": "List articles", "operationId": "get_collection", "tags": ["articles"]}}, "/articles/bulk-update": {"put": {"responses": {"200": {"description": "Count and ids of the updated articles.", "schema": {"$ref": "#/definitions/ArticleBulkUpdateResult"}}}, "summary": "Bulk-update articles", "operationId": "put_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ArticleBulkUpdate"}}], "tags": ["articles"]}}, "/articles/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Articles"}}}, "summary": "Search articles", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ArticlesSearch"}}], "tags": ["articles"]}}, "/articles/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Articles"}}}, "summary": "Get article by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["articles"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Articles"}}}, "summary": "Update article", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ArticleUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["articles"]}}, "/authenticate": {"post": {"responses": {"503": {"description": "The login provider could not be reached."}, "429": {"description": "Too many failed attempts. Retry after the Retry-After header."}, "200": {"description": "Issued JWT token for the authenticated user."}}, "summary": "Api for user authentication", "description": "this is proxy for auth0", "operationId": "post_item", "tags": ["authenticate"]}}, "/automation": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/Automation"}}}, "summary": "Create automation", "operationId": "post_automation_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AutomationPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["automation"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Automation"}}}}, "summary": "List automations", "operationId": "get_automation_collection", "tags": ["automation"]}}, "/automation/actions": {"get": {"responses": {"200": {"description": "List of automation actions.", "schema": {"type": "array", "items": {"$ref": "#/definitions/AutomationActionName"}}}}, "summary": "List automation actions an automation can run", "operationId": "get_automation_action_collection", "tags": ["automation"]}}, "/automation/events": {"get": {"responses": {"200": {"description": "List of automation events.", "schema": {"type": "array", "items": {"$ref": "#/definitions/AutomationEventName"}}}}, "summary": "List automation events an automation can be bound to", "operationId": "get_automation_event_collection", "tags": ["automation"]}}, "/automation/rules/{_id}": {"parameters": [{"name": "_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Automation rule deleted."}}, "summary": "DELETE rules (automation rule)", "operationId": "delete_automation_rule_id", "tags": ["automation"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/AutomationRule"}}}, "summary": "PUT rules (automation rule)", "operationId": "put_automation_rule_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AutomationRulePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["automation"]}}, "/automation/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Automation"}}}, "summary": "Search automations", "operationId": "post_automation_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AutomationSearch"}}], "tags": ["automation"]}}, "/automation/{_id}": {"parameters": [{"name": "_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Automation deleted."}}, "summary": "DELETE automation", "operationId": "delete_automation_id", "tags": ["automation"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Automation"}}}, "summary": "GET automation", "operationId": "get_automation_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["automation"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Automation"}}}, "summary": "PUT automation", "operationId": "put_automation_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AutomationPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["automation"]}}, "/automation/{_id}/rules": {"parameters": [{"name": "_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/AutomationRule"}}}, "summary": "Create rule for automation", "operationId": "post_automation_rule_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/AutomationRulePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["automation"]}, "get": {"responses": {"200": {"description": "List of automation rules.", "schema": {"$ref": "#/definitions/AutomationRule"}}}, "summary": "Rules for automation", "operationId": "get_automation_rule_collection", "tags": ["automation"]}}, "/base-interest-rates": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/BaseInterestRate"}}}}, "summary": "Get all active BaseInterestRate instances", "description": "This is a temporary until the /active endpoint is used instead", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/BaseInterestRate"}}}}, "summary": "Replace base interest rates collection", "operationId": "put_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BaseInterestRateBulkUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}}, "/base-interest-rates/active": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/BaseInterestRate"}}}}, "summary": "Get all active BaseInterestRate instances", "operationId": "get_active_base_interest_rates", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}}, "/base-interest-rates/product-rates": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestRateGrid"}}}, "summary": "Save base and product rates in one transaction: all of them or none", "description": "A null product rate switches it back to the base rate.", "operationId": "put_base_and_product_rates", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BaseInterestRateGridPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}}, "/base-interest-rates/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/BaseInterestRate"}}}, "summary": "Search base interest rates", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BaseInterestRateSearch"}}], "tags": ["base-interest-rates"]}}, "/base-interest-rates/{currency_}/active": {"parameters": [{"name": "currency_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestRate"}}}, "summary": "Update active base interest rate for currency", "operationId": "post_item_by_currency", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BaseInterestRatePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestRate"}}}, "summary": "Get BaseInterestRate instance", "operationId": "get_item_by_currency", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}}, "/base-interest-rates/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestRate"}}}, "summary": "Get BaseInterestRate instance", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestRate"}}}, "summary": "Update BaseInterestRate instance", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BaseInterestRatePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-rates"]}}, "/base-interest-settings/{target_id}": {"parameters": [{"name": "target_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestSettings"}}}, "summary": "GET base interest setting", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BaseInterestSettings"}}}, "summary": "PUT base interest setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BaseInterestSettingsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["base-interest-settings"]}}, "/bills": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Bills"}}}, "summary": "List bills", "operationId": "get_collection", "tags": ["bills"]}}, "/bills/bookkeep": {"put": {"responses": {"200": {"description": "Started to bookkeep bills"}}, "summary": "PUT - bookkeep", "operationId": "put_item_bookkeep", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BillBookkeep"}}], "tags": ["bills"]}}, "/bills/export": {"put": {"responses": {"200": {"description": "Started to export bills."}}, "summary": "PUT - export", "operationId": "put_item_export", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BillExport"}}], "tags": ["bills"]}}, "/bills/search": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Bills"}}}, "summary": "Search bills", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BillsSearch"}}], "tags": ["bills"]}}, "/bills/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Bills"}}}, "summary": "Get bill by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bills"]}}, "/blocked-payouts": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Payout"}}}}, "summary": "List blocked payouts", "operationId": "get_collection", "tags": ["blocked-payouts"]}}, "/blocked-payouts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Payout"}}}, "summary": "Search blocked payouts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BlockedPayoutSearch"}}], "tags": ["blocked-payouts"]}}, "/blocked-payouts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Payout"}}}, "summary": "Get blocked payout by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["blocked-payouts"]}}, "/bookkeeping-accounts": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/bookkeepingAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create bookkeeping account", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createdBookkeepingAccount"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-accounts"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/bookkeepingAccount"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List bookkeeping accounts", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["bookkeeping-accounts"]}}, "/bookkeeping-accounts/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/bookkeepingAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search bookkeeping accounts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/bookkeepingAccountSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["bookkeeping-accounts"]}}, "/bookkeeping-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/bookkeepingAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get bookkeeping account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-accounts"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/bookkeepingAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update bookkeeping account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updatedBookkeepingAccount"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-accounts"]}}, "/bookkeeping-accounts/{id_}/calculate-balance": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Recalculates and stores the bookkeeping account balance. No response body."}}, "summary": "Update calculate balance of bookkeeping account", "operationId": "put_item_calculate_balance", "tags": ["bookkeeping-accounts"]}}, "/bookkeeping-files": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/BookkeepingFile"}}}}, "summary": "List bookkeeping files", "operationId": "get_collection", "tags": ["bookkeeping-files"]}}, "/bookkeeping-files/billing": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFile"}}}, "summary": "PUT - billing", "operationId": "put_item_export", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileRoutineBilling"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-files"]}}, "/bookkeeping-files/generate": {"put": {"responses": {"200": {"description": "Bookkeeping file generation started."}}, "summary": "PUT - generate", "operationId": "put_item_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileGenerate"}}], "tags": ["bookkeeping-files"]}}, "/bookkeeping-files/internal/generate": {"put": {"responses": {"200": {"description": "Internal bookkeeping file generation started."}}, "summary": "PUT - internal generate", "operationId": "put_item_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileGenerateInternal"}}], "tags": ["bookkeeping-files"]}}, "/bookkeeping-files/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/BookkeepingFile"}}}, "summary": "Search bookkeeping files", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileSearch"}}], "tags": ["bookkeeping-files"]}}, "/bookkeeping-files/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFile"}}}, "summary": "Get bookkeeping file by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-files"]}}, "/bookkeeping-files/{id_}/export": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFile"}}}, "summary": "Update export of bookkeeping file", "operationId": "put_item_export", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-files"]}}, "/bookkeeping-revaluations": {"post": {"responses": {"202": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingRevaluationStarted"}}, "409": {"description": "A revaluation is running or already booked on bookedDate"}, "400": {"description": "bookedDate is not the latest month-end, or it is later than the day after it (with pushed exchange rates also before 21:00 on it)"}}, "summary": "Start the month-end currency revaluation for a booked date", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingRevaluationPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["bookkeeping-revaluations"]}}, "/business-areas": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-area"}}}, "summary": "Create business area", "operationId": "post_business_area_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-area-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-areas"]}, "get": {"responses": {"200": {"description": "Business areas.", "schema": {"$ref": "#/definitions/business-area"}}}, "summary": "List business areas", "operationId": "get_business_area_endpoint", "tags": ["business-areas"]}}, "/business-areas/search": {"post": {"responses": {"200": {"description": "Matching business areas.", "schema": {"$ref": "#/definitions/business-area"}}}, "summary": "Search business areas", "operationId": "post_business_area_search_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-area-search"}}], "tags": ["business-areas"]}}, "/business-areas/{business_area_id}": {"parameters": [{"name": "business_area_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Business area deleted."}}, "summary": "DELETE business area", "operationId": "delete_item_endpoint", "tags": ["business-areas"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-area"}}}, "summary": "GET business area", "operationId": "get_item_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-areas"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-area"}}}, "summary": "PUT business area", "operationId": "put_item_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-area-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-areas"]}}, "/business-loan/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BusinessLoanToDo"}}}, "summary": "Create todo", "operationId": "post_create_business_loan_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BusinessLoanToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loan/todo"]}}, "/business-loan/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/BusinessLoanToDo"}}}, "summary": "Search todos", "operationId": "post_business_loan_to_do_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BusinessLoanToDoSearch"}}], "tags": ["business-loan/todo"]}}, "/business-loan/todo/{business_loan_id}": {"parameters": [{"name": "business_loan_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/BusinessLoanToDo"}}}, "summary": "Get Business Loan To Do instances", "operationId": "get_business_loan_to_do_item_get_by_id", "tags": ["business-loan/todo"]}}, "/business-loan/todo/{business_loan_id}/{id}": {"parameters": [{"name": "business_loan_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Business loan to-do deleted.", "schema": {"$ref": "#/definitions/BusinessLoanToDoDeleteResponse"}}}, "summary": "Delete Business Loan To Do instance", "operationId": "delete_business_loan_to_do_item_get", "tags": ["business-loan/todo"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BusinessLoanToDo"}}}, "summary": "Get Business Loan To Do instance", "operationId": "get_business_loan_to_do_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loan/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BusinessLoanToDo"}}}, "summary": "Update Business Loan To Do instance", "operationId": "put_business_loan_to_do_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateBusinessLoanToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loan/todo"]}}, "/business-loans": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Create business loan", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/events": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_collection", "tags": ["business-loans/events"]}}, "/business-loans/events/ledger": {"get": {"responses": {"200": {"description": "Success"}}, "operationId": "get_collection", "tags": ["business-loans/events/ledger"]}}, "/business-loans/events/ledger/search": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BusinessLoanLedgerEventSearch"}}], "tags": ["business-loans/events/ledger"]}}, "/business-loans/events/ledger/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BusinessLoanLedgerEvent"}}}, "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans/events/ledger"]}}, "/business-loans/events/search": {"post": {"responses": {"200": {"description": "Success"}}, "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BusinessLoanEventSearch"}}], "tags": ["business-loans/events"]}}, "/business-loans/events/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BusinessLoanEvent"}}}, "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans/events"]}}, "/business-loans/installment/summary": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-summary-response"}}}, "summary": "PUT - installment summary", "operationId": "put_item_summary_no_entity", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-installment-summary-without-entity"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/search": {"post": {"responses": {"200": {"description": "Search results for business loans.", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Search business loans", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-search"}}], "tags": ["business-loans"]}}, "/business-loans/{business_loan_id}/financial-events": {"parameters": [{"name": "business_loan_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-financial-event"}}}, "summary": "Financial events business loan", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-financial-event-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "get": {"responses": {"200": {"description": "Financial events for the business loan.", "schema": {"$ref": "#/definitions/business-loan-financial-event"}}}, "summary": "Financial events for business loan", "operationId": "get_item", "tags": ["business-loans"]}}, "/business-loans/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Get business loan by id", "operationId": "get_item_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Update business loan", "operationId": "put_item_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/archive/add": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Update archive add of business loan", "operationId": "put_item_archive_add", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/archive/remove": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Update archive remove of business loan", "operationId": "put_item_archive_remove", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/copy": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "operationId": "post_item_copy", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-copy"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/credit-decision/approve": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}, "409": {"description": "The business loan is not waiting for a credit decision"}, "403": {"description": "With dual approval, the user who created the business loan cannot approve it"}}, "summary": "Update credit decision approve of business loan", "operationId": "put_item_approve", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/credit-decision/deny": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}, "409": {"description": "The business loan is not waiting for a credit decision"}}, "summary": "Update credit decision deny of business loan", "operationId": "put_item_deny", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/credit-decision/move": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Update credit decision move of business loan", "operationId": "put_item_move", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-credit-decision-move"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/fees": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-fee"}}}, "summary": "Add a fee to a fixed-term business loan that is created, pending decision, activated or paused", "operationId": "post_item_fees", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-fee-add"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/business-loan-fee"}}}}, "summary": "Fees for business loan", "operationId": "get_item_fees", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/fees/{fee_id}/accrual": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "fee_id", "in": "path", "required": true, "type": "integer"}], "patch": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-fee"}}}, "summary": "Set or clear the accrual period of a business loan fee", "operationId": "patch_item_fee_accrual", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-fee-accrual-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/guarantors": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/business-loan-guarantor"}}}}, "summary": "Guarantors for business loan", "operationId": "get_item_guarantors", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/installment-plan": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-plan"}}}, "summary": "The installment plan with its terms, locks and hand-set due dates, for the plan editor", "operationId": "get_item_installment_plan", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-plan"}}}, "summary": "Replace the installments that are not invoiced yet with the edited ones", "operationId": "put_item_installment_plan", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-installment-plan-save"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/installment-plan/regenerate": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-plan"}}}, "summary": "The plan with every installment that is not invoiced rebuilt from these terms, without saving it", "operationId": "put_item_installment_plan_regenerate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-installment-plan-terms"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/installment/summary": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-summary-response"}}}, "summary": "Update installment summary of business loan", "operationId": "put_item_summary", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-installment-summary"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/interest-margin": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-interest-margin"}}}, "summary": "The margin history of a business loan, the margin today and the earliest date it can change from", "operationId": "get_item_interest_margin", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-interest-margin"}}, "409": {"description": "Interest was invoiced while the margin was being changed"}}, "summary": "Change the margin from a date on; interest before that date keeps the earlier margin", "operationId": "put_item_interest_margin", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-interest-margin-change"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/interest-margin/preview": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-plan"}}}, "summary": "Check a margin change and preview the installments that are not invoiced yet, without saving it", "operationId": "put_item_interest_margin_preview", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-interest-margin-preview"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/invoice-frequency": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-invoice-frequency"}}}, "summary": "The invoicing frequency schedule of a business loan and the earliest date it can change from", "operationId": "get_item_invoice_frequency", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-plan"}}, "409": {"description": "An installment was invoiced while the frequency was being changed"}}, "summary": "Change the invoicing frequency from the given dates on and rebuild the installments that are not invoiced yet", "operationId": "put_item_invoice_frequency", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-invoice-frequency-change"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/invoice-frequency/preview": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-installment-plan"}}}, "summary": "Preview the installments that are not invoiced yet with a new invoicing frequency, without saving them", "operationId": "put_item_invoice_frequency_preview", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-invoice-frequency-preview"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/profile": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-profile"}}}, "summary": "Profile for business loan", "operationId": "get_item_profile", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan-profile"}}}, "summary": "Update profile of business loan", "operationId": "put_item_profile", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-profile-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/business-loans/{id_}/withdraw": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/business-loan"}}}, "summary": "Create a withdrawal request for a business loan", "description": "This endpoint creates an internal request that requires dual confirmation\nbefore the withdrawal is processed. The request will be in PENDING status\nand must be approved by a different user.", "operationId": "put_item_withdraw", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/business-loan-withdrawal-request"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["business-loans"]}}, "/cache/clear": {"post": {"responses": {"200": {"description": "Confirms the cache module was cleared."}}, "summary": "Clear cache entry", "operationId": "post_clear_module", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClearModule"}}], "tags": ["cache"]}}, "/cache/clear/all": {"post": {"responses": {"200": {"description": "Confirms the entire cache was cleared."}}, "summary": "Clear all cache entry", "operationId": "post_clear_all", "tags": ["cache"]}}, "/celery-task/close": {"put": {"responses": {"200": {"description": "Closed tasks count"}}, "summary": "This endpoint closes the UI lock on daily routines", "description": "It does nothing in Celery.", "operationId": "put_close_celery_tasks", "tags": ["celery-task"]}}, "/celery-task/latest-task-id/{task_name}": {"parameters": [{"name": "task_name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Task id returned", "schema": {"$ref": "#/definitions/CeleryTaskIdResponse"}}}, "summary": "GET latest task id (Celery task)", "operationId": "get_item_get_task_id", "tags": ["celery-task"]}}, "/celery-task/{task_id}": {"parameters": [{"name": "task_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Task status returned", "schema": {"$ref": "#/definitions/CeleryJobStatusResponse"}}}, "summary": "GET Celery task", "operationId": "get_item_get_job_status", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CeleryTask"}}], "tags": ["celery-task"]}}, "/changelog/business-loan": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/BusinessLoanChangeLog"}}}}, "summary": "Business loan changelog entry", "operationId": "get_collection_business_loan_changelog", "tags": ["changelog"]}}, "/changelog/business-loan/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/BusinessLoanChangeLog"}}}}, "summary": "GET business loan (changelog entry)", "operationId": "get_instance_business_loan_changelog", "tags": ["changelog"]}}, "/changelog/client": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "Client changelog entry", "operationId": "get_collection", "tags": ["changelog"]}}, "/changelog/client/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET client (changelog entry)", "operationId": "get_collection_client", "tags": ["changelog"]}}, "/changelog/debtor/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET debtor (changelog entry)", "operationId": "get_collection_debtor_changelog", "tags": ["changelog"]}}, "/changelog/email-template": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET all email templates (changelog entries)", "operationId": "get_collection_email_template_changelog_all", "tags": ["changelog"]}}, "/changelog/email-template/{template_key}/{locale}": {"parameters": [{"name": "template_key", "in": "path", "required": true, "type": "string"}, {"name": "locale", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET one email template (changelog entries)", "description": "Two path segments rather than one id, because the object a row is about is a\ntemplate and a locale together and a route parameter will not match a slash.", "operationId": "get_collection_email_template_changelog", "tags": ["changelog"]}}, "/changelog/instance-provider/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET instance provider (changelog entries)", "operationId": "get_collection_instance_provider_changelog", "tags": ["changelog"]}}, "/changelog/internal-request": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "Internal request changelog entry", "operationId": "get_collection_internal_request", "tags": ["changelog"]}}, "/changelog/internal-request/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET internal request (changelog entry)", "operationId": "get_instance_internal_request", "tags": ["changelog"]}}, "/changelog/invoice/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET invoice (changelog entry)", "operationId": "get_collection_invoice", "tags": ["changelog"]}}, "/changelog/other/{target}": {"parameters": [{"name": "target", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET the changelog entries of one target that no other history view shows", "operationId": "get_collection_other_changelog", "tags": ["changelog"]}}, "/changelog/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "Search changelog entries", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChangeLogSearch"}}], "tags": ["changelog"]}}, "/changelog/system-debtor/{identification_number}": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET system debtor (changelog entry)", "operationId": "get_collection_system_debtor_changelog", "tags": ["changelog"]}}, "/changelog/system-setting": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET all system settings (changelog entries)", "operationId": "get_collection_system_setting_changelog_all", "tags": ["changelog"]}}, "/changelog/system-setting/{key_}": {"parameters": [{"name": "key_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET system setting (changelog entry)", "operationId": "get_collection_system_setting_changelog", "tags": ["changelog"]}}, "/changelog/user/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET user (changelog entry)", "operationId": "get_collection_user", "tags": ["changelog"]}}, "/changelog/webhook": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET all webhooks (changelog entries)", "operationId": "get_collection_webhook_changelog_all", "tags": ["changelog"]}}, "/changelog/webhook/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChangeLog"}}}}, "summary": "GET webhook (changelog entry)", "operationId": "get_collection_webhook_changelog", "tags": ["changelog"]}}, "/charges": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Charge"}}}, "summary": "Create charge", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChargeCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["charges"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Charge"}}}}, "summary": "List charges", "operationId": "get_collection", "tags": ["charges"]}}, "/charges/authorize": {"put": {"responses": {"200": {"description": "Started to authorize charges."}}, "summary": "PUT - authorize", "operationId": "put_collection_authorize", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChargeAuthorize"}}], "tags": ["charges"]}}, "/charges/authorize/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for authorize charges task returned"}}, "summary": "Authorize latest task id charge", "operationId": "get_item_authorize_task_id", "tags": ["charges"]}}, "/charges/bill": {"put": {"responses": {"200": {"description": "Queues billing for the matched charges (async task). No response body."}}, "summary": "PUT - bill", "operationId": "put_collection_bill", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChargeBill"}}], "tags": ["charges"]}}, "/charges/bill/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for bill charges task returned"}}, "summary": "Bill latest task id charge", "operationId": "get_item_bill_task_id", "tags": ["charges"]}}, "/charges/generate": {"put": {"responses": {"200": {"description": "Started to generate charges"}}, "summary": "PUT - generate", "operationId": "put_collection_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChargeGenerate"}}], "tags": ["charges"]}}, "/charges/generate/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for generate charges task returned"}}, "summary": "Generate latest task id charge", "operationId": "get_item_bill_task_id", "tags": ["charges"]}}, "/charges/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Charge"}}}, "summary": "Search charges", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChargeSearch"}}], "tags": ["charges"]}}, "/charges/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Charge successfully deleted."}}, "summary": "Delete charge", "operationId": "delete_item", "tags": ["charges"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Charge"}}}, "summary": "Get charge by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["charges"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Charge"}}}, "summary": "Update charge", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ChargeUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["charges"]}}, "/client-account-payment-reference-settings": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettings"}}}, "summary": "Create client payment-reference setting", "operationId": "post_create_client_account_payment_reference_settings", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettingsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-account-payment-reference-settings"]}}, "/client-account-payment-reference-settings/client-account/{client_account_id}": {"parameters": [{"name": "client_account_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of client account payment reference settings.", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettings"}}}, "summary": "Get Client account payment reference setting instances", "operationId": "get_client_payment_reference_settings_item_get_by_id", "tags": ["client-account-payment-reference-settings"]}}, "/client-account-payment-reference-settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettings"}}}, "summary": "Search client payment-reference settings", "operationId": "post_client_account_payment_reference_settings_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettingsSearch"}}], "tags": ["client-account-payment-reference-settings"]}}, "/client-account-payment-reference-settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettings"}}}, "summary": "Get Client account payment reference settings instance", "operationId": "get_client_account_payment_reference_settings_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-account-payment-reference-settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettings"}}}, "summary": "Update Client account payment reference settings instance", "operationId": "put_client_account_payment_reference_settings_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientAccountPaymentReferenceSettingsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-account-payment-reference-settings"]}}, "/client-account-transactions": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/clientAccountTransaction"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "202": {"description": "The credit waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/ClientAccountTransactionRequestCreated"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create client account transaction", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createClientAccountTransaction"}}], "tags": ["client-account-transactions"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/clientAccountTransaction"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List client account transactions", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["client-account-transactions"]}}, "/client-account-transactions/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/clientAccountTransaction"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search client account transactions", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountTransactionSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["client-account-transactions"]}}, "/client-account-transactions/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccountTransaction"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get client account transaction by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-account-transactions"]}}, "/client-accounts": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create a client account", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-accounts"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/clientAccount"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List client accounts", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}, {"description": "Limit the result to the clients of one instance provider.", "name": "instanceProviderId", "type": "string", "in": "query"}], "tags": ["client-accounts"]}}, "/client-accounts/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/clientAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search client accounts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}, {"description": "Limit the result to the clients of one instance provider.", "name": "instanceProviderId", "type": "string", "in": "query"}], "tags": ["client-accounts"]}}, "/client-accounts/transfer": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccount"}}}, "summary": "PUT - transfer", "operationId": "put_collection_transfer", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountTransfer"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-accounts"]}}, "/client-accounts/transfer-from-transaction": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccount"}}}, "summary": "PUT - transfer from an existing client account transaction", "operationId": "put_collection_transfer_from_transaction", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountTransactionTransfer"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-accounts"]}}, "/client-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get client account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-accounts"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientAccount"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update client account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-accounts"]}}, "/client-accounts/{id_}/calculate-balance": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Recalculates and stores the client account balance. No response body."}}, "summary": "Update calculate balance of client account", "operationId": "put_collection_calculate_balance", "tags": ["client-accounts"]}}, "/client-accounts/{id_}/payout": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Payout triggered; returns the created payout batch id.", "schema": {"$ref": "#/definitions/ClientAccountPayoutResult"}}}, "summary": "Update payout of client account", "operationId": "put_item_payout", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientAccountPayout"}}], "tags": ["client-accounts"]}}, "/client-bank-account": {"post": {"responses": {"202": {"description": "The new client bank account waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/ClientBankAccountRequestCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientBankAccount"}}}, "summary": "Create client bank account", "operationId": "post_client_bank_account_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientBankAccountPost"}}], "tags": ["client-bank-account"]}}, "/client-bank-account-profile": {"post": {"responses": {"202": {"description": "The profile is created and its accounts wait for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/ClientBankAccountProfileRequestsCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientBankAccountProfile"}}}, "summary": "Create client bank account profile", "operationId": "post_client_bank_account_profile_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientBankAccountProfilePost"}}], "tags": ["client-bank-account-profile"]}}, "/client-bank-account-profile/client/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientBankAccountProfile"}}}, "summary": "GET client (client bank account profile)", "operationId": "get_client_bank_account_profile_get_by_client_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-bank-account-profile"]}}, "/client-bank-account-profile/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientBankAccountProfile"}}}, "summary": "Search client bank account profiles", "operationId": "post_client_bank_account_profile_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientBankAccountProfileSearch"}}], "tags": ["client-bank-account-profile"]}}, "/client-bank-account-profile/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientBankAccountProfile"}}}, "summary": "Get client bank account profile by id", "operationId": "get_client_bank_account_profile_get_by_profile_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-bank-account-profile"]}, "put": {"responses": {"202": {"description": "The change waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/ClientBankAccountProfileRequestCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientBankAccountProfile"}}}, "summary": "Update client bank account profile", "operationId": "put_client_bank_account_profile_get_by_profile_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientBankAccountProfilePut"}}], "tags": ["client-bank-account-profile"]}}, "/client-bank-account/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientBankAccount"}}}, "summary": "Search client bank accounts", "operationId": "post_client_bank_account_profile_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientBankAccountSearch"}}], "tags": ["client-bank-account"]}}, "/client-bank-account/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"202": {"description": "The deletion waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/ClientBankAccountRequestCreated"}}, "200": {"description": "Confirmation message that the client bank account was deleted.", "schema": {"$ref": "#/definitions/ClientBankAccountDeleteResponse"}}}, "summary": "Delete client bank account", "operationId": "delete_client_bank_account_get_by_profile_id", "tags": ["client-bank-account"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientBankAccount"}}}, "summary": "Get client bank account by id", "operationId": "get_client_bank_account_get_by_profile_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-bank-account"]}, "put": {"responses": {"202": {"description": "The change waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/ClientBankAccountRequestCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientBankAccount"}}}, "summary": "Update client bank account", "operationId": "put_client_bank_account_get_by_profile_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientBankAccountPut"}}], "tags": ["client-bank-account"]}}, "/client-debtor-payout-accounts": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Client%20Debtor%20Payout%20Account"}}}, "summary": "Create client/debtor payout account", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Client%20Debtor%20Payout%20Account"}}], "tags": ["client-debtor-payout-accounts"]}}, "/client-debtor-payout-accounts/debtor/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Client%20Debtor%20Payout%20Account"}}}, "summary": "GET debtor (client/debtor payout account)", "operationId": "get_collection_debtor", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-debtor-payout-accounts"]}}, "/client-debtor-payout-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Client%20Debtor%20Payout%20Account"}}}, "summary": "Get client/debtor payout account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-debtor-payout-accounts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Client%20Debtor%20Payout%20Account"}}}, "summary": "Update client/debtor payout account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Client%20Debtor%20Payout%20Account%20Put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-debtor-payout-accounts"]}}, "/client-financial-price-template": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPrice"}}}, "summary": "Create client financial-price template", "operationId": "post_client_template_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFinancialPricePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateList"}}}, "summary": "List client financial-price templates", "operationId": "get_client_template_create", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}}, "/client-financial-price-template/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPrice"}}}, "summary": "Get client financial-price template by id", "operationId": "get_client_template_modify", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPrice"}}}, "summary": "Update client financial-price template", "operationId": "put_client_template_modify", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}}, "/client-financial-price-template/{id_}/clients/engine-rule": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientFinancialPriceClientGet"}}}, "summary": "Clients engine rule for client financial-price template", "operationId": "get_client_template_clients", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}, "put": {"responses": {"200": {"description": "Client engine-rule update started for the template."}}, "summary": "Update clients engine rule of client financial-price template", "operationId": "put_client_template_clients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientFinancialPriceClientPut"}}], "tags": ["client-financial-price-template"]}}, "/client-financial-price-template/{id_}/clients/engine-rule/history": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientFinancialPriceClientHistory"}}}, "summary": "Clients engine rule history for client financial-price template", "operationId": "get_client_template_clients_history", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}}, "/client-financial-price-template/{id_}/clients/engine-rule/status": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientFinancialPriceClientHistory"}}}, "summary": "Clients engine rule status for client financial-price template", "operationId": "get_client_template_clients_status", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}}, "/client-financial-price-template/{id_}/enabled": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplate"}}}, "summary": "Update enabled of client financial-price template", "operationId": "put_client_template_state", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateEnabled"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}}, "/client-financial-price-template/{id_}/logotype": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPrice"}}}, "summary": "Update logotype of client financial-price template", "operationId": "put_item_logotype", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-financial-price-template"]}}, "/client-groups": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientGroupWithStats"}}}, "summary": "Create client group", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientGroupPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-groups"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientGroup"}}}}, "summary": "List client groups", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-groups"]}}, "/client-groups/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientGroup"}}}, "summary": "Search client groups", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientGroupSearch"}}], "tags": ["client-groups"]}}, "/client-groups/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Client group successfully deleted."}}, "summary": "Delete client group", "operationId": "delete_delete_client_group_item", "tags": ["client-groups"]}}, "/client-groups/{id_}/clients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientGroupClient"}}}, "summary": "Clients client group", "operationId": "post_item_collection_client", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientGroupClientPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-groups"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientGroupClient"}}}, "summary": "Clients for client group", "operationId": "get_item_collection_client", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-groups"]}}, "/client-groups/{id_}/clients/{client_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "client_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Client successfully removed from client group."}}, "summary": "Delete clients of client group", "operationId": "delete_item_client", "tags": ["client-groups"]}}, "/client-handlers": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientHandler"}}}, "summary": "Create client handler", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientHandlerPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-handlers"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientHandler"}}}}, "summary": "List client handlers", "operationId": "get_collection", "tags": ["client-handlers"]}}, "/client-handlers/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientHandler"}}}, "summary": "Search client handlers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientHandlerSearch"}}], "tags": ["client-handlers"]}}, "/client-handlers/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientHandler"}}}, "summary": "Get client handler by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-handlers"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientHandler"}}}, "summary": "Update client handler", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientHandlerPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-handlers"]}}, "/client-handlers/{id_}/billing-details": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientHandlerBillingSettings"}}}, "summary": "Billing details for client handler", "operationId": "get_item_billing_detail", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-handlers"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientHandlerBillingSettings"}}}, "summary": "Update billing details of client handler", "operationId": "put_item_billing_detail", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientHandlerBillingSettingPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-handlers"]}}, "/client-handlers/{id_}/connect/{client_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "client_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Client disconnected from the client handler."}}, "summary": "Delete connect of client handler", "operationId": "delete_item_connect_client", "tags": ["client-handlers"]}, "put": {"responses": {"200": {"description": "Client connected to the client handler."}}, "summary": "Update connect of client handler", "operationId": "put_item_connect_client", "tags": ["client-handlers"]}}, "/client-invoice-request": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientInvoiceRequests"}}}, "summary": "Create client invoice request", "operationId": "post_client_invoice_requests_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceRequestsPost"}}], "tags": ["client-invoice-request"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequests"}}}}, "summary": "List client invoice requests", "operationId": "get_client_invoice_requests_create", "tags": ["client-invoice-request"]}}, "/client-invoice-request/decline-multiple": {"put": {"responses": {"200": {"description": "Selected client invoice requests declined."}}, "summary": "PUT - decline multiple", "operationId": "put_client_invoice_requests_reject_multiple", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceRequestsRejectMultiple"}}], "tags": ["client-invoice-request"]}}, "/client-invoice-request/enabled": {"get": {"responses": {"200": {"description": "Whether client invoice requests are enabled."}}, "summary": "Enabled client invoice request", "operationId": "get_client_invoice_request_enabled", "tags": ["client-invoice-request"]}}, "/client-invoice-request/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientInvoiceRequests"}}}, "summary": "Search client invoice requests", "operationId": "post_client_invoice_requests_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceRequestsSearch"}}], "tags": ["client-invoice-request"]}}, "/client-invoice-request/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientInvoiceRequests"}}}, "summary": "Get client invoice request by id", "operationId": "get_client_invoice_requests_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-invoice-request"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientInvoiceRequests"}}}, "summary": "Update client invoice request", "operationId": "put_client_invoice_requests_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceRequestsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-invoice-request"]}}, "/client-invoice-request/{id}/comment": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientInvoiceRequestComment"}}}, "summary": "Comment client invoice request", "operationId": "post_client_invoice_requests_comment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceRequestCommentPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-invoice-request"]}}, "/client-invoice-request/{id}/documents": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/ClientInvoiceRequestDocument"}}}, "summary": "Upload an attachment to a client invoice request", "operationId": "post_client_invoice_request_documents", "parameters": [{"name": "file", "in": "formData", "type": "file", "required": true}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "consumes": ["multipart/form-data"], "tags": ["client-invoice-request"]}}, "/client-match-payments/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientMatchPayments"}}}, "summary": "Search client match payments", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionSearchClient"}}], "tags": ["client-match-payments"]}}, "/client-products": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientProduct"}}}}, "summary": "List client products", "operationId": "get_collection", "tags": ["client-products"]}}, "/client-products/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientProduct"}}}, "summary": "Search client products", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientProductSearch"}}], "tags": ["client-products"]}}, "/client-products/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientProduct"}}}, "summary": "Get client product by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-products"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientProduct"}}}, "summary": "Update client product", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientProductPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-products"]}}, "/client-products/{id_}/apply": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientProduct"}}}, "summary": "Update apply of client product", "operationId": "put_item_apply", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-products"]}}, "/client-products/{id_}/default": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientProduct"}}}, "summary": "Mark client product as default", "operationId": "put_item_default", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-products"]}}, "/client-products/{id_}/toggle": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientProduct"}}}, "summary": "Toggle client product active state", "operationId": "put_toggle_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-products"]}}, "/client-transfer-text": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/client-transfer-text"}}}, "summary": "Create client transfer text", "operationId": "post_client_transfer_text_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/client-transfer-text-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-transfer-text"]}}, "/client-transfer-text/search": {"post": {"responses": {"200": {"description": "Search results of client transfer texts.", "schema": {"$ref": "#/definitions/client-transfer-text"}}}, "summary": "Search client transfer texts", "operationId": "post_client_transfer_text_search_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/client-transfer-text-search"}}], "tags": ["client-transfer-text"]}}, "/client-transfer-text/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Client transfer text deleted."}}, "summary": "Delete a client's own transfer text, so its invoices use the text they would have without it", "operationId": "delete_client_transfer_text_single_endpoint", "tags": ["client-transfer-text"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/client-transfer-text"}}}, "summary": "Update client transfer text", "operationId": "put_client_transfer_text_single_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/client-transfer-text-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-transfer-text"]}}, "/client-users": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientUserList"}}}, "summary": "Create client user", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientUserList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-users"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientUserList"}}}, "summary": "List client users", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-users"]}}, "/client-users/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/clientUserList"}}}, "summary": "Search client users", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientUserSearch"}}], "tags": ["client-users"]}}, "/client-users/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Client user deleted.", "schema": {"$ref": "#/definitions/ClientUserDeleteResponse"}}}, "summary": "Delete client user", "operationId": "delete_item", "tags": ["client-users"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientUserList"}}}, "summary": "Get client user by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client-users"]}}, "/client/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientToDo"}}}, "summary": "Create todo", "operationId": "post_create_client_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client/todo"]}}, "/client/todo/resolve-multiple": {"put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientToDo"}}}}, "summary": "PUT - resolve multiple", "operationId": "put_resolve_multiple_client_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ResolveMultipleClientToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client/todo"]}}, "/client/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientToDo"}}}, "summary": "Search todos", "operationId": "post_client_to_do_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientToDoSearch"}}], "tags": ["client/todo"]}}, "/client/todo/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientToDo"}}}, "summary": "Get Client To Do instances", "operationId": "get_client_to_do_item_get_by_id", "tags": ["client/todo"]}}, "/client/todo/{client_id}/{id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientToDo"}}}, "summary": "Get Client To Do instance", "operationId": "get_client_to_do_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientToDo"}}}, "summary": "Update Client To Do instance", "operationId": "put_client_to_do_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateClientToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["client/todo"]}}, "/clients": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create client", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createClient"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/client"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List clients", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["clients"]}}, "/clients/articles": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientArticle"}}}, "summary": "Create article", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientArticlePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/articles"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientArticle"}}}}, "summary": "List articles", "operationId": "get_collection", "tags": ["clients/articles"]}}, "/clients/articles/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientArticle"}}}, "summary": "Search articles", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientArticleSearch"}}], "tags": ["clients/articles"]}}, "/clients/articles/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientArticle"}}}, "summary": "Delete article", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/articles"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientArticle"}}}, "summary": "Get article by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/articles"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientArticle"}}}, "summary": "Update article", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientArticlePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/articles"]}}, "/clients/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/client"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search clients", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["clients"]}}, "/clients/sync/invoices/booking-error": {"put": {"responses": {"204": {"description": "The open booking errand of the invoice was created or updated."}}, "summary": "Report that the ERP refused to book a synced invoice, as an errand on the invoice", "operationId": "put_item_booking_error", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncInvoiceBookingError"}}], "tags": ["clients"]}}, "/clients/sync/invoices/status": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSyncInvoice"}}}, "operationId": "put_item_status_v2", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncStatusInvoice"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{client_id}/connect-to-git": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Client connected to GIT ERP; returns the client and erp ids.", "schema": {"$ref": "#/definitions/ClientConnectToGitResponse"}}}, "summary": "Update connect to git of client", "operationId": "put_item_connect_to_git", "tags": ["clients"]}}, "/clients/{client_id}/financing-limits": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancingLimits"}}}, "summary": "Get consolidated financing limit breakdown for a client", "description": "- currency: agreement currency\n- individualLimitAgreement / recourseLimitAgreement: amounts in agreement currency\n- groupLimitsLocale: group amounts in system locale currency\n- groupLimitsAgreement: group amounts converted to agreement currency", "operationId": "get_client_financing_limits", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{client_id}/labels": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "OK", "schema": {"$ref": "#/definitions/LabelClient"}}}, "summary": "Create label", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateLabelClient"}}], "tags": ["clients/<client_id>/labels"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/LabelClient"}}}}, "summary": "List labels", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["clients/<client_id>/labels"]}}, "/clients/{client_id}/labels/{id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete label", "operationId": "delete_item_client_label", "tags": ["clients/<client_id>/labels"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/LabelClient"}}}, "summary": "Update label", "operationId": "put_item_client_label", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateLabelClient"}}], "tags": ["clients/<client_id>/labels"]}}, "/clients/{client_id}/settings/invoice": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientInvoiceSettings"}}}, "summary": "List invoices", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/settings/invoice"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientInvoiceSettings"}}}, "summary": "Replace invoices collection", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceSettingsUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/settings/invoice"]}}, "/clients/{client_id}/sync": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "List syncs", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "Replace syncs collection", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/complete-integration": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "Method should run complete integration", "operationId": "put_item_complete_integration", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncCompleteIntegration"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/disable": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "PUT - disable", "operationId": "put_item_disable", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/enable": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "PUT - enable", "operationId": "put_item_enable", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/invoices": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSyncInvoice"}}}, "summary": "Sync invoices client", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncInvoiceCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "get": {"responses": {"200": {"description": "List of client sync invoices.", "schema": {"$ref": "#/definitions/ClientSyncInvoice"}}}, "summary": "Sync invoices for client", "operationId": "get_collection", "tags": ["clients"]}}, "/clients/{client_id}/sync/invoices/abort": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSyncInvoice"}}}, "summary": "Update sync invoices abort of client", "operationId": "put_item_sync_abort", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{client_id}/sync/invoices/search": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "List of client sync invoices.", "schema": {"$ref": "#/definitions/ClientSyncInvoice"}}}, "summary": "Sync invoices search client", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientInvoiceSearch"}}], "tags": ["clients"]}}, "/clients/{client_id}/sync/invoices/status": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSyncInvoice"}}}, "summary": "Update sync invoices status of client", "operationId": "put_item_status", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncStatusInvoice"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{client_id}/sync/mark-integration-as-connected": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "PUT - mark integration as connected", "operationId": "put_item_mark_integration_as_connected", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/obtain-onboarding-url": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Redirect action and onboarding URL.", "schema": {"$ref": "#/definitions/ClientSyncOnboardingUrl"}}}, "summary": "Obtain onboarding url sync", "operationId": "post_item_obtain_onboarding_url", "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/reset": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "PUT - reset", "operationId": "put_item_reset", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncReset"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{client_id}/sync/status": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSync"}}}, "summary": "PUT - status", "operationId": "put_item_status", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSyncStatus"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients/<client_id>/sync"]}}, "/clients/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get client by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update client", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateClient"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/copy-setup": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/copyClientSetupResult"}}}, "summary": "Copy the set-up of another client: invoice profiles, collection profiles, invoice settings, base", "description": "interest, client settings, distribution and payment matching engine. Each part also needs the right\nthat changes it on its own.", "operationId": "post_item_copy_setup", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/copyClientSetup"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/credit-data": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Credit data created for the client."}}, "summary": "Credit data client", "operationId": "post_item_credit_data", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditDataClient"}}], "tags": ["clients"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientCreditDataWithPdfItem"}}}, "summary": "Credit data for client", "operationId": "get_item_credit_data", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/document-setting": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientDocumentSetting"}}}, "summary": "Document setting client", "operationId": "post_document_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientDocumentSetting"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientDocumentSetting"}}}, "summary": "Document setting for client", "operationId": "get_document_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/einvoice-settings": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Per-country e-invoice settings.", "schema": {"type": "array", "items": {"$ref": "#/definitions/clientEinvoiceSetting"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get the client's per-country e-invoice settings", "operationId": "get_einvoice_settings", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Per-country e-invoice settings.", "schema": {"type": "array", "items": {"$ref": "#/definitions/clientEinvoiceSetting"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Replace the client's per-country e-invoice settings", "operationId": "put_einvoice_settings", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateClientEinvoiceSettings"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/email-recipients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientEmailRecipient"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Email recipients client", "operationId": "post_email_recipient", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientEmailRecipientPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientEmailRecipient"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Email recipients for client", "operationId": "get_email_recipient", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientEmailRecipient"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/email-recipients/{er_id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "er_id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Client recipient email successfully deleted.", "schema": {"$ref": "#/definitions/ClientEmailRecipient"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Delete email recipients of client", "operationId": "delete_email_recipient_delete", "tags": ["clients"]}}, "/clients/{id_}/erp-connect": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update erp connect of client", "operationId": "put_item_connect_to_erp", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientConnectToErp"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/logotype": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update logotype of client", "operationId": "put_item_logotype", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/payment-accounts": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "409": {"description": "Payment account is already linked to the client", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "404": {"description": "Client or payment account not found", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/clientPaymentAccount"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Link an EXTERNAL payment account to a client", "description": "A payment can be registered on an EXTERNAL payment account only when the account is linked to the client\nof the invoice. Returns the payment accounts linked to the client.", "operationId": "post_payment_accounts", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientPaymentAccountPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/payment-accounts/{payment_account_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "payment_account_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "404": {"description": "Payment account is not linked to the client", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/clientPaymentAccount"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Unlink an EXTERNAL payment account from a client", "description": "The payment account itself is kept. Returns the payment accounts still linked to the client.", "operationId": "delete_payment_account_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/preferred-language": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}}}, "summary": "Update preferred language of client", "operationId": "put_item_update_client_preferred_language", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientPreferredLanguage"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/reminder-profiles/default": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientReminderProfile"}}}, "summary": "Reminder profiles default for client", "operationId": "get_item_update_client_reminder_profile", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/clientReminderProfile"}}}, "summary": "Update reminder profiles default of client", "operationId": "put_item_update_client_reminder_profile", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientUpdateReminderProfile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/settings/billing": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientBillingSettings"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Settings billing for client", "operationId": "get_billing_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientBillingSettings"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update settings billing of client", "operationId": "put_billing_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateClientBillingSettings"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/settings/bookkeeping": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientBookkeepingSettings"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Settings bookkeeping for client", "operationId": "get_bookkeeping_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientBookkeepingSettings"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update settings bookkeeping of client", "operationId": "put_bookkeeping_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateClientBookkeepingSettings"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/settings/compliance": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientComplianceSettings"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Settings compliance for client", "operationId": "get_compliance_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/clientComplianceSettings"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update settings compliance of client", "operationId": "put_compliance_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateClientComplianceSettings"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{id_}/settings/invoice-text": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceTextSettings"}}}, "summary": "Settings invoice text client", "operationId": "post_client_invoice_text_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceTextSettings"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceTextSettings"}}}, "summary": "Settings invoice text for client", "operationId": "get_client_invoice_text_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceTextSettings"}}}, "summary": "Update settings invoice text of client", "operationId": "put_client_invoice_text_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceTextSettings"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/clients/{identification_number_}/credit-history-monitoring": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditHistoryMonitoringClient"}}}, "summary": "Credit history monitoring for client", "operationId": "get_item_credit_history_monitoring", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["clients"]}}, "/collection-batch-invoice/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatchInvoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search collection batch invoices", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchInvoiceSearch"}}], "tags": ["collection-batch-invoice"]}}, "/collection-batch-payment-reference-settings": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettings"}}}, "summary": "Create collection batch payment reference setting", "operationId": "post_create_collection_batch_payment_reference_settings", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettingsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batch-payment-reference-settings"]}}, "/collection-batch-payment-reference-settings/client/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of collection batch payment reference settings for the client.", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettings"}}}, "summary": "Get Collection batch payment reference setting instances", "operationId": "get_client_payment_reference_settings_item_get_by_id", "tags": ["collection-batch-payment-reference-settings"]}}, "/collection-batch-payment-reference-settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettings"}}}, "summary": "Search collection batch payment reference settings", "operationId": "post_collection_batch_payment_reference_settings_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettingsSearch"}}], "tags": ["collection-batch-payment-reference-settings"]}}, "/collection-batch-payment-reference-settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettings"}}}, "summary": "Get Collection batch payment reference settings instance", "operationId": "get_collection_batch_payment_reference_settings_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batch-payment-reference-settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettings"}}}, "summary": "Update Collection batch payment reference settings instance", "operationId": "put_collection_batch_payment_reference_settings_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPaymentReferenceSettingsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batch-payment-reference-settings"]}}, "/collection-batch/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchToDo"}}}, "summary": "Create Collection Batch To Do", "description": "This first requires a Note containing the description.\nThis method was chosen to allow file uploads to the note, without having to replicate that logic.", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batch/todo"]}}, "/collection-batch/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatchToDo"}}}, "summary": "Search collection-batch to-dos", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchToDoSearch"}}], "tags": ["collection-batch/todo"]}}, "/collection-batch/todo/{collection_batch_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatchToDo"}}}, "summary": "Get Collection Batch To Do instances", "operationId": "get_item_get_by_id", "tags": ["collection-batch/todo"]}}, "/collection-batch/todo/{collection_batch_id}/{id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchToDo"}}}, "summary": "Get Collection Batch To Do instance", "operationId": "get_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batch/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchToDo"}}}, "summary": "Update Collection Batch To Do instance", "operationId": "put_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateCollectionBatchToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batch/todo"]}}, "/collection-batches": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Create collection batch", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/actions/bulk-update": {"put": {"responses": {"200": {"description": "Bulk update applied to collection batches."}}, "summary": "Replace bulk updates collection", "operationId": "put_item_action_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchBulkUpdatePostpone"}}], "tags": ["collection-batches/actions/bulk-update"]}}, "/collection-batches/actions/bulk-update/create-note": {"put": {"responses": {"200": {"description": "Note added to collection batches."}}, "summary": "PUT - create note", "operationId": "put_item_action_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchBulkUpdateNote"}}], "tags": ["collection-batches/actions/bulk-update"]}}, "/collection-batches/actions/bulk-update/postpone-collection-batches": {"put": {"responses": {"200": {"description": "Collection batches postponed."}}, "summary": "PUT - postpone collection batches", "operationId": "put_item_action_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchBulkUpdatePostpone"}}], "tags": ["collection-batches/actions/bulk-update"]}}, "/collection-batches/charges": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ChargeCollectionBatch"}}}}, "summary": "List charges", "operationId": "get_collection", "tags": ["collection-batches/charges"]}}, "/collection-batches/charges/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ChargeCollectionBatch"}}}, "summary": "Search charges", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchChargeSearch"}}], "tags": ["collection-batches/charges"]}}, "/collection-batches/charges/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ChargeCollectionBatch"}}}, "summary": "Get charge by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches/charges"]}}, "/collection-batches/events": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchEvent"}}}}, "summary": "List events", "operationId": "get_collection", "tags": ["collection-batches/events"]}}, "/collection-batches/events/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatchEvent"}}}, "summary": "Search events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchEventSearch"}}], "tags": ["collection-batches/events"]}}, "/collection-batches/events/{collection_batch_id}/trigger": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/TriggerCollectionBatchEventResponse"}}}, "summary": "Update trigger of event", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/TriggerCollectionBatchEvent"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches/events"]}}, "/collection-batches/events/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchEvent"}}}, "summary": "Get event by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches/events"]}}, "/collection-batches/financial-events/{collection_batch_financial_event_id}/reverse": {"parameters": [{"name": "collection_batch_financial_event_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchFinancialEvent"}}}, "summary": "PUT financial events reverse (collection batch)", "operationId": "put_collection_batch_financial_event_reverse", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/history/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatchHistory"}}}, "summary": "Search collection batch history", "operationId": "post_collection_batch_history_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchHistorySearch"}}], "tags": ["collection-batches"]}}, "/collection-batches/invoices": {"post": {"responses": {"200": {"description": "Created collection batches and any missed invoice ids.", "schema": {"$ref": "#/definitions/CollectionBatchInvoicesResponse"}}}, "summary": "Invoices collection batch", "operationId": "post_collection_invoices", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchInvoicesUpdate"}}], "tags": ["collection-batches"]}}, "/collection-batches/notes": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/NoteCollection"}}}, "summary": "Notes collection batch", "operationId": "post_create_collection_batch_note", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchNote"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/previous-clients/search": {"post": {"responses": {"200": {"description": "List of previous client history entries for the collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchClientHistory"}}}, "summary": "Previous clients search collection batch", "operationId": "post_item_search_updated_client", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchClientHistorySearch"}}], "tags": ["collection-batches"]}}, "/collection-batches/purchase/file": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-batch-file"}}}, "summary": "File purchase", "operationId": "post_collection_purchase_file", "parameters": [{"name": "file", "in": "formData", "type": "file", "required": true}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "consumes": ["multipart/form-data"], "tags": ["collection-batches/purchase"]}, "get": {"responses": {"200": {"description": "List of collection batch purchase files.", "schema": {"$ref": "#/definitions/collection-batch-file"}}}, "summary": "File purchase", "operationId": "get_collection_purchase_file", "tags": ["collection-batches/purchase"]}}, "/collection-batches/purchase/file/search": {"post": {"responses": {"200": {"description": "List of collection batch purchase files.", "schema": {"$ref": "#/definitions/collection-batch-file"}}}, "summary": "File search purchase", "operationId": "post_collection_purchase_file_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-batch-file-search"}}], "tags": ["collection-batches/purchase"]}}, "/collection-batches/purchase/file/{_id}/retry": {"parameters": [{"name": "_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-batch-file"}}}, "summary": "PUT file retry (purchase)", "operationId": "put_collection_purchase_file_import", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches/purchase"]}}, "/collection-batches/purchase/search": {"post": {"responses": {"200": {"description": "List of collection batch purchases.", "schema": {"$ref": "#/definitions/collection-batch-purchase"}}}, "summary": "Search purchases", "operationId": "post_collection_purchase_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-batch-purchase-search"}}], "tags": ["collection-batches/purchase"]}}, "/collection-batches/run-reprieve-job": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Run reprieve job collection batch", "operationId": "post_item_reprieve_job", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReprieveJobCollectionBatch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Search collection batches", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchSearch"}}], "tags": ["collection-batches"]}}, "/collection-batches/table": {}, "/collection-batches/table/search": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchWithDocumentGet"}}}, "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collectionBatch"}}], "tags": ["collection-batches/table"]}}, "/collection-batches/table/{collection_batch_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchWithDocumentGet"}}}, "operationId": "get_item_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches/table"]}}, "/collection-batches/{collection_batch_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchWithDocument"}}}, "summary": "GET collection batch", "operationId": "get_item_id", "tags": ["collection-batches"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "PUT collection batch", "operationId": "put_item_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/append-collection-profile": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Collection profile appended to the collection batch."}}, "summary": "Append a collection profile to a collection batch", "operationId": "put_collection_batch_collection_profile_append_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-batch-change-profile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/close-reprieve": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Active reprieve on the collection batch was closed."}}, "summary": "Update close reprieve of collection batch", "operationId": "put_item_close_reprieve", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReprieveCloseCollectionBatch"}}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/collection-profile": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Collection profile for the collection batch.", "schema": {"$ref": "#/definitions/collection-batch-collection-profile-get"}}}, "summary": "Get the collection profile for a collection batch", "operationId": "get_collection_batch_collection_profile_get_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/count-notes": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchCounter"}}}, "summary": "Count notes for collection batch", "operationId": "get_count_notes", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/count-tasks": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchCounter"}}}, "summary": "Count tasks for collection batch", "operationId": "get_count_tasks", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/dispute": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Update dispute of collection batch", "operationId": "put_item_dispute", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StopCollectionBatch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/financial-events": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchFinancialEvent"}}}, "summary": "Creates a financial event for a collection batch", "operationId": "post_collection_batch_financial_event_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchFinancialEventPostInput"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}, "get": {"responses": {"200": {"description": "Financial events for the collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchFinancialEvent"}}}, "summary": "Fetch all financial events for a given collection batch", "operationId": "get_collection_batch_financial_event_item", "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/guarantors": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchGuarantor"}}}, "summary": "Guarantors collection batch", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchGuarantorCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}, "get": {"responses": {"200": {"description": "List of collection batch guarantors.", "schema": {"$ref": "#/definitions/CollectionBatchGuarantor"}}}, "summary": "Guarantors for collection batch", "operationId": "get_collection", "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/guarantors/search": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "List of collection batch guarantors.", "schema": {"$ref": "#/definitions/CollectionBatchGuarantor"}}}, "summary": "Guarantors search collection batch", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceGuarantorSearchCollection"}}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/guarantors/{guarantor_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}, {"name": "guarantor_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchGuarantor"}}}, "summary": "Delete guarantors of collection batch", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchGuarantor"}}}, "summary": "Guarantors for collection batch", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchGuarantor"}}}, "summary": "Update guarantors of collection batch", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchGuarantorUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/history": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "History for the collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchHistory"}}}, "summary": "Fetch the history for a given collection batch", "operationId": "get_collection_batch_history_item", "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/invoices/labels": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Invoice labels for the collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchLabelInvoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Invoices labels for collection batch", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/invoices/{invoice_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}, {"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Collection batch invoice successfully deleted."}}, "summary": "Deletes a CollectionBatchInvoice related to CollectionBatch", "operationId": "delete_item_invoices", "tags": ["collection-batches"]}, "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchInvoiceCollection"}}}, "summary": "Creates an invoice to collection batch relationship entity", "operationId": "post_item_invoices", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/judgement": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchJudgement"}}}, "summary": "Judgement for collection batch", "operationId": "get_item_judgement", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchJudgement"}}}, "summary": "Updates existing or creates a new judgement", "operationId": "put_item_judgement", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchJudgementPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/notes": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of collection batch notes.", "schema": {"$ref": "#/definitions/NoteCollection"}}}, "summary": "Notes for collection batch", "operationId": "get_collection_batch_note", "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/notes/{note_id}/attach-file": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}, {"name": "note_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentCollection"}}}, "summary": "Update notes attach file of collection batch", "operationId": "put_collection_batch_note_attach_file", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/part-payment/start": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Part payment plan started; returns the part payment plan id.", "schema": {"$ref": "#/definitions/CollectionBatchPartPaymentStartResponse"}}}, "summary": "Update part payment start of collection batch", "operationId": "put_item_part_payment_start", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPartPaymentStart"}}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/part-payment/stop": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Part payment plan stopped for the collection batch."}}, "summary": "Update part payment stop of collection batch", "operationId": "put_item_part_payment_stop", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPartPaymentStop"}}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/payment-account": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchClientPaymentAccount"}}}, "summary": "Payment account for collection batch", "operationId": "get_payment_account", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/postpone-ledger-events": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Update postpone ledger events of collection batch", "operationId": "put_item_postpone", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PostponeCollectionBatch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/replace-collection-profile": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Collection profile replaced on the collection batch."}}, "summary": "Replace the collection profile on a collection batch", "operationId": "put_collection_batch_collection_profile_replace_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-batch-change-profile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/reprieve": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReprieveGetCollectionBatch"}}}, "summary": "Reprieve for collection batch", "operationId": "get_item_reprieve", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReprieveGetCollectionBatch"}}}, "summary": "Update reprieve of collection batch", "operationId": "put_item_reprieve", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReprieveCreateCollectionBatch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/resume": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Update resume of collection batch", "operationId": "put_item_resume", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/stop": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Update stop of collection batch", "operationId": "put_item_stop", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StopCollectionBatch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/update-client": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Collection batch client successfully updated."}}, "summary": "Updates existing collection batch with new client id", "operationId": "put_item_update_client", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPutClientUpdate"}}], "tags": ["collection-batches"]}}, "/collection-batches/{collection_batch_id}/writeoff": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatch"}}}, "summary": "Update writeoff of collection batch", "operationId": "put_item_writeoff", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/WriteOffCollectionBatch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{id_}/debtor-lookup": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Debtor data lookup performed and updated."}}, "summary": "Update debtor lookup of collection batch", "operationId": "put_credit_check_debtor", "tags": ["collection-batches"]}}, "/collection-batches/{id_}/invoices": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchInvoiceInvoice"}}}, "summary": "Invoices for collection batch", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-batches"]}}, "/collection-batches/{invoice_id}/create-collection-batch": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Collection batch created; returns the new collection batch id.", "schema": {"$ref": "#/definitions/CreateSingleInvoiceCollectionBatchResponse"}}}, "summary": "Create collection batch collection batch", "operationId": "post_add_single_invoice_to_collection_batch", "tags": ["collection-batches"]}}, "/collection-profile": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile"}}}, "summary": "Create collection profile", "operationId": "post_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/levels": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level"}}}, "summary": "Levels collection profile", "operationId": "post_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-level-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/levels/placeholders/search": {"post": {"responses": {"200": {"description": "List of collection profile level placeholders.", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder"}}}, "summary": "Levels placeholders search collection profile", "operationId": "post_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder-search"}}], "tags": ["collection-profile"]}}, "/collection-profile/levels/placeholders/{placeholder_id}": {"parameters": [{"name": "placeholder_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Collection profile level placeholder deleted."}}, "summary": "DELETE levels placeholders (collection profile)", "operationId": "delete_collection_profile_endpoint", "tags": ["collection-profile"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder"}}}, "summary": "GET levels placeholders (collection profile)", "operationId": "get_collection_profile_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder"}}}, "summary": "PUT levels placeholders (collection profile)", "operationId": "put_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/levels/search": {"post": {"responses": {"200": {"description": "List of collection profile levels.", "schema": {"$ref": "#/definitions/collection-profile-level"}}}, "summary": "Levels search collection profile", "operationId": "post_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-level-search"}}], "tags": ["collection-profile"]}}, "/collection-profile/levels/{collection_profile_level_id}": {"parameters": [{"name": "collection_profile_level_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Collection profile level deleted."}}, "summary": "DELETE levels (collection profile)", "operationId": "delete_collection_profile_endpoint", "tags": ["collection-profile"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level"}}}, "summary": "GET levels (collection profile)", "operationId": "get_collection_profile_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level"}}}, "summary": "PUT levels (collection profile)", "operationId": "put_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-level-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/levels/{collection_profile_level_id}/placeholders": {"parameters": [{"name": "collection_profile_level_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder"}}}, "summary": "POST levels placeholders (collection profile)", "operationId": "post_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-level-placeholder-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/preview": {"post": {"responses": {"200": {"description": "Rendered collection document preview."}}, "summary": "Preview collection profile", "operationId": "post_collection_document_preview_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-document-preview"}}], "tags": ["collection-profile"]}}, "/collection-profile/search": {"post": {"responses": {"200": {"description": "List of collection profiles.", "schema": {"$ref": "#/definitions/collection-profile"}}}, "summary": "Search collection profiles", "operationId": "post_collection_profile_search_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-search"}}], "tags": ["collection-profile"]}}, "/collection-profile/staged-collection-profiles/search": {"post": {"responses": {"200": {"description": "List of staged collection profiles.", "schema": {"$ref": "#/definitions/staged-collection-profile"}}}, "summary": "Staged collection profiles search collection profile", "operationId": "post_collection_profile_search_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/staged-collection-profile-search"}}], "tags": ["collection-profile"]}}, "/collection-profile/staged-collection-profiles/{staged_collection_profile_id}": {"parameters": [{"name": "staged_collection_profile_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Staged collection profile deleted."}}, "summary": "DELETE staged collection profiles (collection profile)", "operationId": "delete_system_collection_profiles", "tags": ["collection-profile"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/staged-collection-profile"}}}, "summary": "GET staged collection profiles (collection profile)", "operationId": "get_system_collection_profiles", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/system-collection-profiles": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/system-collection-profile"}}}, "summary": "System collection profiles collection profile", "operationId": "post_system_collection_profiles", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-collection-profile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/system-collection-profiles/search": {"post": {"responses": {"200": {"description": "List of system collection profiles.", "schema": {"$ref": "#/definitions/system-collection-profile"}}}, "summary": "System collection profiles search collection profile", "operationId": "post_system_collection_profiles", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-collection-profile-search"}}], "tags": ["collection-profile"]}}, "/collection-profile/system-collection-profiles/{system_collection_profile_id}": {"parameters": [{"name": "system_collection_profile_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "System collection profile deleted."}}, "summary": "DELETE system collection profiles (collection profile)", "operationId": "delete_system_collection_profiles", "tags": ["collection-profile"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/system-collection-profile"}}}, "summary": "GET system collection profiles (collection profile)", "operationId": "get_system_collection_profiles", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-collection-profile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/system-collection-profile"}}}, "summary": "PUT system collection profiles (collection profile)", "operationId": "put_system_collection_profiles", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-collection-profile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/{collection_profile_id}": {"parameters": [{"name": "collection_profile_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile"}}}, "summary": "GET collection profile", "operationId": "get_collection_profile_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile"}}}, "summary": "PUT collection profile", "operationId": "put_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/{collection_profile_id}/copy": {"parameters": [{"name": "collection_profile_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile"}}}, "summary": "Update copy of collection profile", "operationId": "put_collection_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/collection-profile-copy"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/{collection_profile_id}/is-live": {"parameters": [{"name": "collection_profile_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-is-live"}}}, "summary": "Is live for collection profile", "operationId": "get_collection_profile_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/{collection_profile_id}/levels": {"parameters": [{"name": "collection_profile_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/collection-profile-level"}}}, "summary": "Levels for collection profile", "operationId": "get_collection_profile_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collection-profile/{collection_profile_id}/staged-collection-profiles": {"parameters": [{"name": "collection_profile_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/staged-collection-profile"}}}, "summary": "Staged collection profiles collection profile", "operationId": "post_collection_profile_staging", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collection-profile"]}}, "/collections/external/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/CollectionExternal"}}}}, "summary": "Search external collections", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionExternalSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["collections/external"]}}, "/collections/external/webhook-requests/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/CollectionExternalWebhookRequestFull"}}}}, "summary": "Search collection webhook deliveries, for example the FAILED ones to resend", "operationId": "post_webhook_request_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionExternalWebhookRequestSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["collections/external"]}}, "/collections/external/webhook-requests/{id_}/resend": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"202": {"description": "The delivery is queued to be sent again.", "schema": {"$ref": "#/definitions/CollectionExternalWebhookRequest"}}}, "summary": "Send a collection webhook delivery again, with a new X-Webhook-Id, once it is PENDING, FAILED,", "description": "or SENDING for 30 minutes.", "operationId": "put_webhook_request_resend", "tags": ["collections/external"]}}, "/collections/external/{id_}/complete": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionExternalComplete"}}}, "summary": "Method mark collection as completed", "operationId": "put_item_complete", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionExternalComplete"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collections/external"]}}, "/collections/external/{id_}/export": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "The invoice balance the case is exported with.", "schema": {"$ref": "#/definitions/CollectionExternalExported"}}}, "summary": "Method mark collection as exported, returning the invoice balance as of the export", "description": "Financial events booked after it are sent once the case is completed.", "operationId": "put_item_export", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionExternalExport"}}], "tags": ["collections/external"]}}, "/collections/external/{id_}/reject": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "The case and the delivery the rejection is recorded on.", "schema": {"$ref": "#/definitions/CollectionExternalRejected"}}}, "summary": "Record that the agency rejected a placed case", "description": "An Intrum case's READY_FOR_EXPORT delivery becomes FAILED with\nthe agency's code and message as lastError, so it can be resent, and may be rejected while PENDING or EXPORTED.\nAnother agency's case, placed without a delivery, only gets the note and may be rejected only while EXPORTED.\nThe case goes back to PENDING.", "operationId": "put_item_reject", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionExternalReject"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["collections/external"]}}, "/contacts": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Contact"}}}, "summary": "Create contact", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ContactCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["contacts"]}}, "/contacts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Contact"}}}, "summary": "Delete contact", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["contacts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Contact"}}}, "summary": "Update contact", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ContactUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["contacts"]}}, "/content-user-setting": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/contentUserSetting"}}}, "summary": "Create content user setting", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createContentUserSetting"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["content-user-setting"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/contentUserSetting"}}}, "summary": "List content user settings", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["content-user-setting"]}}, "/content-user-setting/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete content user setting", "operationId": "delete_item_content_user_setting", "tags": ["content-user-setting"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/contentUserSetting"}}}, "summary": "Update content user setting", "operationId": "put_item_content_user_setting", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateContentUserSetting"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["content-user-setting"]}}, "/content-user-setting/{type}": {"parameters": [{"name": "type", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/contentUserSetting"}}}, "summary": "GET content user setting", "operationId": "get_item_type_content_user_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["content-user-setting"]}}, "/credit-decision-status": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CreditDecisionStatus"}}}, "summary": "Create credit decision statu", "operationId": "post_credit_decision_status_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditDecisionStatusPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-decision-status"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/CreditDecisionStatus"}}}}, "summary": "List credit decision status", "operationId": "get_credit_decision_status_create", "tags": ["credit-decision-status"]}}, "/credit-decision-status/bulk-update": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CreditDecisionStatus"}}}, "summary": "Bulk-update credit decision status", "operationId": "put_credit_decision_status_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditDecisionStatusBulkUpdatePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-decision-status"]}}, "/credit-decision-status/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CreditDecisionStatus"}}}, "summary": "Search credit decision status", "operationId": "post_credit_decision_status_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditDecisionStatusBulkUpdateSearch"}}], "tags": ["credit-decision-status"]}}, "/credit-decision-status/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "integer"}], "delete": {"responses": {"200": {"description": "Credit Decision Status successfully deleted."}}, "summary": "DELETE credit decision statu", "operationId": "delete_credit_decision_status_id", "tags": ["credit-decision-status"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CreditDecisionStatus"}}}, "summary": "GET credit decision statu", "operationId": "get_credit_decision_status_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-decision-status"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CreditDecisionStatus"}}}, "summary": "PUT credit decision statu", "operationId": "put_credit_decision_status_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditDecisionStatusPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-decision-status"]}}, "/credit-insurance": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditInsurance"}}}, "summary": "Create update credit insurance", "operationId": "post_item_credit_insurace", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditInsurance"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance"]}}, "/credit-insurance-client-debtor": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtor"}}}, "summary": "Get external and db update credit insurance client debtor", "operationId": "post_item_credit_insurance_client_debtor_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/history/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorHistory"}}}, "summary": "Search credit insurance client debtor history", "operationId": "post_item_credit_insurance_client_debtor_history_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/searchCreditInsuranceClientDebtorHistory"}}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/history/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorHistory"}}}, "summary": "Get credit insurance client debtor history", "operationId": "get_item_credit_insurance_history_client_debtor", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/manual": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtor"}}}, "summary": "Manually create or update insurance limit on client debtor", "operationId": "post_item_credit_insurance_client_debtor_create_manual", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/request-limit": {"post": {"responses": {"200": {"description": "External request for a new credit insurance limit was sent."}}, "summary": "Send external request for new credit insurance client debtor", "operationId": "post_item_credit_insurance_client_debtor_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorPost"}}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/requests/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorRequests"}}}, "summary": "Get credit insurance client debtor requests", "operationId": "get_item_credit_insurace_requests_client_debtor", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtor"}}}, "summary": "Search credit insurance client debtor", "operationId": "post_item_credit_insurance_client_debtor_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/searchCreditClientDebtorInsurance"}}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance-client-debtor/update-limit": {"post": {"responses": {"200": {"description": "External request to update an existing credit insurance limit was sent."}}, "summary": "Send external request for updating existing credit insurance client debtor", "operationId": "post_item_credit_insurance_client_debtor_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditInsuranceClientDebtorPost"}}], "tags": ["credit-insurance-client-debtor"]}}, "/credit-insurance/company/search": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/search"}}}, "summary": "Credit insurance search company", "operationId": "post_item_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/searchCompany"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance"]}}, "/credit-insurance/history/{identification_number_}": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditInsuranceHistory"}}}, "summary": "Get credit insurance history", "operationId": "get_item_credit_insurace_history", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-insurance"]}}, "/credit-insurance/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/CreditInsuranceModel"}}}, "summary": "Search credit insurance", "operationId": "post_item_credit_insurace_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/searchCreditInsurance"}}], "tags": ["credit-insurance"]}}, "/credit-monitoring/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/creditMonitoring"}}}, "summary": "Search credit monitorings", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditMonitoringSearch"}}], "tags": ["credit-monitoring"]}}, "/credit-monitoring/{identification_number_}": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/returnCreditMonitoring"}}}, "summary": "POST credit monitoring", "operationId": "post_item_credit_monitoring", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/creditMonitoringPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-monitoring"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditMonitoringEventsResponse"}}}, "summary": "GET credit monitoring", "operationId": "get_item_credit_monitoring", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-monitoring"]}}, "/credit-monitoring/{identification_number_}/remove": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/returnCreditMonitoring"}}}, "summary": "Update remove of credit monitoring", "operationId": "put_item_credit_monitoring_remove", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-monitoring"]}}, "/credit-status-global/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientCreditStatusGlobal"}}}, "summary": "Search global credit status", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientCreditStatusGlobalSearch"}}], "tags": ["credit-status-global"]}}, "/credit-status-global/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientCreditStatusGlobal"}}}, "summary": "Get global credit status by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-status-global"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientCreditStatusGlobal"}}}, "summary": "Update global credit status", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientCreditStatusGlobalUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-status-global"]}}, "/credit-statuses": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientCreditStatus"}}}}, "summary": "List credit status", "operationId": "get_collection", "tags": ["credit-statuses"]}}, "/credit-statuses/multiple-update": {"put": {"responses": {"200": {"description": "The updated client credit statuses.", "schema": {"$ref": "#/definitions/ClientCreditStatus"}}}, "summary": "PUT - multiple update", "operationId": "put_multiple_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientCreditStatusUpdateMultiple"}}], "tags": ["credit-statuses"]}}, "/credit-statuses/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientCreditStatus"}}}, "summary": "Search credit status", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientCreditStatusSearch"}}], "tags": ["credit-statuses"]}}, "/credit-statuses/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientCreditStatus"}}}, "summary": "Get credit status by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-statuses"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientCreditStatus"}}}, "summary": "Update credit status", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientCreditStatusUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["credit-statuses"]}}, "/debtor-blocked": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorBlocked"}}}, "summary": "Block a new debtor by adding to blacklist", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorBlockedPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor-blocked"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DebtorBlocked"}}}}, "summary": "Get all blocked debtors with pagination", "operationId": "get_collection", "tags": ["debtor-blocked"]}}, "/debtor-blocked/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorBlocked"}}}, "summary": "Search blocked debtors", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorBlockedSearch"}}], "tags": ["debtor-blocked"]}}, "/debtor-blocked/{identification_number}": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Unblock a debtor by identification number", "operationId": "delete_item_by_identification_number", "tags": ["debtor-blocked"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorBlocked"}}}, "summary": "Get a blocked debtor by identification number", "operationId": "get_item_by_identification_number", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor-blocked"]}}, "/debtor-payout-accounts": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionReturnAccount"}}}}, "summary": "List debtor payout accounts", "operationId": "get_collection", "tags": ["debtor-payout-accounts"]}}, "/debtor-payout-accounts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentTransactionReturnAccount"}}}, "summary": "Search debtor payout accounts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorPayoutAccountSearch"}}], "tags": ["debtor-payout-accounts"]}}, "/debtor-payout-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransactionReturnAccount"}}}, "summary": "Get debtor payout account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor-payout-accounts"]}, "put": {"responses": {"202": {"description": "The change waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/DebtorPayoutAccountRequestCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentTransactionReturnAccount"}}}, "summary": "Update debtor payout account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorPayoutAccountPut"}}], "tags": ["debtor-payout-accounts"]}}, "/debtor-subtype": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/debtor_type"}}}, "summary": "Create debtor subtype", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/debtor_type"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor-subtype"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/debtor_type"}}}}, "summary": "List debtor subtypes", "operationId": "get_collection", "tags": ["debtor-subtype"]}}, "/debtor-subtype/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete debtor subtype", "operationId": "delete_item", "tags": ["debtor-subtype"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/debtor_type"}}}, "summary": "Get debtor subtype by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor-subtype"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/debtor_type"}}}, "summary": "Update debtor subtype", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/debtor_type_update"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor-subtype"]}}, "/debtor/collection-batches": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorCollectionBatch"}}}, "summary": "List collection batch (debtor view)s", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/client": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientCollectionDebtor"}}}, "summary": "Client collection batch (debtor view)", "operationId": "get_client_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/dispute": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorCollectionBatch"}}}, "summary": "PUT - dispute", "operationId": "put_dispute_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReasonCodeDebtorCollection"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/documents": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchWithDocumentDebtor"}}}, "summary": "Documents collection batch (debtor view)", "operationId": "get_documents_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/events/financial": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchFinancialEventsDebtor"}}}, "summary": "Events financial collection batch (debtor view)", "operationId": "get_events_financial_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/invoices": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchInvoiceInfoDebtor"}}}, "summary": "Invoices collection batch (debtor view)", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/ledger/search": {"post": {"responses": {"200": {"description": "List of collection batches (debtor view).", "schema": {"$ref": "#/definitions/DebtorCollectionBatch"}}}, "summary": "Ledger search collection batch (debtor view)", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchSearchDebtor"}}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/ledger/status": {"get": {"responses": {"200": {"description": "Ledger status of the collection batch.", "schema": {"$ref": "#/definitions/DebtorCollectionBatchLedgerStatusResponse"}}}, "summary": "Ledger status collection batch (debtor view)", "operationId": "get_ledger_status_collection", "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/notes": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/NoteDebtor"}}}, "summary": "Notes collection batch (debtor view)", "operationId": "post_note_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteCreateDebtor"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/notes/{note_id}/attach-file": {"parameters": [{"name": "note_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentCollectionPublic"}}}, "summary": "Method should attach file to the note", "operationId": "put_item_attach_file", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/part-payment/start": {"post": {"responses": {"200": {"description": "Part payment plan started for the collection batch."}}, "summary": "Part payment start collection batch (debtor view)", "operationId": "post_collection_batch_start", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPartDebtorPaymentStart"}}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/payment-account": {"get": {"responses": {"200": {"description": "Payment account for the collection batch.", "schema": {"$ref": "#/definitions/DebtorClientPaymentAccount"}}}, "summary": "Payment account collection batch (debtor view)", "operationId": "get_pyment_account", "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/payment-methods": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationInvoicePublic"}}}, "summary": "Payment methods collection batch (debtor view)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/payment-requests": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests collection batch (debtor view)", "operationId": "post_collection_batch_payment_request_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/payment_request_post_swish"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests collection batch (debtor view)", "operationId": "get_collection_batch_payment_request_create", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/postpone-ledger-events": {"put": {"responses": {"200": {"description": "Postpones the collection case's ledger events. No response body."}}, "summary": "PUT - postpone ledger events", "operationId": "put_postpone_ledger_events_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PostponeCollectionBatchDebtor"}}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorCollectionBatch"}}}, "summary": "Search collection batch (debtor view)s", "operationId": "post_collection_search_collection_batches", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchSearchDebtor"}}], "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/stats": {"get": {"responses": {"200": {"description": "Debtor collection batch statistics grouped by currency."}}, "summary": "Stats collection batch (debtor view)", "operationId": "get_stats_collection", "tags": ["debtor/collection-batches"]}}, "/debtor/collection-batches/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchToDoModel"}}}, "summary": "Todo collection batch (debtor view)", "operationId": "post_collection_batch_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CollectionBatchPublicToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/collection-batches"]}}, "/debtor/invoices": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoice"}}}, "summary": "List invoice (debtor view)s", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/client": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceClient"}}}, "summary": "Client invoice (debtor view)", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/dispute": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoice"}}}, "summary": "PUT - dispute", "operationId": "put_item_action_dispute", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/documents": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceDocument"}}}, "summary": "Documents invoice (debtor view)", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/events/financial": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceFinancialEvent"}}}, "summary": "Events financial invoice (debtor view)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/events/ledger": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceLedgerEvent"}}}, "summary": "Events ledger invoice (debtor view)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/instance-provider": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceInstanceProvider"}}}, "summary": "Instance provider invoice (debtor view)", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/ledger/search": {"post": {"responses": {"200": {"description": "Ledger search results for invoices (debtor view).", "schema": {"$ref": "#/definitions/PublicInvoice"}}}, "summary": "Ledger search invoice (debtor view)", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoicePublicSearch"}}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/payment-methods": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationInvoicePublic"}}}, "summary": "Payment methods invoice (debtor view)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/payment-requests": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests invoice (debtor view)", "operationId": "post_invoice_payment_request_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/payment_request_post_swish"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests invoice (debtor view)", "operationId": "get_invoice_payment_request_create", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/stats": {"get": {"responses": {"200": {"description": "Aggregated invoice statistics (debtor view)."}}, "summary": "Stats invoice (debtor view)", "operationId": "get_collection", "tags": ["debtor/invoices"]}}, "/debtor/invoices/{invoice_id}/part-payment/start": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Part payment started for invoice (debtor view)."}}, "summary": "Update part payment start of invoice (debtor view)", "operationId": "put_item_part_payment_start", "tags": ["debtor/invoices"]}}, "/debtor/invoices/{invoice_id}/payment-account": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/_PaymentAccount"}}}, "summary": "Payment account for invoice (debtor view)", "operationId": "get_pyment_account", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/invoices/{invoice_id}/payment-receipt": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "PDF payment receipt for a fully paid invoice."}}, "summary": "Create a PDF receipt for a fully paid invoice and return it directly", "description": "No record will be generated other than a logg of the creation event.\nThis is fairly CPU intensive and should be monitored for heavy use.\nAn earlier revision stores the file for reuse.\nThere is a public invoice version of this endpoint.", "operationId": "get_payment_receipt_download", "tags": ["debtor/invoices"]}}, "/debtor/invoices/{payment_reference}/{zip_}/payment-requests": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests for invoice (debtor view)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/invoices"]}}, "/debtor/part-payment-plans": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanDebtor"}}}, "summary": "List part-payment plan (debtor view)s", "operationId": "get_collection_configuration", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/part-payment-plans"]}}, "/debtor/part-payment-plans/collection-batch/{collection_batch_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanDebtor"}}}, "summary": "GET collection batch (part-payment plan (debtor view))", "operationId": "get_collection_batch_part_payment_plan", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/part-payment-plans"]}}, "/debtor/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorToDo"}}}, "summary": "Create todo", "operationId": "post_create_debtor_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/todo"]}}, "/debtor/todo/resolve-multiple": {"put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/DebtorToDo"}}}}, "summary": "PUT - resolve multiple", "operationId": "put_resolve_multiple_debtor_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ResolveMultipleDebtorToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/todo"]}}, "/debtor/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorToDo"}}}, "summary": "Search todos", "operationId": "post_debtor_to_do_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorToDoSearch"}}], "tags": ["debtor/todo"]}}, "/debtor/todo/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorToDo"}}}, "summary": "GET todo", "operationId": "get_debtor_to_do_item_get_by_id", "tags": ["debtor/todo"]}}, "/debtor/todo/{debtor_id}/{id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorToDo"}}}, "summary": "for todo", "operationId": "get_debtor_to_do_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorToDo"}}}, "summary": "Update  of todo", "operationId": "put_debtor_to_do_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateDebtorToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtor/todo"]}}, "/debtors": {"get": {"responses": {"200": {"description": "List of debtors.", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "List debtors", "operationId": "get_collection", "tags": ["debtors"]}}, "/debtors/credit_check": {"post": {"responses": {"200": {"description": "Credit data updated for the debtor."}}, "summary": "Credit_check debtor", "operationId": "post_credit_check_debtor", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditCheck"}}], "tags": ["debtors"]}}, "/debtors/search": {"post": {"responses": {"200": {"description": "Search results of debtors.", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "Search debtors", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorSearch"}}], "tags": ["debtors"]}}, "/debtors/system-debtor/credit-data/search": {"post": {"responses": {"200": {"description": "System debtor credit data search results.", "schema": {"$ref": "#/definitions/CreditDataDebtorWithPdf"}}}, "summary": "System debtor credit data search debtor", "operationId": "post_system_debtor_credit_data", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditDataDebtorSearch"}}], "tags": ["debtors"]}}, "/debtors/system-debtor/{identification_number_}/credit-data": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CreditDataDebtorWithPdfItem"}}}, "summary": "GET system debtor credit data (debtor)", "operationId": "get_item_credit_data", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "GET debtor", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "PUT debtor", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{debtor_id}/collection-batches/guarantors": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchGuarantorDebtor"}}}, "summary": "Collection batches guarantors for debtor", "operationId": "get_collection_guarantors", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{debtor_id}/contacts": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DebtorContact"}}}}, "summary": "List contacts", "operationId": "get_collection", "tags": ["debtors/<debtor_id>/contacts"]}}, "/debtors/{debtor_id}/contacts/search": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorContact"}}}, "summary": "Search contacts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorContactSearch"}}], "tags": ["debtors/<debtor_id>/contacts"]}}, "/debtors/{debtor_id}/financial-events": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Financial events for the debtor.", "schema": {"type": "array", "items": {"$ref": "#/definitions/DebtorFinancialEvent"}}}}, "summary": "List financial events", "operationId": "get_collection", "tags": ["debtors/<debtor_id>/financial-events"]}}, "/debtors/{debtor_id}/financial-events/search": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorFinancialEvent"}}}, "summary": "Search financial events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorFinancialEventSearch"}}], "tags": ["debtors/<debtor_id>/financial-events"]}}, "/debtors/{debtor_id}/identification-number": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "Change the debtor's legal identification number, on the debtor and all its invoices, drafts included", "operationId": "put_item_identification_number", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorIdentificationNumber"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{debtor_id}/labels": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "OK", "schema": {"$ref": "#/definitions/labelDebtor"}}}, "summary": "Create label", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createLabeltDebtor"}}], "tags": ["debtors/<debtor_id>/labels"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/labelDebtor"}}}}, "summary": "List labels", "operationId": "get_collection", "tags": ["debtors/<debtor_id>/labels"]}}, "/debtors/{debtor_id}/labels/{id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete label", "operationId": "delete_item_debtor_label", "tags": ["debtors/<debtor_id>/labels"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/labelDebtor"}}}, "summary": "Update label", "operationId": "put_item_debtor_label", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/updateLabelDebtor"}}], "tags": ["debtors/<debtor_id>/labels"]}}, "/debtors/{debtor_id}/notes": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DebtorNote"}}}}, "summary": "List notes", "operationId": "get_collection", "tags": ["debtors/<debtor_id>/notes"]}}, "/debtors/{debtor_id}/notes/search": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DebtorNote"}}}, "summary": "Search notes", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorNoteSearch"}}], "tags": ["debtors/<debtor_id>/notes"]}}, "/debtors/{id_}/calculate-balance": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Recalculates and stores the debtor balance. No response body."}}, "summary": "Update calculate balance of debtor", "operationId": "put_item_calculate_balance", "tags": ["debtors"]}}, "/debtors/{id_}/client": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "Update client of debtor", "operationId": "put_item_update_debtor_client", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientDebtorInfo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{id_}/credit-data": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Created credit data for the debtor.", "schema": {"$ref": "#/definitions/CreditDataDebtorWithPdf"}}}, "summary": "Credit data debtor", "operationId": "post_item_id_credit_data", "tags": ["debtors"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CreditDataDebtorWithPdfItem"}}}, "summary": "Credit data for debtor", "operationId": "get_item_id_credit_data", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{id_}/creditcheck": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditCheckModel"}}}, "summary": "Creditcheck debtor", "operationId": "post_item_id_credit_check", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createCreditCheckModel"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{id_}/preferred-language": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Debtor"}}}, "summary": "Update preferred language of debtor", "operationId": "put_item_update_debtor_preferred_language", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/preferredLanguage"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{id_}/reminder-profiles/default": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success"}}, "summary": "Remove the reminder profile on a client debtor (falls back to client level)", "description": "``productCode`` and ``debtorType`` may be supplied either as query\nparameters or in the request body.", "operationId": "delete_item_update_debtor_reminder_profile", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientDebtorDeleteReminderProfile"}}], "tags": ["debtors"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/debtorReminderProfile"}}}, "summary": "Reminder profiles set on a client debtor", "operationId": "get_item_update_debtor_reminder_profile", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}, "put": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/debtorReminderProfile"}}}, "summary": "Set or replace the reminder profile on a client debtor", "operationId": "put_item_update_debtor_reminder_profile", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/clientDebtorUpdateReminderProfile"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{id_}/reminder-profiles/effective": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/clientDebtorEffectiveReminderProfile"}}}, "summary": "Effective (resolved) reminder profiles for a client debtor", "description": "Returns, for every product/debtor-type/currency combination configured on\neither the debtor or the client, the resolved reminder profile together\nwith the source it was inherited from (DEBTOR, CLIENT, SYSTEM, DEFAULT).", "operationId": "get_item_client_debtor_effective_reminder_profile", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/debtors/{identification_number_}/credit-history-monitoring": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/creditHistoryMonitoringDebtor"}}}, "summary": "Credit history monitoring for debtor", "operationId": "get_item_credit_history_monitoring", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["debtors"]}}, "/distribution-events": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DistributionEvent"}}}}, "summary": "List distribution events", "operationId": "get_collection", "tags": ["distribution-events"]}}, "/distribution-events/digital-mailbox": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionEvent"}}}, "summary": "Digital mailbox distribution event", "operationId": "post_collection_create_digital_mailbox", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateDistributionEvent"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distribution-events"]}}, "/distribution-events/electronic-invoice": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionEvent"}}}, "summary": "Electronic invoice distribution event", "operationId": "post_collection_create_electronic_invoice", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateDistributionEvent"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distribution-events"]}}, "/distribution-events/email": {"post": {"responses": {"200": {"description": "Events received"}}, "summary": "Email distribution event", "operationId": "post_collection_create_email", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DistributionEventRequestEmail"}}], "tags": ["distribution-events"]}}, "/distribution-events/letter": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionEvent"}}}, "summary": "Letter distribution event", "operationId": "post_collection_create_letter", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateDistributionEvent"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distribution-events"]}}, "/distribution-events/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DistributionEvent"}}}, "summary": "Search distribution events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DistributionEventSearch"}}], "tags": ["distribution-events"]}}, "/distribution-events/sms": {"post": {"responses": {"200": {"description": "Event received"}}, "summary": "Sms distribution event", "operationId": "post_collection_create_sms", "parameters": [{"name": "id", "in": "query", "type": "string", "required": true}, {"name": "status", "in": "query", "type": "string", "required": true}, {"name": "delivered", "in": "query", "type": "string"}], "tags": ["distribution-events"]}}, "/distribution-events/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionEvent"}}}, "summary": "Get distribution event by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distribution-events"]}}, "/distribution-profiles": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DistributionProfile"}}}}, "summary": "List distribution profiles", "operationId": "get_collection", "tags": ["distribution-profiles"]}}, "/distribution-profiles/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DistributionProfile"}}}, "summary": "Search distribution profiles", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DistributionProfileSearch"}}], "tags": ["distribution-profiles"]}}, "/distribution-profiles/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionProfile"}}}, "summary": "Get distribution profile by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distribution-profiles"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionProfile"}}}, "summary": "Update distribution profile", "operationId": "put_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distribution-profiles"]}}, "/distributions": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DistributionModel"}}}}, "summary": "List distributions", "operationId": "get_collection", "tags": ["distributions"]}}, "/distributions/distribution-collection-batch-ledger-event/search": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionEventModelCopy"}}}, "summary": "Distribution collection batch ledger event search distribution", "operationId": "post_item_post", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InputDistributionEvent"}}], "tags": ["distributions"]}}, "/distributions/distribution-collection-batch-ledger-event/{collection_batch_ledger_event_id}": {"parameters": [{"name": "collection_batch_ledger_event_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionModel"}}}, "summary": "GET distribution collection batch ledger event (distribution)", "operationId": "get_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distributions"]}}, "/distributions/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DistributionModel"}}}, "summary": "Search distributions", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DistributionSearch"}}], "tags": ["distributions"]}}, "/distributions/update-status": {"put": {"responses": {"200": {"description": "Distribution status updated."}}, "summary": "PUT - update status", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateDistributionStatus"}}], "tags": ["distributions"]}}, "/distributions/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionModel"}}}, "summary": "Get distribution by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distributions"]}}, "/distributions/{id_}/distribute": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionModel"}}}, "summary": "Update distribute of distribution", "operationId": "put_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distributions"]}}, "/distributions/{id_}/retry": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DistributionModel"}}}, "summary": "Update retry of distribution", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/retryDistribution"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["distributions"]}}, "/document-templates": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentTemplate"}}}, "summary": "Create document template", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentTemplate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["document-templates"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/DocumentTemplate"}}}}, "summary": "List document templates", "operationId": "get_collection", "tags": ["document-templates"]}}, "/document-templates/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DocumentTemplate"}}}, "summary": "Search document templates", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentTemplateSearch"}}], "tags": ["document-templates"]}}, "/document-templates/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete document template", "operationId": "delete_item", "tags": ["document-templates"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentTemplate"}}}, "summary": "Get document template by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["document-templates"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentTemplate"}}}, "summary": "Update document template", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentTemplatePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["document-templates"]}}, "/document-templates/{id_}/default": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentTemplate"}}}, "summary": "Mark document template as default", "operationId": "put_item_set_default", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["document-templates"]}}, "/document-templates/{id_}/placeholders": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentTemplatePlaceholder"}}}, "summary": "Placeholders document template", "operationId": "post_placeholder_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentTemplatePlaceholder"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["document-templates"]}}, "/document-templates/{id_}/placeholders/{pc_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "pc_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Document template placeholder deleted."}}, "summary": "Delete placeholders of document template", "operationId": "delete_placeholder_item", "tags": ["document-templates"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DocumentTemplatePlaceholder"}}}, "summary": "Update placeholders of document template", "operationId": "put_placeholder_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentTemplatePlaceholderPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["document-templates"]}}, "/documents": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Document"}}}}, "summary": "List documents", "operationId": "get_collection", "tags": ["documents"]}}, "/documents/ads/invoice": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Ads invoice document", "operationId": "post_invoice_ad", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/attachments/client": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Attachments client document", "operationId": "post_client_attachment", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/attachments/invoice": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Attachments invoice document", "operationId": "post_invoice_attachment", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/brand/instance-provider": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Brand instance provider document", "operationId": "post_brand_instance_provider", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/collection_batch/{collection_batch_id}": {"parameters": [{"name": "collection_batch_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Generated collection batch document PDF or ZIP."}}, "summary": "POST collection_batch (document)", "operationId": "post_create_pdf_cost_specification", "tags": ["documents"]}}, "/documents/connected-files": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Connected files document", "operationId": "post_connected_files", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/integration/attachments/invoice": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Attachments invoice document for integration partners (client-credential / M2M flow)", "operationId": "post_integration_invoice_attachment", "parameters": [{"name": "file", "in": "formData", "type": "file", "required": true}, {"name": "clientId", "in": "query", "type": "string"}, {"name": "invoiceId", "in": "query", "type": "string", "required": true}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "consumes": ["multipart/form-data"], "tags": ["documents"]}}, "/documents/integration/invoice": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Invoice document for integration partners (client-credential / M2M flow)", "operationId": "post_integration_invoice_document", "parameters": [{"name": "file", "in": "formData", "type": "file", "required": true}, {"name": "clientId", "in": "query", "type": "string"}, {"name": "invoiceId", "in": "query", "type": "string", "required": true}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "consumes": ["multipart/form-data"], "tags": ["documents"]}}, "/documents/invoice": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Invoice document", "operationId": "post_invoice_document", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/invoices": {"get": {"responses": {"200": {"description": "Merged invoices PDF."}}, "summary": "Invoices document", "operationId": "get_invoice_documents", "tags": ["documents"]}}, "/documents/link-invoice": {"post": {"responses": {"200": {"description": "Document linked to invoice."}}, "summary": "Link invoice document", "operationId": "post_link_document_to_invoice", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/linkInvoice"}}], "tags": ["documents"]}}, "/documents/payout-batch-report": {"post": {"responses": {"200": {"description": "Generated payout batch report PDF."}}, "summary": "Payout batch report document", "operationId": "post_create_payout_batch_report", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderId"}}], "tags": ["documents"]}}, "/documents/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Search documents", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentSearch"}}], "tags": ["documents"]}}, "/documents/search_extended": {"post": {"responses": {"200": {"description": "List of documents (extended).", "schema": {"$ref": "#/definitions/DocumentExtended"}}}, "summary": "Search_extended document", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DocumentExtendedSearch"}}], "tags": ["documents"]}}, "/documents/settings/delivery_addresses": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DeliveryAddressSetting"}}}, "summary": "Settings delivery_addresses document", "operationId": "get_delivery_addresses_setting", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Deleted"}}, "summary": "Delete document", "operationId": "delete_item", "tags": ["documents"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Get document by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/documents/{id_}/generate": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Document"}}}, "summary": "Update generate of document", "operationId": "put_item_generate", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["documents"]}}, "/e-faktura": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/electronicInvoicePost"}}}, "summary": "Create e-faktura", "operationId": "post_efaktura", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/electronicInvoicePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["e-faktura"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/electronicInvoice"}}}}, "summary": "List e-fakturas", "operationId": "get_efaktura", "tags": ["e-faktura"]}}, "/e-faktura/fui/{fui}": {"parameters": [{"name": "fui", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/electronicInvoice"}}}, "summary": "GET fui (e-faktura)", "operationId": "get_group_efaktura", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["e-faktura"]}}, "/e-faktura/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/electronicInvoice"}}}, "summary": "Search for e-faktura records", "operationId": "post_search_efaktura", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EfakturaApiModelSearch"}}], "tags": ["e-faktura"]}}, "/e-faktura/{efaktura_id}": {"parameters": [{"name": "efaktura_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Counts of removed e-faktura enrollment and affected debtors."}}, "summary": "DELETE e-faktura", "operationId": "delete_single_efaktura", "tags": ["e-faktura"]}}, "/electronic-invoices/invites": {"post": {"responses": {"201": {"description": "E-invoice invite sent."}}, "summary": "Invites electronic invoice", "operationId": "post_collection_invites", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateElectronicInvoiceInvites"}}], "tags": ["electronic-invoices"]}}, "/electronic-invoices/invoices/{invoice_id}/validate": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ElectronicInvoiceValidationResult"}}}, "summary": "Generate the UBL XML for the invoice and validate it against PEPPOL", "description": "BIS 3.0 / EN16931 rules.  Returns the list of issues found so that\noperators can correct them before the invoice is sent to the network.", "operationId": "get_validate_invoice_xml", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["electronic-invoices"]}}, "/electronic-invoices/parties/search": {"post": {"responses": {"200": {"description": "List of matching electronic invoice parties."}}, "summary": "Parties search electronic invoice", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SearchElectronicInvoiceParties"}}], "tags": ["electronic-invoices"]}}, "/electronic-invoices/validate-party": {"post": {"responses": {"200": {"description": "Party validation result.", "schema": {"$ref": "#/definitions/ValidateElectronicInvoicePartyResponse"}}}, "summary": "Validate party electronic invoice", "operationId": "post_validate_party", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ValidateElectronicInvoicePartyRequest"}}], "tags": ["electronic-invoices"]}}, "/electronic-invoices/validate-party/confirm": {"put": {"responses": {"204": {"description": "Confirmed party saved on the client."}}, "summary": "PUT - validate party confirm", "operationId": "put_validate_party_confirm", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ConfirmElectronicInvoicePartyRequest"}}], "tags": ["electronic-invoices"]}}, "/enforcement-view/search": {"post": {"responses": {"200": {"description": "List of enforcement views.", "schema": {"$ref": "#/definitions/EnforcementView"}}}, "summary": "Search enforcement views", "operationId": "post_enforcement_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementViewSearch"}}], "tags": ["enforcement-view"]}}, "/enforcement-view/{enforcement_id}": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementView"}}}, "summary": "GET enforcement view", "operationId": "get_enforcement_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement-view"]}}, "/enforcement/api-logs/{api_log_id}/retry": {"parameters": [{"name": "api_log_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "API log entry re-processed through the status update handler."}}, "summary": "Re-process an API log entry through the status update handler", "operationId": "put_enforcement_api_log_retry", "tags": ["enforcement"]}}, "/enforcement/confirm_submission": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - confirm_submission", "operationId": "put_enforcement_confirm_submission", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveriesConfirmVerdictListRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/deliveries/api-logs/search": {"post": {"responses": {"200": {"description": "Deliveries api logs search enforcement action.", "schema": {"$ref": "#/definitions/EnforcementDeliveryApiLog"}}}, "summary": "Deliveries api logs search enforcement action", "operationId": "post_enforcement_delivery_api_logs_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveryApiLogSearch"}}], "tags": ["enforcement"]}}, "/enforcement/deliveries/create_deduction": {"put": {"responses": {"200": {"description": "Deduction creation jobs queued."}}, "summary": "PUT - deliveries create_deduction", "operationId": "put_enforcement_export_recall_item", "tags": ["enforcement"]}}, "/enforcement/deliveries/create_recall": {"put": {"responses": {"200": {"description": "Recall creation jobs queued."}}, "summary": "PUT - deliveries create_recall", "operationId": "put_enforcement_export_recall_item", "tags": ["enforcement"]}}, "/enforcement/deliveries/export_deduction": {"put": {"responses": {"200": {"description": "Generated enforcement deductions."}}, "summary": "PUT - deliveries export_deduction", "operationId": "put_enforcement_export_deduction_item", "tags": ["enforcement"]}}, "/enforcement/deliveries/export_execution_deduction": {"put": {"responses": {"200": {"description": "Generated enforcement execution deductions."}}, "summary": "PUT - deliveries export_execution_deduction", "operationId": "put_enforcement_export_execution_deduction_item", "tags": ["enforcement"]}}, "/enforcement/deliveries/export_recall": {"put": {"responses": {"200": {"description": "Generated enforcement recalls."}}, "summary": "PUT - deliveries export_recall", "operationId": "put_enforcement_export_recall", "tags": ["enforcement"]}}, "/enforcement/deliveries/export_recall/{enforcement_number}": {"parameters": [{"name": "enforcement_number", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Generated recall for the enforcement."}}, "summary": "PUT deliveries export_recall (enforcement action)", "operationId": "put_enforcement_export_recall", "tags": ["enforcement"]}}, "/enforcement/deliveries/history/search": {"post": {"responses": {"200": {"description": "Deliveries history search enforcement action.", "schema": {"$ref": "#/definitions/EnforcementDeliveryHistory"}}}, "summary": "Deliveries history search enforcement action", "operationId": "post_enforcement_deliveries_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveryHistorySearch"}}], "tags": ["enforcement"]}}, "/enforcement/deliveries/pull": {"put": {"responses": {"200": {"description": "Enforcement pull job queued."}}, "summary": "PUT - deliveries pull", "operationId": "put_enforcement_pull", "tags": ["enforcement"]}}, "/enforcement/deliveries/push": {"put": {"responses": {"200": {"description": "Enforcement push job queued."}}, "summary": "PUT - deliveries push", "operationId": "put_enforcement_push", "tags": ["enforcement"]}}, "/enforcement/deliveries/ready_for_export": {"put": {"responses": {"200": {"description": "Generated enforcement applications ready for export."}}, "summary": "PUT - deliveries ready_for_export", "operationId": "put_enforcement_export", "tags": ["enforcement"]}}, "/enforcement/deliveries/ready_for_export/{enforcement_number}": {"parameters": [{"name": "enforcement_number", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Generated enforcement application for the enforcement."}}, "summary": "PUT deliveries ready_for_export (enforcement action)", "operationId": "put_enforcement_export_item", "tags": ["enforcement"]}}, "/enforcement/deliveries/search": {"post": {"responses": {"200": {"description": "Deliveries search enforcement action.", "schema": {"$ref": "#/definitions/EnforcementDeliveries"}}}, "summary": "Deliveries search enforcement action", "operationId": "post_enforcement_deliveries_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveriesSearch"}}], "tags": ["enforcement"]}}, "/enforcement/deliveries/updates": {"post": {"responses": {"200": {"description": "Result of processing a single delivery status update."}}, "summary": "Used for testing", "operationId": "post_enforcement_push", "tags": ["enforcement"]}}, "/enforcement/deliveries/{enforcement_delivery_id}/api-logs": {"parameters": [{"name": "enforcement_delivery_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveryApiLog"}}}, "summary": "GET deliveries api logs (enforcement action)", "operationId": "get_enforcement_delivery_api_logs", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/deliveries/{enforcement_delivery_id}/history": {"parameters": [{"name": "enforcement_delivery_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Deliveries history for enforcement action.", "schema": {"$ref": "#/definitions/EnforcementDeliveryHistory"}}}, "summary": "GET deliveries history (enforcement action)", "operationId": "get_enforcement_deliveries_search", "tags": ["enforcement"]}}, "/enforcement/financial_event": {"post": {"responses": {"200": {"description": "The created enforcement financial event.", "schema": {"$ref": "#/definitions/EnforcementFinancialEventGet"}}}, "summary": "Financial_event enforcement action", "operationId": "post_enforcement_financial_event_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementFinancialEvent"}}], "tags": ["enforcement"]}}, "/enforcement/report_closing_execution": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_closing_execution", "operationId": "put_enforcement_closing_execution", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementExecutionReportList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_deduction": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_deduction", "operationId": "put_enforcement_report_verdict", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeductionReportList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_execution_annual_fee": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_execution_annual_fee", "operationId": "put_enforcement_execution_annual_fee_list", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementExecutionAnnualFeeReportList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_execution_confirmation": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_execution_confirmation", "operationId": "put_enforcement_execution_confirmation", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementExecutionConfirmationReportList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_execution_distraint_salary": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_execution_distraint_salary", "operationId": "put_enforcement_execution", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementExecutionDistraintSalaryReportList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_execution_partial_disclosure": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_execution_partial_disclosure", "operationId": "put_enforcement_execution_partial_disclosure", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementExecutionPartialDisclosureList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_recall": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_recall", "operationId": "put_enforcement_report_recall", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveriesReportRecallListRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/report_verdict": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - report_verdict", "operationId": "put_enforcement_report_verdict", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementVerdictReportList"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/retry_delivery": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Retry_delivery enforcement action", "operationId": "post_enforcement_retry_delivery", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveriesRetry"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/search": {"post": {"responses": {"200": {"description": "Search enforcement actions.", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Search enforcement actions", "operationId": "post_enforcement_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementSearch"}}], "tags": ["enforcement"]}}, "/enforcement/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementToDo"}}}, "summary": "Create a task on an enforcement", "description": "The description is stored as a note.", "operationId": "post_create_enforcement_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement/todo"]}}, "/enforcement/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EnforcementToDo"}}}, "summary": "Search tasks on enforcements", "operationId": "post_enforcement_to_do_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementToDoSearch"}}], "tags": ["enforcement/todo"]}}, "/enforcement/todo/{enforcement_id}": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EnforcementToDo"}}}, "summary": "List the tasks on an enforcement", "operationId": "get_enforcement_to_do_list", "tags": ["enforcement/todo"]}}, "/enforcement/todo/{enforcement_id}/{id_}": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}, {"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementToDo"}}}, "summary": "Get a task on an enforcement", "operationId": "get_enforcement_to_do_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementToDo"}}}, "summary": "Update a task on an enforcement", "description": "Resolving it records who resolved it and when; reopening clears that.", "operationId": "put_enforcement_to_do_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateEnforcementToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement/todo"]}}, "/enforcement/update_delivery": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListResponse"}}}, "summary": "PUT - update_delivery", "operationId": "put_enforcement_update_delivery", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementDeliveriesUpdateListRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "GET enforcement action", "operationId": "get_enforcement_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/close-rejected-case": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Update close rejected case of enforcement action", "operationId": "put_enforcement_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/complete-closing-execution": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Update complete closing execution of enforcement action", "operationId": "put_enforcement_closed_by_agency", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementCompleteClosingExecution"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/create-execution-deduction": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Create execution deduction enforcement action", "operationId": "post_enforcement_execution_deduction", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/deliveries": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementDeliveries"}}}, "summary": "Deliveries for enforcement action", "operationId": "get_enforcement_delivery_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/financial-events": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of enforcement financial events.", "schema": {"$ref": "#/definitions/EnforcementFinancialEventGet"}}}, "summary": "Financial events for enforcement action", "operationId": "get_enforcement_financial_event_list", "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/notes": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EnforcementNote"}}}, "summary": "Notes enforcement action", "operationId": "post_enforcement_note", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementNotePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}, "get": {"responses": {"200": {"description": "Notes for enforcement action.", "schema": {"$ref": "#/definitions/EnforcementNote"}}}, "summary": "Notes for enforcement action", "operationId": "get_enforcement_note", "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/recall": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Update recall of enforcement action", "operationId": "put_enforcement_recall", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EnforcementRecall"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/enforcement/{enforcement_id}/send-to-execution": {"parameters": [{"name": "enforcement_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Enforcement"}}}, "summary": "Send to execution enforcement action", "operationId": "post_enforcement_send_to_execution", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["enforcement"]}}, "/engine-rule": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRule"}}}, "summary": "Create engine rule", "operationId": "post_engine_rule_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRulePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/EngineRule"}}}}, "summary": "List engine rules", "operationId": "get_engine_rule_create", "tags": ["engine-rule"]}}, "/engine-rule-advanced-module": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModule"}}}, "summary": "Create engine rule advanced module", "operationId": "post_engine_rule_advanced_module_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModulePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-advanced-module"]}}, "/engine-rule-advanced-module/engine-rule/{engine_rule_id}": {"parameters": [{"name": "engine_rule_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModule"}}}, "summary": "GET engine rule (engine rule advanced module)", "operationId": "get_engine_rule_advanced_module_engine_rule_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-advanced-module"]}}, "/engine-rule-advanced-module/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModule"}}}, "summary": "Search engine rule advanced modules", "operationId": "post_engine_rule_advanced_module_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModuleSearch"}}], "tags": ["engine-rule-advanced-module"]}}, "/engine-rule-advanced-module/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModule"}}}, "summary": "Get engine rule advanced module by id", "operationId": "get_engine_rule_advanced_module_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-advanced-module"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModule"}}}, "summary": "Update engine rule advanced module", "operationId": "put_engine_rule_advanced_module_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleAdvancedModulePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-advanced-module"]}}, "/engine-rule-advanced-module/{id}/criteria": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteria"}}}, "summary": "Criteria for engine rule advanced module", "operationId": "get_engine_rule_advanced_module_id_criteria", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-advanced-module"]}}, "/engine-rule-criteria": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteria"}}}, "summary": "Create engine rule criteria", "operationId": "post_engine_rule_criteria_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria"]}}, "/engine-rule-criteria-group": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroup"}}}, "summary": "Create engine-rule criteria group", "operationId": "post_engine_rule_criteria_group_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroupPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria-group"]}}, "/engine-rule-criteria-group/engine-rule/{engine_rule_id}": {"parameters": [{"name": "engine_rule_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroup"}}}, "summary": "GET engine rule (engine-rule criteria group)", "operationId": "get_engine_rule_criteria_group_engine_rule_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria-group"]}}, "/engine-rule-criteria-group/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroup"}}}, "summary": "Search engine-rule criteria groups", "operationId": "post_engine_rule_criteria_group_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroupSearch"}}], "tags": ["engine-rule-criteria-group"]}}, "/engine-rule-criteria-group/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Engine-rule criteria group deleted."}}, "summary": "Delete engine-rule criteria group", "operationId": "delete_engine_rule_criteria_group_id", "tags": ["engine-rule-criteria-group"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroup"}}}, "summary": "Get engine-rule criteria group by id", "operationId": "get_engine_rule_criteria_group_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria-group"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroup"}}}, "summary": "Update engine-rule criteria group", "operationId": "put_engine_rule_criteria_group_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaGroupPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria-group"]}}, "/engine-rule-criteria/duplicate": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteria"}}}, "summary": "Duplicate engine rule criteria", "operationId": "post_engine_rule_criteria_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaPostDuplicate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria"]}}, "/engine-rule-criteria/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EngineRuleCriteria"}}}, "summary": "Search engine rule criterias", "operationId": "post_engine_rule_criteria_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaSearch"}}], "tags": ["engine-rule-criteria"]}}, "/engine-rule-criteria/values": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteriaValues"}}}, "summary": "Values engine rule criteria", "operationId": "get_engine_rule_criteria_values", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria"]}}, "/engine-rule-criteria/values/search": {"post": {"responses": {"200": {"description": "List of engine rule criteria values.", "schema": {"$ref": "#/definitions/EngineRuleCriteriaValues"}}}, "summary": "Values search engine rule criteria", "operationId": "post_engine_rule_criteria_values_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaValuesSearch"}}], "tags": ["engine-rule-criteria"]}}, "/engine-rule-criteria/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Engine rule criteria was successfully deleted."}}, "summary": "Delete engine rule criteria", "operationId": "delete_engine_rule_criteria_id", "tags": ["engine-rule-criteria"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteria"}}}, "summary": "Get engine rule criteria by id", "operationId": "get_engine_rule_criteria_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleCriteria"}}}, "summary": "Update engine rule criteria", "operationId": "put_engine_rule_criteria_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleCriteriaPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-criteria"]}}, "/engine-rule-profile": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleProfile"}}}, "summary": "Create an engine rule profile from a copy of an engine rule", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleProfilePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-profile"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleProfile"}}}}, "summary": "List engine rule profiles", "operationId": "get_collection", "tags": ["engine-rule-profile"]}}, "/engine-rule-profile/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EngineRuleProfile"}}}, "summary": "Search engine rule profiles", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleProfileSearch"}}], "tags": ["engine-rule-profile"]}}, "/engine-rule-profile/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success"}}, "summary": "Delete an engine rule profile that has no connected clients", "operationId": "delete_item", "tags": ["engine-rule-profile"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleProfile"}}}, "summary": "Get an engine rule profile", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-profile"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleProfile"}}}, "summary": "Rename an engine rule profile", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleProfilePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-profile"]}}, "/engine-rule-profile/{id_}/clients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleProfileClientsGet"}}}, "summary": "Connect clients to the profile without changing their engine rules", "operationId": "post_item_clients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleProfileClientIds"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-profile"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleProfileClientsGet"}}}, "summary": "Clients connected to the profile and the version applied to each", "operationId": "get_item_clients", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-profile"]}}, "/engine-rule-profile/{id_}/clients/engine-rule": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Client engine rule update started for the profile."}}, "summary": "Replace the connected clients engine rules with the profile engine rule", "operationId": "put_item_clients_engine_rule", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleProfileClientIds"}}], "tags": ["engine-rule-profile"]}}, "/engine-rule-profile/{id_}/clients/engine-rule/status": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleProfileClientHistory"}}}, "summary": "Latest engine rule update status for the profile", "operationId": "get_item_clients_engine_rule_status", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule-profile"]}}, "/engine-rule-profile/{id_}/clients/{client_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "client_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success"}}, "summary": "Disconnect a client from the profile", "description": "The client keeps its engine rule.", "operationId": "delete_item_client", "tags": ["engine-rule-profile"]}}, "/engine-rule/factoring-manual-control/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Factoring manual control threshold and counter for the client.", "schema": {"$ref": "#/definitions/EngineRuleFactoringManualControlThreshold"}}}, "summary": "GET factoring manual control (engine rule)", "operationId": "get_item_manual_control_threshold", "tags": ["engine-rule"]}, "put": {"responses": {"200": {"description": "Updated factoring manual control threshold and counter for the client.", "schema": {"$ref": "#/definitions/EngineRuleFactoringManualControlThreshold"}}}, "summary": "PUT factoring manual control (engine rule)", "operationId": "put_item_manual_control_threshold", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleManualControlThreshold"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision-bulk/factoring-sell": {"put": {"responses": {"409": {"description": "An invoice is being updated. Refresh its status before trying again."}, "200": {"description": "Bulk finance history record ids for the started factoring sell decisions."}}, "summary": "On batch of invoices perform the factoring decision flow, per invoice, asynchronously", "description": "Return ids of result object.", "operationId": "put_engine_rule_perform_decision_bulk_factoring_sell", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleBulkPerformDecision"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision-bulk/get-result": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleBulkFinanceInvoiceResult"}}}, "summary": "Perform decision bulk get result engine rule", "operationId": "post_engine_rule_perform_decision_bulk_result", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleBulkResultRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision-bulk/refinance": {"put": {"responses": {"200": {"description": "Bulk finance history record ids for the started refinance decisions."}}, "summary": "PUT - perform decision bulk refinance", "operationId": "put_engine_rule_perform_decision_bulk_refinance", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleBulkPerformDecision"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision-bulk/service": {"put": {"responses": {"200": {"description": "Bulk finance history record ids for the started service decisions."}}, "summary": "PUT - perform decision bulk service", "operationId": "put_engine_rule_perform_decision_bulk_invoice_service", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleBulkPerformDecision"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision-bulk/warnings": {"post": {"responses": {"200": {"description": "Warnings to show before the decision is performed.", "schema": {"$ref": "#/definitions/EngineRulePerformDecisionWarnings"}}}, "summary": "Warnings to show before a decision is performed on the invoices", "operationId": "post_engine_rule_perform_decision_bulk_warnings", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRulePerformDecisionWarningsRequest"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision/factoring-sell/{invoice_id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Returns the invoice after the factoring sell decision.", "schema": {"$ref": "#/definitions/invoiceSystem"}}}, "summary": "PUT perform decision factoring sell (engine rule)", "operationId": "put_engine_rule_perform_decision_factoring_sell", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleValidateInvoice"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision/refinance/{invoice_id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Returns the refinanced invoice.", "schema": {"$ref": "#/definitions/invoiceSystem"}}}, "summary": "PUT perform decision refinance (engine rule)", "operationId": "put_engine_rule_perform_decision_refinance", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleValidateInvoice"}}], "tags": ["engine-rule"]}}, "/engine-rule/perform-decision/service/{invoice_id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Returns the invoice after the service decision.", "schema": {"$ref": "#/definitions/invoiceSystem"}}}, "summary": "PUT perform decision service (engine rule)", "operationId": "put_engine_rule_perform_decision_invoice_service", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleValidateInvoice"}}], "tags": ["engine-rule"]}}, "/engine-rule/run-validation": {"put": {"responses": {"200": {"description": "Engine rule validation job started."}}, "summary": "PUT - run validation", "operationId": "put_engine_rule_run_job", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleRunValidationRequest"}}], "tags": ["engine-rule"]}}, "/engine-rule/run-validation/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for generate reminders task returned"}}, "summary": "Run validation latest task id engine rule", "operationId": "get_item_get_generate_task_id", "tags": ["engine-rule"]}}, "/engine-rule/scheduler-filters": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleSchedulerFilter"}}}, "summary": "Scheduler filters engine rule", "operationId": "post_engine_rule_scheduler_filters", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleSchedulerPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleSchedulerFilter"}}}, "summary": "Scheduler filters engine rule", "operationId": "get_engine_rule_scheduler_filters", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/engine-rule/scheduler-filters/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Scheduler filter deleted. No response body."}}, "summary": "DELETE scheduler filters (engine rule)", "operationId": "delete_engine_rule_scheduler_filters_by_id", "tags": ["engine-rule"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleSchedulerFilter"}}}, "summary": "GET scheduler filters (engine rule)", "operationId": "get_engine_rule_scheduler_filters_by_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleSchedulerFilter"}}}, "summary": "PUT scheduler filters (engine rule)", "operationId": "put_engine_rule_scheduler_filters_by_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleSchedulerPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/engine-rule/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/EngineRule"}}}, "summary": "Search engine rules", "operationId": "post_engine_rule_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleSearch"}}], "tags": ["engine-rule"]}}, "/engine-rule/{engine_rule_id}/settings": {"parameters": [{"name": "engine_rule_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/engine_rule_setting"}}}}, "summary": "List settings", "operationId": "get_collection", "tags": ["engine-rule/<engine_rule_id>/settings"]}}, "/engine-rule/{engine_rule_id}/settings/{id_}": {"parameters": [{"name": "engine_rule_id", "in": "path", "required": true, "type": "string"}, {"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/engine_rule_setting"}}}, "summary": "Get setting by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule/<engine_rule_id>/settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/engine_rule_setting"}}}, "summary": "Update setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/engine_rule_setting_update"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule/<engine_rule_id>/settings"]}}, "/engine-rule/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRule"}}}, "summary": "Get engine rule by id", "operationId": "get_engine_rule_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRule"}}}, "summary": "Update engine rule", "operationId": "put_engine_rule_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRulePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/engine-rule/{id}/override": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRule"}}}, "summary": "Replace the engine rule's content with a copy of another engine rule", "operationId": "put_engine_rule_override", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/EngineRuleOverride"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/engine-rule/{id}/restore/{snapshot_id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}, {"name": "snapshot_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRule"}}}, "summary": "Replace the engine rule's content with the content kept in one of its snapshots", "operationId": "put_engine_rule_restore", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/engine-rule/{id}/snapshot": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/EngineRuleSnapshot"}}}, "summary": "The content this engine rule had before it was last replaced", "operationId": "get_engine_rule_snapshot_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["engine-rule"]}}, "/erp-types": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ERPType"}}}, "summary": "Create ERP type", "operationId": "post_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erp-types"]}}, "/erps": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Erp"}}}, "summary": "Create ERP", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErpPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Erp"}}}}, "summary": "List ERPs", "operationId": "get_collection", "tags": ["erps"]}}, "/erps-short": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ERPShort"}}}, "summary": "List ERP (short)s", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps-short"]}}, "/erps-short/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ERPShort"}}}, "summary": "Get ERP (short) by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps-short"]}}, "/erps/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Erp"}}}, "summary": "Search ERPs", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErpSearch"}}], "tags": ["erps"]}}, "/erps/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Erp"}}}, "summary": "Get ERP by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Erp"}}}, "summary": "Update ERP", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErpUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps"]}}, "/erps/{id_}/connect/{client_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "client_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Client successfully connected to the ERP."}}, "summary": "Update connect of ERP", "operationId": "put_item_connect_client", "tags": ["erps"]}}, "/erps/{id_}/settings/billing": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ErpBillingSettings"}}}, "summary": "Settings billing for ERP", "operationId": "get_item_setting_billing", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ErpBillingSettings"}}}, "summary": "Update settings billing of ERP", "operationId": "put_item_setting_billing", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErpBillingSettingsUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["erps"]}}, "/errands/system": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/System%20Errand"}}}}, "summary": "List system errands", "operationId": "get_collection", "tags": ["errands/system"]}}, "/errands/system/invoice-validation-errors": {"get": {"responses": {"200": {"description": "Invoices with open external invoice validation errands.", "schema": {"$ref": "#/definitions/ErrandSystemInvoice"}}}, "summary": "Invoice validation errors system errand", "operationId": "get_item_external_invoice_validation", "tags": ["errands/system"]}}, "/errands/system/invoice-validation-errors/{invoice_id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Invoice validation errand created."}}, "summary": "POST invoice validation errors (system errand)", "operationId": "post_item_external_invoice_validation", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErrandSystemInvoiceValidation"}}], "tags": ["errands/system"]}}, "/errands/system/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/System%20Errand"}}}, "summary": "Search system errands", "operationId": "post_errand_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErrandSearchModel"}}], "tags": ["errands/system"]}}, "/errands/system/{errand_system_id}/update-monitoring-suggestion": {"parameters": [{"name": "errand_system_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Monitoring suggestion updated on the system errand."}}, "summary": "Update update monitoring suggestion of system errand", "operationId": "put_update_monitoring_suggestion", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/model_system_errand_suggestion_update"}}], "tags": ["errands/system"]}}, "/errands/system/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/System%20Errand"}}}, "summary": "Get system errand by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["errands/system"]}}, "/errands/system/{id_}/calculate-status": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Recalculates and stores the system errand status. No response body."}}, "summary": "Update calculate status of system errand", "operationId": "put_item_calculate_status", "tags": ["errands/system"]}}, "/errands/system/{id_}/close": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/System%20Errand"}}}, "summary": "Update close of system errand", "operationId": "put_item_close", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErrandSystemPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["errands/system"]}}, "/errands/system/{id_}/events": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ErrandSystemEvent"}}}, "summary": "Events for system errand", "operationId": "get_collection_errand_event", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["errands/system"]}}, "/errands/system/{id_}/force-close": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/System%20Errand"}}}, "summary": "Update force close of system errand", "operationId": "put_item_force_close", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErrandSystemForceClose"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["errands/system"]}}, "/errands/system/{id_}/perform": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/System%20Errand"}}}, "summary": "Update perform of system errand", "operationId": "put_item_perform", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["errands/system"]}}, "/errands/system/{id_}/resolve": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/System%20Errand"}}}, "summary": "Update resolve of system errand", "operationId": "put_item_resolve", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ErrandSystemPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["errands/system"]}}, "/external/bankid/auth": {"post": {"responses": {"200": {"description": "Authentication order initiated; returns orderRef and autoStartToken.", "schema": {"$ref": "#/definitions/BankidAuthOrder"}}}, "summary": "(Proxy API that calls BankID /auth)", "description": "Initiates an authentication order.\nUse the collect method to query the status of the order.", "operationId": "post_bankid_auth", "tags": ["external/bankid"]}}, "/external/bankid/cancel": {"post": {"responses": {"200": {"description": "BankID order cancelled."}}, "summary": "Proxy API that calls BankID to cancel an ongoing sign or auth order", "operationId": "post_bankid_cancel", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BankidCancelRequest"}}], "tags": ["external/bankid"]}}, "/external/bankid/collect": {"post": {"responses": {"200": {"description": "Order status; on completion returns a JWT auth token."}}, "summary": "(Proxy API that calls BankID /collect)", "description": "Collects the result of a sign or auth order using orderRef as reference.\nRP should keep on calling collect every two seconds if status is pending.\nRP must abort if status indicates failed.\nThe user identity is returned when complete.\nIn case order is completed, generates auth token for a user", "operationId": "post_bankid_collect", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BankidCollectRequest"}}], "tags": ["external/bankid"]}}, "/external/bankid/sign": {"post": {"responses": {"200": {"description": "Signing order initiated; returns orderRef and autoStartToken.", "schema": {"$ref": "#/definitions/BankidSignOrder"}}}, "summary": "(Proxy API that calls BankID /sign)", "description": "Initiates a signing order.\nUse the collect method to query the status of the order.\nIf the request is successful the response includes orderRef, autoStartToken, qrStartToken and qrStartSecret", "operationId": "post_bankid_sign", "tags": ["external/bankid"]}}, "/external/invoices": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "Returns only the created invoice id (returnResource=false).", "schema": {"$ref": "#/definitions/externalInvoiceIdOnly"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the created invoice with the approved field set.", "schema": {"$ref": "#/definitions/externalInvoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create invoice", "description": "Same payload and semantics as POST /invoices; slim response.", "operationId": "post_external_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createInvoice"}}], "tags": ["external/invoices"]}}, "/external/invoices/events/financial/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Paginated list of financial events with the approved field set.", "schema": {"type": "array", "items": {"$ref": "#/definitions/externalInvoiceFinancialEvent"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search invoice financial events with the approved field set", "operationId": "post_external_financial_event_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/externalInvoiceFinancialEventSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["external/invoices"]}}, "/external/invoices/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Paginated list of invoices with the approved field set.", "schema": {"type": "array", "items": {"$ref": "#/definitions/externalInvoice"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search invoices", "description": "Filtering and sorting are limited to the approved field set.", "operationId": "post_external_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/externalInvoiceSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["external/invoices"]}}, "/external/invoices/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the invoice with the approved field set.", "schema": {"$ref": "#/definitions/externalInvoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get invoice by id with the approved field set", "operationId": "get_external_item", "tags": ["external/invoices"]}}, "/external/invoices/{id_}/activate": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "No content (returnResource=false).", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the activated-by id and payment reference.", "schema": {"$ref": "#/definitions/externalInvoiceActivateResponse"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Activate invoice", "description": "Same semantics as PUT /invoices/<id_>/activate; slim response.", "operationId": "put_external_item_activate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceActivate"}}], "tags": ["external/invoices"]}}, "/factoring-country": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FactoringCountry"}}}, "summary": "Create factoring country", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FactoringCountryPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["factoring-country"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/FactoringCountry"}}}}, "summary": "List factoring countries", "operationId": "get_collection", "tags": ["factoring-country"]}}, "/factoring-country/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/FactoringCountry"}}}, "summary": "Search factoring countries", "operationId": "post_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FactoringCountrySearch"}}], "tags": ["factoring-country"]}}, "/factoring-country/{code}": {"parameters": [{"name": "code", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Country successfully deleted from factoring country registry."}}, "summary": "DELETE factoring country", "operationId": "delete_item", "tags": ["factoring-country"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FactoringCountry"}}}, "summary": "GET factoring country", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["factoring-country"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FactoringCountry"}}}, "summary": "PUT factoring country", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FactoringCountryPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["factoring-country"]}}, "/factoring-decisions/assign": {"put": {"responses": {"200": {"description": "Assignment of the signed-in user updated for the invoices.", "schema": {"$ref": "#/definitions/FactoringDecisionAssignResult"}}}, "summary": "PUT - assign or unassign the signed-in user on invoices", "operationId": "put_item_assign", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PutFactoringDecisionAssign"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/clients/daily/search": {"post": {"responses": {"200": {"description": "Client daily factoring decisions.", "schema": {"$ref": "#/definitions/ClientDailyFactorignDecision"}}}, "summary": "Clients daily search factoring decision", "operationId": "post_collection_search_clients_daily", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientDailyFactorignDecisionSearch"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/clients/search": {"post": {"responses": {"200": {"description": "Client factoring decisions.", "schema": {"$ref": "#/definitions/ClientFactoringDecision"}}}, "summary": "Clients search factoring decision", "operationId": "post_collection_search_clients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFactoringDecisionSearch"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/clients/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFactoringDecision"}}}, "summary": "GET clients (factoring decision)", "operationId": "get_item_client", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/debtors/daily/search": {"post": {"responses": {"200": {"description": "Debtor daily factoring decisions.", "schema": {"$ref": "#/definitions/DebtorDailyCreditDecisionStatus"}}}, "summary": "Debtors daily search factoring decision", "operationId": "post_collection_search_debtor_daily", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FactorignDecisionSearchDebtorDaily"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/debtors/search": {"post": {"responses": {"200": {"description": "Debtor factoring decisions.", "schema": {"$ref": "#/definitions/DebtorCreditDecisionStatus"}}}, "summary": "Debtors search factoring decision", "operationId": "post_collection_search_debtor", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFactoringDecisionSearchDebtor"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/debtors/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/DebtorCreditDecisionStatus"}}}, "summary": "GET debtors (factoring decision)", "operationId": "get_item_debtor", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/invoice/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceCreditDecisionStatus"}}}, "summary": "GET invoice (factoring decision)", "operationId": "get_item_invoice", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/invoices/search": {"post": {"responses": {"200": {"description": "Invoice factoring decisions.", "schema": {"$ref": "#/definitions/InvoiceCreditDecisionStatus"}}}, "summary": "Invoices search factoring decision", "operationId": "post_collection_search_invoice", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFactoringDecisionSearchInvoice"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/move": {"put": {"responses": {"200": {"description": "Credit decision status updated for the invoices."}}, "summary": "PUT - move", "operationId": "put_item_move_list", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PutListCreditDecisionStatus"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/{id_}/move": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Credit decision status updated for the invoice."}}, "summary": "Update move of factoring decision", "operationId": "put_item_move", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PutCreditDecisionStatus"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/{id_}/move-external": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Updated invoice after external factoring decision.", "schema": {"$ref": "#/definitions/invoiceSystem"}}}, "summary": "Update move external of factoring decision", "operationId": "put_item_move_external", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ExternalPutCreditDecisionStatus"}}], "tags": ["factoring-decisions"]}}, "/factoring-decisions/{invoice_id}/factoring": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Invoice financed."}}, "summary": "Update factoring of factoring decision", "operationId": "put_item_factoring", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PutFactoring"}}], "tags": ["factoring-decisions"]}}, "/fee/type": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FeeType"}}}, "summary": "Create type", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FeeTypePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["fee/type"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/FeeType"}}}}, "summary": "List types", "operationId": "get_collection", "tags": ["fee/type"]}}, "/fee/type/order": {"put": {"responses": {"200": {"description": "Fee type settlement order updated."}}, "summary": "Update Fee type order", "operationId": "put_fee_type_order", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FeeTypeSettlementOrder"}}], "tags": ["fee/type"]}}, "/fee/type/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FeeType"}}}, "summary": "Get Fee type instance", "operationId": "get_fee_type_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["fee/type"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FeeType"}}}, "summary": "Update Fee type instance", "operationId": "put_fee_type_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FeeTypePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["fee/type"]}}, "/financing-rules": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/FinancingRule"}}}}, "summary": "List financing rules", "operationId": "get_collection", "tags": ["financing-rules"]}}, "/financing-rules/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/FinancingRule"}}}, "summary": "Search financing rules", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FinancingRuleSearch"}}], "tags": ["financing-rules"]}}, "/financing-rules/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FinancingRule"}}}, "summary": "Get financing rule by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["financing-rules"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FinancingRule"}}}, "summary": "Update financing rule", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FinancingRuleUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["financing-rules"]}}, "/global-sni-registry": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/GlobalSniRegistry"}}}, "summary": "Create global sni registry", "operationId": "post_global_sni_registry_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/GlobalSniRegistryPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["global-sni-registry"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/GlobalSniRegistry"}}}}, "summary": "List global sni registries", "operationId": "get_global_sni_registry_create", "tags": ["global-sni-registry"]}}, "/global-sni-registry/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/GlobalSniRegistry"}}}, "summary": "Search global sni registries", "operationId": "post_global_sni_registry_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/GlobalSniRegistrySearch"}}], "tags": ["global-sni-registry"]}}, "/global-sni-registry/{code}": {"parameters": [{"name": "code", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "SNI Code successfully deleted."}}, "summary": "DELETE global sni registry", "operationId": "delete_global_sni_registry_id", "tags": ["global-sni-registry"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/GlobalSniRegistry"}}}, "summary": "GET global sni registry", "operationId": "get_global_sni_registry_id", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["global-sni-registry"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/GlobalSniRegistry"}}}, "summary": "PUT global sni registry", "operationId": "put_global_sni_registry_id", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/GlobalSniRegistryPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["global-sni-registry"]}}, "/instance-provider-credit-check-settings": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettings"}}}, "summary": "Create instance-provider credit-check setting", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettingsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-provider-credit-check-settings"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InstanceProviderCreditCheckSettings"}}}}, "summary": "List instance-provider credit-check settings", "operationId": "get_collection", "tags": ["instance-provider-credit-check-settings"]}}, "/instance-provider-credit-check-settings/instance-provider/{instance_provider_id}": {"parameters": [{"name": "instance_provider_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettings"}}}, "summary": "GET instance provider (instance-provider credit-check setting)", "operationId": "get_item_instance_provider", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-provider-credit-check-settings"]}}, "/instance-provider-credit-check-settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettings"}}}, "summary": "Search instance-provider credit-check settings", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettingsSearch"}}], "tags": ["instance-provider-credit-check-settings"]}}, "/instance-provider-credit-check-settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettings"}}}, "summary": "Get instance-provider credit-check setting by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-provider-credit-check-settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettings"}}}, "summary": "Update instance-provider credit-check setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderCreditCheckSettingsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-provider-credit-check-settings"]}}, "/instance-providers": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProvider"}}}, "summary": "Create instance provider", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-providers"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InstanceProvider"}}}}, "summary": "List instance providers", "operationId": "get_collection", "tags": ["instance-providers"]}}, "/instance-providers/default": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProviderDefault"}}}, "summary": "Get the default instance provider", "operationId": "get_item_get_default", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-providers"]}}, "/instance-providers/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InstanceProvider"}}}, "summary": "Search instance providers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderSearch"}}], "tags": ["instance-providers"]}}, "/instance-providers/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete instance provider", "operationId": "delete_item", "tags": ["instance-providers"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProvider"}}}, "summary": "Get instance provider by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-providers"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProvider"}}}, "summary": "Update instance provider", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-providers"]}}, "/instance-providers/{id_}/copy-configuration": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProviderConfigurationCopy"}}}, "summary": "Copy service providers and shared bank accounts from another instance provider", "operationId": "put_item_copy_configuration", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InstanceProviderConfigurationCopyRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-providers"]}}, "/instance-providers/{id_}/default": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InstanceProvider"}}}, "summary": "Mark instance provider as default", "operationId": "put_item_set_default", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["instance-providers"]}}, "/internal-request": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InternalRequest"}}}}, "summary": "List internal requests", "operationId": "get_internal_request_items", "tags": ["internal-request"]}}, "/internal-request/bulk-update": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InternalRequestBulkUpdateResponse"}}}, "summary": "Bulk-update internal requests", "operationId": "put_internal_request_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InternalRequestBulkUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["internal-request"]}}, "/internal-request/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InternalRequest"}}}, "summary": "Search internal requests", "operationId": "post_internal_request_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InternalRequestSearch"}}], "tags": ["internal-request"]}}, "/internal-request/topic": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InternalRequestGroup"}}}, "summary": "Topic internal request", "operationId": "post_internal_request_group_topic", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InternalRequestSearch"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["internal-request"]}}, "/internal-request/topic/{topic}": {"parameters": [{"name": "topic", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Internal requests for the topic.", "schema": {"$ref": "#/definitions/InternalRequest"}}}, "summary": "GET topic (internal request)", "operationId": "get_internal_request_topic", "tags": ["internal-request"]}}, "/internal-request/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InternalRequest"}}}, "summary": "Get internal request by id", "operationId": "get_internal_request_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["internal-request"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InternalRequest"}}}, "summary": "Update internal request", "operationId": "put_internal_request_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InternalRequestPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["internal-request"]}}, "/internal-system-debtors": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorInternal"}}}}, "summary": "List internal system debtors", "operationId": "get_collection", "tags": ["internal-system-debtors"]}}, "/internal-system-debtors/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorInternal"}}}, "summary": "Search internal system debtors", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorInternalSearch"}}], "tags": ["internal-system-debtors"]}}, "/internal-system-debtors/{identification_number_}": {"parameters": [{"name": "identification_number_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorInternal"}}}, "summary": "GET internal system debtor", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["internal-system-debtors"]}}, "/invoice-offers": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoiceOffer"}}}}, "summary": "List invoice offers", "operationId": "get_collection", "tags": ["invoice-offers"]}}, "/invoice-offers/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoiceOffer"}}}, "summary": "Search invoice offers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceOfferSearch"}}], "tags": ["invoice-offers"]}}, "/invoice-offers/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceOffer"}}}, "summary": "Get invoice offer by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice-offers"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceOffer"}}}, "summary": "Update invoice offer", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceOfferUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice-offers"]}}, "/invoice-payment-reference-settings": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettings"}}}, "summary": "Create invoice payment reference setting", "operationId": "post_create_invoice_payment_reference_settings", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettingsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice-payment-reference-settings"]}}, "/invoice-payment-reference-settings/client/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of invoice payment reference settings for the client.", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettings"}}}, "summary": "Get Invoice payment reference setting instances", "operationId": "get_client_payment_reference_settings_item_get_by_id", "tags": ["invoice-payment-reference-settings"]}}, "/invoice-payment-reference-settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettings"}}}, "summary": "Search invoice payment reference settings", "operationId": "post_invoice_payment_reference_settings_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettingsSearch"}}], "tags": ["invoice-payment-reference-settings"]}}, "/invoice-payment-reference-settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettings"}}}, "summary": "Get Invoice payment reference settings instance", "operationId": "get_invoice_payment_reference_settings_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice-payment-reference-settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettings"}}}, "summary": "Update Invoice payment reference settings instance", "operationId": "put_invoice_payment_reference_settings_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoicePaymentReferenceSettingsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice-payment-reference-settings"]}}, "/invoice-refinancing": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoiceRefinancing"}}}}, "summary": "List invoice refinancings", "operationId": "get_collection", "tags": ["invoice-refinancing"]}}, "/invoice-refinancing/bulk-external": {"put": {"responses": {"200": {"description": "Bulk external refinancing triggered for the invoices."}}, "summary": "PUT - bulk external", "operationId": "put_bulk_item_manual_refinance", "tags": ["invoice-refinancing"]}}, "/invoice-refinancing/{invoice_id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceRefinancing"}}}, "summary": "Method should get read refinance invoice", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice-refinancing"]}, "put": {"responses": {"409": {"description": "The invoice is already approved for refinancing."}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoiceRefinancing"}}}, "summary": "PUT invoice refinancing", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateInvoiceRefinancing"}}], "tags": ["invoice-refinancing"]}}, "/invoice-refinancing/{invoice_id}/external": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "External refinancing performed for the invoice."}}, "summary": "External invoice refinancing", "operationId": "post_item_manual_refinance", "tags": ["invoice-refinancing"]}}, "/invoice-refinancing/{invoice_id}/use-recourse": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Use-recourse flag updated on the invoice refinancing."}}, "summary": "Update use recourse of invoice refinancing", "operationId": "put_item_use_recourse", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateInvoiceUseRefinancingRecourse"}}], "tags": ["invoice-refinancing"]}}, "/invoice/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceToDo"}}}, "summary": "Create todo", "operationId": "post_create_invoice_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice/todo"]}}, "/invoice/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoiceToDo"}}}, "summary": "Search todos", "operationId": "post_invoice_to_do_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceToDoSearch"}}], "tags": ["invoice/todo"]}}, "/invoice/todo/{invoice_id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoiceToDo"}}}, "summary": "Get Invoice To Do instances", "operationId": "get_invoice_to_do_item_get_by_id", "tags": ["invoice/todo"]}}, "/invoice/todo/{invoice_id}/{id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceToDo"}}}, "summary": "Get Invoice To Do instance", "operationId": "get_invoice_to_do_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceToDo"}}}, "summary": "Update Invoice To Do instance", "operationId": "put_invoice_to_do_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateInvoiceToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoice/todo"]}}, "/invoices": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "OK", "schema": {"$ref": "#/definitions/invoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create invoice", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createInvoice"}}], "tags": ["invoices"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/invoice"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List invoices", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices"]}}, "/invoices/actions/bulk-activate": {"post": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Result of the bulk activate action.", "schema": {"$ref": "#/definitions/bulkActivateResult"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "POST - bulk activate invoices, returning per-invoice succeeded/failed", "operationId": "post_item_action_bulk_activate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/bulkActivateInvoices"}}], "tags": ["invoices"]}}, "/invoices/actions/bulk-refund-credit-invoice": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/bulkRefundCreditInvoice"}}}, "summary": "PUT - actions bulk refund credit invoice", "operationId": "put_item_bulk_refund_credit", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/bulkInvoiceRefund"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/actions/bulk-update": {"put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Result of the bulk update action.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "PUT - actions bulk update", "operationId": "put_item_action_bulk_update", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/bulkUpdateInvoices"}}], "tags": ["invoices"]}}, "/invoices/actions/bulk-update/get-total-balance": {"post": {"responses": {"200": {"description": "Total balance and invoice ids for the bulk update.", "schema": {"$ref": "#/definitions/InvoiceBulkUpdateGetBalanceResponse"}}}, "summary": "Actions bulk update get total balance invoice", "operationId": "post_item_action_bulk_update_get_balance", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/bulkUpdateInvoices"}}], "tags": ["invoices"]}}, "/invoices/actions/change-expire-date": {"put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Invoice expire dates changed.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "PUT - actions change expire date", "operationId": "put_item_action_change_expire_date", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/changeExpireDate"}}], "tags": ["invoices"]}}, "/invoices/actions/download-copies": {"post": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "ZIP archive of the invoice copies, with a skipped.txt listing any invoice left out.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "POST - download the copies of up to 50 invoices as one ZIP", "operationId": "post_item_action_download_copies", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/downloadInvoiceCopies"}}], "produces": ["application/zip"], "tags": ["invoices"]}}, "/invoices/daily-summary": {"get": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Daily summary of financed and created invoices.", "schema": {"$ref": "#/definitions/dailySummary"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "GET - daily summary KPIs: financed today + currently in CREATED", "operationId": "get_daily_summary", "parameters": [{"description": "Scope the figures to one instance provider.", "name": "instanceProviderId", "type": "string", "in": "query"}], "tags": ["invoices"]}}, "/invoices/distribute": {"post": {"responses": {"200": {"description": "Distribution result with distributed and skipped invoices."}}, "summary": "Distribute invoice", "operationId": "post_item_move_list", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceIds"}}], "tags": ["invoices"]}}, "/invoices/electronic/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the electronic invoice as XML.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "GET electronic (invoice)", "operationId": "get_item_electronic", "produces": ["text/xml"], "tags": ["invoices"]}}, "/invoices/events/financial": {"get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/invoiceFinancialEvent"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List financials", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/events/financial"]}}, "/invoices/events/financial/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/invoiceFinancialEvent"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search financials", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceFinancialEventSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/events/financial"]}}, "/invoices/events/financial/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceFinancialEvent"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get financial by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/events/financial"]}}, "/invoices/events/financial/{id_}/reverse": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceFinancialEvent"}}}, "summary": "Update reverse of financial", "operationId": "put_invoice_financial_event_reverse", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceFinancialEventReverse"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/events/financial"]}}, "/invoices/events/financial/{id_}/unlink-credit": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceFinancialEvent"}}}, "summary": "Update unlink credit of financial", "operationId": "put_invoice_financial_event_unlink", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/events/financial"]}}, "/invoices/events/ledger": {"get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/invoiceLedgerEvent"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List ledgers", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/events/ledger"]}}, "/invoices/events/ledger/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/invoiceLedgerEvent"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search ledgers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceLedgerEventSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/events/ledger"]}}, "/invoices/events/ledger/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceLedgerEvent"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get ledger by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/events/ledger"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/invoiceLedgerEvent"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Method should update ledger event sub type", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceLedgerEventUpdate"}}], "tags": ["invoices/events/ledger"]}}, "/invoices/extract/items/search": {"post": {"responses": {"200": {"description": "Paginated items.", "schema": {"type": "array", "items": {"$ref": "#/definitions/PDFExtractItem"}}}}, "summary": "Search the uploaded PDF reader items of every client the user can access, by client, band and status", "operationId": "post_pdf_extract_item_search_all_clients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PDFExtractItemSearchAllClients"}}], "tags": ["invoices"]}}, "/invoices/get-articles": {"post": {"responses": {"200": {"description": "Invoices with their articles.", "schema": {"$ref": "#/definitions/invoiceList"}}}, "summary": "Get articles for invoices", "description": "The required payload is a list of invoice IDs.", "operationId": "post_get_articles", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceIds"}}], "tags": ["invoices"]}}, "/invoices/integration": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "Returns the created invoice id.", "schema": {"$ref": "#/definitions/InvoiceIntegrationCreateResponse"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Synchronous invoice creation for integration partners (client-credential / M2M flow)", "description": "Accepts the same payload as POST /invoices. Runs full validation and creates\nthe invoice before returning.", "operationId": "post_integration_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createInvoice"}}], "tags": ["invoices"]}}, "/invoices/integration/async": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "202": {"description": "Returns the queued invoice creation request id and status.", "schema": {"$ref": "#/definitions/InvoiceIntegrationAsyncCreateResponse"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Async invoice creation for integration partners (client-credential / M2M flow)", "description": "Accepts the same payload as POST /invoices. Performs fast format validation\nsynchronously, then queues a Celery task for the full validation and DB\ncreation. Returns 202 Accepted with the creation-request id and initial\nstatus QUEUED. Poll GET /invoices/requests/<id> for the outcome, or register\na webhook (type INVOICE_CREATED) to receive a push notification.", "operationId": "post_integration_async_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createInvoice"}}], "tags": ["invoices"]}}, "/invoices/link-multiple": {"put": {"responses": {"200": {"description": "Credit/debit invoices linked."}}, "summary": "PUT - link multiple", "operationId": "put_item_link_multiple_credit_debit_invoices", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/linkMultipleCreditDebitInvoices"}}], "tags": ["invoices"]}}, "/invoices/link-multiple-bulk": {"put": {"responses": {"200": {"description": "Bulk link result with succeeded and failed invoices."}}, "summary": "PUT - link multiple bulk", "operationId": "put_item_bulk_link_multiple_credit_debit_invoices", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/bulkLinkMultipleCreditDebitInvoices"}}], "tags": ["invoices"]}}, "/invoices/preview": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the rendered invoice preview.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Preview invoice", "operationId": "post_collection_preview", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/createInvoice"}}, {"description": "'html' (default) or 'pdf' for the invoice as it will be sent.", "name": "format", "type": "string", "in": "query"}], "produces": ["text/html", "application/pdf"], "tags": ["invoices"]}}, "/invoices/requests/source/{source_id}": {"parameters": [{"name": "source_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Not found", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the invoice creation request.", "schema": {"$ref": "#/definitions/InvoiceCreationRequestResponse"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "GET requests source (invoice)", "operationId": "get_invoice_creation_request_by_source", "tags": ["invoices"]}}, "/invoices/requests/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "404": {"description": "Not found", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the invoice creation request.", "schema": {"$ref": "#/definitions/InvoiceCreationRequestResponse"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "GET requests (invoice)", "operationId": "get_invoice_creation_request_item", "tags": ["invoices"]}}, "/invoices/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/invoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search invoices", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices"]}}, "/invoices/signature-request": {"post": {"responses": {"200": {"description": "Created signature request."}}, "summary": "Signature request invoice", "operationId": "post_item_signature_request", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/signatureRequest"}}], "tags": ["invoices"]}}, "/invoices/table/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "List of invoices matching the search.", "schema": {"$ref": "#/definitions/invoiceTableList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search tables", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceTableSearchGet"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/table"]}}, "/invoices/table/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "The invoice.", "schema": {"$ref": "#/definitions/invoiceTableList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get table by id", "operationId": "Fetch an invoice", "tags": ["invoices/table"]}}, "/invoices/{client_id}/extract": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "List of created PDF extract ids."}}, "summary": "Extract invoice", "operationId": "post_invoice_pdf_extract", "tags": ["invoices"]}}, "/invoices/{client_id}/extract/ai": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "List of created PDF extract ids (AI reader)."}}, "summary": "Extract invoice with the AI reader", "operationId": "post_invoice_pdf_extract_ai", "tags": ["invoices"]}}, "/invoices/{client_id}/extract/enabled": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Whether invoice PDF extraction is enabled, which readers can be used and the default one.", "schema": {"$ref": "#/definitions/InvoicePDFExtractEnabled"}}}, "summary": "Extract enabled for invoice", "operationId": "get_invoice_pdf_extract_access", "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/bulk-delete": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"204": {"description": "Items deleted; items already created as invoices are left as they are."}}, "summary": "Delete several PDF reader items that have not been created as invoices", "operationId": "post_pdf_extract_item_bulk_delete", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PDFExtractItemIds"}}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/bulk-retry": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/PDFExtractItem"}}}, "400": {"description": "no_reader_available or reader_not_available:<reason>."}}, "summary": "Read several PDF reader items again with the Smart reader after their reads stopped because it was off; other items are left as they are", "operationId": "post_pdf_extract_item_bulk_retry", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PDFExtractItemIds"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/files": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/PDFExtractItem"}}}}, "summary": "Upload PDFs for a client and queue each one for the chosen reader", "operationId": "post_pdf_extract_item_files", "parameters": [{"description": "Reader for this upload, one of ['AI', 'AWS']. Defaults to the system default reader.", "name": "reader", "type": "string", "in": "query"}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/search": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Paginated items.", "schema": {"type": "array", "items": {"$ref": "#/definitions/PDFExtractItem"}}}}, "summary": "Search a client's uploaded PDF reader items by band and status", "operationId": "post_pdf_extract_item_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PDFExtractItemSearch"}}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/{item_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}, {"name": "item_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Item deleted."}}, "summary": "Delete a PDF reader item that has not been created as an invoice", "operationId": "delete_pdf_extract_item", "tags": ["invoices"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PDFExtractItem"}}}, "summary": "Get one PDF reader item", "operationId": "get_pdf_extract_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PDFExtractItem"}}}, "summary": "Save edits to a PDF reader item, recomputing its checks and band, or mark it created with its invoice", "operationId": "put_pdf_extract_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PDFExtractItemPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/{item_id}/checks": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}, {"name": "item_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PDFExtractItemChecks"}}}, "summary": "Run the read checks on an edited result of a read PDF reader item and return the checks and band, without saving anything", "operationId": "post_pdf_extract_item_checks", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PDFExtractItemChecksRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/items/{item_id}/retry": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}, {"name": "item_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PDFExtractItem"}}, "400": {"description": "not_retryable, no_reader_available or reader_not_available:<reason>."}}, "summary": "Read a PDF reader item again with the Smart reader it was uploaded for, after its read stopped because the reader was off", "operationId": "post_pdf_extract_item_retry", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{client_id}/extract/response": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Extraction results for the requested PDF extract ids.", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoicePDFExtractResponse"}}}}, "summary": "Extract response invoice", "operationId": "post_invoice_pdf_extract_response", "tags": ["invoices"]}}, "/invoices/{client_id}/extract/usage": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/PDFExtractUsage"}}}}, "summary": "Daily AI PDF reader token usage for a client, newest day first", "operationId": "get_pdf_extract_usage_collection", "parameters": [{"description": "First day, YYYY-MM-DD (default 30 days ago)", "name": "fromDate", "type": "string", "in": "query"}, {"description": "Last day (default today)", "name": "toDate", "type": "string", "in": "query"}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "409": {"description": "The invoice has left registration or other records refer to it.", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Invoice deleted.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Delete an invoice that has never left registration", "operationId": "delete_item", "tags": ["invoices"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/invoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get invoice by id", "operationId": "get_something", "tags": ["invoices"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/invoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update invoice", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceModelPut"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/create-interest-invoice": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create an interest invoice for the interest remaining on the invoice", "operationId": "put_item_action_create_interest_invoice", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceCreateInterestInvoice"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/credit": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the created credit invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions credit of invoice", "operationId": "put_item_credit", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceCreditInvoice"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/deny-tax-reduction": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions deny tax reduction of invoice", "operationId": "put_item_action_deny_tax_reduction", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceDenyTaxReduction"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/direct-payment": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions direct payment of invoice", "operationId": "put_item_action_direct_payment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceDirectPayment"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/dispute": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions dispute of invoice", "operationId": "put_item_action_dispute", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceDispute"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/pause": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions pause of invoice", "operationId": "put_item_action_pause", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoicePause"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/payment": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions payment of invoice", "operationId": "put_item_action_payment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoicePayment"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/recourse": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions recourse of invoice", "operationId": "put_item_action_recourse", "tags": ["invoices"]}}, "/invoices/{id_}/actions/refund": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Returns the credit invoice created by the refund.", "schema": {"$ref": "#/definitions/invoiceList"}}}, "summary": "Update actions refund of invoice", "operationId": "put_item_refund", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceRefund"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/refund-credit-invoice": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/bulkRefundCreditInvoice"}}}, "summary": "Update actions refund credit invoice of invoice", "operationId": "put_item_refund_credit", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceRefundCredit"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/resume": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions resume of invoice", "operationId": "put_item_action_resume", "tags": ["invoices"]}}, "/invoices/{id_}/actions/revert-reminder": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions revert reminder of invoice", "operationId": "put_item_action_revert_reminder", "tags": ["invoices"]}}, "/invoices/{id_}/actions/send": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions send of invoice", "operationId": "put_item_action_send", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceSend"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/stop": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions stop of invoice", "operationId": "put_item_action_stop", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceStop"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/writeoff-capital": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions writeoff capital of invoice", "operationId": "put_item_action_write_off_capital", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceWriteOffCapital"}}], "tags": ["invoices"]}}, "/invoices/{id_}/actions/writeoff-reminder": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update actions writeoff reminder of invoice", "operationId": "put_item_action_write_off_reminder", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceWriteOffReminder"}}], "tags": ["invoices"]}}, "/invoices/{id_}/activate": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the activated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update activate of invoice", "operationId": "put_item_activate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceActivate"}}], "tags": ["invoices"]}}, "/invoices/{id_}/archive/add": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update archive add of invoice", "operationId": "put_item_archive_add", "tags": ["invoices"]}}, "/invoices/{id_}/archive/remove": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update archive remove of invoice", "operationId": "put_item_archive_remove", "tags": ["invoices"]}}, "/invoices/{id_}/calculate-balance": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Recalculates and stores the invoice financial balance. No response body."}}, "summary": "Update calculate balance of invoice", "operationId": "put_item_calculate_balance", "tags": ["invoices"]}}, "/invoices/{id_}/calculate-status": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Recalculates and stores the invoice status. No response body."}}, "summary": "Update calculate status of invoice", "operationId": "put_item_calculate_status", "tags": ["invoices"]}}, "/invoices/{id_}/creditcheck": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/creditCheckModel"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Creditcheck invoice", "operationId": "post_item_credit_check", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{id_}/external-collection": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/collectionExternalStatus"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get collection external status for an invoice", "operationId": "get_item_collection_external_status", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{id_}/external-collection/recall": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the recalled invoice.", "schema": {"$ref": "#/definitions/invoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Recall an invoice from an external collection", "operationId": "put_item_action_recall_from_external_collection", "tags": ["invoices"]}}, "/invoices/{id_}/fast-forward": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Invoice ledger event fast-forwarded."}}, "summary": "Update fast forward of invoice", "operationId": "put_item_fast_forward", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceFastForward"}}], "tags": ["invoices"]}}, "/invoices/{id_}/part-payment/start": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Part payment started for the invoice."}}, "summary": "Update part payment start of invoice", "operationId": "put_item_part_payment_start", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoicePartPaymentStart"}}], "tags": ["invoices"]}}, "/invoices/{id_}/part-payment/stop": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Stops the part-payment plan on the invoice. No response body."}}, "summary": "Update part payment stop of invoice", "operationId": "put_item_part_payment_stop", "tags": ["invoices"]}}, "/invoices/{id_}/preview": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the rendered invoice preview as HTML.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update preview of invoice", "operationId": "put_collection_id_preview", "produces": ["text/html"], "tags": ["invoices"]}}, "/invoices/{id_}/reason-codes": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Reason codes on the invoice.", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoiceReasonCode"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List an invoice's reason codes, including ones that no longer apply", "operationId": "get_item_reason_codes", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{id_}/reset": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the reset invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update reset of invoice", "operationId": "put_item_reset", "tags": ["invoices"]}}, "/invoices/{id_}/rewind": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Invoice ledger timeline rewound."}}, "summary": "Rewind invoice", "operationId": "post_item_rewind", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceRewind"}}], "tags": ["invoices"]}}, "/invoices/{id_}/set-interest-rate": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Returns the updated invoice.", "schema": {"$ref": "#/definitions/invoiceList"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update set interest rate of invoice", "operationId": "put_item_set_interest", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoiceInterestRate"}}], "tags": ["invoices"]}}, "/invoices/{id_}/signature-request": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/getSignatureRequest"}}}, "summary": "Signature request for invoice", "operationId": "get_collection_signature_request", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{invoice_id_}/check-insurance-limit": {"parameters": [{"name": "invoice_id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/getSignatureRequest"}}}, "summary": "Check insurance limit for invoice", "operationId": "get_item_insurance_limit", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{invoice_id_}/credit-debit-link-list": {"parameters": [{"name": "invoice_id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Credit/debit linked invoices.", "schema": {"$ref": "#/definitions/invoiceList"}}}, "summary": "Credit debit link list for invoice", "operationId": "get_item_credit_debit_link_list", "tags": ["invoices"]}}, "/invoices/{invoice_id_}/signature-request-options": {"parameters": [{"name": "invoice_id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/signatureRequestOptions"}}}, "summary": "How a delivery confirmation for the invoice would be signed, so the form can say so before it is sent", "operationId": "get_item_signature_request_options", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{invoice_id_}/signature-request/{id_}": {"parameters": [{"name": "invoice_id_", "in": "path", "required": true, "type": "string"}, {"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/getSignatureRequest"}}}, "summary": "Delete signature request of invoice", "operationId": "delete_delete_signature_request_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{invoice_id}/article_labels": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/ArticleLabel"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "OK", "schema": {"$ref": "#/definitions/ArticleLabel"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create article_label", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateArticleLabel"}}], "tags": ["invoices/<invoice_id>/article_labels"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/ArticleLabel"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List article_labels", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/article_labels"]}}, "/invoices/{invoice_id}/articles": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/Article"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List articles", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/articles"]}}, "/invoices/{invoice_id}/guarantors": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceGuarantor"}}}, "summary": "Create guarantor", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceGuarantorCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/guarantors"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoiceGuarantor"}}}}, "summary": "List guarantors", "operationId": "get_collection", "tags": ["invoices/<invoice_id>/guarantors"]}}, "/invoices/{invoice_id}/guarantors/search": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoiceGuarantor"}}}, "summary": "Search guarantors", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceGuarantorSearch"}}], "tags": ["invoices/<invoice_id>/guarantors"]}}, "/invoices/{invoice_id}/guarantors/{id_}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}, {"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceGuarantor"}}}, "summary": "Delete guarantor", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/guarantors"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceGuarantor"}}}, "summary": "Get guarantor by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/guarantors"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoiceGuarantor"}}}, "summary": "Update guarantor", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceGuarantorUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/guarantors"]}}, "/invoices/{invoice_id}/labels": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/LabelInvoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "OK", "schema": {"$ref": "#/definitions/LabelInvoice"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create label", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateLabelInvoice"}}], "tags": ["invoices/<invoice_id>/labels"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/LabelInvoice"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List labels", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/<invoice_id>/labels"]}}, "/invoices/{invoice_id}/labels/{id}": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete label", "operationId": "delete_item_invoice_label", "tags": ["invoices/<invoice_id>/labels"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/LabelInvoice"}}}, "summary": "Update label", "operationId": "put_item_invoice_label", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateLabelInvoice"}}], "tags": ["invoices/<invoice_id>/labels"]}}, "/invoices/{invoice_id}/notes": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoiceNote"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List notes", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/<invoice_id>/notes"]}}, "/invoices/{invoice_id}/notes/search": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/InvoiceNote"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search notes", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/InvoiceNoteSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["invoices/<invoice_id>/notes"]}}, "/invoices/{invoice_id}/payment-account": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccountInvoice"}}}, "operationId": "get_payment_account", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/invoices/{invoice_id}/payment-method-configurations": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoicePaymentMethodConfiguration"}}}}, "summary": "List payment method configurations", "operationId": "get_collection", "tags": ["invoices/<invoice_id>/payment-method-configurations"]}}, "/invoices/{invoice_id}/payment-method-configurations/toggle": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoicePaymentMethodConfiguration"}}}, "summary": "PUT - toggle", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateInvoicePaymentMethodConfiguration"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/payment-method-configurations"]}}, "/invoices/{invoice_id}/payment-methods": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoicePaymentMethod"}}}}, "summary": "List payment methods", "operationId": "get_collection", "tags": ["invoices/<invoice_id>/payment-methods"]}}, "/invoices/{invoice_id}/payment-methods/toggle": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/InvoicePaymentMethod"}}}, "summary": "PUT - toggle", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateInvoicePaymentMethod"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices/<invoice_id>/payment-methods"]}}, "/invoices/{invoice_id}/payouts": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoicePayout"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "operationId": "get_collection", "tags": ["invoices/<invoice_id>/payouts"]}}, "/invoices/{invoice_id}/retry-post-activate": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Post-activation re-triggered for the invoice.", "schema": {"$ref": "#/definitions/InvoiceRetryPostActivateResponse"}}}, "summary": "Internal endpoint to re-trigger post-activation for a stuck invoice", "operationId": "post_item_post_activate", "tags": ["invoices"]}}, "/invoices/{invoice_id}/transaction-reports": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/InvoiceTransactionReport"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "operationId": "get_collection", "tags": ["invoices/<invoice_id>/transaction-reports"]}}, "/invoices/{invoice_id}/transfer-text": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/TransferTextInvoice"}}}, "operationId": "get_transfer_text", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["invoices"]}}, "/labels": {"post": {"responses": {"201": {"description": "OK", "schema": {"$ref": "#/definitions/Label"}}}, "summary": "Create label", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateLabel"}}], "tags": ["labels"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Label"}}}}, "summary": "List labels", "operationId": "get_collection", "tags": ["labels"]}}, "/labels/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Label"}}}, "summary": "Search labels", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/LabelSearch"}}], "tags": ["labels"]}}, "/labels/{id}": {"parameters": [{"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete label", "operationId": "delete_item_label", "tags": ["labels"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Label"}}}, "summary": "Update label", "operationId": "put_item_label", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateLabel"}}], "tags": ["labels"]}}, "/loan-profiles": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/loan-profile"}}}, "summary": "Create loan profile", "operationId": "post_loan_profile_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/loan-profile-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["loan-profiles"]}}, "/loan-profiles/search": {"post": {"responses": {"200": {"description": "Matching loan profiles.", "schema": {"$ref": "#/definitions/loan-profile"}}}, "summary": "Search loan profiles", "operationId": "post_loan_profile_search_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/loan-profile-search"}}], "tags": ["loan-profiles"]}}, "/loan-profiles/{loan_profile_id}": {"parameters": [{"name": "loan_profile_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/loan-profile"}}}, "summary": "GET loan profile", "operationId": "get_item_endpoint", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["loan-profiles"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/loan-profile"}}}, "summary": "PUT loan profile", "operationId": "put_item_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/loan-profile-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["loan-profiles"]}}, "/locales": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Locale"}}}, "summary": "List locales", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["locales"]}}, "/locales/system": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Locale"}}}, "summary": "System locale", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["locales"]}}, "/modules": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/module"}}}}, "summary": "List modules", "operationId": "get_collection", "tags": ["modules"]}}, "/modules/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/module"}}}, "summary": "Get module by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["modules"]}}, "/notes": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Add Note instance to database", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteCreate"}}], "tags": ["notes"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Note"}}}}, "summary": "List notes", "operationId": "get_collection", "tags": ["notes"]}}, "/notes/archived/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Search archived notes for the Notes Archive page", "operationId": "post_archived_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteSearch"}}], "tags": ["notes"]}}, "/notes/client-invoice-notes/search": {"post": {"responses": {"200": {"description": "List of client-visible invoice notes.", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Client invoice notes search note", "operationId": "post_client_invoice_notes_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteSearch"}}], "tags": ["notes"]}}, "/notes/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Search notes", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteSearch"}}], "tags": ["notes"]}}, "/notes/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Method should delete note from the database", "operationId": "delete_item", "tags": ["notes"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Method should get Note by id", "operationId": "get_item", "tags": ["notes"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Method should update exiting Note", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteUpdate"}}], "tags": ["notes"]}}, "/notes/{id_}/archive": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Archive a note, recording who archived it and when", "operationId": "post_item_archive", "tags": ["notes"]}}, "/notes/{id_}/unarchive": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Restore an archived note to its original place", "operationId": "post_item_unarchive", "tags": ["notes"]}}, "/notes/{note_id}/attach-file": {"parameters": [{"name": "note_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Note"}}}, "summary": "Method should attach file to the note", "operationId": "put_item_attach_file", "tags": ["notes"]}}, "/part-invoices": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartInvoice"}}}}, "summary": "List part invoices", "operationId": "get_collection", "tags": ["part-invoices"]}}, "/part-invoices/activate": {"put": {"responses": {"200": {"description": "Started to activate part invoices"}}, "summary": "PUT - activate", "operationId": "put_item_activate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/partInvoiceUpdate"}}], "tags": ["part-invoices"]}}, "/part-invoices/authorize": {"put": {"responses": {"200": {"description": "Started to authorize part invoices"}}, "summary": "PUT - authorize", "operationId": "put_item_authorize", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/partInvoiceUpdate"}}], "tags": ["part-invoices"]}}, "/part-invoices/generate": {"put": {"responses": {"200": {"description": "Started to generate part invoices"}}, "summary": "PUT - generate", "operationId": "put_item_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/partInvoiceUpdate"}}], "tags": ["part-invoices"]}}, "/part-invoices/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartInvoice"}}}, "summary": "Search part invoices", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartInvoiceSearch"}}], "tags": ["part-invoices"]}}, "/part-invoices/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartInvoice"}}}, "summary": "Delete part invoice", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-invoices"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartInvoice"}}}, "summary": "Get part invoice by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-invoices"]}}, "/part-payment-accounts": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccount"}}}}, "summary": "List part-payment accounts", "operationId": "get_collection", "tags": ["part-payment-accounts"]}}, "/part-payment-accounts/events": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountEvent"}}}}, "summary": "List events", "operationId": "get_collection", "tags": ["part-payment-accounts/events"]}}, "/part-payment-accounts/events/financial": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountFinancialEvent"}}}}, "summary": "List financials", "operationId": "get_collection", "tags": ["part-payment-accounts/events/financial"]}}, "/part-payment-accounts/events/financial/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentAccountFinancialEvent"}}}, "summary": "Search financials", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountFinancialEventSearch"}}], "tags": ["part-payment-accounts/events/financial"]}}, "/part-payment-accounts/events/financial/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountFinancialEvent"}}}, "summary": "Get financial by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/events/financial"]}}, "/part-payment-accounts/events/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentAccountEvent"}}}, "summary": "Search events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountEventSearch"}}], "tags": ["part-payment-accounts/events"]}}, "/part-payment-accounts/events/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountEvent"}}}, "summary": "Get event by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/events"]}}, "/part-payment-accounts/invoices": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoice"}}}, "summary": "Create invoice", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoiceCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/invoices"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountInvoice"}}}}, "summary": "List invoices", "operationId": "get_collection", "tags": ["part-payment-accounts/invoices"]}}, "/part-payment-accounts/invoices/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoice"}}}, "summary": "Search invoices", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoiceSearch"}}], "tags": ["part-payment-accounts/invoices"]}}, "/part-payment-accounts/invoices/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoice"}}}, "summary": "Delete invoice", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/invoices"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoice"}}}, "summary": "Get invoice by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/invoices"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoice"}}}, "summary": "Update invoice", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountInvoiceUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/invoices"]}}, "/part-payment-accounts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentAccount"}}}, "summary": "Search part-payment accounts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountSearch"}}], "tags": ["part-payment-accounts"]}}, "/part-payment-accounts/settings": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountSetting"}}}}, "summary": "List settings", "operationId": "get_collection", "tags": ["part-payment-accounts/settings"]}}, "/part-payment-accounts/settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentAccountSetting"}}}, "summary": "Search settings", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountSettingSearch"}}], "tags": ["part-payment-accounts/settings"]}}, "/part-payment-accounts/settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountSetting"}}}, "summary": "Get setting by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountSetting"}}}, "summary": "Update setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountSettingUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts/settings"]}}, "/part-payment-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccount"}}}, "summary": "Get part-payment account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccount"}}}, "summary": "Update part-payment account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentAccountUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts"]}}, "/part-payment-accounts/{id_}/summary": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentAccountSummary"}}}, "summary": "Summary for part-payment account", "operationId": "get_item_summary", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-accounts"]}}, "/part-payment-groups/invoice/{invoice_id}/credit-invoices": {"parameters": [{"name": "invoice_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of activated credit invoices available to link.", "schema": {"$ref": "#/definitions/PartPaymentGroupCreditInvoice"}}}, "summary": "Return activated credit invoices available to link for the given invoice source", "operationId": "get_part_payment_group_credit_invoices", "tags": ["part-payment-groups"]}}, "/part-payment-groups/search": {"post": {"responses": {"200": {"description": "List of part-payment groups.", "schema": {"$ref": "#/definitions/PartPaymentGroupList"}}}, "summary": "Search part-payment groups", "operationId": "post_part_payment_group_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentGroupSearch"}}], "tags": ["part-payment-groups"]}}, "/part-payment-groups/source/{source_id}/completed": {"parameters": [{"name": "source_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "All part payments for the source were marked completed.", "schema": {"$ref": "#/definitions/PartPaymentGroupCompleteResponse"}}}, "summary": "Mark all part payments for a given source (invoice or collection batch) as completed", "operationId": "put_part_payment_group_complete", "tags": ["part-payment-groups"]}}, "/part-payment-plans": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlan"}}}}, "summary": "List part-payment plans", "operationId": "get_collection", "tags": ["part-payment-plans"]}}, "/part-payment-plans/collection-batches": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatch"}}}, "summary": "Create collection batch", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatchCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/collection-batches"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanCollectionBatch"}}}}, "summary": "List collection batches", "operationId": "get_collection", "tags": ["part-payment-plans/collection-batches"]}}, "/part-payment-plans/collection-batches/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatch"}}}, "summary": "Search collection batches", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatchSearch"}}], "tags": ["part-payment-plans/collection-batches"]}}, "/part-payment-plans/collection-batches/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatch"}}}, "summary": "Delete collection batch", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/collection-batches"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatch"}}}, "summary": "Get collection batch by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/collection-batches"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatch"}}}, "summary": "Update collection batch", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanCollectionBatchUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/collection-batches"]}}, "/part-payment-plans/events": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanEvent"}}}}, "summary": "List events", "operationId": "get_collection", "tags": ["part-payment-plans/events"]}}, "/part-payment-plans/events/financial": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanFinancialEvent"}}}}, "summary": "List financials", "operationId": "get_collection", "tags": ["part-payment-plans/events/financial"]}}, "/part-payment-plans/events/financial/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlanFinancialEvent"}}}, "summary": "Search financials", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanFinancialEventSearch"}}], "tags": ["part-payment-plans/events/financial"]}}, "/part-payment-plans/events/financial/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanFinancialEvent"}}}, "summary": "Get financial by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/events/financial"]}}, "/part-payment-plans/events/ledger": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanLedgerEvent"}}}}, "summary": "List ledgers", "operationId": "get_collection", "tags": ["part-payment-plans/events/ledger"]}}, "/part-payment-plans/events/ledger/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlanLedgerEvent"}}}, "summary": "Search ledgers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanLedgerEventSearch"}}], "tags": ["part-payment-plans/events/ledger"]}}, "/part-payment-plans/events/ledger/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanLedgerEvent"}}}, "summary": "Get ledger by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/events/ledger"]}}, "/part-payment-plans/events/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlanEvent"}}}, "summary": "Search events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanEventSearch"}}], "tags": ["part-payment-plans/events"]}}, "/part-payment-plans/events/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanEvent"}}}, "summary": "Get event by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/events"]}}, "/part-payment-plans/invoices": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceInvoice"}}}, "summary": "Create invoice", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationCreatePartInvoice"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/invoices"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanInvoiceInvoice"}}}}, "summary": "List invoices", "operationId": "get_collection", "tags": ["part-payment-plans/invoices"]}}, "/part-payment-plans/invoices/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceInvoice"}}}, "summary": "Search invoices", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceSearch"}}], "tags": ["part-payment-plans/invoices"]}}, "/part-payment-plans/invoices/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceInvoice"}}}, "summary": "Delete invoice", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/invoices"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceInvoice"}}}, "summary": "Get invoice by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/invoices"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceInvoice"}}}, "summary": "Update invoice", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanInvoiceUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/invoices"]}}, "/part-payment-plans/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlan"}}}, "summary": "Search part-payment plans", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanSearch"}}], "tags": ["part-payment-plans"]}}, "/part-payment-plans/settings": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanSetting"}}}}, "summary": "List settings", "operationId": "get_collection", "tags": ["part-payment-plans/settings"]}}, "/part-payment-plans/settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PartPaymentPlanSetting"}}}, "summary": "Search settings", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanSettingSearch"}}], "tags": ["part-payment-plans/settings"]}}, "/part-payment-plans/settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanSetting"}}}, "summary": "Get setting by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanSetting"}}}, "summary": "Update setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanSettingUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/settings"]}}, "/part-payment-plans/settings/{id_}/summary": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanSettingSummaryResponse"}}}, "summary": "Update summary of setting", "operationId": "put_item_summary", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanSettingSummary"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans/settings"]}}, "/part-payment-plans/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlan"}}}, "summary": "Get part-payment plan by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlan"}}}, "summary": "Update part-payment plan", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentPlanUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans"]}}, "/part-payment-plans/{id_}/write-off": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlan"}}}, "summary": "Update write off of part-payment plan", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/WriteOffPartPaymentPlan"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans"]}}, "/part-payment-plans/{part_payment_plan_id}/recalculate-annuity": {"parameters": [{"name": "part_payment_plan_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlan"}}}, "summary": "Update recalculate annuity of part-payment plan", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/RecalculateAnnuity"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans"]}}, "/part-payment-plans/{part_payment_plan_id}/summary": {"parameters": [{"name": "part_payment_plan_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPaymentPlanSummaryResponse"}}}, "summary": "Summary for part-payment plan", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payment-plans"]}}, "/part-payments/search": {"post": {"responses": {"200": {"description": "List of part payments.", "schema": {"$ref": "#/definitions/PartPayment"}}}, "summary": "Search part payments", "operationId": "post_part_payment_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PartPaymentSearch"}}], "tags": ["part-payments"]}}, "/part-payments/{part_payment_id}": {"parameters": [{"name": "part_payment_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPayment"}}}, "summary": "GET part payment", "operationId": "get_part_payment_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payments"]}}, "/part-payments/{part_payment_id}/completed": {"parameters": [{"name": "part_payment_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PartPayment"}}}, "summary": "Update completed of part payment", "operationId": "put_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["part-payments"]}}, "/payment-accounts": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccount"}}}, "summary": "Create payment account", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentAccountCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-accounts"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentAccount"}}}}, "summary": "List payment accounts", "operationId": "get_collection", "tags": ["payment-accounts"]}}, "/payment-accounts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentAccount"}}}, "summary": "Search payment accounts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentAccountSearch"}}], "tags": ["payment-accounts"]}}, "/payment-accounts/settings": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccountSetting"}}}, "summary": "Settings payment account", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentAccountSettingCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-accounts"]}}, "/payment-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccount"}}}, "summary": "Get payment account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-accounts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccount"}}}, "summary": "Update payment account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentAccountUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-accounts"]}}, "/payment-accounts/{id_}/settings": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccountSetting"}}}, "summary": "Settings for payment account", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-accounts"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentAccountSetting"}}}, "summary": "Update settings of payment account", "operationId": "put_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentAccountSettingUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-accounts"]}}, "/payment-accountssettings/search": {"post": {"responses": {"200": {"description": "Payment account settings search results.", "schema": {"$ref": "#/definitions/PaymentAccountSetting"}}}, "summary": "POST settings search (payment account)", "operationId": "post_collection_settings_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentAccountSettingSearch"}}], "tags": ["payment-accounts"]}}, "/payment-batches": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentBatch"}}}}, "summary": "List payment batches", "operationId": "get_collection", "tags": ["payment-batches"]}}, "/payment-batches/bookkeep/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for bookkeep payment task returned"}}, "summary": "Bookkeep latest task id payment batch", "operationId": "get_item_get_bookkeep_task_id", "tags": ["payment-batches"]}}, "/payment-batches/export-external-financed": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentBatch"}}}, "summary": "PUT - export external financed", "operationId": "put_item_export_external_financed", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-batches"]}}, "/payment-batches/match/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for match payment batch task returned"}}, "summary": "Match latest task id payment batch", "operationId": "get_item_get_match_task_id", "tags": ["payment-batches"]}}, "/payment-batches/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentBatch"}}}, "summary": "Search payment batches", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentBatchSearch"}}], "tags": ["payment-batches"]}}, "/payment-batches/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentBatch"}}}, "summary": "Get payment batch by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-batches"]}}, "/payment-batches/{id_}/abort": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentBatch"}}}, "summary": "Update abort of payment batch", "operationId": "put_item_abort", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-batches"]}}, "/payment-batches/{id_}/bookkeep": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentBatch"}}}, "summary": "Update bookkeep of payment batch", "operationId": "put_item_bookkeep", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-batches"]}}, "/payment-batches/{id_}/match": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentBatch"}}}, "summary": "Update match of payment batch", "operationId": "put_item_match", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-batches"]}}, "/payment-files": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentFile"}}}, "summary": "Create payment file", "operationId": "post_collection", "parameters": [{"name": "file", "in": "formData", "type": "file", "required": true}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "consumes": ["multipart/form-data"], "tags": ["payment-files"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentFile"}}}}, "summary": "List payment files", "operationId": "get_collection", "tags": ["payment-files"]}}, "/payment-files/import/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for payment import task returned"}}, "summary": "Import latest task id payment file", "operationId": "get_item_get_import_task_id", "tags": ["payment-files"]}}, "/payment-files/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentFile"}}}, "summary": "Search payment files", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentFileSearch"}}], "tags": ["payment-files"]}}, "/payment-files/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Payment file successfully deleted."}}, "summary": "Delete payment file", "operationId": "delete_item", "tags": ["payment-files"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentFile"}}}, "summary": "Get payment file by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-files"]}}, "/payment-files/{id_}/import": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentFile"}}}, "summary": "Update import of payment file", "operationId": "put_item_import", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ImportData"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-files"]}}, "/payment-matching-engine": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMatchingEngine"}}}, "summary": "Create a new payment matching engine", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMatchingEngineCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-matching-engine"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentMatchingEngine"}}}}, "summary": "Get list of payment matching engines", "operationId": "get_collection", "tags": ["payment-matching-engine"]}}, "/payment-matching-engine/match-fields": {"get": {"responses": {"200": {"description": "Available payment matching engine fields.", "schema": {"$ref": "#/definitions/PaymentMatchingEngineFieldsList"}}}, "summary": "Get list of available payment matching engine fields", "operationId": "get_collection_match_fields", "tags": ["payment-matching-engine"]}}, "/payment-matching-engine/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentMatchingEngine"}}}, "summary": "Search payment matching engines", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMatchingEngineSearch"}}], "tags": ["payment-matching-engine"]}}, "/payment-matching-engine/simulate": {"post": {"responses": {"200": {"description": "Simulation result with matched and unmatched references.", "schema": {"$ref": "#/definitions/PaymentMatchingEngineSimulateResponse"}}}, "summary": "Dry-run payment matching simulation", "description": "Input references and see what the matching engine would match with, without creating any links.", "operationId": "post_simulate_matching", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMatchingSimulate"}}], "tags": ["payment-matching-engine"]}}, "/payment-matching-engine/{id_}/clients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Clients disconnected; returns disconnected ids and any errors."}}, "summary": "Disconnect multiple clients from a payment matching engine", "operationId": "delete_engine_client_connections", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientConnectionDelete"}}], "tags": ["payment-matching-engine"]}, "post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/ClientConnectionResponse"}}}, "summary": "Connect multiple clients to a payment matching engine", "operationId": "post_engine_client_connections", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientConnectionCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-matching-engine"]}}, "/payment-matching-engine/{payment_matching_engine_id}": {"parameters": [{"name": "payment_matching_engine_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete a specific payment matching engine", "operationId": "delete_item", "tags": ["payment-matching-engine"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMatchingEngine"}}}, "summary": "Get a specific payment matching engine by ID", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-matching-engine"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMatchingEngine"}}}, "summary": "Update a specific payment matching engine", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMatchingEnginePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-matching-engine"]}}, "/payment-matching-engine/{payment_matching_engine_id}/clients/{client_id}": {"parameters": [{"name": "payment_matching_engine_id", "in": "path", "required": true, "type": "string"}, {"name": "client_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Client disconnected from the payment matching engine."}}, "summary": "Disconnect a single client from a payment matching engine (legacy endpoint)", "operationId": "delete_engine_client_connection", "tags": ["payment-matching-engine"]}}, "/payment-methods": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentMethod"}}}}, "summary": "List payment methods", "operationId": "get_collection", "tags": ["payment-methods"]}}, "/payment-methods/configurations": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfiguration"}}}, "summary": "Create configuration", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentMethodConfiguration"}}}}, "summary": "List configurations", "operationId": "get_collection", "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/client": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/paymentMethodConfigurationClientPost"}}}, "summary": "Client configuration", "operationId": "post_payment_method_configuration_client_post", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/paymentMethodConfigurationClientPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/client/search": {"post": {"responses": {"200": {"description": "List of payment method configuration clients.", "schema": {"$ref": "#/definitions/paymentMethodConfigurationClient"}}}, "summary": "Client search configuration", "operationId": "post_payment_method_configuration_client_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/paymentMethodConfigurationClientSearch"}}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/client/{payment_method_configuration_id}/{client_id}": {"parameters": [{"name": "payment_method_configuration_id", "in": "path", "required": true, "type": "string"}, {"name": "client_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/paymentMethodConfigurationClient"}}}, "summary": "DELETE client (configuration)", "operationId": "delete_payment_method_configuration_client_delete", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentMethodConfiguration"}}}, "summary": "Search configurations", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationSearch"}}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/service-provider": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/paymentMethodConfigurationServiceProvider"}}}, "summary": "Service provider configuration", "operationId": "post_payment_method_configuration_client_post", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/paymentMethodConfigurationServiceProviderPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/service-provider/search": {"post": {"responses": {"200": {"description": "Matching service provider payment method configurations.", "schema": {"$ref": "#/definitions/paymentMethodConfigurationServiceProvider"}}}, "summary": "Service provider search configuration", "operationId": "post_payment_method_configuration_client_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/paymentMethodConfigurationServiceProvider"}}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/service-provider/{payment_method_configuration_id}/{service_provider_id}": {"parameters": [{"name": "payment_method_configuration_id", "in": "path", "required": true, "type": "string"}, {"name": "service_provider_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/paymentMethodConfigurationServiceProvider"}}}, "summary": "DELETE service provider (configuration)", "operationId": "delete_payment_method_configuration_client_delete", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/configurations/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfiguration"}}}, "summary": "Delete configuration", "operationId": "delete_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfiguration"}}}, "summary": "Get configuration by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfiguration"}}}, "summary": "Update configuration", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods/configurations"]}}, "/payment-methods/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentMethod"}}}, "summary": "Search payment methods", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMethodSearch"}}], "tags": ["payment-methods"]}}, "/payment-methods/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethod"}}}, "summary": "Get payment method by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethod"}}}, "summary": "Update payment method", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentMethodUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-methods"]}}, "/payment-reconciliations/search": {"post": {"responses": {"200": {"description": "List of payment reconciliations.", "schema": {"$ref": "#/definitions/PaymentReconciliationList"}}}, "summary": "Search payment reconciliations", "operationId": "post_enforcement_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentReconciliationSearch"}}], "tags": ["payment-reconciliations"]}}, "/payment-reconciliations/{reconciliation_id}": {"parameters": [{"name": "reconciliation_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentReconciliation"}}}, "summary": "GET payment reconciliation", "operationId": "get_enforcement_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-reconciliations"]}}, "/payment-requests": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/payment_request"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create a debtor payment request initiated by an operator", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/payment_request_post_swish_phone"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-requests"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/payment_request"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List payment requests", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["payment-requests"]}}, "/payment-requests/retry-payout/{payment_request_id}": {"parameters": [{"name": "payment_request_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/payment_request"}}}, "summary": "PUT retry payout (payment request)", "operationId": "put_item_retry_payout", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-requests"]}}, "/payment-requests/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/payment_request"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search payment requests", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentRequestSearch"}}], "tags": ["payment-requests"]}}, "/payment-requests/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Payment request successfully deleted.", "schema": {"$ref": "#/definitions/payment_request"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Delete payment request", "operationId": "delete_item", "tags": ["payment-requests"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/payment_request"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get payment request by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-requests"]}}, "/payment-transactions-returns": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionReturn"}}}}, "summary": "Get list of return payment transactions", "operationId": "get_collection", "tags": ["payment-transactions-returns"]}}, "/payment-transactions-returns/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentTransactionReturn"}}}, "summary": "Search returned payment transactions", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionReturnSearch"}}], "tags": ["payment-transactions-returns"]}}, "/payment-transactions-returns/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Denied"}}, "summary": "Deny returned payment transaction", "operationId": "delete_item", "tags": ["payment-transactions-returns"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransactionReturn"}}}, "summary": "Get returned payment transaction by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-transactions-returns"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransactionReturn"}}}, "summary": "Update returned payment transaction", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionReturnPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-transactions-returns"]}}, "/payment-transactions-returns/{id_}/authorize": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransactionReturn"}}}, "summary": "Update authorize of returned payment transaction", "operationId": "put_collection_authorize", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-transactions-returns"]}}, "/payment-transactions-returns/{id_}/return": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransactionReturn"}}}, "summary": "Update return of returned payment transaction", "operationId": "put_collection_return", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ForcePaymentTransactionReturn"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payment-transactions-returns"]}}, "/payments": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransaction"}}}, "summary": "Create payment", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransaction"}}}}, "summary": "List payments", "operationId": "get_collection", "tags": ["payments"]}}, "/payments/events/financial/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionFinancialEvent"}}}}, "summary": "Search payment financial events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionFinancialEventSearch"}}], "tags": ["payments/events/financial"]}}, "/payments/links/search": {"post": {"responses": {"200": {"description": "List of payment transaction links.", "schema": {"$ref": "#/definitions/PaymentTransactionLink"}}}, "summary": "Links search payment", "operationId": "post_item_links_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionLinkSearch"}}], "tags": ["payments"]}}, "/payments/links/{payment_transaction_link_id}/revert": {"parameters": [{"name": "payment_transaction_link_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransactionLink"}}}, "summary": "PUT links revert (payment)", "operationId": "put_collection_revert", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}}, "/payments/multiple": {"post": {"responses": {"200": {"description": "Per-payment results: succeeded and failed entries with the payment batch id."}}, "summary": "Multiple payment", "operationId": "post_collection_payments", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionCreateList"}}], "tags": ["payments"]}}, "/payments/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PaymentTransaction"}}}, "summary": "Search payments", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionSearch"}}], "tags": ["payments"]}}, "/payments/validate-payment-reference": {"post": {"responses": {"200": {"description": "Payment reference validation result."}}, "summary": "Validate payment reference payment", "operationId": "post_validate_payment_reference", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ValidatePaymentReferenceRequest"}}], "tags": ["payments"]}}, "/payments/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Payment transaction successfully deleted."}}, "summary": "Delete payment", "operationId": "delete_item", "tags": ["payments"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransaction"}}}, "summary": "Get payment by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentTransaction"}}}, "summary": "Update payment", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PaymentTransactionUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}}, "/payments/{id_}/notes": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of payment transaction notes.", "schema": {"$ref": "#/definitions/NoteTransaction"}}}, "summary": "Notes for payment", "operationId": "get_payment_transaction_notes", "tags": ["payments"]}}, "/payments/{id_}/notes/{note_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "note_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Payment transaction note deleted. No response body."}}, "summary": "Delete notes of payment", "operationId": "delete_payment_transaction_note", "tags": ["payments"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/NoteTransaction"}}}, "summary": "Notes for payment", "operationId": "get_payment_transaction_note", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/NoteTransaction"}}}, "summary": "Update notes of payment", "operationId": "put_payment_transaction_note", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/NoteTransactionPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}}, "/payments/{id_}/notes/{note_id}/attach-file": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "note_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/NoteTransaction"}}}, "summary": "Update notes attach file of payment", "operationId": "put_payment_transaction_note_file", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payments"]}}, "/payments/{id_}/payment-specification-file": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Specification file uploaded; returns the started match task id."}}, "summary": "Payment specification file payment", "operationId": "post_item_payment_specification_file", "tags": ["payments"]}}, "/payments/{payment_transaction_id}/links": {"parameters": [{"name": "payment_transaction_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of payment transaction links.", "schema": {"$ref": "#/definitions/PaymentTransactionLink"}}}, "summary": "Links for payment", "operationId": "get_item_links", "tags": ["payments"]}}, "/payout-accounts": {"post": {"responses": {"202": {"description": "The new payout account waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/PayoutAccountRequestCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/Payout%20Accounts"}}}, "summary": "Create payout account", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Payout%20Accounts"}}], "tags": ["payout-accounts"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Payout%20Accounts"}}}}, "summary": "List payout accounts", "operationId": "get_collection", "tags": ["payout-accounts"]}}, "/payout-accounts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Payout%20Accounts"}}}, "summary": "Search payout accounts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutAccountSearch"}}], "tags": ["payout-accounts"]}}, "/payout-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Payout%20Accounts"}}}, "summary": "Get payout account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payout-accounts"]}, "put": {"responses": {"202": {"description": "The change waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/PayoutAccountRequestCreated"}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/Payout%20Accounts"}}}, "summary": "Update payout account", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutAccountPut"}}], "tags": ["payout-accounts"]}}, "/payout-batches": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PayoutBatch"}}}}, "summary": "List payout batches", "operationId": "get_collection", "tags": ["payout-batches"]}}, "/payout-batches/generate": {"put": {"responses": {"200": {"description": "Payout batch generation triggered."}}, "summary": "PUT - generate", "operationId": "put_collection_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutBatchGenerate"}}], "tags": ["payout-batches"]}}, "/payout-batches/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PayoutBatch"}}}, "summary": "Search payout batches", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutBatchSearch"}}], "tags": ["payout-batches"]}}, "/payout-batches/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Payout Batch successfully deleted."}}, "summary": "Delete payout batch", "operationId": "delete_item", "tags": ["payout-batches"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PayoutBatch"}}}, "summary": "Get payout batch by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payout-batches"]}}, "/payout-batches/{id_}/authorize": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PayoutBatch"}}}, "summary": "Update authorize of payout batch", "operationId": "put_item_authorize", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payout-batches"]}}, "/payout-batches/{id_}/bookkeep": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PayoutBatch"}}}, "summary": "Update bookkeep of payout batch", "operationId": "put_item_bookkeep", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutBatchBookkeep"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payout-batches"]}}, "/payout-batches/{id_}/export": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PayoutBatch"}}}, "summary": "Update export of payout batch", "operationId": "put_item_export", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payout-batches"]}}, "/payout-files": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PayoutFile"}}}}, "summary": "List payout files", "operationId": "get_collection", "tags": ["payout-files"]}}, "/payout-files/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PayoutFile"}}}, "summary": "Search payout files", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutFileSearch"}}], "tags": ["payout-files"]}}, "/payout-files/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PayoutFile"}}}, "summary": "Get payout file by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payout-files"]}}, "/payouts": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PayoutTransaction"}}}}, "summary": "List payouts", "operationId": "get_collection", "tags": ["payouts"]}}, "/payouts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PayoutTransaction"}}}, "summary": "Search payouts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PayoutSearch"}}], "tags": ["payouts"]}}, "/payouts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Payout successfully deleted."}}, "summary": "Delete payout", "operationId": "delete_item", "tags": ["payouts"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PayoutTransaction"}}}, "summary": "Get payout by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["payouts"]}}, "/pending-payouts": {"parameters": [{"description": "Limit the result to the clients of one instance provider.", "name": "instanceProviderId", "type": "string", "in": "query"}, {"description": "Limit the result to one status (PAYABLE, HELD, NOTHING_TO_PAY, ON_HOLD) or to accounts held back for one reason (NO_PAYOUT_ACCOUNT, PAYOUT_ACCOUNT_BLOCKED, NOT_AUTOMATIC, CLIENT_BALANCE_NOT_POSITIVE, PAYOUT_IN_PROGRESS, NO_SENDING_ACCOUNT, AMBIGUOUS_SENDING_ACCOUNT, NETTED_TO_ZERO, PAYOUT_ACCOUNT_CHANGE_PENDING).", "name": "status", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/PendingPayout"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List pending payouts", "operationId": "get_collection", "tags": ["pending-payouts"]}}, "/pending-payouts/blockers": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PendingPayoutBlockers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Explain why pending payouts will not go through", "operationId": "post_collection_blockers", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PendingPayoutBlockersRequest"}}], "tags": ["pending-payouts"]}}, "/pending-payouts/search": {"parameters": [{"description": "Limit the result to the clients of one instance provider.", "name": "instanceProviderId", "type": "string", "in": "query"}, {"description": "Limit the result to one status (PAYABLE, HELD, NOTHING_TO_PAY, ON_HOLD) or to accounts held back for one reason (NO_PAYOUT_ACCOUNT, PAYOUT_ACCOUNT_BLOCKED, NOT_AUTOMATIC, CLIENT_BALANCE_NOT_POSITIVE, PAYOUT_IN_PROGRESS, NO_SENDING_ACCOUNT, AMBIGUOUS_SENDING_ACCOUNT, NETTED_TO_ZERO, PAYOUT_ACCOUNT_CHANGE_PENDING).", "name": "status", "type": "string", "in": "query"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PendingPayout"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search pending payouts", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PendingPayoutSearch"}}], "tags": ["pending-payouts"]}}, "/pending-payouts/summary": {"parameters": [{"description": "Limit the result to the clients of one instance provider.", "name": "instanceProviderId", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PendingPayoutSummary"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get pending payout totals per currency", "operationId": "get_collection_summary", "tags": ["pending-payouts"]}}, "/pending-payouts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PendingPayoutSettlement"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get the pending settlement of a client account", "operationId": "get_item", "tags": ["pending-payouts"]}}, "/pending-payouts/{id_}/hold": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"404": {"description": "The payouts of the client account are not on hold", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PendingPayoutHold"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Release the payouts of a client account", "operationId": "delete_item_hold", "tags": ["pending-payouts"]}, "post": {"responses": {"409": {"description": "The payouts of the client account are already on hold", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "201": {"description": "Success", "schema": {"$ref": "#/definitions/PendingPayoutHoldCreated"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Put the payouts of a client account on hold until released", "operationId": "post_item_hold", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PendingPayoutHoldRequest"}}], "tags": ["pending-payouts"]}}, "/ping": {"get": {"responses": {"200": {"description": "Unauthenticated ping confirmation message."}}, "summary": "List pings", "operationId": "get_item", "tags": ["ping"]}}, "/ping/secured": {"get": {"responses": {"200": {"description": "Authenticated ping confirmation message."}}, "operationId": "get_item_secured", "tags": ["ping"]}}, "/ping/system": {"get": {"responses": {"200": {"description": "System locale configuration.", "schema": {"$ref": "#/definitions/PingSystemLocaleResponse"}}}, "summary": "System ping", "operationId": "get_item", "tags": ["ping"]}}, "/ping/version": {"get": {"responses": {"200": {"description": "Application version, commit and migration info.", "schema": {"$ref": "#/definitions/PingVersionResponse"}}}, "summary": "Version ping", "operationId": "get_item", "tags": ["ping"]}}, "/price-brackets": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/PriceBracket"}}}}, "summary": "List price brackets", "operationId": "get_collection", "tags": ["price-brackets"]}, "put": {"responses": {"200": {"description": "List of created price brackets.", "schema": {"$ref": "#/definitions/PriceBracket"}}}, "summary": "Replace price brackets collection", "operationId": "put_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PriceBracketCreate"}}], "tags": ["price-brackets"]}}, "/price-brackets/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/PriceBracket"}}}, "summary": "Search price brackets", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PriceBracketSearch"}}], "tags": ["price-brackets"]}}, "/price-brackets/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PriceBracket"}}}, "summary": "Get price bracket by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-brackets"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/PriceBracket"}}}, "summary": "Update price bracket", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PriceBracketUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-brackets"]}}, "/price-lists": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/price_list"}}}}, "summary": "List price lists", "operationId": "get_collection", "tags": ["price-lists"]}}, "/price-lists/bulk-change-runs": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/BulkChangeRun"}}}}, "summary": "List applied bulk price changes, newest first", "operationId": "get_bulk_change_run_collection", "parameters": [{"in": "query", "description": "Only runs of this change type, e.g. FINANCING_FEE_RATE_CHANGE.", "name": "changeType", "type": "string"}], "tags": ["price-lists"]}}, "/price-lists/bulk-change-runs/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BulkChangeRunDetail"}}}, "summary": "Get an applied bulk price change with the price brackets it changed", "operationId": "get_bulk_change_run_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/price-lists/financing-fee-adjustment/apply": {"post": {"responses": {"409": {"description": "A price bracket changed since the preview; nothing was written."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/FinancingFeeAdjustmentResult"}}}, "summary": "Apply a Financing Fee rate change in one transaction, after checking the brackets still match the preview", "operationId": "post_financing_fee_adjustment_apply", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FinancingFeeAdjustmentApply"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/price-lists/financing-fee-adjustment/export": {"post": {"responses": {"200": {"description": "Success"}}, "summary": "Download the preview of a Financing Fee rate change as an Excel file", "description": "Writes nothing.", "operationId": "post_financing_fee_adjustment_export", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FinancingFeeAdjustment"}}], "produces": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"], "tags": ["price-lists"]}}, "/price-lists/financing-fee-adjustment/preview": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/FinancingFeeAdjustmentPreview"}}}, "summary": "Preview a Financing Fee rate change on the selected clients' price brackets", "description": "Writes nothing.", "operationId": "post_financing_fee_adjustment_preview", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/FinancingFeeAdjustment"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/price-lists/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/price_list"}}}, "summary": "Search price lists", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/PriceListSearch"}}], "tags": ["price-lists"]}}, "/price-lists/target/{target_id}": {"parameters": [{"name": "target_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/price_list_currency_mapper"}}}, "summary": "GET target (price list)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/price-lists/update": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/price_list"}}}, "summary": "PUT - update", "operationId": "put_update_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateMultiplePriceLists"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/price-lists/update-multiple-brackets": {"put": {"responses": {"200": {"description": "Bulk bracket update task started; returns the task id.", "schema": {"$ref": "#/definitions/PriceListBulkBracketUpdateTask"}}}, "summary": "PUT - update multiple brackets", "operationId": "put_update_brackets", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateMultiplePriceBrackets"}}], "tags": ["price-lists"]}}, "/price-lists/update-multiple-brackets/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for update multiple price brackets task returned"}}, "summary": "Update multiple brackets latest task id price list", "operationId": "get_update_brackets_get_task_id", "tags": ["price-lists"]}}, "/price-lists/update-multiple-prices": {"put": {"responses": {"200": {"description": "Bulk price update task started; returns the task id.", "schema": {"$ref": "#/definitions/PriceListBulkPriceUpdateTask"}}}, "summary": "PUT - update multiple prices", "operationId": "put_update_prices", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateMultiplePrices"}}], "tags": ["price-lists"]}}, "/price-lists/update-multiple-prices/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for update multiple price prices task returned"}}, "summary": "Update multiple prices latest task id price list", "operationId": "get_update_prices_get_task_id", "tags": ["price-lists"]}}, "/price-lists/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/price_list"}}}, "summary": "Get price list by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/price-lists/{price_list_id}/prices": {"parameters": [{"name": "price_list_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/price_list_price"}}}, "summary": "Update prices of price list", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/price_list_price_put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["price-lists"]}}, "/product-rates/active": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/ProductRate"}}}}, "summary": "List the open product rates", "operationId": "get_active_product_rates", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["product-rates"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/ProductRate"}}}}, "summary": "Set, change or remove product rates in one save", "description": "A null amount switches the product back to the base rate.", "operationId": "put_active_product_rates", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ProductRatePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["product-rates"]}}, "/public/collection-batches/{payment_reference}/{zip_code}/part-payment/start": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_code", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Part payment started for the public collection batch."}}, "summary": "Part payment start public collection batch", "operationId": "post_collection_batch_start", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "The public collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchPublic"}}}, "summary": "for public collection batch", "operationId": "get_item", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/client": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Client for the public collection batch.", "schema": {"$ref": "#/definitions/ClientPublicCollection"}}}, "summary": "Client for public collection batch", "operationId": "get_client_item", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/documents": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Documents for the public collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchWithDocumentPublic"}}}, "summary": "Documents for public collection batch", "operationId": "get_documents_item", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/events/financial": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Financial events for the public collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchFinancialEventsPublic"}}}, "summary": "Events financial for public collection batch", "operationId": "get_events_financial_collection", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/invoices": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Invoices for the public collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchInvoiceInfo"}}}, "summary": "Invoices for public collection batch", "operationId": "get_item_invoices", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/ledger": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Ledger for the public collection batch.", "schema": {"$ref": "#/definitions/CollectionBatchPublic"}}}, "summary": "Ledger for public collection batch", "operationId": "get_ledger_collection", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/ledger/status": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Ledger status for the public collection batch.", "schema": {"$ref": "#/definitions/PublicCollectionBatchLedgerStatus"}}}, "summary": "Ledger status for public collection batch", "operationId": "get_ledger_status_collection", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/payment-account": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Payment account for the public collection batch.", "schema": {"$ref": "#/definitions/PublicClientPaymentAccountSingle"}}}, "summary": "Payment account for public collection batch", "operationId": "get_payment_account", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/payment-methods": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Payment methods for the public collection batch.", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationInvoicePublic"}}}, "summary": "Payment methods for public collection batch", "operationId": "get_collection_payment_methods", "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/payment-requests": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests public collection batch", "operationId": "post_collection_batch_payment_request_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/payment_request_post_swish"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/collection-batches"]}, "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests for public collection batch", "operationId": "get_collection_batch_payment_request_create", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/collection-batches"]}}, "/public/collection-batches/{payment_reference}/{zip_}/stats": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Aggregated statistics for the public collection batch."}}, "summary": "Stats for public collection batch", "operationId": "get_stats_collection", "tags": ["public/collection-batches"]}}, "/public/debtors/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/debtor_public"}}}, "summary": "Get public debtor by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/debtors"]}}, "/public/developer-portal/tenant": {"get": {"responses": {"200": {"description": "Tenant branding for the developer portal.", "schema": {"$ref": "#/definitions/DeveloperPortalTenant"}}}, "summary": "Get the tenant branding for the developer portal", "operationId": "get_tenant", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/developer-portal"]}}, "/public/invoices/{payment_reference}/{zip_}": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "The public invoice.", "schema": {"$ref": "#/definitions/PublicInvoiceMasked"}}}, "summary": "for public invoice", "operationId": "get_item", "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/client": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceClient"}}}, "summary": "Client for public invoice", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/dispute": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceMasked"}}}, "summary": "Update dispute of public invoice", "operationId": "put_item_action_dispute", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/documents": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceDocument"}}}, "summary": "Documents for public invoice", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/events/financial": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceFinancialEvent"}}}, "summary": "Events financial for public invoice", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/events/ledger": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceLedgerEvent"}}}, "summary": "Events ledger for public invoice", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/instance-provider": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PublicInvoiceInstanceProvider"}}}, "summary": "Instance provider for public invoice", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/ledger/search": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "The public invoice as a ledger.", "schema": {"$ref": "#/definitions/PublicInvoiceMasked"}}}, "summary": "Ledger search public invoice", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoicePublicSearch"}}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/part-payment/start": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Part payment started for the public invoice."}}, "summary": "Update part payment start of public invoice", "operationId": "put_item_part_payment_start", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/invoicePartPaymentStart"}}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/payment-account": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/_PaymentAccount"}}}, "summary": "Payment account for public invoice", "operationId": "get_pyment_account", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/payment-methods": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentMethodConfigurationInvoicePublic"}}}, "summary": "Payment methods for public invoice", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/payment-requests": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests public invoice", "operationId": "post_invoice_payment_request_create", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/payment_request_post_swish"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}, "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/PaymentRequest"}}}, "summary": "Payment requests for public invoice", "operationId": "get_invoice_payment_request_create", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip_}/stats": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Statistics for the public invoice.", "schema": {"$ref": "#/definitions/invoiceStats"}}}, "summary": "Stats for public invoice", "operationId": "get_collection", "tags": ["public/invoices"]}}, "/public/invoices/{payment_reference}/{zip}/payment-receipt": {"parameters": [{"name": "payment_reference", "in": "path", "required": true, "type": "string"}, {"name": "zip", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"429": {"description": "Too many wrong zip codes for this payment reference. Retry after the Retry-After header."}, "200": {"description": "Generated PDF payment receipt for the invoice."}}, "summary": "Create a PDF receipt for a fully paid invoice and return it directly", "description": "No record will be generated other than a logg of the creation event.\nThis is fairly CPU intensive and should be monitored for heavy use.\nAn earlier revision stores the file for reuse.\nThere is a debtor invoice version of this endpoint.", "operationId": "put_payment_receipt_download_ref", "tags": ["public/invoices"]}}, "/public/locales": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/LocalePublic"}}}, "summary": "List public locales", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/locales"]}}, "/public/service-providers/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ServiceProviderPublic"}}}, "summary": "Search public service providers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderSearchPublic"}}], "tags": ["public/service-providers"]}}, "/public/signature-requests/bankid/cancel": {"post": {"responses": {"200": {"description": "BankID order cancelled."}}, "summary": "Cancel the BankID order, for example when the signer closes the dialog", "description": "A completed order is kept.", "operationId": "post_item_bankid_cancel", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestBankidCancel"}}], "tags": ["public/signature-requests"]}}, "/public/signature-requests/bankid/collect": {"post": {"responses": {"200": {"description": "The order status. On complete the request is signed.", "schema": {"$ref": "#/definitions/publicSignatureRequestBankidStatus"}}}, "summary": "Collect the BankID order", "description": "Call every two seconds while pending; stop on failed or complete.", "operationId": "post_item_bankid_collect", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestBankidCollect"}}], "tags": ["public/signature-requests"]}}, "/public/signature-requests/bankid/sign": {"post": {"responses": {"429": {"description": "Too many BankID signings were started for this delivery confirmation."}, "200": {"description": "BankID order started.", "schema": {"$ref": "#/definitions/publicSignatureRequestBankidOrder"}}}, "summary": "Start a BankID signing order", "description": "A new order replaces, and cancels, the previous one, unless BankID\nalready completed that one: it is returned, and its next collect signs.", "operationId": "post_item_bankid_sign", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestBankidSign"}}], "tags": ["public/signature-requests"]}}, "/public/signature-requests/document": {"post": {"responses": {"200": {"description": "The PDF the signer is asked to approve."}}, "summary": "The document to sign", "operationId": "post_item_document", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestToken"}}], "produces": ["application/pdf"], "tags": ["public/signature-requests"]}}, "/public/signature-requests/one-time-code": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/publicSignatureRequestCodeSent"}}, "429": {"description": "Too many codes were sent, or too many wrong codes tried."}}, "summary": "Send a one-time code, by SMS when the request has a phone number, else by email", "operationId": "post_item_one_time_code", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestToken"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/signature-requests"]}}, "/public/signature-requests/one-time-code/verify": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/publicSignatureRequest"}}, "429": {"description": "Too many wrong codes were tried for this delivery confirmation."}}, "summary": "Sign with the one-time code", "operationId": "post_item_one_time_code_verify", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestVerify"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/signature-requests"]}}, "/public/signature-requests/reject": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/publicSignatureRequest"}}}, "summary": "Decline the delivery confirmation, with a reason", "operationId": "post_item_reject", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestReject"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/signature-requests"]}}, "/public/signature-requests/view": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/publicSignatureRequest"}}}, "summary": "The delivery confirmation behind a signing link", "description": "Marks it viewed, or stops it when its invoices changed\nafter it was sent. A closed one shows only its outcome.", "operationId": "post_item_view", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/publicSignatureRequestToken"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["public/signature-requests"]}}, "/reason-code": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReasonCode"}}}, "summary": "Method should create existing reason code", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReasonCodeCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reason-code"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ReasonCode"}}}}, "summary": "List reason codes", "operationId": "get_collection", "tags": ["reason-code"]}}, "/reason-code/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ReasonCode"}}}, "summary": "Search reason codes", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReasonCodeSearch"}}], "tags": ["reason-code"]}}, "/reason-code/type/{type_}": {"parameters": [{"name": "type_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReasonCode"}}}, "summary": "Method should get reason codes by type", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reason-code"]}}, "/reason-code/{code_}": {"parameters": [{"name": "code_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReasonCode"}}}, "summary": "Method should get reason code by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reason-code"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReasonCode"}}}, "summary": "Method should update existing reason code", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReasonCodeUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reason-code"]}}, "/reminder-profile-levels": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfileLevel"}}}, "summary": "Create reminder-profile level", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderProfileLevelCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profile-levels"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/reminderProfileLevel"}}}}, "summary": "List reminder-profile levels", "operationId": "get_collection", "tags": ["reminder-profile-levels"]}}, "/reminder-profile-levels/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/reminderProfileLevel"}}}, "summary": "Search reminder-profile levels", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/reminderProfileSearchLevel"}}], "tags": ["reminder-profile-levels"]}}, "/reminder-profile-levels/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Reminder profile level successfully deleted."}}, "summary": "Delete reminder-profile level", "operationId": "delete_item", "tags": ["reminder-profile-levels"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfileLevel"}}}, "summary": "Get reminder-profile level by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profile-levels"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfileLevel"}}}, "summary": "Update reminder-profile level", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderProfileLevelUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profile-levels"]}}, "/reminder-profiles": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/reminderProfile"}}}}, "summary": "List reminder profiles", "operationId": "get_collection", "tags": ["reminder-profiles"]}}, "/reminder-profiles/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/reminderProfile"}}}, "summary": "Search reminder profiles", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/reminderProfileSearch"}}], "tags": ["reminder-profiles"]}}, "/reminder-profiles/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfile"}}}, "summary": "Get reminder profile by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profiles"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfile"}}}, "summary": "Update reminder profile", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderProfileUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profiles"]}}, "/reminder-profiles/{id_}/clients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/reminderProfileClient"}}}}, "summary": "List the clients this reminder profile is assigned to", "operationId": "get_item_clients", "tags": ["reminder-profiles"]}}, "/reminder-profiles/{id_}/clients/{client_reminder_profile_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "client_reminder_profile_id", "in": "path", "required": true, "type": "integer"}], "delete": {"responses": {"400": {"description": "The reminder profile, or this client assignment of it, does not exist.", "schema": {"$ref": "#/definitions/Api%20error"}}, "204": {"description": "Client assignment removed."}}, "summary": "Remove one client's assignment of this reminder profile", "operationId": "delete_item_client", "tags": ["reminder-profiles"]}}, "/reminder-profiles/{id_}/copy": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfile"}}}, "summary": "Update copy of reminder profile", "operationId": "put_item_default", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderProfileCopy"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profiles"]}}, "/reminder-profiles/{id_}/default": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/reminderProfile"}}}, "summary": "Mark reminder profile as default", "operationId": "put_item_default", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminder-profiles"]}}, "/reminders": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/Reminder"}}}}, "summary": "List reminders", "operationId": "get_collection", "tags": ["reminders"]}}, "/reminders/authorize": {"put": {"responses": {"200": {"description": "Started to authorize reminders"}}, "summary": "PUT - authorize", "operationId": "put_item_authorize", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderPut"}}], "tags": ["reminders"]}}, "/reminders/authorize/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for authorize reminders task returned"}}, "summary": "Authorize latest task id reminder", "operationId": "get_item_get_authorize_task_list", "tags": ["reminders"]}}, "/reminders/bookkeep": {"put": {"responses": {"200": {"description": "Started to bookkeep reminders"}}, "summary": "PUT - bookkeep", "operationId": "put_item_bookkeep", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderPut"}}], "tags": ["reminders"]}}, "/reminders/bookkeep/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for bookkeep reminders task returned"}}, "summary": "Bookkeep latest task id reminder", "operationId": "get_item_get_bookkeep_task_id", "tags": ["reminders"]}}, "/reminders/bulk-delete": {"post": {"responses": {"400": {"description": "A reminder cannot be deleted, or its collection case has reminders, events or case work of its own. Nothing is deleted."}, "200": {"description": "Reminders successfully deleted.", "schema": {"$ref": "#/definitions/ReminderBulkDeleteResponse"}}}, "summary": "Bulk delete reminder", "operationId": "post_bulk_delete", "tags": ["reminders"]}}, "/reminders/generate": {"put": {"responses": {"200": {"description": "Started to generate reminders"}}, "summary": "PUT - generate", "operationId": "put_item_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderPut"}}], "tags": ["reminders"]}}, "/reminders/generate/latest-task-id": {"get": {"responses": {"200": {"description": "Latest task id for generate reminders task returned"}}, "summary": "Generate latest task id reminder", "operationId": "get_item_get_generate_task_id", "tags": ["reminders"]}}, "/reminders/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/Reminder"}}}, "summary": "Search reminders", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReminderSearch"}}], "tags": ["reminders"]}}, "/reminders/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"400": {"description": "The reminder cannot be deleted, or its collection case has reminders, events or case work of its own."}, "200": {"description": "Reminder successfully deleted."}}, "summary": "Delete reminder", "operationId": "delete_item", "tags": ["reminders"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Reminder"}}}, "summary": "Get reminder by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["reminders"]}}, "/reminders/{id_}/invalid-address": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Created system errand for invalid address"}}, "summary": "Update invalid address of reminder", "operationId": "put_item_report_invalid_address", "tags": ["reminders"]}}, "/report-distributions": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/ReportDistribution"}}}}, "summary": "List system reports distributed to the client", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["report-distributions"]}}, "/report-distributions/{report_}/{frequency_}": {"parameters": [{"name": "report_", "in": "path", "required": true, "type": "string"}, {"name": "frequency_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ReportDistribution"}}}, "summary": "Update a system report: its recipients, whether it is paused, or both", "description": "A report covers every file format it is generated in, so the file format\nis not part of its address. A field left out of the payload is left\nunchanged.", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ReportDistributionPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["report-distributions"]}}, "/roles": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/RoleModel"}}}, "summary": "Create role", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/RoleModel"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["roles"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/RoleModel"}}}}, "summary": "List roles", "operationId": "get_collection", "tags": ["roles"]}}, "/roles/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Role successfully deleted."}}, "summary": "Delete role", "operationId": "delete_item", "tags": ["roles"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/RoleModel"}}}, "summary": "Get role by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["roles"]}}, "/roles/{id_}/rights/{right_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "right_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/RoleModel"}}}, "summary": "Rights role", "operationId": "post_item_collection_role", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["roles"]}}, "/scheduler/bookkeeping-file": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}, "summary": "Create scheduled bookkeeping file", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileSchedulerPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/bookkeeping-file"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}}, "summary": "List scheduled bookkeeping files", "operationId": "get_collection", "tags": ["scheduler/bookkeeping-file"]}}, "/scheduler/bookkeeping-file/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}, "summary": "Search scheduled bookkeeping files", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileSchedulerSearch"}}], "tags": ["scheduler/bookkeeping-file"]}}, "/scheduler/bookkeeping-file/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete scheduled bookkeeping file", "operationId": "delete_item", "tags": ["scheduler/bookkeeping-file"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}, "summary": "Get scheduled bookkeeping file by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/bookkeeping-file"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}, "summary": "Update scheduled bookkeeping file", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileSchedulerPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/bookkeeping-file"]}}, "/scheduler/bookkeeping-file/{id_}/recipient/{email}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "email", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}, "summary": "Delete recipient of scheduled bookkeeping file", "operationId": "delete_item_recipient", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/bookkeeping-file"]}}, "/scheduler/bookkeeping-file/{id_}/recipients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/BookkeepingFileScheduler"}}}, "summary": "Recipients scheduled bookkeeping file", "operationId": "post_item_recipients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/BookkeepingFileRecipientsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/bookkeeping-file"]}}, "/scheduler/query-report": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/QueryReportScheduler"}}}, "summary": "Create scheduled query report", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/QueryReportSchedulerPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/query-report"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/QueryReportScheduler"}}}}, "summary": "List scheduled query reports", "operationId": "get_collection", "tags": ["scheduler/query-report"]}}, "/scheduler/query-report/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/QueryReportScheduler"}}}, "summary": "Search scheduled query reports", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/QueryReportSchedulerSearch"}}], "tags": ["scheduler/query-report"]}}, "/scheduler/query-report/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete scheduled query report", "operationId": "delete_item", "tags": ["scheduler/query-report"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/QueryReportScheduler"}}}, "summary": "Get scheduled query report by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/query-report"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/QueryReportScheduler"}}}, "summary": "Update scheduled query report", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/QueryReportSchedulerPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/query-report"]}}, "/scheduler/query-report/{id_}/recipient/{email}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "email", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/QueryReportScheduler"}}}, "summary": "Delete recipient of scheduled query report", "operationId": "delete_item_recipient", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/query-report"]}}, "/scheduler/query-report/{id_}/recipients": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/QueryReportScheduler"}}}, "summary": "Recipients scheduled query report", "operationId": "post_item_recipients", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/QueryReportRecipientsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["scheduler/query-report"]}}, "/segments": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/segmentGet"}}}, "summary": "Create segment", "operationId": "post_create_segment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/segmentPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["segments"]}}, "/segments/search": {"post": {"responses": {"200": {"description": "Search results of segments.", "schema": {"$ref": "#/definitions/segmentGet"}}}, "summary": "Search segments", "operationId": "post_search_segment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/segmentPost"}}], "tags": ["segments"]}}, "/segments/{segment_id}": {"parameters": [{"name": "segment_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/segmentGet"}}}, "summary": "GET segment", "operationId": "get_create_segment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/segmentGet"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["segments"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/segmentGet"}}}, "summary": "PUT segment", "operationId": "put_create_segment", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/segmentPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["segments"]}}, "/service-accounts": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/service_account"}}}, "summary": "Create service account", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/service_account"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-accounts"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/service_account"}}}}, "summary": "Method should get list of", "description": "service users", "operationId": "get_collection", "tags": ["service-accounts"]}}, "/service-accounts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/service_account"}}}, "summary": "Method should search service users", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/service_account_search"}}], "tags": ["service-accounts"]}}, "/service-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/service_account"}}}, "summary": "Get service account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-accounts"]}}, "/service-accounts/{id_}/generate-token": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Bearer token generated for the service account.", "schema": {"$ref": "#/definitions/ServiceAccountGenerateTokenResponse"}}}, "summary": "Update generate token of service account", "operationId": "put_item_generate_token", "tags": ["service-accounts"]}}, "/service-accounts/{id_}/rotate-secret": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"204": {"description": "Service account secret rotated."}}, "summary": "Update rotate secret of service account", "operationId": "put_item_rotate_secret", "tags": ["service-accounts"]}}, "/service-accounts/{id_}/toggle": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/service_account"}}}, "summary": "Toggle service account active state", "operationId": "put_toggle_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-accounts"]}}, "/service-provider-credit-check-settings": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettings"}}}, "summary": "Create service-provider credit-check setting", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettingsPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-credit-check-settings"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ServiceProviderCreditCheckSettings"}}}}, "summary": "List service-provider credit-check settings", "operationId": "get_collection", "tags": ["service-provider-credit-check-settings"]}}, "/service-provider-credit-check-settings/dnb-global/entitlements": {"get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/DnbGlobalEntitlements"}}}, "summary": "Data blocks and levels this subscriber's D&B contract covers", "description": "Lets the data-blocks picker show what is selectable before anything is\nsaved. ``entitlements: null`` means D&B could not be reached, which the\ncaller must render as unknown rather than as nothing being available.", "operationId": "get_dnb_global_entitlements", "tags": ["service-provider-credit-check-settings"]}}, "/service-provider-credit-check-settings/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettings"}}}, "summary": "Search service-provider credit-check settings", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettingsSearchSettings"}}], "tags": ["service-provider-credit-check-settings"]}}, "/service-provider-credit-check-settings/service-provider/{service_provider_id}": {"parameters": [{"name": "service_provider_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettings"}}}, "summary": "GET service provider (service-provider credit-check setting)", "operationId": "get_item_service_provider", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-credit-check-settings"]}}, "/service-provider-credit-check-settings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettings"}}}, "summary": "Get service-provider credit-check setting by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-credit-check-settings"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettings"}}}, "summary": "Update service-provider credit-check setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettingsPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-credit-check-settings"]}}, "/service-provider-insurance-agreement": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreement"}}}, "summary": "Create service-provider insurance agreement", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreementPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-insurance-agreement"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ServiceProviderInsuranceAgreement"}}}}, "summary": "List service-provider insurance agreements", "operationId": "get_collection", "tags": ["service-provider-insurance-agreement"]}}, "/service-provider-insurance-agreement/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreement"}}}, "summary": "Search service-provider insurance agreements", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderCreditCheckSettingsSearch"}}], "tags": ["service-provider-insurance-agreement"]}}, "/service-provider-insurance-agreement/service-provider/{service_provider_id}": {"parameters": [{"name": "service_provider_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of insurance agreements for the service provider.", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreement"}}}, "summary": "GET service provider (service-provider insurance agreement)", "operationId": "get_item_service_provider", "tags": ["service-provider-insurance-agreement"]}}, "/service-provider-insurance-agreement/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Service-provider insurance agreement deleted. No response body."}}, "operationId": "delete_item", "tags": ["service-provider-insurance-agreement"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreement"}}}, "summary": "Get service-provider insurance agreement by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-insurance-agreement"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreement"}}}, "summary": "Update service-provider insurance agreement", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderInsuranceAgreementPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-provider-insurance-agreement"]}}, "/service-providers": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProvider"}}}, "summary": "Create service provider", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-providers"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ServiceProvider"}}}}, "summary": "List service providers", "operationId": "get_collection", "tags": ["service-providers"]}}, "/service-providers/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ServiceProvider"}}}, "summary": "Search service providers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderSearch"}}], "tags": ["service-providers"]}}, "/service-providers/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProvider"}}}, "summary": "Get service provider by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-providers"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ServiceProvider"}}}, "summary": "Update service provider", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ServiceProviderPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["service-providers"]}}, "/settings/client-financial-price-template/flag/{template_id}": {"parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSettingFlag"}}}, "summary": "GET flag", "operationId": "get_client_financial_price_template_setting_flag_system", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/client-financial-price-template/flag"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSettingFlag"}}}, "summary": "PUT flag", "operationId": "put_client_financial_price_template_setting_flag_system", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSettingFlagPut"}}], "tags": ["settings/client-financial-price-template/flag"]}}, "/settings/client-financial-price-template/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSetting"}}}, "summary": "Search client financial price templates", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSettingSearch"}}], "tags": ["settings/client-financial-price-template"]}}, "/settings/client-financial-price-template/{template_id}": {"parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSetting"}}}, "summary": "GET client financial price template", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/client-financial-price-template"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSetting"}}}, "summary": "PUT a client financial price template", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientFinancialPriceTemplateSettingPut"}}], "tags": ["settings/client-financial-price-template"]}}, "/settings/client-financial-price-template/{template_id}/{setting_key}": {"parameters": [{"name": "template_id", "in": "path", "required": true, "type": "string"}, {"name": "setting_key", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Template setting row deleted. No response body."}}, "summary": "Delete the client_setting row for one setting on one template", "operationId": "delete_item_client_financial_price_template_setting", "tags": ["settings/client-financial-price-template"]}}, "/settings/client/flag": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSettingFlag"}}}, "summary": "List flags", "operationId": "get_client_setting_flag_client", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/client/flag"]}, "put": {"responses": {"200": {"description": "Client flag setting updated. No response body."}}, "summary": "Client user update their client_setting_flag on one setting", "operationId": "put_client_setting_flag_client", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSettingFlagPut"}}], "tags": ["settings/client/flag"]}}, "/settings/client/flag/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSettingFlag"}}}, "summary": "GET flag", "operationId": "get_client_setting_flag_system", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/client/flag"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientSettingFlag"}}}, "summary": "Update client_setting_flag table for one setting on one client", "operationId": "put_client_setting_flag_system", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSettingFlagPut"}}], "tags": ["settings/client/flag"]}}, "/settings/client/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientSetting"}}}, "summary": "Search clients", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSettingSearch"}}], "tags": ["settings/client"]}}, "/settings/client/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientSetting"}}}, "summary": "GET client", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/client"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientSetting"}}}, "summary": "Update client_setting table for one setting on one client", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientSettingPut"}}], "tags": ["settings/client"]}}, "/settings/client/{client_id}/{setting_key}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}, {"name": "setting_key", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Client setting row deleted. No response body."}}, "summary": "Delete client_setting row for one setting on one client", "operationId": "delete_item_client_setting", "tags": ["settings/client"]}}, "/settings/debtor/flag/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/debtorSettingFlag"}}}, "summary": "GET flag", "operationId": "get_debtor_setting_flag_system", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/debtor/flag"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/debtorSettingFlag"}}}, "summary": "Update debtor_setting_flag table for one setting on one debtor", "operationId": "put_debtor_setting_flag_system", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/debtorSettingFlagPut"}}], "tags": ["settings/debtor/flag"]}}, "/settings/system-debtor/flag/{system_debtor_identification_number}": {"parameters": [{"name": "system_debtor_identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/systemDebtorSettingFlag"}}}, "summary": "GET flag", "operationId": "get_system_debtor_setting_flag_system", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settings/system-debtor/flag"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/systemDebtorSettingFlag"}}}, "summary": "Update debtor_setting_flag table for one setting on one system debtor", "operationId": "put_system_debtor_setting_flag_system", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/systemDebtorSettingFlagPut"}}], "tags": ["settings/system-debtor/flag"]}}, "/settlement-account-transactions": {"post": {"responses": {"201": {"description": "OK", "schema": {"$ref": "#/definitions/SettlementAccountTransaction"}}}, "summary": "Method should create settlement account transaction", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SettlementAccountTransactionPost"}}], "tags": ["settlement-account-transactions"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SettlementAccountTransaction"}}}}, "summary": "Method should get settlement account transaction", "operationId": "get_collection", "tags": ["settlement-account-transactions"]}}, "/settlement-account-transactions/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SettlementAccountTransaction"}}}, "summary": "Method should search with settlement account transaction list", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SettlementAccountSearchTransaction"}}], "tags": ["settlement-account-transactions"]}}, "/settlement-account-transactions/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SettlementAccountTransaction"}}}, "summary": "Method should get settlement account transaction by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settlement-account-transactions"]}}, "/settlement-accounts": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SettlementAccount"}}}}, "summary": "Method should get settlement accounts list", "operationId": "get_collection", "tags": ["settlement-accounts"]}}, "/settlement-accounts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SettlementAccount"}}}, "summary": "Method should search with settlement account list", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SettlementAccountSearch"}}], "tags": ["settlement-accounts"]}}, "/settlement-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SettlementAccount"}}}, "summary": "Should get settlement account by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["settlement-accounts"]}}, "/squidd/invalidate-payment": {"put": {"responses": {"200": {"description": "Voucher IDs that could not be invalidated."}}, "summary": "Invalidate vouchers by IDs", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Voucher"}}], "tags": ["squidd"]}}, "/statistics/counts": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/StatisticsCounts"}}}}, "summary": "List statistics counters", "operationId": "get_collection", "tags": ["statistics/counts"]}}, "/statistics/counts/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/StatisticsCounts"}}}, "summary": "Search statistics counters", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StatisticsCountsSearch"}}], "tags": ["statistics/counts"]}}, "/statistics/counts/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StatisticsCounts"}}}, "summary": "GET statistics counter", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["statistics/counts"]}}, "/statistics/factoring/financing-rate/{client_id}": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Financing rate statistics.", "schema": {"$ref": "#/definitions/StatisticsFactoringResponse"}}}, "summary": "POST financing rate (factoring statistic)", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StatisticsFactoring"}}], "tags": ["statistics/factoring"]}}, "/statistics/overdue/{client_id}/ledger-snapshot": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Overdue ledger snapshot statistics.", "schema": {"$ref": "#/definitions/OverdueChart"}}}, "summary": "Ledger snapshot overdue statistic", "operationId": "post_ledger_snapshot_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/OverdueStatistics"}}], "tags": ["statistics/overdue"]}}, "/statistics/overdue/{client_id}/open-balance": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Overdue open balance statistics.", "schema": {"$ref": "#/definitions/OverdueChart"}}}, "summary": "Open balance overdue statistic", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/OverdueOpenBalanceRequest"}}], "tags": ["statistics/overdue"]}}, "/statistics/product/{client_id}/ledger-snapshot": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Ledger snapshot product statistics chart.", "schema": {"$ref": "#/definitions/ProductChart"}}}, "summary": "Ledger snapshot product statistic", "operationId": "post_ledger_snapshot_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ProductStatistics"}}], "tags": ["statistics/product"]}}, "/statistics/product/{client_id}/open-balance": {"parameters": [{"name": "client_id", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Open balance product statistics chart.", "schema": {"$ref": "#/definitions/ProductChart"}}}, "summary": "Open balance product statistic", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ProductOpenBalanceRequest"}}], "tags": ["statistics/product"]}}, "/storage/{file_name}": {"parameters": [{"name": "file_name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error"}, "410": {"description": "The document has been erased."}, "400": {"description": "Bad request"}, "200": {"description": "The stored file (PDF or original document)."}}, "summary": "GET storage", "operationId": "get_item", "produces": ["application/pdf", "application/octet-stream"], "tags": ["storage"]}}, "/strawbay": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConfiguration"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "System wide configuration for Strawbay integration", "description": "Strawbay Instance Configuration", "operationId": "get_strawbay_configuration_resource", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/accounting-sync": {"post": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnectionAction"}}}, "summary": "Accounting sync Strawbay operation", "description": "Register a disabled accounting webhook on an active connection. Called by Strawbay M2M.", "operationId": "post_strawbay_accounting_webhooks_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayCreateWebhook"}}], "tags": ["strawbay"]}}, "/strawbay/accounting-sync-stop": {"post": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnectionAction"}}}, "summary": "Accounting sync stop Strawbay operation", "description": "Stop accounting sync and close connection. Called by Strawbay M2M.", "operationId": "post_strawbay_accounting_webhooks_stop_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionIdentifier"}}], "tags": ["strawbay"]}}, "/strawbay/connection": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/StrawbayConnection"}}}, "500": {"description": "Internal Server Error", "schema": {"$ref": "#/definitions/Api%20error"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "Connection Strawbay operation", "description": "List all connections for the current client", "operationId": "get_strawbay_connection_resource", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/connection-migrate": {"post": {"responses": {"200": {"description": "Connection already exists.", "schema": {"$ref": "#/definitions/StrawbayConnection"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "201": {"description": "Connection created and activated.", "schema": {"$ref": "#/definitions/StrawbayConnection"}}}, "description": "Create an active connection directly. Used by Strawbay during migration of existing connections. Bypasses the onboarding flow \u2014 the connection is assumed to already exist at Strawbay. Idempotent: returns the existing connection if the connection_id is already registered.", "operationId": "post_strawbay_connection_migrate_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionComplete"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/connection-stop": {"post": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnectionAction"}}}, "summary": "Connection stop Strawbay operation", "description": "Stop connection and all accounting sync webhooks. Called by Strawbay M2M. Requires new onboarding.", "operationId": "post_strawbay_stop_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionIdentifier"}}], "tags": ["strawbay"]}}, "/strawbay/connection/linking-retry": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnection"}}, "500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "PUT - connection linking retry", "description": "Complete onboarding and create a connection", "operationId": "put_strawbay_connection_linking_retry_resource", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/connection/stop": {"put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnection"}}, "500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "PUT - connection stop", "description": "Stop a connection", "operationId": "put_strawbay_connection_stop_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionIdentifier"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/flow": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnectionFlow"}}, "500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "Flow Strawbay operation", "description": "Get a list of all available flows for the connected ERP Application from Strawbay.", "operationId": "get_strawbay_flows_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionIdentifier"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/onboarding": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/StrawbayOnboardingDetailed"}}}, "500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "403": {"description": "Module is disabled.", "schema": {"$ref": "#/definitions/ApiErrorDetailAction"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "Onboarding Strawbay operation", "description": "List all onboarding sessions for the current client", "operationId": "get_strawbay_onboarding_list_resource", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/onboarding/cancel": {"put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "403": {"description": "Module is disabled.", "schema": {"$ref": "#/definitions/ApiErrorDetailAction"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/ApiError"}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnectionAction"}}}, "summary": "PUT - onboarding cancel", "description": "Cancel an onboarding session for a client.", "operationId": "put_strawbay_onboarding_cancel_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionIdentifier"}}], "tags": ["strawbay"]}}, "/strawbay/onboarding/complete": {"post": {"responses": {"201": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnection"}}, "500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "409": {"description": "Onboarding already completed", "schema": {"$ref": "#/definitions/StrawbayConnection"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "207": {"description": "Onboarding completed. Connection failed to finalize.", "schema": {"$ref": "#/definitions/StrawbayConnection"}}}, "summary": "Onboarding complete Strawbay operation", "description": "Complete onboarding and create a connection", "operationId": "post_strawbay_onboarding_complete_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayConnectionComplete"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/onboarding/error": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayConnectionAction"}}, "500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}}, "409": {"description": "Connection already completed", "schema": {"$ref": "#/definitions/StrawbayConnection"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}}, "summary": "Onboarding error Strawbay operation", "description": "Log an onboarding as failed with error,", "operationId": "post_strawbay_onboarding_error_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/StrawbayOnboardingError"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/strawbay/onboarding/start": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/StrawbayOnboardingStart"}}, "500": {"description": "Internal Server Error", "schema": {"$ref": "#/definitions/Api%20error"}}, "409": {"description": "Conflict with existing onboarding session.", "schema": {"$ref": "#/definitions/StrawbayOnboardingStart"}}, "403": {"description": "Module is disabled.", "schema": {"$ref": "#/definitions/ApiErrorDetailAction"}}, "401": {"description": "Unauthorized", "schema": {"$ref": "#/definitions/Api%20error"}}, "400": {"description": "Live connection already exists.", "schema": {"$ref": "#/definitions/ApiError"}}}, "summary": "Initiate a session for connecting to an ERP via Strawbay", "description": "Start onboarding", "operationId": "post_strawbay_onboarding_start_resource", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["strawbay"]}}, "/system-bank-accounts": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/system-bank-account"}}}, "summary": "Create system bank account", "operationId": "post_system_bank_account_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-bank-account-post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-bank-accounts"]}}, "/system-bank-accounts/search": {"post": {"responses": {"200": {"description": "List of system bank accounts.", "schema": {"$ref": "#/definitions/system-bank-account"}}}, "summary": "Search system bank accounts", "operationId": "post_system_bank_account_search_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-bank-account"}}], "tags": ["system-bank-accounts"]}}, "/system-bank-accounts/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/system-bank-account"}}}, "summary": "Update system bank account", "operationId": "put_system_bank_account_single_endpoint", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/system-bank-account-put"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-bank-accounts"]}}, "/system-debtor-client-dedicated-limits": {"post": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorClientAllocationStatus"}}}}, "summary": "Create system debtor client dedicated limit", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorClientDedicatedLimitPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-client-dedicated-limits"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorClientAllocationStatus"}}}}, "summary": "List system debtor client dedicated limits", "operationId": "get_collection", "tags": ["system-debtor-client-dedicated-limits"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorClientAllocationStatus"}}}}, "summary": "Update multiple dedicated limits by providing full objects with IDs", "operationId": "put_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorClientDedicatedLimitPutWithId"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-client-dedicated-limits"]}}, "/system-debtor-client-dedicated-limits/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorClientAllocationStatus"}}}, "summary": "Search system debtor client dedicated limits", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorClientDedicatedLimitSearch"}}], "tags": ["system-debtor-client-dedicated-limits"]}}, "/system-debtor-client-dedicated-limits/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete system debtor client dedicated limit", "operationId": "delete_item", "tags": ["system-debtor-client-dedicated-limits"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorClientAllocationStatus"}}}, "summary": "Get system debtor client dedicated limit by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-client-dedicated-limits"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorClientAllocationStatus"}}}, "summary": "Update system debtor client dedicated limit", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorClientDedicatedLimitPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-client-dedicated-limits"]}}, "/system-debtor-credit-status/currency-status/credit-status/{sdcs_id_}": {"parameters": [{"name": "sdcs_id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrency"}}}, "summary": "GET currency status credit status (system-debtor credit status)", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}}, "/system-debtor-credit-status/currency-status/search": {"post": {"responses": {"200": {"description": "List of currency credit statuses.", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrency"}}}, "summary": "Currency status search system-debtor credit status", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrencySearch"}}], "tags": ["system-debtor-credit-status"]}}, "/system-debtor-credit-status/currency-status/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrency"}}}, "summary": "GET currency status (system-debtor credit status)", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrency"}}}, "summary": "PUT currency status (system-debtor credit status)", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrencyPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}}, "/system-debtor-credit-status/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatus"}}}, "summary": "Search system-debtor credit status", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusSearch"}}], "tags": ["system-debtor-credit-status"]}}, "/system-debtor-credit-status/system-debtor/{system_debtor_id}": {"parameters": [{"name": "system_debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatus"}}}, "summary": "GET system debtor (system-debtor credit status)", "operationId": "get_system_debtor_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatus"}}}, "summary": "PUT system debtor (system-debtor credit status)", "operationId": "put_system_debtor_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}}, "/system-debtor-credit-status/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatus"}}}, "summary": "Get system-debtor credit status by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatus"}}}, "summary": "Update system-debtor credit status", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorCreditStatusPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-credit-status"]}}, "/system-debtor-groups": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorGroup"}}}, "summary": "Create system-debtor group", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorGroup"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-groups"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorGroup"}}}}, "summary": "List system-debtor groups", "operationId": "get_collection", "tags": ["system-debtor-groups"]}}, "/system-debtor-groups/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorGroup"}}}, "summary": "Search system-debtor groups", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorGroupSearch"}}], "tags": ["system-debtor-groups"]}}, "/system-debtor-groups/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "SystemDebtor group successfully deleted."}}, "summary": "Delete system-debtor group", "operationId": "delete_delete_system_debtor_group_item", "tags": ["system-debtor-groups"]}}, "/system-debtor-groups/{id_}/system-debtors": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorGroupDebtor"}}}, "summary": "System debtors system-debtor group", "operationId": "post_item_collection_system_debtor", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorGroupSystemDebtorPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-groups"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorGroupDebtor"}}}, "summary": "System debtors for system-debtor group", "operationId": "get_item_collection_system_debtor", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor-groups"]}}, "/system-debtor-groups/{id_}/system-debtors/{system_debtor_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "system_debtor_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "SystemDebtor successfully removed from debtor group."}}, "summary": "Delete system debtors of system-debtor group", "operationId": "delete_item_system_debtor", "tags": ["system-debtor-groups"]}}, "/system-debtor/events": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorEvent"}}}}, "summary": "List system-debtor events", "operationId": "get_collection", "tags": ["system-debtor/events"]}}, "/system-debtor/events/payments/search": {"post": {"responses": {"200": {"description": "Search results of system-debtor payments.", "schema": {"$ref": "#/definitions/SystemDebtorEvent"}}}, "summary": "Payments search system-debtor event", "operationId": "post_collection_payments_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorEventSearch"}}], "tags": ["system-debtor/events"]}}, "/system-debtor/events/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorEvent"}}}, "summary": "Search system-debtor events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorEventSearch"}}], "tags": ["system-debtor/events"]}}, "/system-debtor/events/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorEvent"}}}, "summary": "Get system-debtor event by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor/events"]}}, "/system-debtor/todo": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorToDo"}}}, "summary": "Create todo", "operationId": "post_create_system_debtor_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorToDoPost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor/todo"]}}, "/system-debtor/todo/resolve-multiple": {"put": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorToDo"}}}}, "summary": "PUT - resolve multiple", "operationId": "put_resolve_multiple_system_debtor_to_do", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ResolveMultipleSystemDebtorToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor/todo"]}}, "/system-debtor/todo/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorToDo"}}}, "summary": "Search todos", "operationId": "post_system_debtor_to_do_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorToDoSearch"}}], "tags": ["system-debtor/todo"]}}, "/system-debtor/todo/{debtor_id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorToDo"}}}, "summary": "Get SystemDebtor To Do instances", "operationId": "get_system_debtor_to_do_item_get_by_id", "tags": ["system-debtor/todo"]}}, "/system-debtor/todo/{debtor_id}/{id}": {"parameters": [{"name": "debtor_id", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorToDo"}}}, "summary": "Get SystemDebtor To Do instance", "operationId": "get_system_debtor_to_do_item_get", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor/todo"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorToDo"}}}, "summary": "Update SystemDebtor To Do instance", "operationId": "put_system_debtor_to_do_item_get", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateSystemDebtorToDo"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtor/todo"]}}, "/system-debtors": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtor"}}}}, "summary": "List system debtors", "operationId": "get_collection", "tags": ["system-debtors"]}}, "/system-debtors/credit-data/search": {"post": {"responses": {"200": {"description": "List of system debtor credit data.", "schema": {"$ref": "#/definitions/SystemDebtorCreditData"}}}, "summary": "Credit data search system debtor", "operationId": "post_system_debtor_credit_data", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreditDataSearch"}}], "tags": ["system-debtors"]}}, "/system-debtors/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtor"}}}, "summary": "Search system debtors", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorSearch"}}], "tags": ["system-debtors"]}}, "/system-debtors/{identification_number}": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtor"}}}, "summary": "GET system debtor", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtors"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtor"}}}, "summary": "PUT system debtor", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorPut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtors"]}}, "/system-debtors/{identification_number}/bankruptcy": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Bankruptcy process run; returns counts of paused invoices and collection batches."}}, "summary": "Bankruptcy system debtor", "operationId": "post_item_bankruptcy", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorBankruptcy"}}], "tags": ["system-debtors"]}}, "/system-debtors/{identification_number}/clients": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/client"}}}, "summary": "Clients for system debtor", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtors"]}}, "/system-debtors/{identification_number}/collection-batches/guarantors": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/CollectionBatchGuarantorSystemDebtor"}}}, "summary": "Collection batches guarantors for system debtor", "operationId": "get_collection_guarantors", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtors"]}}, "/system-debtors/{identification_number}/credit-data": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemDebtorCreditData"}}}, "summary": "Credit data for system debtor", "operationId": "get_system_debtor_credit_data", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-debtors"]}}, "/system-debtors/{identification_number}/financial-events": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Financial events for the system debtor.", "schema": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorFinancialEvent"}}}}, "summary": "List financial events", "operationId": "get_collection", "tags": ["system-debtors/<path:identification_number>/financial-events"]}}, "/system-debtors/{identification_number}/financial-events/search": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/SystemDebtorFinancialEvent"}}}, "summary": "Search financial events", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemDebtorFinancialEventSearch"}}], "tags": ["system-debtors/<path:identification_number>/financial-events"]}}, "/system-debtors/{identification_number}/invoice-summary": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Invoice summary stats for the system debtor."}}, "summary": "Invoice summary for system debtor", "operationId": "get_invoice_data", "tags": ["system-debtors"]}}, "/system-setting": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/systemSetting"}}}, "summary": "List system settings", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-setting"]}}, "/system-setting/hide-balance-details/enabled": {"get": {"responses": {"200": {"description": "Whether hiding balance details is enabled.", "schema": {"$ref": "#/definitions/SystemSettingHideBalanceDetailsEnabled"}}}, "summary": "Hide balance details enabled system setting", "operationId": "get_hide_balance_details_enabled", "tags": ["system-setting"]}}, "/system-setting/{key_}": {"parameters": [{"name": "key_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/systemSetting"}}}, "summary": "GET system setting", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-setting"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/systemSetting"}}}, "summary": "PUT system setting", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/putSystemSetting"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system-setting"]}}, "/system/exchange-rates": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemExchangeRate"}}}, "summary": "List exchange rates", "operationId": "get_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system/exchange-rates"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/SystemExchangeRate"}}}, "summary": "Push exchange rates", "operationId": "put_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/SystemExchangeRatePut"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["system/exchange-rates"]}}, "/system/jobs/history": {"get": {"responses": {"200": {"description": "Finished jobs from the task log", "schema": {"$ref": "#/definitions/JobQueueHistory"}}}, "summary": "GET finished jobs from the durable task log", "description": "Reads the durable celery task log, not the Celery result backend, so it\nkeeps working through a broker outage. Not built from the snapshot, so\nit asks no worker anything and takes no ?fresh=true.", "operationId": "get_history", "tags": ["system/jobs"]}}, "/system/jobs/overview": {"get": {"responses": {"200": {"description": "Snapshot of queue, worker and job health", "schema": {"$ref": "#/definitions/JobQueueOverview"}}, "429": {"description": "Forced-refresh budget spent. Retry after the Retry-After header."}}, "summary": "GET the job queue health summary", "operationId": "get_overview", "tags": ["system/jobs"]}}, "/system/jobs/queues": {"get": {"responses": {"200": {"description": "Queue depths and consumer counts", "schema": {"$ref": "#/definitions/JobQueueQueues"}}, "429": {"description": "Forced-refresh budget spent. Retry after the Retry-After header."}}, "summary": "GET queue depths, consumers and state per queue", "operationId": "get_queues", "tags": ["system/jobs"]}}, "/system/jobs/schedule": {"get": {"responses": {"200": {"description": "The beat schedule with next and last runs", "schema": {"$ref": "#/definitions/JobQueueSchedule"}}}, "summary": "GET the periodic jobs beat is configured to run", "description": "Each entry carries its cron expression, its next run and its last run\nfrom the task log. Beat-started jobs belong to no organisation, so a\ncaller scoped to one sees the schedule with no last runs.", "operationId": "get_schedule", "tags": ["system/jobs"]}}, "/system/jobs/tasks": {"get": {"responses": {"200": {"description": "Live job list for one state", "schema": {"$ref": "#/definitions/JobQueueTasks"}}, "429": {"description": "Forced-refresh budget spent. Retry after the Retry-After header."}}, "summary": "GET jobs the broker is holding, one state at a time", "description": "`state=SCHEDULED` lists ETA and countdown jobs already held by a worker.\nIt is not the beat schedule.", "operationId": "get_tasks", "tags": ["system/jobs"]}}, "/system/jobs/tasks/{task_id}": {"parameters": [{"name": "task_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "One job in detail", "schema": {"$ref": "#/definitions/JobQueueTaskDetail"}}, "429": {"description": "Forced-refresh budget spent. Retry after the Retry-After header."}}, "summary": "GET one job, live or finished", "operationId": "get_task_detail", "tags": ["system/jobs"]}}, "/system/jobs/workers": {"get": {"responses": {"200": {"description": "Worker health", "schema": {"$ref": "#/definitions/JobQueueWorkers"}}, "429": {"description": "Forced-refresh budget spent. Retry after the Retry-After header."}}, "summary": "GET worker health, capacity and heartbeats", "operationId": "get_workers", "tags": ["system/jobs"]}}, "/system_debtors/{identification_number}/labels": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"201": {"description": "OK", "schema": {"$ref": "#/definitions/LabelSystemDebtor"}}}, "summary": "Create label", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/CreateLabelSystemDebtor"}}], "tags": ["system_debtors/<path:identification_number>/labels"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/LabelSystemDebtor"}}}}, "summary": "List labels", "operationId": "get_collection", "tags": ["system_debtors/<path:identification_number>/labels"]}}, "/system_debtors/{identification_number}/labels/{id}": {"parameters": [{"name": "identification_number", "in": "path", "required": true, "type": "string"}, {"name": "id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"204": {"description": "Deleted"}}, "summary": "Delete label", "operationId": "delete_item_system_debtor_label", "tags": ["system_debtors/<path:identification_number>/labels"]}, "put": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/LabelSystemDebtor"}}}, "summary": "Update label", "operationId": "put_item_system_debtor_label", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateLabelSystemDebtor"}}], "tags": ["system_debtors/<path:identification_number>/labels"]}}, "/token/client/generate": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/token"}}}, "summary": "Client generate token", "operationId": "post_client_item_generate", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientTokenRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["token"]}}, "/token/client/portal/generate": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/token"}}}, "summary": "Client portal generate token", "operationId": "post_client_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientTokenRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["token"]}}, "/token/debtor/generate": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/token"}}}, "summary": "Debtor generate token", "operationId": "post_debtor_generate_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/DebtorTokenRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["token"]}}, "/token/generate": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/token"}}}, "summary": "Generate token", "operationId": "post_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/TokenGenerateRequest"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["token"]}}, "/unplaced-payments": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/UnplacedPayment"}}}}, "summary": "List unplaced payments", "operationId": "get_collection", "tags": ["unplaced-payments"]}}, "/unplaced-payments/categories": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPaymentCategory"}}}, "summary": "Categories unplaced payment", "operationId": "get_collection_categories", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/client": {"get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/ClientUnplacedPayment"}}}}, "summary": "List unplaced payments clients", "operationId": "get_collection", "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/ClientUnplacedPayment"}}}, "summary": "Search unplaced payments clients", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentSearchClient"}}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/transfer": {"put": {"responses": {"200": {"description": "List of created payment transaction links.", "schema": {"$ref": "#/definitions/PaymentTransactionLinkClientFull"}}}, "summary": "Request transfer of unplaced payments to the client account", "description": "Every selected payment's remaining balance is reserved as a pending TRANSFER link\ntowards the client's INVOICE_FACTORING_SELL fund account in the payment's currency,\nwith the row's reference as link description. Payments without a balance left are\nskipped. The links stay pending until an administrator books or denies them.", "operationId": "put_collection_transfer", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"type": "array", "items": {"$ref": "#/definitions/UnplacedPaymentTransferClient"}}}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientUnplacedPayment"}}}, "summary": "Get client by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/history": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/UnplacedPaymentSubTransactionClient"}}}}, "summary": "List the sub-transaction history for a client unplaced payment", "operationId": "get_item_history", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/ignore": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientUnplacedPayment"}}}, "summary": "Update ignore of client", "operationId": "put_item_ignore", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/link": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "List of created payment transaction links.", "schema": {"$ref": "#/definitions/PaymentTransactionLinkClientFull"}}}, "summary": "Update link of client", "operationId": "put_item_link", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentLinkClient"}}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/link/book": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "List of booked payment transaction links.", "schema": {"$ref": "#/definitions/PaymentTransactionLinkClientFull"}}}, "summary": "Update link book of client", "operationId": "put_item_link_book", "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/link/deny": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "List of denied payment transaction links.", "schema": {"$ref": "#/definitions/PaymentTransactionLinkClientFull"}}}, "summary": "Update link deny of client", "operationId": "put_item_link_deny", "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/link/{link_id}/book": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "link_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Booked payment transaction link.", "schema": {"$ref": "#/definitions/PaymentTransactionLinkClientFull"}}}, "summary": "Book a single client unplaced payment link", "operationId": "put_item_single_link_book", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{id_}/link/{link_id}/deny": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "link_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Denied payment transaction link.", "schema": {"$ref": "#/definitions/PaymentTransactionLinkClientFull"}}}, "summary": "Deny a single client unplaced payment link", "operationId": "put_item_single_link_deny", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{unplaced_payment_id}/return": {"parameters": [{"name": "unplaced_payment_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientUnplacedPayment"}}}, "summary": "Update return of client", "operationId": "put_item_return", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ClientUnplacedPaymentReturn"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/client/{unplaced_payment_id}/return-account": {"parameters": [{"name": "unplaced_payment_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/ClientUnplacedPaymentReturnAccount"}}}, "summary": "Get the refund account resolved for a client return", "operationId": "get_item_return_account", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments/client"]}}, "/unplaced-payments/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Search unplaced payments", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentSearch"}}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{id_}/link": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Update link of unplaced payment", "operationId": "put_item_link", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentLink"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{id_}/revenue-revert": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Update revenue revert of unplaced payment", "operationId": "put_item_mark_as_income_reverted", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{id_}/write-off": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Update write off of unplaced payment", "operationId": "put_item_write_off", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentWriteOff"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{id_}/write-off-revert": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Revert write off of unplaced payment", "operationId": "put_item_write_off_revert", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{unplaced_payment_id}": {"parameters": [{"name": "unplaced_payment_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "GET unplaced payment", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "PUT unplaced payment", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UpdateUnplacedPayment"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{unplaced_payment_id}/return": {"parameters": [{"name": "unplaced_payment_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Update return of unplaced payment", "operationId": "put_item_return", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentReturn"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/unplaced-payments/{unplaced_payment_id}/revenue": {"parameters": [{"name": "unplaced_payment_id", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UnplacedPayment"}}}, "summary": "Update revenue of unplaced payment", "operationId": "put_item_mark_as_income", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UnplacedPaymentMarkAsIncome"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["unplaced-payments"]}}, "/user-groups": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/user_group"}}}, "summary": "Create user group", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/user_group"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["user-groups"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/user_group"}}}}, "summary": "List user groups", "operationId": "get_collection", "tags": ["user-groups"]}}, "/user-groups/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/user_group"}}}, "summary": "Search user groups", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/user_group_search"}}], "tags": ["user-groups"]}}, "/user-groups/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "User group successfully deleted."}}, "summary": "Delete user group", "operationId": "delete_delete_user_group_item", "tags": ["user-groups"]}}, "/user-groups/{id_}/users": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/user_group_user"}}}, "summary": "Users user group", "operationId": "post_item_collection_user", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/user_group_user_post"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["user-groups"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/user_group_user"}}}, "summary": "Users for user group", "operationId": "get_item_collection_user", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["user-groups"]}}, "/user-groups/{id_}/users/{user_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "user_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "User successfully removed from user group."}}, "summary": "Delete users of user group", "operationId": "delete_item_user", "tags": ["user-groups"]}}, "/users": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "w/ default role based on user type", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/User"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}, "get": {"responses": {"200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/User"}}}}, "summary": "List users", "operationId": "get_collection", "tags": ["users"]}}, "/users/advanced-login/enabled": {"get": {"responses": {"200": {"description": "Whether advanced login is enabled.", "schema": {"$ref": "#/definitions/UserAdvancedLoginEnabled"}}}, "summary": "Advanced login enabled user", "operationId": "get_advanced_login_enabled", "tags": ["users"]}}, "/users/reset-auth0-mfa": {"post": {"responses": {"200": {"description": "MFA reset successfully initiated.", "schema": {"$ref": "#/definitions/UserResetMfaResponse"}}}, "summary": "Reset MFA for user by email and send enrollment", "operationId": "post_reset_mfa_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UserResetMfaModel"}}], "tags": ["users"]}}, "/users/search": {"post": {"responses": {"200": {"description": "OK", "schema": {"$ref": "#/definitions/User"}}}, "summary": "Search users", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UserSearch"}}], "tags": ["users"]}}, "/users/system": {"get": {"responses": {"200": {"description": "List of all system users.", "schema": {"type": "array", "items": {"$ref": "#/definitions/User"}}}}, "summary": "Get a list of all system users", "operationId": "get_system_user_collection", "tags": ["users"]}}, "/users/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "Get user by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "Own or is super-user", "operationId": "put_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/User"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/users/{id_}/change-mfa": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "own account for client else is super-user (audited)", "operationId": "put_change_mfa_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UserMfaUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/users/{id_}/change-password": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "own account or is super-user (audited)", "operationId": "put_change_password_item", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UserPasswordUpdate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/users/{id_}/forgot-password": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"429": {"description": "Too many requests. Retry after the Retry-After header."}, "200": {"description": "Password reset email triggered if the email belongs to a user."}}, "summary": "open", "description": "trigger email.", "operationId": "put_forgot_password", "tags": ["users"]}}, "/users/{id_}/profile-image": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "Own or is super-user", "operationId": "delete_item_profile_image", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}, "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "Own or is super-user", "operationId": "put_item_profile_image", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/users/{id_}/roles": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UserRole"}}}, "summary": "super-user only (audited)", "operationId": "post_item_collection_role", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/UserRolePost"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}, "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/UserRole"}}}, "summary": "Roles for user", "operationId": "get_item_collection_role", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/users/{id_}/roles/{role_id}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}, {"name": "role_id", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"200": {"description": "User role successfully deleted."}}, "summary": "super-user only (audited)", "operationId": "delete_item_role", "tags": ["users"]}}, "/users/{id_}/toggle": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "Clients on own or is super-user (audited)", "operationId": "put_toggle_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/users/{id_}/toggle-super-user": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/User"}}}, "summary": "super-user only (audited) - right has to be added manually and is not a part of any standard role", "operationId": "put_toggle_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["users"]}}, "/utils/get-postman-collection": {"get": {"responses": {"200": {"description": "Postman collection for the API as JSON."}}, "summary": "Get postman collection utility", "operationId": "get_item", "tags": ["utils"]}}, "/voucher-postings": {"get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherPostings"}}}, "summary": "List voucher postings", "operationId": "get_collection", "tags": ["voucher-postings"]}}, "/voucher-postings/search": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherPostings"}}}, "summary": "Search voucher postings", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/VoucherPostingsSearch"}}], "tags": ["voucher-postings"]}}, "/voucher-postings/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherPostings"}}}, "summary": "Get voucher posting by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["voucher-postings"]}}, "/voucher-request": {"get": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/VoucherRequest"}}}}, "summary": "List open voucher requests, optionally only those created up to a date", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "One of id, status, createdDate, updatedDate. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}, {"description": "Only requests created on or before this date, YYYY-MM-DD.", "name": "upToDate", "type": "string", "in": "query"}, {"description": "Only requests with this status: PENDING, PROCESSING, ERROR.", "name": "status", "type": "string", "in": "query"}], "tags": ["voucher-request"]}}, "/voucher-request/retry": {"post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherRequestRetryResult"}}}, "summary": "Retry up to 500 stale open voucher requests, optionally only those created up to a date", "description": "`retried` counts the requests published to the broker, `failed` the ones that could not be\npublished, and `remaining` the stale requests still waiting after this call, failed ones included.", "operationId": "post_collection_retry", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/VoucherRequestRetry"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["voucher-request"]}}, "/voucher-request/summary": {"get": {"responses": {"400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherRequestSummary"}}}, "summary": "Count open voucher requests by topic and type, optionally only those created up to a date", "operationId": "get_summary", "parameters": [{"description": "Only requests created on or before this date, YYYY-MM-DD.", "name": "upToDate", "type": "string", "in": "query"}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["voucher-request"]}}, "/voucher-request/{id_}/retry": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherRequest"}}}, "summary": "Retry voucher request", "operationId": "post_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["voucher-request"]}}, "/vouchers": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create voucher", "operationId": "post_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/VoucherCreate"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List vouchers", "operationId": "get_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["vouchers"]}}, "/vouchers/external/export/payments": {"get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/ExternalPayments"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "External export payments voucher", "operationId": "get_external_export_payments_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["vouchers"]}}, "/vouchers/external/export/vouchers": {"get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/ExternalVouchers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "External export vouchers voucher", "operationId": "get_external_export_vouchers_collection", "parameters": [{"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["vouchers"]}}, "/vouchers/search": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/Vouchers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Search vouchers", "operationId": "post_collection_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/VouchersSearch"}}, {"description": "Defines the limit of results. (10, 25, 50, 100). Use '-1' to turn off limit. Default 10", "name": "limit", "type": "string", "in": "query"}, {"description": "Defines which column we should order by. Default id", "name": "orderBy", "type": "string", "in": "query"}, {"description": "Defines the order direction of the orderBy; \"asc\" or \"desc\". Default asc", "name": "order", "type": "string", "in": "query"}, {"description": "Defines the page of the result collection. Default 1", "name": "page", "type": "string", "in": "query"}, {"description": "Set to 1 to return no rows, only the X-Total-Count header (capped at count_cap; X-Total-Count-Capped: 1 is set when more rows exist). Default 0", "name": "count_only", "type": "string", "in": "query"}, {"description": "Max value for the count when count_only=1. Allowed range 1-100000. Default 10000", "name": "count_cap", "type": "string", "in": "query"}], "tags": ["vouchers"]}}, "/vouchers/settings/locked-period": {"get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherSettingLockedPeriod"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Settings locked period voucher", "operationId": "get_setting_locked_period_collection", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "202": {"description": "Moving the closing date back waits for a second approval under Change Requests.", "schema": {"$ref": "#/definitions/VoucherSettingLockedPeriodRequestCreated"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"$ref": "#/definitions/VoucherSettingLockedPeriod"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "PUT - settings locked period", "operationId": "put_setting_locked_period_collection", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/VoucherSettingLockedPeriod"}}], "tags": ["vouchers"]}}, "/vouchers/summary/{relation}/{topic}/{id_}": {"parameters": [{"name": "relation", "in": "path", "required": true, "type": "string"}, {"name": "topic", "in": "path", "required": true, "type": "string"}, {"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/VoucherSummary"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "GET summary (voucher)", "operationId": "get_summary_invoice_internal", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}}, "/vouchers/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get voucher by id", "operationId": "get_item", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}}, "/vouchers/{id_}/export": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update export of voucher", "operationId": "put_item_export", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}}, "/vouchers/{id_}/external/bookkeep": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Voucher marked as externally booked.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update external bookkeep of voucher", "operationId": "put_item_external_bookkeep", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ExternalBookkeep"}}], "tags": ["vouchers"]}}, "/vouchers/{id_}/external/export": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Voucher marked as externally exported.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update external export of voucher", "operationId": "put_item_external_export", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ExternalExport"}}], "tags": ["vouchers"]}}, "/vouchers/{id_}/external/fail": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Voucher marked as externally failed.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update external fail of voucher", "operationId": "put_item_external_fail", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/ExternalFail"}}], "tags": ["vouchers"]}}, "/vouchers/{id_}/external/resend": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}}}, "summary": "Update external resend of voucher", "operationId": "put_item_external_fail", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}}, "/vouchers/{id_}/external/resolve": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "204": {"description": "Voucher marked as resolved.", "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Mark a failed voucher as resolved without booking it in the external system", "operationId": "put_item_external_resolve", "tags": ["vouchers"]}}, "/vouchers/{id_}/external/status": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}}}, "summary": "Update external status of voucher", "operationId": "put_item_external_status", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}}, "/vouchers/{id_}/reverse": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Success", "schema": {"$ref": "#/definitions/Vouchers"}}}, "summary": "Update reverse of voucher", "operationId": "put_item_reverse", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/VoucherReverse"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["vouchers"]}}, "/vouchers/{id_}/webhook-export": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "post": {"responses": {"200": {"description": "Voucher queued to be sent via webhook.", "schema": {"$ref": "#/definitions/VoucherWebhookResendResponse"}}}, "summary": "Send historic voucher via webhook", "operationId": "post_item_webhook_resend", "tags": ["vouchers"]}}, "/webhook": {"post": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/View%20Webhook"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Create webhook", "operationId": "post_webhook_base_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Create%20Webhook"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["webhook"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "OK", "schema": {"type": "array", "items": {"$ref": "#/definitions/View%20Webhook"}}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "List webhooks", "operationId": "get_webhook_base_resource", "tags": ["webhook"]}}, "/webhook/log/replay": {"post": {"responses": {"200": {"description": "The FAILED deliveries were queued to be sent again.", "schema": {"$ref": "#/definitions/WebhookLogReplayResult"}}}, "summary": "Send the FAILED deliveries of a period again, each with its own X-Webhook-Id, oldest first and at most 1000 per call", "description": "Collection deliveries are resent with PUT /collections/external/webhook-requests/<id>/resend instead.", "operationId": "post_webhook_request_log_replay", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/WebhookLogReplay"}}], "tags": ["webhook"]}}, "/webhook/log/retry/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "put": {"responses": {"200": {"description": "Webhook retry queued."}}, "summary": "PUT log retry (webhook)", "operationId": "put_webhook_voucher_retry_resource", "tags": ["webhook"]}}, "/webhook/log/search": {"post": {"responses": {"200": {"description": "Webhook request log search results.", "schema": {"type": "array", "items": {"$ref": "#/definitions/Webhook%20Request%20Log%20List"}}}}, "summary": "Log search webhook", "operationId": "post_webhook_request_log_search", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Webhook%20Request%20Log%20Search"}}], "tags": ["webhook"]}}, "/webhook/log/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Webhook request log detail.", "schema": {"$ref": "#/definitions/Webhook%20Request%20Log%20Detail"}}}, "summary": "GET log (webhook)", "operationId": "get_webhook_request_log_item", "tags": ["webhook"]}}, "/webhook/{id_}": {"parameters": [{"name": "id_", "in": "path", "required": true, "type": "string"}], "delete": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Webhook deleted.", "schema": {"$ref": "#/definitions/View%20Webhook"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Delete webhook", "operationId": "delete_webhook_item_resource", "tags": ["webhook"]}, "get": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/View%20Webhook"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Get webhook by id", "operationId": "get_webhook_item_resource", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["webhook"]}, "put": {"responses": {"500": {"description": "Internal server error", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "400": {"description": "Bad request", "schema": {"$ref": "#/definitions/Api%20error"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}, "200": {"description": "Success", "schema": {"$ref": "#/definitions/View%20Webhook"}, "headers": {"Authorization": {"description": "Your Authorization token to access the api.", "type": "string"}}}}, "summary": "Update webhook", "operationId": "put_webhook_item_resource", "parameters": [{"name": "payload", "required": true, "in": "body", "schema": {"$ref": "#/definitions/Update%20Webhook"}}, {"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["webhook"]}}, "/websocket/generate-token": {"get": {"responses": {"503": {"description": "WebSocket connections are not configured for this environment."}, "200": {"description": "Returns a JWT token for the WebSocket connection."}}, "summary": "Generate a WebSocket connection token", "operationId": "get_item", "tags": ["websocket"]}}, "/websocket/test/send": {"post": {"responses": {"403": {"description": "Only operators can send a test notification."}, "200": {"description": "Sends a test notification on the WebSocket system channel. No response body."}}, "summary": "Send a test notification on the WebSocket system channel", "operationId": "post_test_send", "tags": ["websocket"]}}}, "info": {"title": "API", "version": "1.0"}, "produces": ["application/json"], "consumes": ["application/json"], "tags": [{"name": "alerts", "description": "Alerts raised from system events, failed distributions and failed webhooks."}, {"name": "articles", "description": "Reusable invoice line items (articles/SKUs)."}, {"name": "authenticate", "description": "Issue and validate JWTs for interactive (HS256) sessions."}, {"name": "automation", "description": "Automation engine api"}, {"name": "base-interest-rates", "description": "Base interest rates endpoints."}, {"name": "base-interest-settings", "description": "Base interest settings API endpoints used to manage different types of base interests."}, {"name": "bills", "description": "Service bills issued by Quiddly to clients."}, {"name": "bookkeeping-accounts", "description": "Operations related to bookkeeping accounts"}, {"name": "bookkeeping-files", "description": "Generated bookkeeping files (SIE etc.)."}, {"name": "scheduler/bookkeeping-file", "description": "Recurring schedule for bookkeeping file exports."}, {"name": "bookkeeping-revaluations", "description": "Month-end currency revaluation."}, {"name": "cache", "description": "Cache management endpoints (operational)."}, {"name": "celery-task", "description": "Status of background Celery jobs."}, {"name": "changelog", "description": "Audit-style change history for resources."}, {"name": "charges", "description": "Manual charges (fees, interest, adjustments)."}, {"name": "client-accounts", "description": "Operations related to client accounts"}, {"name": "client-account-payment-reference-settings", "description": "Client account payment reference settings endpoint."}, {"name": "client-account-transactions", "description": "Operations related to client account transactions"}, {"name": "client-bank-account", "description": "Client bank account resource"}, {"name": "client-bank-account-profile", "description": "Client bank account profile resource"}, {"name": "client-financial-price-template", "description": "Fee/interest templates that apply to a client."}, {"name": "clients", "description": "Clients - the businesses whose receivables Quiddly is managing."}, {"name": "client-groups", "description": "Group clients for shared settings and rollups."}, {"name": "client-products", "description": "Product bindings (factoring, service, etc.) per client."}, {"name": "client-users", "description": "Operations related to client users"}, {"name": "collections/external", "description": "External-collection-agency interaction endpoints."}, {"name": "content-user-setting", "description": "Table content user setting."}, {"name": "credit-decision-status", "description": "Credit Decision Status API endpoints used to manage factoring kanban board columns."}, {"name": "credit-insurance-client-debtor", "description": "Client/debtor pairings under a credit-insurance policy."}, {"name": "credit-insurance", "description": "Credit-insurance agreements and limits."}, {"name": "credit-monitoring", "description": "Credit monitoring data for debtor and client"}, {"name": "credit-statuses", "description": "Credit status definitions used by the engine."}, {"name": "credit-status-global", "description": "Global credit-status overrides."}, {"name": "distribution-profiles", "description": "Per-client distribution channel preferences."}, {"name": "distributions", "description": "Outbound document distributions (email, post, e-invoice)."}, {"name": "distribution-events", "description": "Lifecycle events emitted by a distribution."}, {"name": "documents", "description": "Generic document storage and retrieval."}, {"name": "document-templates", "description": "Templated documents (invoices, reminders, etc.)."}, {"name": "e-faktura", "description": "Nordic e-faktura (B2C bank-channel invoicing) integration."}, {"name": "electronic-invoices", "description": "E-invoice (PEPPOL/Svefaktura) send and receive."}, {"name": "system/exchange-rates", "description": "Daily exchange-rate snapshots."}, {"name": "factoring-country", "description": "Factoring country API endpoints used to allow/block countries for e.g financing."}, {"name": "factoring-decisions", "description": "Factoring buy/sell decision logs."}, {"name": "fee/type", "description": "Fee type endpoints."}, {"name": "financing-rules", "description": "Per-product financing rule configuration."}, {"name": "global-sni-registry", "description": "Global SNI Code Registry API endpoints used to manage SNI codes."}, {"name": "internal-request", "description": "Dual confirmation API endpoints."}, {"name": "invoice-offers", "description": "Service-provider-driven invoice purchase offers."}, {"name": "labels", "description": "Free-form labels for tagging resources."}, {"name": "locales", "description": "Supported locales and their date/currency formats."}, {"name": "public/locales", "description": "Unauthenticated locale + currency reference data for forms."}, {"name": "modules", "description": "Routes related to modules."}, {"name": "payment-requests", "description": "Outbound payment requests (Swish, etc.)."}, {"name": "ping", "description": "Operations related to system up check"}, {"name": "price-brackets", "description": "Volume/amount brackets within a price list."}, {"name": "price-lists", "description": "Pricing-tier definitions."}, {"name": "product-rates", "description": "A product's own rate per currency, used instead of the base interest rate."}, {"name": "scheduler/query-report", "description": "Recurring schedule for custom query reports."}, {"name": "reason-code", "description": "Reason codes used in payment matching and rejections."}, {"name": "reminders", "description": "Reminder issuance and history."}, {"name": "reminder-profiles", "description": "Templates for reminder cadence and content."}, {"name": "reminder-profile-levels", "description": "Individual reminder steps inside a profile."}, {"name": "report-distributions", "description": "System reports distributed to a client."}, {"name": "roles", "description": "Role definitions and the rights bundled into each role."}, {"name": "settlement-accounts", "description": "Internal settlement accounts."}, {"name": "squidd", "description": "SQUIDD ERP-sync integration endpoints."}, {"name": "storage", "description": "Operations related to files"}, {"name": "strawbay", "description": "Strawbay integration endpoints."}, {"name": "system-debtors", "description": "Master debtor records used across clients."}, {"name": "system-debtor-client-dedicated-limits", "description": "System Debtor Client Dedicated Limits"}, {"name": "system-debtor-credit-status", "description": "Credit status assigned to a system debtor."}, {"name": "system-debtor/events", "description": "Lifecycle events emitted for system debtors."}, {"name": "system-debtors/<path:identification_number>/financial-events", "description": "All financial events belonging to a system debtor, across every client."}, {"name": "system-debtor-groups", "description": "Grouping of system debtors for shared rules."}, {"name": "internal-system-debtors", "description": "Internal-only system debtor records."}, {"name": "system_debtors/<path:identification_number>/labels", "description": "Labels for a system debtor"}, {"name": "system-debtor/todo", "description": "SystemDebtor TODO endpoint."}, {"name": "system/jobs", "description": "Background job queues, workers and jobs."}, {"name": "system-setting", "description": "Tenant-wide system settings."}, {"name": "token", "description": "Operations related to tokens"}, {"name": "users", "description": "Manage tenant users, their roles, and activation state."}, {"name": "user-groups", "description": "Group users for bulk role assignment and permission control."}, {"name": "utils", "description": "Miscellaneous utility endpoints."}, {"name": "vouchers", "description": "Operations related to vouchers"}, {"name": "voucher-postings", "description": "Individual posting rows on a bookkeeping voucher."}, {"name": "voucher-request", "description": "Voucher generation requests."}, {"name": "webhook", "description": "Operations related to webhooks"}, {"name": "websocket", "description": "WebSocket (Centrifugo) connection tokens."}, {"name": "clients", "description": "Operations related to clients"}, {"name": "clients", "description": "Clients - the businesses whose receivables Quiddly is managing."}, {"name": "client-handlers", "description": "Operations related to client handlers"}, {"name": "clients/<client_id>/settings/invoice", "description": "Per-client invoice issuance settings."}, {"name": "clients/<client_id>/labels", "description": "Labels for a client"}, {"name": "clients/<client_id>/sync", "description": "External-system sync state and triggers for a client."}, {"name": "clients", "description": "Clients - the businesses whose receivables Quiddly is managing."}, {"name": "client/todo", "description": "Client TODO endpoint."}, {"name": "client-transfer-text", "description": "Routes related to client transfer texts"}, {"name": "erps", "description": "ERP integrations (top-level container)."}, {"name": "erps-short", "description": "Compact ERP listing for selectors."}, {"name": "erp-types", "description": "ERP type taxonomy."}, {"name": "statistics/factoring", "description": "Factoring portfolio statistics."}, {"name": "statistics/overdue", "description": "Overdue-receivables statistics."}, {"name": "statistics/product", "description": "Per-product statistics."}, {"name": "statistics/counts", "description": "Resource counters surfaced in the operator dashboard."}, {"name": "collection-batches/actions/bulk-update", "description": "Bulk operations across many collection batches."}, {"name": "collection-batches", "description": "Routes related to updating a collection profile for collection batches."}, {"name": "collection-batches/events", "description": "Lifecycle events emitted by a collection batch."}, {"name": "collection-batches", "description": "Routes related to Collection Batch endpoint."}, {"name": "collection-batches", "description": "Collection batches - grouped overdue invoices in collections."}, {"name": "collection-batches", "description": "Routes related to Collection Batch endpoint."}, {"name": "collection-batch-invoice", "description": "Get list of collection batches for invoices"}, {"name": "collection-batches", "description": "All invoice labels for a collection batch"}, {"name": "collection-batch-payment-reference-settings", "description": "Collection batch payment reference settings endpoint."}, {"name": "public/collection-batches", "description": "Unauthenticated collection-batch view for debtor flows."}, {"name": "collection-batches/purchase", "description": "Purchase-flow handling for collection batches."}, {"name": "collection-batch/todo", "description": "Collection-batch tasks pending operator action."}, {"name": "collection-batches", "description": "Routes related to Collection Batch endpoint."}, {"name": "collection-batches/charges", "description": "Charges (fees, interest) applied to a collection batch."}, {"name": "collection-batches/table", "description": "Routes related to Collection Batch endpoint."}, {"name": "collection-profile", "description": "Routes related to Collection Batch Profile"}, {"name": "debtor/collection-batches", "description": "Debtor-portal view of collection batches."}, {"name": "segments", "description": "Routes related to segment"}, {"name": "enforcement", "description": "Enforcement actions (Kronofogden-style debt enforcement)."}, {"name": "enforcement", "description": "Enforcement actions (Kronofogden-style debt enforcement)."}, {"name": "enforcement", "description": "Enforcement actions (Kronofogden-style debt enforcement)."}, {"name": "enforcement", "description": "Enforcement actions (Kronofogden-style debt enforcement)."}, {"name": "enforcement/todo", "description": "Enforcement tasks pending operator action."}, {"name": "enforcement-view", "description": "Read-only enforcement projections for the operator UI."}, {"name": "errands/system", "description": "System-generated errands requiring operator action."}, {"name": "client-invoice-request", "description": "Endpoint used to create and manage client invoice requests."}, {"name": "debtor/invoices", "description": "Debtor-portal view of invoices."}, {"name": "invoices", "description": "Invoice endpoint is used to create, activate and manage invoices."}, {"name": "invoices/<invoice_id>/articles", "description": "Articles for an invoice"}, {"name": "invoices/<invoice_id>/article_labels", "description": "Labels for articles in an invoice"}, {"name": "external/invoices", "description": "Invoice endpoints for external integrators. Responses contain only the approved field set; requests are processed identically to the internal invoice endpoints."}, {"name": "invoices/events/financial", "description": "Operations related to invoice financial events"}, {"name": "invoices/table", "description": "Invoice endpoints used to fetch invoices."}, {"name": "invoices/<invoice_id>/guarantors", "description": "Guarantors attached to a specific invoice."}, {"name": "invoices/<invoice_id>/labels", "description": "Labels for a invoice"}, {"name": "invoices/events/ledger", "description": "Operations related to invoice ledger events"}, {"name": "invoices/<invoice_id>/notes", "description": "Notes connected to a invoice"}, {"name": "invoices/<invoice_id>/payment-methods", "description": "Available payment methods for an invoice."}, {"name": "invoices/<invoice_id>/payment-method-configurations", "description": "Payment-method configurations bound to an invoice."}, {"name": "invoice-payment-reference-settings", "description": "Invoice payment reference settings endpoint."}, {"name": "invoices/<invoice_id>/payouts", "description": "Payouts that paid out the invoice"}, {"name": "invoices", "description": "Perform OCR and fetch result of that OCR"}, {"name": "invoices"}, {"name": "public/invoices", "description": "Unauthenticated invoice details for debtor payment flows."}, {"name": "invoice-refinancing", "description": "Refinancing requests on existing invoices."}, {"name": "invoice/todo", "description": "Invoice TODO endpoint."}, {"name": "invoices/<invoice_id>/transaction-reports", "description": "Transaction reports the invoice is part of"}, {"name": "public/signature-requests", "description": "Unauthenticated signing of delivery confirmations from the debtor portal."}, {"name": "payment-accounts", "description": "Bank accounts payments are received into."}, {"name": "payment-batches", "description": "Grouped payment ingestion files."}, {"name": "clients/articles", "description": "Articles owned by a specific client."}, {"name": "client-match-payments", "description": "Client-scoped manual payment matching helpers."}, {"name": "payment-files", "description": "Raw payment files (camt, BG/PG) ingested into Quiddly."}, {"name": "part-payment-groups", "description": "Groupings of part-payment plans for reporting."}, {"name": "part-payments", "description": "Part-payment installments."}, {"name": "payment-reconciliations", "description": "Manual reconciliation of unplaced payments."}, {"name": "payment-transactions-returns", "description": "Returned (bounced) payment transactions."}, {"name": "payments", "description": "Inbound payments received from debtors and reconciled to invoices."}, {"name": "payments/events/financial", "description": "Financial events recorded against a payment: booked, linked, returned, written off and revalued."}, {"name": "unplaced-payments", "description": "Payments that the matching engine could not auto-place."}, {"name": "unplaced-payments/client", "description": "Client-scoped view of unplaced payments."}, {"name": "payout-accounts", "description": "Bank accounts payouts are sent from."}, {"name": "payout-batches", "description": "Batched payout files awaiting bank submission."}, {"name": "blocked-payouts", "description": "Payouts blocked pending review or compliance."}, {"name": "client-debtor-payout-accounts", "description": "Per client/debtor payout account overrides."}, {"name": "debtor-payout-accounts", "description": "Debtor-side payout/refund accounts."}, {"name": "payout-files", "description": "Generated payout files (SEPA XML, BG, etc.)."}, {"name": "pending-payouts", "description": "Client accounts with settlement activity that has not been paid out"}, {"name": "payouts", "description": "Outbound payouts to clients/debtors."}, {"name": "public/developer-portal", "description": "Unauthenticated tenant branding (name, logo, colours) for the developer portal."}, {"name": "instance-providers", "description": "Tenants (InstanceProvider). One per Quiddly deployment slot."}, {"name": "instance-provider-credit-check-settings", "description": "Per-tenant credit-check defaults."}, {"name": "service-providers", "description": "External service providers (e.g. credit bureaus, distribution channels)."}, {"name": "service-provider-credit-check-settings", "description": "Per-service-provider credit-check policy."}, {"name": "service-provider-insurance-agreement", "description": "Insurance agreements tied to a service provider."}, {"name": "public/service-providers", "description": "Unauthenticated lookup of available service providers (locale, code, type)."}, {"name": "notes", "description": "Free-form notes attached to other resources."}, {"name": "service-accounts", "description": "Server-to-server credentials and token generation for integrations."}, {"name": "settings/client", "description": "Client settings management"}, {"name": "settings/client/flag", "description": "Client flag settings management"}, {"name": "settings/client-financial-price-template", "description": "Client template settings management"}, {"name": "settings/client-financial-price-template/flag", "description": "Client template flag settings management"}, {"name": "settings/debtor/flag", "description": "Debtor flag settings management"}, {"name": "settings/system-debtor/flag", "description": "SystemDebtor flag settings management"}, {"name": "settlement-account-transactions", "description": "Transactions on settlement accounts."}, {"name": "contacts", "description": "Contact persons (debtors, clients, etc.)."}, {"name": "part-invoices", "description": "Sub-invoices generated by a part-payment plan."}, {"name": "part-payment-accounts", "description": "Long-running part-payment accounts (revolving credit)."}, {"name": "part-payment-accounts/events", "description": "Lifecycle events for part-payment accounts."}, {"name": "part-payment-accounts/events/financial", "description": "Financial movements on a part-payment account."}, {"name": "part-payment-accounts/invoices", "description": "Invoices currently funded by a part-payment account."}, {"name": "part-payment-accounts/settings", "description": "Per-account part-payment configuration."}, {"name": "part-payment-plans", "description": "Closed-end part-payment plans bound to an invoice."}, {"name": "part-payment-plans/collection-batches", "description": "Collection batches arising from a part-payment plan."}, {"name": "part-payment-plans/events", "description": "Plan lifecycle events."}, {"name": "part-payment-plans/events/financial", "description": "Financial events recorded against a plan."}, {"name": "part-payment-plans/invoices", "description": "Invoices originating from a part-payment plan."}, {"name": "part-payment-plans/events/ledger", "description": "Ledger-level postings for a plan."}, {"name": "part-payment-plans/settings", "description": "Plan-level configuration."}, {"name": "payment-methods", "description": "Payment methods (Swish, autogiro, card, etc.)."}, {"name": "payment-methods/configurations", "description": "Per-method configuration and credentials."}, {"name": "payment-methods/configurations", "description": "Per-method configuration and credentials."}, {"name": "payment-methods/configurations", "description": "Per-method configuration and credentials."}, {"name": "external/bankid", "description": "BankID authentication callbacks for end users."}, {"name": "engine-rule", "description": "Engine Rule endpoint is used to create and update engine rules."}, {"name": "engine-rule-advanced-module", "description": "Engine Rule endpoint is used to create and update advanced engine rule module."}, {"name": "engine-rule-criteria", "description": "Engine Rule Criteria endpoint is used to create and manage Engine Rule Criterias."}, {"name": "engine-rule-criteria-group", "description": "Engine Rule endpoint is used to create and update advanced engine rule module."}, {"name": "engine-rule-profile", "description": "Reusable engine rules that can be applied to many clients."}, {"name": "engine-rule/<engine_rule_id>/settings", "description": "Engine Rule Settings endpoint"}, {"name": "system-bank-accounts", "description": "Routes related to system bank accounts"}, {"name": "business-areas", "description": "Routes related to Business Area"}, {"name": "business-loans/events"}, {"name": "business-loans", "description": "Business loans (BL.*) - application, approval, disbursement, and repayment."}, {"name": "business-loans/events/ledger"}, {"name": "business-loan/todo", "description": "Business Loan TODO endpoint."}, {"name": "business-loans", "description": "Routes related to Business Loan endpoint."}, {"name": "loan-profiles", "description": "Routes related to Loan Profile"}, {"name": "payment-matching-engine", "description": "Payment matching engine operations"}, {"name": "debtors", "description": "Debtors - the parties that owe money on invoices."}, {"name": "debtor-blocked", "description": "Blocked/blacklisted debtors"}, {"name": "debtors/<debtor_id>/contacts", "description": "Contact persons attached to a debtor."}, {"name": "debtors/<debtor_id>/financial-events", "description": "All financial events belonging to a client debtor."}, {"name": "debtors/<debtor_id>/labels", "description": "Labels for a debtor"}, {"name": "debtors/<debtor_id>/notes", "description": "Free-form notes attached to a debtor."}, {"name": "debtor/part-payment-plans", "description": "Debtor-portal view of part-payment plans."}, {"name": "public/debtors", "description": "Unauthenticated debtor lookups for payment-portal flows."}, {"name": "debtor-subtype", "description": "Debtor subtype classifications."}, {"name": "debtor/todo", "description": "Debtor TODO endpoint."}], "definitions": {"AlertSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "severity": {"type": "string"}, "status": {"type": "string"}, "source": {"type": "string"}, "clientId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "createdDate": {"type": "string"}, "lastOccurredDate": {"type": "string"}, "instanceProviderId": {"type": "string", "description": "Only alerts of the clients of this entity"}, "mine": {"type": "boolean", "description": "Only alerts assigned to the signed-in user or a user group they belong to", "example": false}, "assignedToMe": {"type": "boolean", "description": "Only alerts assigned to the signed-in user", "example": false}, "assignedToMyGroups": {"type": "boolean", "description": "Only alerts assigned to a user group the signed-in user belongs to", "example": false}}, "type": "object"}, "Alert": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "severity": {"type": "string"}, "status": {"type": "string"}, "title": {"type": "string"}, "description": {"type": "string"}, "source": {"type": "string"}, "sourceId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "entityName": {"type": "string", "description": "The entity of an unplaced payments alert"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "debtorId": {"type": "string"}, "occurrences": {"type": "integer", "format": "int", "example": 0}, "lastOccurredDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedById": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "AlertSummaryQuery": {"properties": {"type": {"type": "string"}, "instanceProviderId": {"type": "string", "description": "Only alerts of the clients of this entity"}, "mine": {"type": "boolean", "description": "Only alerts assigned to the signed-in user or a user group they belong to", "example": false}, "assignedToMe": {"type": "boolean", "description": "Only alerts assigned to the signed-in user", "example": false}, "assignedToMyGroups": {"type": "boolean", "description": "Only alerts assigned to a user group the signed-in user belongs to", "example": false}}, "type": "object"}, "AlertSummary": {"properties": {"open": {"type": "integer", "format": "int", "example": 0}, "acknowledged": {"type": "integer", "format": "int", "example": 0}, "resolved": {"type": "integer", "format": "int", "example": 0}, "all": {"type": "integer", "format": "int", "example": 0}, "criticalUnresolved": {"type": "integer", "format": "int", "example": 0}, "resolvedRecently": {"type": "integer", "format": "int", "description": "Resolved in the last 7 days", "example": 0}}, "type": "object"}, "AlertRecipientsUpdate": {"required": ["alertType"], "properties": {"alertType": {"type": "string"}, "recipients": {"type": "array", "items": {"$ref": "#/definitions/AlertRecipientUpdate"}}}, "type": "object"}, "AlertRecipientUpdate": {"properties": {"userId": {"type": "string"}, "userGroupId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "AlertRecipient": {"properties": {"alertType": {"type": "string"}, "userId": {"type": "string"}, "userGroupId": {"type": "integer", "format": "int", "example": 0}, "userGroupName": {"type": "string"}}, "type": "object"}, "AlertRuleUpdate": {"required": ["active", "alertType", "notifyInApp"], "properties": {"alertType": {"type": "string"}, "active": {"type": "boolean", "example": false}, "severity": {"type": "string", "description": "Leave out to use the type's own severity"}, "threshold": {"type": "integer", "format": "int", "example": 0}, "window": {"type": "integer", "format": "int", "example": 0}, "notifyInApp": {"type": "boolean", "example": false}, "notifyEmail": {"type": "boolean", "example": false}}, "type": "object"}, "AlertRule": {"properties": {"alertType": {"type": "string"}, "active": {"type": "boolean", "example": false}, "severity": {"type": "string"}, "defaultSeverity": {"type": "string"}, "threshold": {"type": "integer", "format": "int", "description": "Only for the types that count something", "example": 0}, "window": {"type": "integer", "format": "int", "description": "Minutes for failed webhook deliveries, days for unplaced payments", "example": 0}, "notifyInApp": {"type": "boolean", "example": false}, "notifyEmail": {"type": "boolean", "example": false}}, "type": "object"}, "AlertDetail": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "severity": {"type": "string"}, "status": {"type": "string"}, "title": {"type": "string"}, "description": {"type": "string"}, "source": {"type": "string"}, "sourceId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "entityName": {"type": "string", "description": "The entity of an unplaced payments alert"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "debtorId": {"type": "string"}, "occurrences": {"type": "integer", "format": "int", "example": 0}, "lastOccurredDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedById": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "events": {"type": "array", "items": {"$ref": "#/definitions/AlertEvent"}}}, "type": "object"}, "AlertEvent": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "action": {"type": "string"}, "status": {"type": "string"}, "comment": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}}, "type": "object"}, "AlertComment": {"properties": {"comment": {"type": "string"}}, "type": "object"}, "AlertAssign": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "comment": {"type": "string"}}, "type": "object"}, "ArticleUpdate": {"properties": {"description": {"type": "string"}, "vatPercentage": {"type": "string"}, "vatPercentageEU": {"type": "string"}, "resultBookkeepingAccountId": {"type": "string"}, "balanceBookkeepingAccountId": {"type": "string"}, "resultBookkeepingAccountEUId": {"type": "string"}, "resultBookkeepingAccountExportId": {"type": "string"}}, "type": "object"}, "Articles": {"properties": {"id": {"type": "string"}, "localeId": {"type": "string"}, "type": {"type": "string"}, "externalArticleNumber": {"type": "integer", "format": "int", "example": 0}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "articleCode": {"type": "string"}, "description": {"type": "string"}, "vatPercentage": {"type": "string"}, "vatPercentageEU": {"type": "string"}, "resultBookkeepingAccountId": {"type": "string"}, "resultBookkeepingAccountNumber": {"type": "string"}, "balanceBookkeepingAccountId": {"type": "string"}, "balanceBookkeepingAccountNumber": {"type": "string"}, "resultBookkeepingAccountEUId": {"type": "string"}, "resultBookkeepingAccountEUNumber": {"type": "string"}, "resultBookkeepingAccountExportId": {"type": "string"}, "resultBookkeepingAccountExportNumber": {"type": "string"}}, "type": "object"}, "ArticlesSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "localeId": {"type": "string"}, "type": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "articleCode": {"type": "string"}, "vatPercentage": {"type": "string"}, "vatPercentageEU": {"type": "string"}, "resultBookkeepingAccountId": {"type": "string"}, "resultBookkeepingAccountNumber": {"type": "string"}, "balanceBookkeepingAccountId": {"type": "string"}, "balanceBookkeepingAccountNumber": {"type": "string"}, "resultBookkeepingAccountEUId": {"type": "string"}, "resultBookkeepingAccountEUNumber": {"type": "string"}, "resultBookkeepingAccountExportId": {"type": "string"}, "resultBookkeepingAccountExportNumber": {"type": "string"}, "externalArticleNumber": {"type": "string"}}, "type": "object"}, "ArticleBulkUpdate": {"properties": {"articles": {"type": "array", "items": {"$ref": "#/definitions/ArticleBulkUpdateItem"}}}, "type": "object"}, "ArticleBulkUpdateItem": {"required": ["id"], "properties": {"id": {"type": "string"}, "description": {"type": "string"}, "vatPercentage": {"type": "string"}, "vatPercentageEU": {"type": "string"}, "resultBookkeepingAccountId": {"type": "string"}, "balanceBookkeepingAccountId": {"type": "string"}, "resultBookkeepingAccountEUId": {"type": "string"}, "resultBookkeepingAccountExportId": {"type": "string"}}, "type": "object"}, "ArticleBulkUpdateResult": {"properties": {"updated": {"type": "integer", "format": "int", "example": 0}, "ids": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "AutomationPost": {"required": ["eventId", "name"], "properties": {"name": {"type": "string"}, "eventId": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "active": {"type": "boolean", "example": false}, "actionOnSuccess": {"type": "string"}, "actionOnFail": {"type": "string"}, "rules": {"type": "array", "items": {"$ref": "#/definitions/AutomationRulePost"}}}, "type": "object"}, "AutomationRulePost": {"properties": {"field": {"type": "string"}, "operator": {"type": "string"}, "value": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "preprocessingKey": {"type": "string"}}, "type": "object"}, "Automation": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "eventId": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "active": {"type": "boolean", "example": false}, "actionOnSuccess": {"type": "string"}, "actionOnFail": {"type": "string"}, "rules": {"type": "array", "items": {"$ref": "#/definitions/AutomationRule"}}, "functions": {"type": "array", "items": {"$ref": "#/definitions/AutomationFunction"}}, "actionValues": {"$ref": "#/definitions/AutomationActionValues"}}, "type": "object"}, "AutomationRule": {"properties": {"id": {"type": "string"}, "automationId": {"type": "string"}, "field": {"type": "string"}, "operator": {"type": "string"}, "value": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "preprocessingKey": {"type": "string"}}, "type": "object"}, "AutomationFunction": {"properties": {"id": {"type": "string"}, "automationId": {"type": "string"}, "field": {"type": "string"}, "functionName": {"type": "string"}}, "type": "object"}, "AutomationActionValues": {"properties": {"id": {"type": "string"}, "onSuccessTarget": {"type": "string"}, "onSuccessValue": {"type": "string"}, "onFailTarget": {"type": "string"}, "onFailValue": {"type": "string"}}, "type": "object"}, "AutomationEventName": {"properties": {"event": {"type": "string"}}, "type": "object"}, "AutomationActionName": {"properties": {"action": {"type": "string"}}, "type": "object"}, "AutomationPut": {"properties": {"name": {"type": "string"}, "eventId": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "active": {"type": "boolean", "example": false}, "actionOnSuccess": {"type": "string"}, "actionOnFail": {"type": "string"}}, "type": "object"}, "AutomationSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "name": {"type": "string"}, "eventId": {"type": "string"}, "active": {"type": "boolean", "example": false}}, "type": "object"}, "AutomationRulePut": {"properties": {"field": {"type": "string"}, "operator": {"type": "string"}, "value": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "preprocessingKey": {"type": "string"}}, "type": "object"}, "BaseInterestRateBulkUpdate": {"properties": {"data": {"type": "array", "items": {"$ref": "#/definitions/BaseInterestRateData"}}}, "type": "object"}, "BaseInterestRateData": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "amount": {"type": "number", "format": "decimal"}}, "type": "object"}, "BaseInterestRate": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "valid_from": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "valid_to": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "BaseInterestRatePut": {"properties": {"amount": {"type": "number", "format": "decimal"}}, "type": "object"}, "BaseInterestRatePost": {"properties": {"amount": {"type": "number", "format": "decimal"}}, "type": "object"}, "BaseInterestRateSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "valid_from": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "valid_to": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "BaseInterestRateGridPut": {"properties": {"baseRates": {"type": "array", "items": {"$ref": "#/definitions/BaseInterestRateGridBaseRate"}}, "productRates": {"type": "array", "items": {"$ref": "#/definitions/ProductRatePutItem"}}}, "type": "object"}, "BaseInterestRateGridBaseRate": {"required": ["amount", "currency"], "properties": {"currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal", "description": "The base interest rate in percent."}}, "type": "object"}, "ProductRatePutItem": {"required": ["amount", "currency", "productCode"], "properties": {"currency": {"type": "string"}, "productCode": {"type": "string"}, "amount": {"type": "number", "format": "decimal", "description": "The rate in percent, or null to use the base interest rate."}}, "type": "object"}, "BaseInterestRateGrid": {"properties": {"baseRates": {"type": "array", "items": {"$ref": "#/definitions/BaseInterestRateGridBaseRateRow"}}, "productRates": {"type": "array", "items": {"$ref": "#/definitions/ProductRate"}}}, "type": "object"}, "BaseInterestRateGridBaseRateRow": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "validFrom": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "validTo": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ProductRate": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "productCode": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "validFrom": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "validTo": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "BaseInterestSettingsPut": {"properties": {"lateInterest": {"type": "boolean", "example": false}, "financingFee": {"type": "boolean", "example": false}, "financingExpiredInterestFee": {"type": "boolean", "example": false}, "financingOverdrawnInterestFee": {"type": "boolean", "example": false}, "financingInvoiceRecourseInterest": {"type": "boolean", "example": false}, "financingInvoiceCreditInterest": {"type": "boolean", "example": false}}, "type": "object"}, "BaseInterestSettings": {"properties": {"lateInterest": {"type": "boolean", "example": false}, "financingFee": {"type": "boolean", "example": false}, "financingExpiredInterestFee": {"type": "boolean", "example": false}, "financingOverdrawnInterestFee": {"type": "boolean", "example": false}, "financingInvoiceRecourseInterest": {"type": "boolean", "example": false}, "financingInvoiceCreditInterest": {"type": "boolean", "example": false}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientTemplateId": {"type": "string"}}, "type": "object"}, "Bills": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "externalInvoiceNumber": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountTransactionId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "erpId": {"type": "string"}, "productCode": {"type": "string"}, "channel": {"type": "string"}, "invoiceDistributionMethod": {"type": "string"}, "currency": {"type": "string"}, "invoiceAdministrationFee": {"type": "number", "format": "decimal"}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "exportedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "status": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}, "amountVatLocale": {"type": "number", "format": "decimal"}, "amountPrepaid": {"type": "number", "format": "decimal"}, "amountPrepaidLocale": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "amountTotalLocale": {"type": "number", "format": "decimal"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "addressInformation": {"required": ["address", "city", "name", "zip"], "properties": {"name": {"type": "string", "description": "invoice address name. Either a person- or a company name"}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}}, "type": "object"}, "BillsSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "externalInvoiceNumber": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountTransactionId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "erpId": {"type": "string"}, "productCode": {"type": "string"}, "channel": {"type": "string"}, "invoiceDistributionMethod": {"type": "string"}, "currency": {"type": "string"}, "exportedDate": {"type": "string"}, "exportedBy": {"type": "string"}, "bookedDate": {"type": "string"}, "bookedBy": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "status": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "invoiceAdministrationFee": {"type": "string"}}, "type": "object"}, "BillExport": {"properties": {"instanceProviderId": {"type": "string"}, "billIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "BillBookkeep": {"properties": {"instanceProviderId": {"type": "string"}, "billIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "updatedBookkeepingAccount": {"properties": {"accountNumber": {"type": "string"}}, "type": "object"}, "Api error": {"properties": {"message": {"type": "string", "description": "Detailed message about the error."}}, "type": "object"}, "bookkeepingAccount": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "accountNumber": {"type": "string"}, "accountClass": {"type": "string"}, "code": {"type": "string"}, "clientId": {"type": "string"}, "productCode": {"type": "string"}, "vatPercentage": {"type": "number", "format": "float", "example": 0.0}, "balance": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "createdBookkeepingAccount": {"required": ["accountNumber", "code"], "properties": {"code": {"type": "string"}, "accountNumber": {"type": "string"}, "vatPercentage": {"type": "number", "format": "float", "example": 0.0}, "productCode": {"type": "string"}}, "type": "object"}, "bookkeepingAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "accountNumber": {"type": "string"}, "accountClass": {"type": "string"}, "code": {"type": "string"}, "clientId": {"type": "string"}, "productCode": {"type": "string"}, "vatPercentage": {"type": "number", "format": "float", "example": 0.0}, "externalPaymentMethodCode": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "BookkeepingFile": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "documentId": {"type": "string"}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "documentReportId": {"type": "string"}, "documentReportFileName": {"type": "string"}, "documentReportFileNameRaw": {"type": "string"}, "status": {"type": "string"}, "type": {"type": "string"}, "fromDate": {"type": "string"}, "toDate": {"type": "string"}, "countDates": {"type": "string"}, "countTransactions": {"type": "string"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}}, "type": "object"}, "BookkeepingFileSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "documentId": {"type": "string"}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "documentReportId": {"type": "string"}, "documentReportFileName": {"type": "string"}, "documentReportFileNameRaw": {"type": "string"}, "status": {"type": "string"}, "type": {"type": "string"}, "fromDate": {"type": "string"}, "toDate": {"type": "string"}, "countDates": {"type": "string"}, "countTransactions": {"type": "string"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}}, "type": "object"}, "BookkeepingFileGenerate": {"properties": {"clientId": {"type": "string"}, "type": {"type": "string", "example": "SIE", "enum": ["SIE", "BGMAX", "KTL"]}, "content": {"type": "array", "items": {"type": "string", "example": "ALL", "enum": ["ALL", "INVOICES", "PAYMENTS"]}}, "filterCode": {"type": "array", "items": {"type": "string", "example": "ALL", "enum": ["ALL", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL_WITH_RECOURSE", "INVOICE_FACTORING_SELL_WITHOUT_RECOURSE"]}}, "referenceType": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "INVOICE_NUMBER"]}, "includeCreditInvoices": {"type": "boolean", "default": false, "example": false}, "fromDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "toDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "BookkeepingFileGenerateInternal": {"required": ["type"], "properties": {"type": {"type": "string", "example": "SIE", "enum": ["SIE"]}, "fromDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "toDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "BookkeepingFileRoutineBilling": {"properties": {"chargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "instanceProviderId": {"type": "string"}}, "type": "object"}, "BookkeepingFileSchedulerPut": {"required": ["frequency"], "properties": {"frequency": {"type": "string", "example": "DAILY", "enum": ["DAILY", "WEEKLY", "MONTHLY"]}, "runDay": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "SIE", "enum": ["SIE", "BGMAX", "KTL"]}, "referenceType": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "INVOICE_NUMBER"]}, "isActive": {"type": "boolean", "example": false}, "includeCreditInvoices": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "BookkeepingFileScheduler": {"required": ["frequency"], "properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "lastRun": {"type": "string", "format": "date", "example": "2016-06-06"}, "frequency": {"type": "string", "example": "DAILY", "enum": ["DAILY", "WEEKLY", "MONTHLY"]}, "runDay": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "SIE", "enum": ["SIE", "BGMAX", "KTL"]}, "content": {"type": "array", "items": {"type": "string"}}, "filterCode": {"type": "array", "items": {"type": "string"}}, "referenceType": {"type": "string"}, "recipients": {"$ref": "#/definitions/BookkeepingFileRecipient"}, "isActive": {"type": "boolean", "example": false}, "includeCreditInvoices": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "BookkeepingFileRecipient": {"properties": {"id": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "BookkeepingFileRecipientsPost": {"properties": {"recipients": {"type": "array", "items": {"$ref": "#/definitions/BookkeepingFileRecipientPost"}}}, "type": "object"}, "BookkeepingFileRecipientPost": {"required": ["email"], "properties": {"email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "BookkeepingFileSchedulerPost": {"required": ["frequency"], "properties": {"clientId": {"type": "string"}, "lastRun": {"type": "string", "format": "date", "example": "2016-06-06"}, "frequency": {"type": "string", "example": "DAILY", "enum": ["DAILY", "WEEKLY", "MONTHLY"]}, "runDay": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "SIE", "enum": ["SIE", "BGMAX", "KTL"]}, "content": {"type": "array", "items": {"type": "string", "example": "ALL", "enum": ["ALL", "INVOICES", "PAYMENTS"]}}, "filterCode": {"type": "array", "items": {"type": "string", "example": "ALL", "enum": ["ALL", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL_WITH_RECOURSE", "INVOICE_FACTORING_SELL_WITHOUT_RECOURSE"]}}, "referenceType": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "INVOICE_NUMBER"]}, "recipients": {"$ref": "#/definitions/BookkeepingFileRecipient"}, "isActive": {"type": "boolean", "example": false}, "includeCreditInvoices": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "BookkeepingFileSchedulerSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "BookkeepingRevaluationPost": {"required": ["bookedDate"], "properties": {"bookedDate": {"type": "string", "format": "date", "description": "Last day of the month to book the revaluation on.", "example": "2016-06-06"}, "override": {"type": "boolean", "description": "Run although bookedDate is already booked or the start window has passed.", "default": false, "example": false}}, "type": "object"}, "BookkeepingRevaluationStarted": {"properties": {"taskId": {"type": "string", "description": "Celery task id, also sent as `id` in the CURRENCY_REVALUATION webhook."}, "bookedDate": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClearModule": {"required": ["module"], "properties": {"module": {"type": "string", "description": "The cache module to clear"}}, "type": "object"}, "CeleryTask": {"properties": {"id": {"type": "string"}}, "type": "object"}, "CeleryJobStatusResponse": {"properties": {"state": {"type": "string"}, "meta": {"type": "object"}}, "type": "object"}, "CeleryTaskIdResponse": {"properties": {"task_id": {"type": "string"}, "task_triggered_date": {"type": "string"}, "closed": {"type": "boolean", "example": false}}, "type": "object"}, "ChangeLog": {"properties": {"id": {"type": "string"}, "target": {"type": "string"}, "topic": {"type": "string"}, "topicFormatted": {"type": "string"}, "targetObjectId": {"type": "string"}, "fieldKey": {"type": "string"}, "fromValue": {"type": "string"}, "toValue": {"type": "string"}, "createdDate": {"type": "string"}, "createdById": {"type": "string"}, "requestedById": {"type": "string"}}, "type": "object"}, "BusinessLoanChangeLog": {"properties": {"id": {"type": "string"}, "target": {"type": "string"}, "topic": {"type": "string"}, "topicFormatted": {"type": "string"}, "targetObjectId": {"type": "string"}, "fieldKey": {"type": "string"}, "fromValue": {"type": "string"}, "toValue": {"type": "string"}, "createdDate": {"type": "string"}, "createdById": {"type": "string"}, "requestedById": {"type": "string"}, "amendmentType": {"type": "string"}, "effectiveDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reason": {"type": "string"}, "createdByName": {"type": "string"}}, "type": "object"}, "ChangeLogSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "target": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "CLIENT_DEBTOR", "SYSTEM_DEBTOR", "BUSINESS_LOAN", "INTERNAL", "INTERNAL_REQUEST", "SETTING", "WEBHOOK", "EMAIL_TEMPLATE", "PAYMENT_ACCOUNT", "ROLE", "PAYMENT_TRANSACTION", "ENGINE_RULE", "CLIENT_TEMPLATE", "CLIENT_GROUP", "SERVICE_PROVIDER", "REMINDER_PROFILE", "PAYMENT_MATCHING_ENGINE", "NOTE", "DOCUMENT", "VOUCHER"]}, "topic": {"type": "string", "example": "USER", "enum": ["USER", "INFO", "ERP", "BILLING_DETAILS", "BOOKKEEPING_DETAILS", "CLIENT_COMPLIANCE", "INVOICE_TEXT", "PRODUCT", "PAYOUT_ACCOUNT", "PAYOUT_HOLD", "CLIENT_BANK_ACCOUNT", "PRICE_LIST", "CREDIT_STATUS", "CREDIT_STATUS_GLOBAL", "CURRENCY_CREDIT_STATUS", "FINANCING_STATUS", "FINANCING_DECISION", "FINANCING_ASSIGNMENT", "INVOICE_STATUS", "INVOICE_DELETED", "INVOICE_PRODUCT", "INVOICE_ACTIONS_RETRY_POST_ACTIVATE", "INVOICE_LEDGER_STATUS", "INVOICE_PAYMENT", "INVOICE_CASH_DISCOUNT", "UNPLACED_PAYMENT_LINKED", "CREDIT_INVOICE_LINK", "INVOICE_ACTIONS", "INVOICE_ACTIONS_CHANGE_EXPIRE_DATE", "INVOICE_ACTIONS_PAUSE", "INVOICE_ACTIONS_STOP", "INVOICE_ACTIONS_RESUME", "INVOICE_ACTIONS_WRITEOFF_REMINDER", "INVOICE_ACTIONS_WRITEOFF_CAPITAL", "INVOICE_ACTIONS_WRITEOFF_INTEREST", "INVOICE_ACTIONS_CREATE_INTEREST_INVOICE", "INVOICE_ACTIONS_RECOURSE", "INVOICE_ACTIONS_FAST_FORWARD", "INVOICE_ACTIONS_NOTE", "INVOICE_ACTIONS_DISPUTE", "INVOICE_ACTIONS_SET_FINANCING_RATE", "INVOICE_ACTIONS_RECALL_FROM_COLLECTION", "SYSTEM_SETTING", "CLIENT_SETTING", "CLIENT_SETTING_FLAG", "CREDIT_CHECK_SETTINGS", "CREDIT_MONITORING", "RECOURSE_DATE", "RECOURSE", "FINANCING_RATE", "INVOICE_SERVICE_PROVIDER", "INTERNAL_REQUEST_STATUS", "BUSINESS_LOAN_MAIN_STATUS", "BUSINESS_LOAN_CREDIT_DECISION_STATUS", "BUSINESS_LOAN_DETAILS", "BUSINESS_LOAN_PROFILE", "BUSINESS_LOAN_PAYMENT_PLAN", "BUSINESS_LOAN_INVOICE_FREQUENCY", "BLOCK", "SYSTEM_DEBTOR", "CLIENT_DEBTOR", "FINANCIAL_RULE", "DEBTOR_PAYOUT_ACCOUNT", "CLIENT_DEBTOR_PAYOUT_ACCOUNT", "FLAG", "LABEL", "STRAWBAY_CONNECTION", "STRAWBAY_ACCOUNTING_SYNC", "WEBHOOK_CREATE", "WEBHOOK_UPDATE", "WEBHOOK_DELETE", "QUERY_REPORT_SCHEDULER_CREATE", "QUERY_REPORT_SCHEDULER_UPDATE", "QUERY_REPORT_SCHEDULER_DELETE", "EMAIL_TEMPLATE_SAVE", "EMAIL_TEMPLATE_PUBLISH", "EMAIL_TEMPLATE_REVERT", "EMAIL_TEMPLATE_RESTORE", "EMAIL_TEMPLATE_PUSH", "EMAIL_TEMPLATE_SETTING", "EMAIL_TEMPLATE_TEST_SEND", "AI_SUGGESTION", "IMPERSONATION_TOKEN", "PERSONAL_API_TOKEN", "PORTAL_SESSION", "PAYMENT_ACCOUNT", "SYSTEM_BANK_ACCOUNT", "ROLE", "ROLE_RIGHT", "INSTANCE_PROVIDER", "CLIENT_USER", "UNPLACED_PAYMENT", "UNPLACED_PAYMENT_WRITE_OFF", "UNPLACED_PAYMENT_REVENUE", "PAYOUT_DELETE", "PAYMENT_RESPECIFIED", "PAYMENT_LINK_REVERSED", "VOUCHER_RESOLVED", "ENGINE_RULE", "ENGINE_RULE_CRITERIA", "ENGINE_RULE_PROFILE", "DEDICATED_CREDIT_LIMIT", "CREDIT_INSURANCE_LIMIT", "CLIENT_GROUP", "INSURANCE_AGREEMENT", "NOTE", "DOCUMENT", "BASE_INTEREST_SETTINGS", "BASE_INTEREST_RATE", "REMINDER_PROFILE", "REMINDER_PROFILE_LEVEL", "PAYMENT_MATCHING_ENGINE", "CLIENT_INVOICE_REQUEST", "INVOICE_DETAILS"]}, "targetObjectId": {"type": "string"}, "createdById": {"type": "string"}}, "type": "object"}, "ChargeUpdate": {"required": ["description"], "properties": {"description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "invoiceId": {"type": "string"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "Charge": {"required": ["description"], "properties": {"id": {"type": "string"}, "type": {"type": "string"}, "billId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "invoiceId": {"type": "string"}, "reminderId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "currency": {"type": "string"}, "authorizedDate": {"type": "string"}, "authorizedBy": {"type": "string"}, "billedDate": {"type": "string"}, "billedBy": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "articleCode": {"type": "string"}, "date": {"type": "string"}, "description": {"type": "string"}, "status": {"type": "string"}, "amountLocale": {"type": "number", "format": "decimal"}, "amount": {"type": "number", "format": "decimal"}, "amountVatLocale": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}, "amountPrepaidLocale": {"type": "number", "format": "decimal"}, "amountPrepaid": {"type": "number", "format": "decimal"}, "amountTotalLocale": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "amountVariable": {"type": "number", "format": "decimal"}, "paymentRequestCollectionBatchId": {"type": "string"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "ChargeCreate": {"required": ["description"], "properties": {"erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "articleCode": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}}, "type": "object"}, "ChargeAuthorize": {"properties": {"instanceProviderId": {"type": "string"}, "chargeIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ChargeGenerate": {"properties": {"chargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "instanceProviderId": {"type": "string"}}, "type": "object"}, "ChargeBill": {"properties": {"instanceProviderId": {"type": "string"}, "chargeIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ChargeSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "billId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "invoiceId": {"type": "string"}, "reminderId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "currency": {"type": "string"}, "authorizedDate": {"type": "string"}, "authorizedBy": {"type": "string"}, "billedDate": {"type": "string"}, "billedBy": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "articleCode": {"type": "string"}, "date": {"type": "string"}, "status": {"type": "string"}, "amountPrepaidLocale": {"type": "number", "format": "decimal"}, "amountPrepaid": {"type": "number", "format": "decimal"}, "paymentRequestCollectionBatchId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "amountLocale": {"type": "string"}, "amount": {"type": "string"}, "amountVatLocale": {"type": "string"}, "amountVat": {"type": "string"}}, "type": "object"}, "clientAccountUpdate": {"properties": {"customPaymentReferenceSettings": {"type": "boolean", "example": false}, "pledgeSettingEnabled": {"type": "boolean", "example": false}, "pledgeSettingLimit": {"type": "number", "format": "float", "example": 0.0}, "pledgeSettingPercentage": {"type": "number", "format": "decimal"}}, "type": "object"}, "clientAccount": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "type": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "reservedAmount": {"type": "number", "format": "float", "example": 0.0}, "disposablePayoutAmount": {"type": "number", "format": "float", "example": 0.0}, "disposablePayoutAmountLocale": {"type": "number", "format": "float", "example": 0.0}, "pendingTriggeredPayout": {"type": "boolean", "example": false}, "lastTransactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentReference": {"type": "string"}, "customPaymentReferenceSettings": {"type": "boolean", "example": false}, "pledgeSettingEnabled": {"type": "boolean", "example": false}, "pledgeSettingLimit": {"type": "number", "format": "float", "example": 0.0}, "pledgeSettingPercentage": {"type": "number", "format": "decimal"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "clientAccountCreate": {"required": ["clientId", "currency", "productCode", "type"], "properties": {"clientId": {"type": "string"}, "type": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "serviceProviderCode": {"type": "string"}, "pledgeSettingEnabled": {"type": "boolean", "example": false}, "pledgeSettingLimit": {"type": "number", "format": "float", "example": 0.0}, "pledgeSettingPercentage": {"type": "number", "format": "decimal"}}, "type": "object"}, "clientAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "type": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "balance": {"type": "string"}, "disposablePayoutAmount": {"type": "string"}, "lastTransactionDate": {"type": "string"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "clientAccountTransfer": {"required": ["amount", "bookkeepingDate", "description", "fromClientAccountId", "toClientAccountId", "transactionDate"], "properties": {"fromClientAccountId": {"type": "string"}, "toClientAccountId": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "description": {"type": "string"}}, "type": "object"}, "clientAccountTransactionTransfer": {"required": ["clientAccountTransactionId", "toClientAccountId"], "properties": {"clientAccountTransactionId": {"type": "string"}, "toClientAccountId": {"type": "string"}}, "type": "object"}, "clientAccountPayout": {"required": ["chargeExpressPayout", "express"], "properties": {"express": {"type": "boolean", "example": false}, "chargeExpressPayout": {"type": "boolean", "example": false}}, "type": "object"}, "ClientAccountPayoutResult": {"properties": {"payoutBatchId": {"type": "string"}}, "type": "object"}, "ClientAccountPaymentReferenceSettingsPost": {"required": ["clientAccountId", "prefix"], "properties": {"clientAccountId": {"type": "string"}, "length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "ClientAccountPaymentReferenceSettings": {"required": ["clientAccountId"], "properties": {"id": {"type": "string"}, "clientAccountId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "ClientAccountPaymentReferenceSettingsPut": {"properties": {"length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "ClientAccountPaymentReferenceSettingsSearch": {"properties": {"length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "clientAccountTransaction": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoice": {"$ref": "#/definitions/clientAccountTransactionInvoice"}, "clientAccountId": {"type": "string"}, "clientAccountType": {"type": "string"}, "parentId": {"type": "string"}, "type": {"type": "string"}, "productCode": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "description": {"type": "string"}, "amountOriginalCurrency": {"type": "number", "format": "float", "example": 0.0}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "voucher": {"$ref": "#/definitions/clientAccountTransactionVouchers"}, "vouchers": {"type": "array", "items": {"$ref": "#/definitions/clientAccountTransactionVouchers"}}, "posted": {"type": "boolean", "example": false}, "documents": {"type": "array", "items": {"$ref": "#/definitions/clientAccountTransactionDocument"}}, "paidOut": {"type": "boolean", "example": false}, "payoutTransactionId": {"type": "string"}, "transactionReportId": {"type": "string"}, "transactionReportDocuments": {"type": "array", "items": {"$ref": "#/definitions/clientAccountTransactionDocument"}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "clientAccountTransactionInvoice": {"properties": {"id": {"type": "string"}, "invoiceNumber": {"type": "string"}}, "type": "object"}, "clientAccountTransactionVouchers": {"properties": {"id": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "originalCurrency": {"type": "string"}, "description": {"type": "string"}, "externalInformationBookkeepingFileId": {"type": "string"}, "externalInformationMethod": {"type": "string"}, "externalInformationSeries": {"type": "string"}, "externalInformationId": {"type": "string"}, "externalInformationStatus": {"type": "string"}, "externalInformationAttempts": {"type": "integer", "format": "int", "example": 0}, "externalInformationErrorMessage": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/clientAccountTransactionDocument"}}}, "type": "object"}, "clientAccountTransactionDocument": {"properties": {"type": {"type": "string"}, "fileName": {"type": "string"}}, "type": "object"}, "createClientAccountTransaction": {"required": ["amount", "amountLocale", "bookkeepingDate", "internalBookkeepingAccountId"], "properties": {"clientAccountId": {"type": "string"}, "description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "internalBookkeepingAccountId": {"type": "string"}, "clientBookkeepingAccountId": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "ClientAccountTransactionRequestCreated": {"properties": {"internalRequestId": {"type": "string"}}, "type": "object"}, "clientAccountTransactionSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoice.id": {"type": "string"}, "invoice.invoiceNumber": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountType": {"type": "string"}, "parentId": {"type": "string"}, "type": {"type": "string"}, "productId": {"type": "string"}, "date": {"type": "string"}, "bookkeepingDate": {"type": "string"}, "currency": {"type": "string"}, "voucher.id": {"type": "string"}, "voucher.topic": {"type": "string"}, "voucher.type": {"type": "string"}, "voucher.externalInformationStatus": {"type": "string"}, "posted": {"type": "boolean", "example": false}, "description": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "paidOut": {"type": "boolean", "example": false}, "payoutTransactionId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "ClientBankAccountPost": {"properties": {"paymentAccountId": {"type": "string"}, "clientBankAccountProfileId": {"type": "string"}, "currency": {"type": "string"}, "product": {"type": "string", "example": "INVOICE_FACTORING_LOAN", "enum": ["INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL"]}, "type": {"type": "string", "example": "PAYOUT", "enum": ["PAYOUT", "PAYMENT"]}, "serviceProviderId": {"type": "string"}}, "type": "object"}, "ClientBankAccountRequestCreated": {"properties": {"internalRequestId": {"type": "string"}}, "type": "object"}, "ClientBankAccount": {"properties": {"id": {"type": "string"}, "paymentAccountId": {"type": "string"}, "clientBankAccountProfileId": {"type": "string"}, "currency": {"type": "string"}, "product": {"type": "string", "example": "INVOICE_FACTORING_LOAN", "enum": ["INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL"]}, "type": {"type": "string"}, "serviceProviderId": {"type": "string"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "ClientBankAccountPut": {"properties": {"paymentAccountId": {"type": "string"}, "currency": {"type": "string"}, "product": {"type": "string", "example": "INVOICE_FACTORING_LOAN", "enum": ["INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL"]}, "type": {"type": "string", "example": "PAYOUT", "enum": ["PAYOUT", "PAYMENT"]}, "serviceProviderId": {"type": "string"}}, "type": "object"}, "ClientBankAccountDeleteResponse": {"properties": {"message": {"type": "string"}}, "type": "object"}, "ClientBankAccountSearch": {"properties": {"clientBankAccountProfileId": {"type": "string"}, "currency": {"type": "string"}, "product": {"type": "string"}, "type": {"type": "string"}, "serviceProviderId": {"type": "string"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "ClientBankAccountProfilePost": {"properties": {"clientId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "clientBankAccount": {"type": "array", "items": {"$ref": "#/definitions/ClientBankAccountPost"}}}, "type": "object"}, "ClientBankAccountProfileRequestsCreated": {"properties": {"id": {"type": "string"}, "internalRequestIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ClientBankAccountProfile": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "clientBankAccount": {"type": "array", "items": {"$ref": "#/definitions/ClientBankAccount"}}}, "type": "object"}, "ClientBankAccountProfilePut": {"properties": {"enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ClientBankAccountProfileRequestCreated": {"properties": {"internalRequestId": {"type": "string"}}, "type": "object"}, "ClientBankAccountProfileSearch": {"properties": {"enabled": {"type": "string"}}, "type": "object"}, "ClientFinancialPricePost": {"required": ["enabled", "financialRule", "name"], "properties": {"name": {"type": "string"}, "description": {"type": "string"}, "transferTexts": {"type": "array", "items": {"$ref": "#/definitions/client-transfer-text"}}, "financialRule": {"$ref": "#/definitions/ClientFinancialRule"}, "clientCreditStatus": {"type": "array", "items": {"$ref": "#/definitions/ClientFinancialPriceCreditStatus"}}, "clientCreditStatusGlobal": {"$ref": "#/definitions/ClientFinancialPriceTemplateCreditStatusGlobal"}, "baseInterestSettings": {"$ref": "#/definitions/BaseInterestSettingsFields"}, "id": {"type": "integer", "format": "int", "example": 0}, "isDefault": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "logotypeDocumentFileName": {"type": "string"}, "engineRule": {"$ref": "#/definitions/EngineRule"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "client-transfer-text": {"required": ["invoiceType", "languageId", "productId", "serviceProviderCode", "text"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "clientFinancialPriceTemplateId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceType": {"type": "string"}, "productId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "languageId": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "text": {"type": "string"}, "createdBy": {"type": "string"}, "createdDate": {"type": "string"}, "updatedBy": {"type": "string"}, "updatedDate": {"type": "string"}}, "type": "object"}, "ClientFinancialRule": {"properties": {"id": {"type": "string"}, "allowFactoring": {"type": "boolean", "default": true, "example": false}, "approveBelow": {"type": "number", "format": "float", "example": 0.0}, "manualVerificationRate": {"type": "integer", "format": "int", "example": 0}, "maxAllowedCollectionLedgerLocaleAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedOverdrawnAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedExpiredLedgerLocaleAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedDayCount": {"type": "integer", "format": "int", "example": 0}, "maxAllowedInsuranceAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedDisposableCredit": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedUsedAmount": {"type": "number", "format": "float", "example": 0.0}, "invoiceMaxAmountLocale": {"type": "number", "format": "float", "example": 0.0}, "annualTurnover": {"type": "number", "format": "float", "example": 0.0}, "acceptedInvoiceAmountSize": {"type": "integer", "format": "int", "example": 0}, "expiredInvoiceOverdue": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientFinancialPriceCreditStatus": {"required": ["currency", "productCode", "rate", "rateNoRecourse"], "properties": {"id": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "rate": {"type": "number", "format": "float", "example": 0.0}, "rateNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "limit": {"type": "integer", "format": "int", "default": 0, "example": 0}, "limitNoRecourse": {"type": "integer", "format": "int", "default": 0, "example": 0}}, "type": "object"}, "ClientFinancialPriceTemplateCreditStatusGlobal": {"properties": {"id": {"type": "string"}, "limit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "BaseInterestSettingsFields": {"properties": {"lateInterest": {"type": "boolean", "example": false}, "financingFee": {"type": "boolean", "example": false}, "financingExpiredInterestFee": {"type": "boolean", "example": false}, "financingOverdrawnInterestFee": {"type": "boolean", "example": false}, "financingInvoiceRecourseInterest": {"type": "boolean", "example": false}, "financingInvoiceCreditInterest": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRule": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "name": {"type": "string"}, "templateVersion": {"type": "integer", "format": "int", "example": 0}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "onSuccess": {"type": "string"}, "onFail": {"type": "string"}, "criteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleCriteriaRef"}}, "setting": {"$ref": "#/definitions/engine_rule_setting"}, "actionOnSuccess": {"type": "string", "example": "ADD_RECOURSE", "enum": ["ADD_RECOURSE", "REMOVE_RECOURSE"]}}, "type": "object"}, "EngineRuleCriteriaRef": {"properties": {"id": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "isSystemCheck": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "leftHandValueIsAction": {"type": "boolean", "example": false}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}, "parentId": {"type": "string"}}, "type": "object"}, "engine_rule_setting": {"properties": {"id": {"type": "string", "readOnly": true}, "engineRuleId": {"type": "string", "readOnly": true}, "validateCreditInvoices": {"type": "boolean", "default": true, "example": false}, "createdDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClientFinancialPrice": {"required": ["enabled", "financialRule", "name"], "properties": {"name": {"type": "string"}, "description": {"type": "string"}, "priceLists": {"$ref": "#/definitions/clientFinancialPriceList"}, "transferTexts": {"type": "array", "items": {"$ref": "#/definitions/client-transfer-text"}}, "financialRule": {"$ref": "#/definitions/ClientFinancialRule"}, "clientCreditStatus": {"type": "array", "items": {"$ref": "#/definitions/ClientFinancialPriceCreditStatus"}}, "clientCreditStatusGlobal": {"$ref": "#/definitions/ClientFinancialPriceTemplateCreditStatusGlobal"}, "baseInterestSettings": {"$ref": "#/definitions/BaseInterestSettingsFields"}, "id": {"type": "integer", "format": "int", "example": 0}, "isDefault": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "logotypeDocumentFileName": {"type": "string"}, "engineRule": {"$ref": "#/definitions/EngineRule"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "clientFinancialPriceList": {"properties": {"SEK": {"type": "string"}, "EUR": {"type": "string"}, "USD": {"type": "string"}, "NOK": {"type": "string"}, "DKK": {"type": "string"}, "GBP": {"type": "string"}, "CHF": {"type": "string"}, "PLN": {"type": "string"}}, "type": "object"}, "ClientFinancialPriceTemplateList": {"required": ["enabled", "name"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "isDefault": {"type": "boolean", "example": false}, "name": {"type": "string"}, "description": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "logotypeDocumentFileName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClientFinancialPriceTemplateUpdate": {"properties": {"name": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "ClientFinancialPriceTemplateEnabled": {"required": ["enabled"], "properties": {"enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ClientFinancialPriceTemplate": {"required": ["description", "enabled", "name"], "properties": {"name": {"type": "string"}, "description": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "logotypeDocumentFileName": {"type": "string"}, "engineRuleId": {"type": "string"}}, "type": "object"}, "clientFinancialPriceClientPut": {"required": ["clients"], "properties": {"clients": {"type": "array", "items": {"$ref": "#/definitions/clientFinancialPriceTemplateClients"}}, "includeProfileClients": {"type": "boolean", "description": "Allow clients that currently follow an engine rule profile to be included. Without it they are rejected, so a template push cannot replace a profile rule unintentionally.", "default": false, "example": false}}, "type": "object"}, "clientFinancialPriceTemplateClients": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "clientFinancialPriceClientGet": {"properties": {"templateEngineRuleVersion": {"type": "string"}, "clients": {"type": "array", "items": {"$ref": "#/definitions/clientFinancialPriceClient"}}}, "type": "object"}, "clientFinancialPriceClient": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "engineRuleId": {"type": "string"}, "engineRuleVersion": {"type": "string"}, "engineRuleSource": {"type": "string"}, "engineRuleProfileId": {"type": "string"}, "engineRuleProfileName": {"type": "string"}}, "type": "object"}, "clientFinancialPriceClientHistory": {"properties": {"id": {"type": "string"}, "templateId": {"type": "string"}, "data": {"type": "string", "format": "dict"}, "status": {"type": "string"}, "result": {"type": "string"}, "timeStarted": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "timeFinished": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClientFinancingLimits": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "agreementCurrency": {"type": "string"}, "individualLimitAgreement": {"$ref": "#/definitions/FinancingLimitAgreement"}, "recourseLimitAgreement": {"$ref": "#/definitions/FinancingLimitAgreement"}, "groupLimitsLocale": {"type": "array", "items": {"$ref": "#/definitions/FinancingGroupLimitLocale"}}, "groupLimitsAgreement": {"type": "array", "items": {"$ref": "#/definitions/FinancingGroupLimitAgreement"}}}, "type": "object"}, "FinancingLimitAgreement": {"properties": {"total": {"type": "integer", "format": "int", "example": 0}, "used": {"type": "number", "format": "float", "example": 0.0}, "available": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "FinancingGroupLimitLocale": {"properties": {"groupId": {"type": "integer", "format": "int", "example": 0}, "label": {"type": "string"}, "total": {"type": "integer", "format": "int", "example": 0}, "used": {"type": "number", "format": "float", "example": 0.0}, "available": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "FinancingGroupLimitAgreement": {"properties": {"groupId": {"type": "integer", "format": "int", "example": 0}, "label": {"type": "string"}, "total": {"type": "number", "format": "float", "example": 0.0}, "used": {"type": "number", "format": "float", "example": 0.0}, "available": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "ClientGroupPut": {"required": ["name"], "properties": {"name": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "limitLocale": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientGroupWithStats": {"required": ["id", "name"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "numberOfMembers": {"type": "integer", "format": "int", "example": 0}, "limitLocale": {"type": "integer", "format": "int", "example": 0}, "limitLocaleUsed": {"type": "number", "format": "decimal"}, "limitLocaleDisposable": {"type": "number", "format": "decimal"}}, "type": "object"}, "ClientGroupPost": {"required": ["name"], "properties": {"name": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "limitLocale": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientGroup": {"required": ["id", "name"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "numberOfMembers": {"type": "integer", "format": "int", "example": 0}, "limitLocale": {"type": "integer", "format": "int", "example": 0}, "limitLocaleUsed": {"type": "number", "format": "decimal"}, "limitLocaleDisposable": {"type": "number", "format": "decimal"}}, "type": "object"}, "ClientGroupSearch": {"required": ["id", "name"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "ClientGroupClientPost": {"required": ["clientId"], "properties": {"clientId": {"type": "string"}}, "type": "object"}, "ClientGroupClient": {"required": ["clientGroupId", "clientId"], "properties": {"clientGroupId": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}}, "type": "object"}, "ClientProductPut": {"properties": {"enabled": {"type": "boolean", "example": false}, "recourse": {"type": "boolean", "example": false}, "recourseDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientProduct": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "productCode": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "applied": {"type": "boolean", "example": false}, "appliedStatus": {"type": "string"}, "recourse": {"type": "boolean", "example": false}, "recourseDays": {"type": "integer", "format": "int", "example": 0}, "isDefault": {"type": "boolean", "example": false}}, "type": "object"}, "ClientProductSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "productCode": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "applied": {"type": "boolean", "example": false}, "appliedStatus": {"type": "string"}, "recourse": {"type": "boolean", "example": false}, "recourseDays": {"type": "integer", "format": "int", "example": 0}, "isDefault": {"type": "boolean", "example": false}}, "type": "object"}, "clientUserList": {"properties": {"id": {"type": "string"}, "userId": {"type": "string"}, "clientId": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "ClientUserDeleteResponse": {"properties": {"message": {"type": "string", "description": "Result message for the client user deletion request."}}, "type": "object"}, "ClientUserSearch": {"properties": {"userId": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "CollectionExternalSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "status": {"type": "string"}, "serviceProviderId": {"type": "string"}, "invoiceId": {"type": "string"}, "clientId": {"type": "string"}, "createdDate": {"type": "string"}, "updatedDate": {"type": "string"}, "exportedDate": {"type": "string"}, "completedDate": {"type": "string"}, "recalledDate": {"type": "string"}}, "type": "object"}, "CollectionExternal": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "serviceProviderId": {"type": "string"}, "externalExportId": {"type": "string"}, "externalCompleteId": {"type": "string"}, "invoiceId": {"type": "string"}, "clientId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "completedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "recalledDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "CollectionExternalExport": {"required": ["externalExportId"], "properties": {"externalExportId": {"type": "string"}}, "type": "object"}, "CollectionExternalExported": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "externalExportId": {"type": "string"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "CollectionExternalComplete": {"required": ["externalCompleteId"], "properties": {"externalCompleteId": {"type": "string"}}, "type": "object"}, "CollectionExternalReject": {"required": ["message"], "properties": {"code": {"type": "string", "description": "The agency's error code, if it has one."}, "message": {"type": "string", "description": "The agency's reason for rejecting the case."}}, "type": "object"}, "CollectionExternalRejected": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "webhookRequestId": {"type": "string"}, "webhookRequestStatus": {"type": "string"}, "lastError": {"type": "string"}}, "type": "object"}, "CollectionExternalWebhookRequestSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "status": {"type": "string"}, "collectionExternalId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "webhookType": {"type": "string"}, "createdDate": {"type": "string"}, "updatedDate": {"type": "string"}}, "type": "object"}, "CollectionExternalWebhookRequestFull": {"properties": {"id": {"type": "string"}, "kind": {"type": "string"}, "webhookId": {"type": "string"}, "webhookType": {"type": "string"}, "collectionExternalId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "invoiceFinancialEventId": {"type": "string"}, "action": {"type": "string"}, "status": {"type": "string"}, "attempts": {"type": "integer", "format": "int", "example": 0}, "lastError": {"type": "string"}, "skipReason": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "CollectionExternalWebhookRequest": {"properties": {"id": {"type": "string"}, "status": {"type": "string"}}, "type": "object"}, "createContentUserSetting": {"required": ["settingJson", "type", "userId"], "properties": {"userId": {"type": "string"}, "type": {"type": "string"}, "settingJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "contentUserSetting": {"properties": {"id": {"type": "string"}, "userId": {"type": "string"}, "type": {"type": "string"}, "settingJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "updateContentUserSetting": {"properties": {"userId": {"type": "string"}, "type": {"type": "string"}, "settingJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "CreditDecisionStatusPost": {"required": ["description", "status"], "properties": {"status": {"type": "string", "description": "The name of the status."}, "description": {"type": "string", "description": "Description of the status."}, "collapsed": {"type": "boolean", "description": "Whether the status is collapsed in the UI.", "example": false}, "enabled": {"type": "boolean", "description": "Whether the status is enabled.", "example": false}, "excludeFromEngineRuleValidation": {"type": "boolean", "description": "Whether the status is excluded from engine rule validation", "example": false}, "columnGrouping": {"type": "string", "description": "Decides what grouping to use for this status.", "example": "STANDARD", "enum": ["STANDARD", "EXTERNAL_FINANCING"]}}, "type": "object"}, "CreditDecisionStatus": {"properties": {"id": {"type": "integer", "format": "int", "description": "The unique identifier of a credit decision status.", "example": 0}, "status": {"type": "string", "description": "The name of the status."}, "description": {"type": "string", "description": "Description of the status."}, "index": {"type": "integer", "format": "int", "description": "The index of the status.", "example": 0}, "collapsed": {"type": "boolean", "description": "Whether the status is collapsed in the UI.", "example": false}, "enabled": {"type": "boolean", "description": "Whether the status is enabled.", "example": false}, "excludeFromEngineRuleValidation": {"type": "boolean", "description": "Whether the status is excluded from engine rule validation", "example": false}, "columnGrouping": {"type": "string", "description": "Decides what grouping to use for this status.", "example": "STANDARD", "enum": ["STANDARD", "EXTERNAL_FINANCING"]}, "creditDecisionGroupings": {"type": "array", "items": {"$ref": "#/definitions/CreditDecisionGrouping"}}}, "type": "object"}, "CreditDecisionGrouping": {"properties": {"id": {"type": "integer", "format": "int", "description": "The unique identifier of a credit decision grouping.", "example": 0}, "code": {"type": "string", "description": "The code of the grouping."}, "description": {"type": "string", "description": "Description of the grouping."}}, "type": "object"}, "CreditDecisionStatusBulkUpdatePut": {"required": ["creditDecisionStatuses"], "properties": {"creditDecisionStatuses": {"type": "array", "items": {"$ref": "#/definitions/CreditDecisionStatusBulkUpdate"}}, "runEngineRuleSetting": {"type": "boolean", "example": false}}, "type": "object"}, "CreditDecisionStatusBulkUpdate": {"required": ["id", "index"], "properties": {"description": {"type": "string", "description": "Description of the status."}, "index": {"type": "integer", "format": "int", "description": "The index of the status.", "example": 0}, "collapsed": {"type": "boolean", "description": "Whether the status is collapsed in the UI.", "example": false}, "enabled": {"type": "boolean", "description": "Whether the status is enabled.", "example": false}, "excludeFromEngineRuleValidation": {"type": "boolean", "description": "Whether the status is excluded from engine rule validation", "example": false}, "id": {"type": "integer", "format": "int", "description": "The unique identifier of a credit decision status.", "example": 0}}, "type": "object"}, "CreditDecisionStatusPut": {"properties": {"description": {"type": "string", "description": "Description of the status."}, "index": {"type": "integer", "format": "int", "description": "The index of the status.", "example": 0}, "collapsed": {"type": "boolean", "description": "Whether the status is collapsed in the UI.", "example": false}, "enabled": {"type": "boolean", "description": "Whether the status is enabled.", "example": false}, "excludeFromEngineRuleValidation": {"type": "boolean", "description": "Whether the status is excluded from engine rule validation", "example": false}}, "type": "object"}, "CreditDecisionStatusBulkUpdateSearch": {"properties": {"enabled": {"type": "string", "description": "Whether the status is enabled."}}, "type": "object"}, "creditInsuranceClientDebtorPost": {"required": ["amount", "debtorId", "serviceProviderCode"], "properties": {"serviceProviderCode": {"type": "string"}, "debtorId": {"type": "string"}, "amount": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "creditInsuranceClientDebtor": {"properties": {"id": {"type": "string"}, "serviceProviderId": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "systemDebtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "amount": {"type": "number", "format": "decimal"}, "amountUsed": {"type": "number", "format": "decimal"}, "insuranceStatus": {"type": "string"}, "applicationAmount": {"type": "number", "format": "decimal"}, "insuranceCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "creditInsuranceClientDebtorRequests": {"properties": {"amountInsured": {"type": "number", "format": "decimal"}, "amountRequested": {"type": "number", "format": "decimal"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "comment": {"type": "string"}, "status": {"type": "string"}, "metadata": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "creditInsuranceClientDebtorHistory": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "serviceProviderName": {"type": "string"}, "systemDebtorIdentificationNumber": {"type": "string"}, "clientIdentificationNumber": {"type": "string"}, "amountInsured": {"type": "number", "format": "decimal"}, "amountRequested": {"type": "number", "format": "decimal"}, "comment": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "status": {"type": "string"}, "pending": {"type": "boolean", "example": false}, "applicationDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "approvalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "requestId": {"type": "integer", "format": "int", "example": 0}, "createdBy": {"type": "string"}, "updatedBy": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "searchCreditInsuranceClientDebtorHistory": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "debtorId": {"type": "string"}, "creditInsuranceClientSystemDebtorId": {"type": "string"}, "serviceProviderName": {"type": "string"}, "status": {"type": "string"}, "pending": {"type": "boolean", "example": false}, "applicationDate": {"type": "string"}, "approvalDate": {"type": "string"}, "createdBy": {"type": "string"}}, "type": "object"}, "searchCreditClientDebtorInsurance": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "clientId": {"type": "string"}, "systemDebtorIdentificationNumber": {"type": "string"}, "debtorId": {"type": "string"}}, "type": "object"}, "creditInsurance": {"required": ["amountRequested", "countryCode", "currency", "identificationNumber", "serviceProviderCode"], "properties": {"serviceProviderCode": {"type": "string"}, "identificationNumber": {"type": "string"}, "amountRequested": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "comment": {"type": "string"}, "externalId": {"type": "string"}, "vatNumber": {"type": "string"}, "name": {"type": "string"}, "phone": {"type": "string"}, "address": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "creditInsuranceHistory": {"required": ["amount", "identificationNumber", "serviceProviderName"], "properties": {"serviceProviderName": {"type": "string"}, "identificationNumber": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "searchCreditInsurance": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "identificationNumber": {"type": "string"}}, "type": "object"}, "CreditInsuranceModel": {"properties": {"id": {"type": "string"}, "serviceProviderId": {"type": "string"}, "identificationNumber": {"type": "string"}, "externalId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "amounts": {"type": "array", "items": {"$ref": "#/definitions/amounts"}}, "insuranceStatus": {"type": "string"}}, "type": "object"}, "amounts": {"properties": {"currency": {"type": "string"}, "amount_requested": {"type": "integer", "format": "int", "example": 0}, "amount_insured": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "searchCompany": {"required": ["countryCode", "identificationNumber", "serviceProviderCode"], "properties": {"serviceProviderCode": {"type": "string"}, "identificationNumber": {"type": "string"}, "vatNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "search": {"properties": {"serviceProviderCode": {"type": "string"}, "identificationNumber": {"type": "string"}, "vatNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "matches": {"type": "string"}}, "type": "object"}, "creditMonitoringPost": {"required": ["serviceProviderCode"], "properties": {"serviceProviderCode": {"type": "string"}}, "type": "object"}, "returnCreditMonitoring": {"properties": {"serviceProviderCode": {"type": "string"}, "identificationNumber": {"type": "string"}, "countryCode": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "metadata": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "creditMonitoringEventsResponse": {"properties": {"serviceProviderCode": {"type": "string"}, "identificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "metadata": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "CreditMonitoringSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "enabled": {"type": "string"}, "serviceProviderId": {"type": "string"}, "identificationNumber": {"type": "string"}, "createdDate": {"type": "string"}}, "type": "object"}, "creditMonitoring": {"properties": {"id": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "serviceProviderId": {"type": "string"}, "identificationNumber": {"type": "string"}, "creditMonitoringEvents": {"$ref": "#/definitions/creditMonitoringEvents"}, "metadata": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "creditMonitoringEvents": {"properties": {"metadata": {"type": "string", "format": "dict", "description": "Credit monitoring results", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClientCreditStatusUpdate": {"properties": {"limit": {"type": "integer", "format": "int", "example": 0}, "limitNoRecourse": {"type": "integer", "format": "int", "example": 0}, "rate": {"type": "number", "format": "float", "example": 0.0}, "rateNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "limitValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitNoRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "ClientCreditStatus": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "limit": {"type": "integer", "format": "int", "example": 0}, "limitNoRecourse": {"type": "integer", "format": "int", "example": 0}, "rate": {"type": "number", "format": "float", "example": 0.0}, "rateNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalPending": {"type": "number", "format": "float", "example": 0.0}, "totalPendingNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalDisposable": {"type": "number", "format": "float", "example": 0.0}, "totalDisposableNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalUsed": {"type": "number", "format": "float", "example": 0.0}, "totalUsedNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalSecurity": {"type": "number", "format": "float", "example": 0.0}, "totalOverdrawn": {"type": "number", "format": "float", "example": 0.0}, "totalRecoursed": {"type": "number", "format": "float", "example": 0.0}, "totalBalance": {"type": "number", "format": "float", "example": 0.0}, "limitValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitNoRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "ClientCreditStatusUpdateMultiple": {"properties": {"clientCreditStatus": {"type": "array", "items": {"$ref": "#/definitions/ClientCreditStatusUpdateTemp"}}}, "type": "object"}, "ClientCreditStatusUpdateTemp": {"required": ["id"], "properties": {"limit": {"type": "integer", "format": "int", "example": 0}, "limitNoRecourse": {"type": "integer", "format": "int", "example": 0}, "rate": {"type": "number", "format": "float", "example": 0.0}, "rateNoRecourse": {"type": "number", "format": "float", "example": 0.0}, "limitValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitNoRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "id": {"type": "string"}}, "type": "object"}, "ClientCreditStatusSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}}, "type": "object"}, "ClientCreditStatusGlobalUpdate": {"properties": {"limit": {"type": "integer", "format": "int", "example": 0}, "limitValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitWithRecourse": {"type": "integer", "format": "int", "example": 0}, "limitWithRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitPledge": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientCreditStatusGlobal": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "currency": {"type": "string"}, "limit": {"type": "integer", "format": "int", "example": 0}, "limitValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitWithRecourse": {"type": "integer", "format": "int", "example": 0}, "limitWithRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitPledge": {"type": "integer", "format": "int", "example": 0}, "totalPending": {"type": "number", "format": "float", "example": 0.0}, "totalDisposable": {"type": "number", "format": "float", "example": 0.0}, "totalUsed": {"type": "number", "format": "float", "example": 0.0}, "totalWithRecoursePending": {"type": "number", "format": "float", "example": 0.0}, "totalWithRecourseDisposable": {"type": "number", "format": "float", "example": 0.0}, "totalWithRecourseUsed": {"type": "number", "format": "float", "example": 0.0}, "totalNoRecoursePending": {"type": "number", "format": "float", "example": 0.0}, "totalNoRecourseUsed": {"type": "number", "format": "float", "example": 0.0}, "totalRecoursed": {"type": "number", "format": "float", "example": 0.0}, "totalBalance": {"type": "number", "format": "float", "example": 0.0}, "totalDisposablePledge": {"type": "number", "format": "float", "example": 0.0}, "totalUsedPledge": {"type": "number", "format": "float", "example": 0.0}, "totalServiceBalance": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "ClientCreditStatusGlobalSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "DistributionProfile": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "smsEnabled": {"type": "boolean", "example": false}, "distributionInterestInvoiceEnabled": {"type": "boolean", "example": false}, "distributionInterestInvoiceCode": {"type": "string", "example": "INHERIT", "enum": ["INHERIT", "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX"]}, "channels": {"type": "array", "items": {"$ref": "#/definitions/DistributionProfileChannel"}}}, "type": "object"}, "DistributionProfileChannel": {"properties": {"type": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "attempts": {"type": "integer", "format": "int", "example": 0}, "priority": {"type": "integer", "format": "int", "example": 0}, "serviceProviderId": {"type": "string"}, "useOwnAgreement": {"type": "boolean", "example": false}, "agreementNumber": {"type": "string"}}, "type": "object"}, "DistributionProfileSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "smsEnabled": {"type": "boolean", "example": false}, "distributionInterestInvoiceEnabled": {"type": "boolean", "example": false}, "distributionInterestInvoiceCode": {"type": "string", "example": "INHERIT", "enum": ["INHERIT", "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX"]}, "channels.type": {"type": "string"}, "channels.enabled": {"type": "string"}, "channels.attempts": {"type": "string"}, "channels.priority": {"type": "string"}}, "type": "object"}, "DistributionModel": {"properties": {"id": {"type": "string"}, "distributionId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "businessLoanId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DistributionDocuments"}}, "topic": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "REMINDER", "PAYMENT", "INVOICE_COPY", "CLIENT", "SIGNATURE"]}, "type": {"type": "string", "example": "INVOICE_CLOSED_NOTIFICATION", "enum": ["INVOICE_CLOSED_NOTIFICATION", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "COLLECTION", "COLLECTION_NOTIFICATION", "COLLECTION_CLAIM", "PURCHASE", "COLLECTION_GUARANTOR", "REMINDER", "PART_PAYMENT_NOTIFICATION", "DELAYED_PENALTY_FEE", "MEMBERSHIP_FEE", "TRANSACTION_REPORT", "TRANSACTION_REPORT_UNPLACED", "INVOICE_SETTLEMENT_NOTE_REPORT", "FACTORING_SETTLEMENT_NOTE_REPORT", "BUSINESS_LOAN_SETTLEMENT_NOTE_REPORT", "OVERDRAWN_SETTLEMENT_NOTE_REPORT", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "DELIVERY_NOTIFICATION", "SIGNATURE_LINK", "SIGNATURE_CODE", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "PAYMENT_TRANSACTION_CLIENT_REPORT", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "BOOKED_INVOICE_REPORT", "COLLECTION_BATCH_CLOSED", "INTEREST_INVOICE", "SCHEDULED_QUERY_REPORT", "SCHEDULED_BOOKKEEPING_FILES"]}, "channel": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "status": {"type": "string", "example": "PROCESSING", "enum": ["PROCESSING", "PROCESSING_FAILED", "PENDING", "SENDING", "EXPORTED", "FAILED_FALLBACK", "FAILED", "DISTRIBUTED", "RECEIVED_BY_THIRD_PARTY", "SKIPPED"]}, "email": {"type": "string"}, "phone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "options": {"$ref": "#/definitions/DistributionOptions"}}, "type": "object"}, "DistributionDocuments": {"properties": {"id": {"type": "string"}}, "type": "object"}, "DistributionOptions": {"properties": {"expressDelivery": {"type": "boolean", "example": false}, "colorPrint": {"type": "boolean", "example": false}}, "type": "object"}, "DistributionSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "distributionId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "businessLoanId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "channel": {"type": "string"}, "status": {"type": "string"}}, "type": "object"}, "InputDistributionEvent": {"required": ["collection_batch_ledger_event_ids"], "properties": {"collection_batch_ledger_event_ids": {"type": "array", "items": {"$ref": "#/definitions/collection_batch_ledger_event_id"}}}, "type": "object"}, "collection_batch_ledger_event_id": {"properties": {"id": {"type": "string"}}, "type": "object"}, "DistributionEventModelCopy": {"properties": {"id": {"type": "string"}, "distributionId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "businessLoanId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DistributionDocuments"}}, "topic": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "REMINDER", "PAYMENT", "INVOICE_COPY", "CLIENT", "SIGNATURE"]}, "type": {"type": "string", "example": "INVOICE_CLOSED_NOTIFICATION", "enum": ["INVOICE_CLOSED_NOTIFICATION", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "COLLECTION", "COLLECTION_NOTIFICATION", "COLLECTION_CLAIM", "PURCHASE", "COLLECTION_GUARANTOR", "REMINDER", "PART_PAYMENT_NOTIFICATION", "DELAYED_PENALTY_FEE", "MEMBERSHIP_FEE", "TRANSACTION_REPORT", "TRANSACTION_REPORT_UNPLACED", "INVOICE_SETTLEMENT_NOTE_REPORT", "FACTORING_SETTLEMENT_NOTE_REPORT", "BUSINESS_LOAN_SETTLEMENT_NOTE_REPORT", "OVERDRAWN_SETTLEMENT_NOTE_REPORT", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "DELIVERY_NOTIFICATION", "SIGNATURE_LINK", "SIGNATURE_CODE", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "PAYMENT_TRANSACTION_CLIENT_REPORT", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "BOOKED_INVOICE_REPORT", "COLLECTION_BATCH_CLOSED", "INTEREST_INVOICE", "SCHEDULED_QUERY_REPORT", "SCHEDULED_BOOKKEEPING_FILES"]}, "channel": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "status": {"type": "string", "example": "PROCESSING", "enum": ["PROCESSING", "PROCESSING_FAILED", "PENDING", "SENDING", "EXPORTED", "FAILED_FALLBACK", "FAILED", "DISTRIBUTED", "RECEIVED_BY_THIRD_PARTY", "SKIPPED"]}, "email": {"type": "string"}, "phone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "options": {"$ref": "#/definitions/DistributionOptions"}, "eventId": {"type": "string"}}, "type": "object"}, "UpdateDistributionStatus": {"required": ["id", "status"], "properties": {"id": {"type": "string"}, "status": {"type": "string", "example": "RECEIVED_BY_THIRD_PARTY", "enum": ["RECEIVED_BY_THIRD_PARTY", "EXPORTED", "FAILED"]}}, "type": "object"}, "retryDistribution": {"properties": {"setOriginDistributionAsFailed": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "DistributionEvent": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "distributionId": {"type": "string"}, "type": {"type": "string"}, "email": {"type": "string"}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "error": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "DistributionEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "distributionId": {"type": "string"}, "type": {"type": "string"}, "email": {"type": "string"}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "error": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "DistributionEventRequestEmail": {"required": ["email", "event", "timestamp"], "properties": {"sg_message_id": {"type": "string"}, "email": {"type": "string"}, "timestamp": {"type": "integer", "format": "int", "example": 0}, "smtp-id": {"type": "string"}, "event": {"type": "string"}, "external_id": {"type": "string"}, "api_host": {"type": "string"}, "reason": {"type": "string"}}, "type": "object"}, "CreateDistributionEvent": {"required": ["externalId", "type"], "properties": {"externalId": {"type": "string"}, "type": {"type": "string", "example": "RECEIVED", "enum": ["RECEIVED", "PRINTED", "ENVELOPED", "DELIVERED", "OPENED", "CLICKED", "FAILED"]}, "error": {"type": "string"}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "reason": {"type": "string", "description": "Why the document could not be delivered, only with type FAILED. RETURNED_MAIL and INVALID_ADDRESS on a reminder make no new attempt or channel, and on a booked reminder also open an invalid-address errand and pause the invoice.", "example": "RETURNED_MAIL", "enum": ["RETURNED_MAIL", "INVALID_ADDRESS", "OTHER"]}}, "type": "object"}, "Document": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "voucherId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "topic": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "REMINDER", "PAYOUT", "PAYMENT", "COMPLIANCE", "BOOKKEEPING", "DISTRIBUTION", "INVOICE_FILE", "SETTLEMENT_ACCOUNT", "ERP", "PDF", "BRAND", "CONNECTED_FILE", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_COLLECTION", "COLLECTION_BATCH_COLLECTION_CLAIM", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_FILE", "SYSTEM_DEBTOR_REPORT", "CREDIT_CHECK", "SIGNATURE_REQUEST", "TEMPLATE", "CLIENT_INVOICE_REQUEST", "ENFORCEMENT", "GDPR", "REPORT_ARCHIVE", "USER", "QUERY_REPORT_EXPORT"]}, "type": {"type": "string", "example": "CLIENT_LOGOTYPE", "enum": ["CLIENT_LOGOTYPE", "ERP_LOGOTYPE", "INVOICE_PREVIEW", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "INTEREST_INVOICE", "INVOICE_ATTACHMENT", "CLIENT_ATTACHMENT", "CLIENT_INVOICE_REQUEST_ATTACHMENT", "INVOICE_FULL", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "REMINDER_ATTACHMENT", "COLLECTION", "COLLECTION_GUARANTOR", "COLLECTION_ATTACHMENT", "DELAYED_PENALTY_FEE", "DELAYED_PENALTY_FEE_ATTACHMENT", "DELAYED_PAYMENT", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "PAYOUT_FILE", "PAYMENT_FILE", "PAYMENT_TRANSACTION_SPECIFICATION_FILE", "VOUCHER", "BOOKKEEPING_FILE", "BOOKKEEPING_FILE_REPORT", "ELECTRONIC_INVOICE", "INVOICE_FILE", "BILL", "FONT_GENERAL", "FONT_MACHINE_INSTRUCTIONS", "IMAGE_LOGO", "IMAGE_LOGO_SHORT", "IMAGE_PAYMENT_TALON", "IMAGE_QR_CODE_BACKGROUND", "IMAGE_QR_CODE", "SETTLEMENT_SPECIFICATION", "SETTLEMENT_SPECIFICATION_XML", "SETTLEMENT_SPECIFICATION_XLSX", "CLIENT_ACCOUNT_SPECIFICATION", "SETTLEMENT_INVOICE_SERVICE", "SETTLEMENT_INVOICE_SERVICE_XML", "SETTLEMENT_INVOICE_SERVICE_XLSX", "SETTLEMENT_BUSINESS_LOAN", "INVOICE_AD", "SETTLEMENT_TRANSACTION", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_REPORT_PREVIEW", "COLLECTION_BATCH_COLLECTION", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "INVOICE_SIGNED", "COLLECTION_PAYMENT_INJUNCTION", "PAYMENT_INJUNCTION_MANUAL_REQUEST", "PAYMENT_INJUNCTION_MANUAL_INFORMATION", "COLLECTION_ENFORCEMENT_ORDER", "WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_PLAN_WARNING_EXECUTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT", "TEMPLATE_LOGOTYPE", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "INVOICE_EXTRACT", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "COLLECTION_BATCH_PART_PAYMENT_PLAN", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER", "PURCHASE", "PURCHASE_FILE", "CLIENT_PORTAL_LOGOTYPE", "CLIENT_PORTAL_FAVICON", "DEBTOR_PORTAL_LOGOTYPE", "DEBTOR_PORTAL_FAVICON", "DEBTOR_PORTAL_BACKGROUND", "DEBTOR_PORTAL_LOGIN_BACKGROUND", "ADMIN_LOGOTYPE", "ADMIN_FAVICON", "PDF_LOGOTYPE", "EMAIL_LOGOTYPE", "EMAIL_TEMPLATE_IMAGE", "PART_PAYMENT_PLAN_SEKKI", "PART_PAYMENT_PLAN_TERMS", "USER_PROFILE_IMAGE", "CLIENT_AGREEMENT", "INVOICE_AGREEMENT", "DEBTOR_AGREEMENT", "OTHER", "GDPR_RESULT_FILE", "QUERY_REPORT_EXPORT_FILE", "QUERY_REPORT_EXPORT_SELECTION", "CONNECTED_FILE", "SYSTEM_DEBTOR_REPORT_PREVIEW", "PAYMENT_RECEIPT", "DEBTOR_CREDIT_CHECK", "ENFORCEMENT_DELIVERY_PDF", "PAYMENT_TRANSACTION", "PAYMENT_TRANSACTION_CLIENT_REPORT", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_REQUEST_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_INFORMATION_GUARANTOR", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT_GUARANTOR", "PART_PAYMENT_PLAN_WARNING_EXECUTION_GUARANTOR", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION_GUARANTOR", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER_GUARANTOR", "PAYOUT_BATCH_REPORT", "BUSINESS_LOAN_PART_PAYMENT_PLAN_REMINDER", "BUSINESS_LOAN_PART_PAYMENT_PLAN", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT_REMINDER", "BOOKED_INVOICE_REPORT", "SCHEDULED_QUERY_REPORT", "REPORT_ARCHIVE_UPLOAD"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "DocumentExtendedSearch": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "voucherId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "topic": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "REMINDER", "PAYOUT", "PAYMENT", "COMPLIANCE", "BOOKKEEPING", "DISTRIBUTION", "INVOICE_FILE", "SETTLEMENT_ACCOUNT", "ERP", "PDF", "BRAND", "CONNECTED_FILE", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_COLLECTION", "COLLECTION_BATCH_COLLECTION_CLAIM", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_FILE", "SYSTEM_DEBTOR_REPORT", "CREDIT_CHECK", "SIGNATURE_REQUEST", "TEMPLATE", "CLIENT_INVOICE_REQUEST", "ENFORCEMENT", "GDPR", "REPORT_ARCHIVE", "USER", "QUERY_REPORT_EXPORT"]}, "type": {"type": "string", "example": "CLIENT_LOGOTYPE", "enum": ["CLIENT_LOGOTYPE", "ERP_LOGOTYPE", "INVOICE_PREVIEW", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "INTEREST_INVOICE", "INVOICE_ATTACHMENT", "CLIENT_ATTACHMENT", "CLIENT_INVOICE_REQUEST_ATTACHMENT", "INVOICE_FULL", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "REMINDER_ATTACHMENT", "COLLECTION", "COLLECTION_GUARANTOR", "COLLECTION_ATTACHMENT", "DELAYED_PENALTY_FEE", "DELAYED_PENALTY_FEE_ATTACHMENT", "DELAYED_PAYMENT", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "PAYOUT_FILE", "PAYMENT_FILE", "PAYMENT_TRANSACTION_SPECIFICATION_FILE", "VOUCHER", "BOOKKEEPING_FILE", "BOOKKEEPING_FILE_REPORT", "ELECTRONIC_INVOICE", "INVOICE_FILE", "BILL", "FONT_GENERAL", "FONT_MACHINE_INSTRUCTIONS", "IMAGE_LOGO", "IMAGE_LOGO_SHORT", "IMAGE_PAYMENT_TALON", "IMAGE_QR_CODE_BACKGROUND", "IMAGE_QR_CODE", "SETTLEMENT_SPECIFICATION", "SETTLEMENT_SPECIFICATION_XML", "SETTLEMENT_SPECIFICATION_XLSX", "CLIENT_ACCOUNT_SPECIFICATION", "SETTLEMENT_INVOICE_SERVICE", "SETTLEMENT_INVOICE_SERVICE_XML", "SETTLEMENT_INVOICE_SERVICE_XLSX", "SETTLEMENT_BUSINESS_LOAN", "INVOICE_AD", "SETTLEMENT_TRANSACTION", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_REPORT_PREVIEW", "COLLECTION_BATCH_COLLECTION", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "INVOICE_SIGNED", "COLLECTION_PAYMENT_INJUNCTION", "PAYMENT_INJUNCTION_MANUAL_REQUEST", "PAYMENT_INJUNCTION_MANUAL_INFORMATION", "COLLECTION_ENFORCEMENT_ORDER", "WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_PLAN_WARNING_EXECUTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT", "TEMPLATE_LOGOTYPE", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "INVOICE_EXTRACT", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "COLLECTION_BATCH_PART_PAYMENT_PLAN", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER", "PURCHASE", "PURCHASE_FILE", "CLIENT_PORTAL_LOGOTYPE", "CLIENT_PORTAL_FAVICON", "DEBTOR_PORTAL_LOGOTYPE", "DEBTOR_PORTAL_FAVICON", "DEBTOR_PORTAL_BACKGROUND", "DEBTOR_PORTAL_LOGIN_BACKGROUND", "ADMIN_LOGOTYPE", "ADMIN_FAVICON", "PDF_LOGOTYPE", "EMAIL_LOGOTYPE", "EMAIL_TEMPLATE_IMAGE", "PART_PAYMENT_PLAN_SEKKI", "PART_PAYMENT_PLAN_TERMS", "USER_PROFILE_IMAGE", "CLIENT_AGREEMENT", "INVOICE_AGREEMENT", "DEBTOR_AGREEMENT", "OTHER", "GDPR_RESULT_FILE", "QUERY_REPORT_EXPORT_FILE", "QUERY_REPORT_EXPORT_SELECTION", "CONNECTED_FILE", "SYSTEM_DEBTOR_REPORT_PREVIEW", "PAYMENT_RECEIPT", "DEBTOR_CREDIT_CHECK", "ENFORCEMENT_DELIVERY_PDF", "PAYMENT_TRANSACTION", "PAYMENT_TRANSACTION_CLIENT_REPORT", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_REQUEST_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_INFORMATION_GUARANTOR", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT_GUARANTOR", "PART_PAYMENT_PLAN_WARNING_EXECUTION_GUARANTOR", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION_GUARANTOR", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER_GUARANTOR", "PAYOUT_BATCH_REPORT", "BUSINESS_LOAN_PART_PAYMENT_PLAN_REMINDER", "BUSINESS_LOAN_PART_PAYMENT_PLAN", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT_REMINDER", "BOOKED_INVOICE_REPORT", "SCHEDULED_QUERY_REPORT", "REPORT_ARCHIVE_UPLOAD"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "status": {"type": "string", "example": "CREATED", "enum": ["CREATED", "GENERATED", "PENDING"]}, "debtorId": {"type": "string"}, "identificationNumber": {"type": "string"}, "collectionBatchId": {"type": "string"}, "partInvoiceId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "businessLoanId": {"type": "string"}, "reminderExists": {"type": "boolean", "example": false}, "fileKeyExists": {"type": "boolean", "example": false}, "fileNameExists": {"type": "boolean", "example": false}}, "type": "object"}, "DocumentExtended": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "voucherId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "topic": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "REMINDER", "PAYOUT", "PAYMENT", "COMPLIANCE", "BOOKKEEPING", "DISTRIBUTION", "INVOICE_FILE", "SETTLEMENT_ACCOUNT", "ERP", "PDF", "BRAND", "CONNECTED_FILE", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_COLLECTION", "COLLECTION_BATCH_COLLECTION_CLAIM", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_FILE", "SYSTEM_DEBTOR_REPORT", "CREDIT_CHECK", "SIGNATURE_REQUEST", "TEMPLATE", "CLIENT_INVOICE_REQUEST", "ENFORCEMENT", "GDPR", "REPORT_ARCHIVE", "USER", "QUERY_REPORT_EXPORT"]}, "type": {"type": "string", "example": "CLIENT_LOGOTYPE", "enum": ["CLIENT_LOGOTYPE", "ERP_LOGOTYPE", "INVOICE_PREVIEW", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "INTEREST_INVOICE", "INVOICE_ATTACHMENT", "CLIENT_ATTACHMENT", "CLIENT_INVOICE_REQUEST_ATTACHMENT", "INVOICE_FULL", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "REMINDER_ATTACHMENT", "COLLECTION", "COLLECTION_GUARANTOR", "COLLECTION_ATTACHMENT", "DELAYED_PENALTY_FEE", "DELAYED_PENALTY_FEE_ATTACHMENT", "DELAYED_PAYMENT", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "PAYOUT_FILE", "PAYMENT_FILE", "PAYMENT_TRANSACTION_SPECIFICATION_FILE", "VOUCHER", "BOOKKEEPING_FILE", "BOOKKEEPING_FILE_REPORT", "ELECTRONIC_INVOICE", "INVOICE_FILE", "BILL", "FONT_GENERAL", "FONT_MACHINE_INSTRUCTIONS", "IMAGE_LOGO", "IMAGE_LOGO_SHORT", "IMAGE_PAYMENT_TALON", "IMAGE_QR_CODE_BACKGROUND", "IMAGE_QR_CODE", "SETTLEMENT_SPECIFICATION", "SETTLEMENT_SPECIFICATION_XML", "SETTLEMENT_SPECIFICATION_XLSX", "CLIENT_ACCOUNT_SPECIFICATION", "SETTLEMENT_INVOICE_SERVICE", "SETTLEMENT_INVOICE_SERVICE_XML", "SETTLEMENT_INVOICE_SERVICE_XLSX", "SETTLEMENT_BUSINESS_LOAN", "INVOICE_AD", "SETTLEMENT_TRANSACTION", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_REPORT_PREVIEW", "COLLECTION_BATCH_COLLECTION", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "INVOICE_SIGNED", "COLLECTION_PAYMENT_INJUNCTION", "PAYMENT_INJUNCTION_MANUAL_REQUEST", "PAYMENT_INJUNCTION_MANUAL_INFORMATION", "COLLECTION_ENFORCEMENT_ORDER", "WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_PLAN_WARNING_EXECUTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT", "TEMPLATE_LOGOTYPE", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "INVOICE_EXTRACT", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "COLLECTION_BATCH_PART_PAYMENT_PLAN", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER", "PURCHASE", "PURCHASE_FILE", "CLIENT_PORTAL_LOGOTYPE", "CLIENT_PORTAL_FAVICON", "DEBTOR_PORTAL_LOGOTYPE", "DEBTOR_PORTAL_FAVICON", "DEBTOR_PORTAL_BACKGROUND", "DEBTOR_PORTAL_LOGIN_BACKGROUND", "ADMIN_LOGOTYPE", "ADMIN_FAVICON", "PDF_LOGOTYPE", "EMAIL_LOGOTYPE", "EMAIL_TEMPLATE_IMAGE", "PART_PAYMENT_PLAN_SEKKI", "PART_PAYMENT_PLAN_TERMS", "USER_PROFILE_IMAGE", "CLIENT_AGREEMENT", "INVOICE_AGREEMENT", "DEBTOR_AGREEMENT", "OTHER", "GDPR_RESULT_FILE", "QUERY_REPORT_EXPORT_FILE", "QUERY_REPORT_EXPORT_SELECTION", "CONNECTED_FILE", "SYSTEM_DEBTOR_REPORT_PREVIEW", "PAYMENT_RECEIPT", "DEBTOR_CREDIT_CHECK", "ENFORCEMENT_DELIVERY_PDF", "PAYMENT_TRANSACTION", "PAYMENT_TRANSACTION_CLIENT_REPORT", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_REQUEST_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_INFORMATION_GUARANTOR", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT_GUARANTOR", "PART_PAYMENT_PLAN_WARNING_EXECUTION_GUARANTOR", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION_GUARANTOR", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER_GUARANTOR", "PAYOUT_BATCH_REPORT", "BUSINESS_LOAN_PART_PAYMENT_PLAN_REMINDER", "BUSINESS_LOAN_PART_PAYMENT_PLAN", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT_REMINDER", "BOOKED_INVOICE_REPORT", "SCHEDULED_QUERY_REPORT", "REPORT_ARCHIVE_UPLOAD"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "status": {"type": "string", "example": "CREATED", "enum": ["CREATED", "GENERATED", "PENDING"]}, "debtorId": {"type": "string"}, "identificationNumber": {"type": "string"}, "collectionBatchId": {"type": "string"}, "partInvoiceId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "businessLoanId": {"type": "string"}, "reminderExists": {"type": "boolean", "example": false}, "fileKeyExists": {"type": "boolean", "example": false}, "fileNameExists": {"type": "boolean", "example": false}}, "type": "object"}, "DocumentSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "voucherId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "topic": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "REMINDER", "PAYOUT", "PAYMENT", "COMPLIANCE", "BOOKKEEPING", "DISTRIBUTION", "INVOICE_FILE", "SETTLEMENT_ACCOUNT", "ERP", "PDF", "BRAND", "CONNECTED_FILE", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_COLLECTION", "COLLECTION_BATCH_COLLECTION_CLAIM", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_FILE", "SYSTEM_DEBTOR_REPORT", "CREDIT_CHECK", "SIGNATURE_REQUEST", "TEMPLATE", "CLIENT_INVOICE_REQUEST", "ENFORCEMENT", "GDPR", "REPORT_ARCHIVE", "USER", "QUERY_REPORT_EXPORT"]}, "type": {"type": "string", "example": "CLIENT_LOGOTYPE", "enum": ["CLIENT_LOGOTYPE", "ERP_LOGOTYPE", "INVOICE_PREVIEW", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "INTEREST_INVOICE", "INVOICE_ATTACHMENT", "CLIENT_ATTACHMENT", "CLIENT_INVOICE_REQUEST_ATTACHMENT", "INVOICE_FULL", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "REMINDER_ATTACHMENT", "COLLECTION", "COLLECTION_GUARANTOR", "COLLECTION_ATTACHMENT", "DELAYED_PENALTY_FEE", "DELAYED_PENALTY_FEE_ATTACHMENT", "DELAYED_PAYMENT", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "PAYOUT_FILE", "PAYMENT_FILE", "PAYMENT_TRANSACTION_SPECIFICATION_FILE", "VOUCHER", "BOOKKEEPING_FILE", "BOOKKEEPING_FILE_REPORT", "ELECTRONIC_INVOICE", "INVOICE_FILE", "BILL", "FONT_GENERAL", "FONT_MACHINE_INSTRUCTIONS", "IMAGE_LOGO", "IMAGE_LOGO_SHORT", "IMAGE_PAYMENT_TALON", "IMAGE_QR_CODE_BACKGROUND", "IMAGE_QR_CODE", "SETTLEMENT_SPECIFICATION", "SETTLEMENT_SPECIFICATION_XML", "SETTLEMENT_SPECIFICATION_XLSX", "CLIENT_ACCOUNT_SPECIFICATION", "SETTLEMENT_INVOICE_SERVICE", "SETTLEMENT_INVOICE_SERVICE_XML", "SETTLEMENT_INVOICE_SERVICE_XLSX", "SETTLEMENT_BUSINESS_LOAN", "INVOICE_AD", "SETTLEMENT_TRANSACTION", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_REPORT_PREVIEW", "COLLECTION_BATCH_COLLECTION", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "INVOICE_SIGNED", "COLLECTION_PAYMENT_INJUNCTION", "PAYMENT_INJUNCTION_MANUAL_REQUEST", "PAYMENT_INJUNCTION_MANUAL_INFORMATION", "COLLECTION_ENFORCEMENT_ORDER", "WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_PLAN_WARNING_EXECUTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT", "TEMPLATE_LOGOTYPE", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "INVOICE_EXTRACT", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "COLLECTION_BATCH_PART_PAYMENT_PLAN", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER", "PURCHASE", "PURCHASE_FILE", "CLIENT_PORTAL_LOGOTYPE", "CLIENT_PORTAL_FAVICON", "DEBTOR_PORTAL_LOGOTYPE", "DEBTOR_PORTAL_FAVICON", "DEBTOR_PORTAL_BACKGROUND", "DEBTOR_PORTAL_LOGIN_BACKGROUND", "ADMIN_LOGOTYPE", "ADMIN_FAVICON", "PDF_LOGOTYPE", "EMAIL_LOGOTYPE", "EMAIL_TEMPLATE_IMAGE", "PART_PAYMENT_PLAN_SEKKI", "PART_PAYMENT_PLAN_TERMS", "USER_PROFILE_IMAGE", "CLIENT_AGREEMENT", "INVOICE_AGREEMENT", "DEBTOR_AGREEMENT", "OTHER", "GDPR_RESULT_FILE", "QUERY_REPORT_EXPORT_FILE", "QUERY_REPORT_EXPORT_SELECTION", "CONNECTED_FILE", "SYSTEM_DEBTOR_REPORT_PREVIEW", "PAYMENT_RECEIPT", "DEBTOR_CREDIT_CHECK", "ENFORCEMENT_DELIVERY_PDF", "PAYMENT_TRANSACTION", "PAYMENT_TRANSACTION_CLIENT_REPORT", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_REQUEST_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_INFORMATION_GUARANTOR", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT_GUARANTOR", "PART_PAYMENT_PLAN_WARNING_EXECUTION_GUARANTOR", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION_GUARANTOR", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER_GUARANTOR", "PAYOUT_BATCH_REPORT", "BUSINESS_LOAN_PART_PAYMENT_PLAN_REMINDER", "BUSINESS_LOAN_PART_PAYMENT_PLAN", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT_REMINDER", "BOOKED_INVOICE_REPORT", "SCHEDULED_QUERY_REPORT", "REPORT_ARCHIVE_UPLOAD"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "DeliveryAddressSetting": {"properties": {"key": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "InstanceProviderId": {"properties": {"instance_provider_id": {"type": "string"}}, "type": "object"}, "linkInvoice": {"required": ["documentId", "invoiceId"], "properties": {"invoiceId": {"type": "string"}, "documentId": {"type": "string"}}, "type": "object"}, "DocumentTemplatePut": {"properties": {"remark": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "DocumentTemplate": {"required": ["code", "type"], "properties": {"name": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "status": {"type": "string"}, "type": {"type": "string"}, "code": {"type": "string"}, "remark": {"type": "string"}, "placeholders": {"type": "array", "items": {"$ref": "#/definitions/DocumentTemplatePlaceholder"}}, "enableUpload": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "DocumentTemplatePlaceholder": {"required": ["language"], "properties": {"id": {"type": "string"}, "name": {"type": "string"}, "value": {"type": "string"}, "readOnly": {"type": "boolean", "example": false}, "language": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "DocumentTemplateSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "status": {"type": "string"}, "type": {"type": "string"}, "code": {"type": "string"}, "enableUpload": {"type": "boolean", "example": false}}, "type": "object"}, "DocumentTemplatePlaceholderPut": {"required": ["language"], "properties": {"value": {"type": "string"}, "language": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "electronicInvoicePost": {"properties": {"fui": {"type": "string"}, "fmi": {"type": "string"}, "identificationNumber": {"type": "string"}}, "type": "object"}, "electronicInvoice": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "fmi": {"type": "string"}, "fui": {"type": "string"}, "identificationNumber": {"type": "string"}}, "type": "object"}, "EfakturaApiModelSearch": {"properties": {"fui": {"type": "string"}, "fmi": {"type": "string"}, "identificationNumber": {"type": "string"}}, "type": "object"}, "SearchElectronicInvoiceParties": {"required": ["identificationNumber"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "identificationNumber": {"type": "string"}, "GLN": {"type": "string"}, "peppolId": {"type": "string", "description": "PEPPOL Participant Identifier for e-invoice routing."}, "vatNumber": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "CreateElectronicInvoiceInvites": {"required": ["email", "identificationNumber", "name"], "properties": {"name": {"type": "string"}, "email": {"type": "string"}, "contactName": {"type": "string"}, "identificationNumber": {"type": "string"}, "phone": {"type": "string"}, "vatNumber": {"type": "string"}, "GLN": {"type": "string"}, "peppolId": {"type": "string", "description": "PEPPOL Participant Identifier for e-invoice routing."}, "clientId": {"type": "string", "description": "Client ID on whose behalf to send the invite (required for system/backoffice users, ignored for client users)."}, "address": {"$ref": "#/definitions/electronicInvoicePartyAddress"}}, "type": "object"}, "electronicInvoicePartyAddress": {"required": ["countryCode"], "properties": {"name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "ValidateElectronicInvoicePartyRequest": {"properties": {"identificationNumber": {"type": "string", "description": "Organisation number / CIN"}, "GLN": {"type": "string", "description": "Global Location Number"}, "peppolId": {"type": "string", "description": "PEPPOL Participant Identifier"}, "countryCode": {"type": "string", "description": "ISO country code. Optional; no default is applied."}}, "type": "object"}, "ValidateElectronicInvoicePartyResponse": {"properties": {"found": {"type": "boolean", "description": "True if exactly one party was found", "example": false}, "multipleMatches": {"type": "boolean", "description": "True if more than one party matched", "example": false}, "party": {"$ref": "#/definitions/ValidateElectronicInvoicePartyMatch"}, "possibleMatches": {"type": "array", "items": {"$ref": "#/definitions/ValidateElectronicInvoicePartyMatch"}}}, "type": "object"}, "ValidateElectronicInvoicePartyMatch": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "cin": {"type": "string"}, "gln": {"type": "string"}, "peppolId": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "matchedOn": {"type": "array", "description": "Input fields that matched this party (identificationNumber, GLN, peppolId)", "items": {"type": "string"}}, "inviteRequired": {"type": "boolean", "description": "True when the party exists but needs an invite to receive e-invoices", "example": false}}, "type": "object"}, "ConfirmElectronicInvoicePartyRequest": {"required": ["partyId"], "properties": {"partyId": {"type": "string", "description": "Crediflow party ID to confirm and save on the client"}, "gln": {"type": "string", "description": "Global Location Number to save on the client"}, "peppolId": {"type": "string", "description": "PEPPOL Participant Identifier to save on the client"}, "clientId": {"type": "string", "description": "Client ID to save the party on (required for system/backoffice users, ignored for client users)"}}, "type": "object"}, "ElectronicInvoiceValidationResult": {"properties": {"valid": {"type": "boolean", "description": "True when no fatal issues were found; the invoice is likely to be accepted by the network", "example": false}, "issues": {"type": "array", "description": "List of validation issues (fatal and warnings)", "items": {"$ref": "#/definitions/ElectronicInvoiceValidationIssue"}}}, "type": "object"}, "ElectronicInvoiceValidationIssue": {"properties": {"severity": {"type": "string", "description": "'fatal' or 'warning'"}, "ruleId": {"type": "string", "description": "PEPPOL / EN16931 rule identifier"}, "message": {"type": "string", "description": "Human-readable description of the violation"}, "location": {"type": "string", "description": "XPath location in the generated XML"}}, "type": "object"}, "SystemExchangeRatePut": {"required": ["rates"], "properties": {"rates": {"type": "array", "items": {"$ref": "#/definitions/SystemExchangeRatePutItem"}}}, "type": "object"}, "SystemExchangeRatePutItem": {"required": ["currencyCode", "exchangeRateInverted"], "properties": {"currencyCode": {"type": "string"}, "exchangeRateInverted": {"type": "number", "format": "float", "description": "Units of system currency per one unit of currencyCode, at most 4 decimals.", "example": 0.0}, "exchangeRate": {"type": "number", "format": "float", "description": "Units of currencyCode per one unit of system currency. Derived from exchangeRateInverted when omitted.", "example": 0.0}, "date": {"type": "string", "format": "date", "description": "The date the rate applies to. Defaults to today.", "example": "2016-06-06"}}, "type": "object"}, "SystemExchangeRate": {"properties": {"currencyCode": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "exchangeRateInverted": {"type": "number", "format": "float", "example": 0.0}, "importedDate": {"type": "string"}, "source": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "FactoringCountryPost": {"required": ["allowFinancing", "code", "highRiskWarningFinancing"], "properties": {"code": {"type": "string"}, "allowFinancing": {"type": "boolean", "example": false}, "highRiskWarningFinancing": {"type": "boolean", "example": false}, "name": {"type": "string"}}, "type": "object"}, "FactoringCountry": {"required": ["allowFinancing", "code", "highRiskWarningFinancing"], "properties": {"code": {"type": "string"}, "allowFinancing": {"type": "boolean", "example": false}, "highRiskWarningFinancing": {"type": "boolean", "example": false}, "name": {"type": "string"}}, "type": "object"}, "FactoringCountryPut": {"properties": {"allowFinancing": {"type": "boolean", "example": false}, "highRiskWarningFinancing": {"type": "boolean", "example": false}, "name": {"type": "string"}}, "type": "object"}, "FactoringCountrySearch": {"properties": {"code": {"type": "string"}, "allowFinancing": {"type": "boolean", "example": false}, "highRiskWarningFinancing": {"type": "boolean", "example": false}, "name": {"type": "string"}}, "type": "object"}, "ClientFactoringDecision": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "totalInvoiceBalance": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "creditDecisionGrouping": {"type": "string"}, "countOfDebtors": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceData": {"type": "string"}, "invoiceIds": {"type": "string"}, "debtors": {"type": "string"}, "engineRuleId": {"type": "string"}, "errorColorCodes": {"type": "string"}, "manualControlInvoicesCount": {"type": "integer", "format": "int", "example": 0}, "financingProvider": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "noteCount": {"type": "integer", "format": "int", "example": 0}, "todoCount": {"type": "integer", "format": "int", "example": 0}, "useRecourse": {"type": "boolean", "example": false}, "hasDebtorBlocked": {"type": "boolean", "default": false, "example": false}, "unassignedInvoiceCount": {"type": "integer", "format": "int", "example": 0}, "assignees": {"type": "array", "items": {"$ref": "#/definitions/FactoringDecisionCardAssignee"}}, "responsibleUserIds": {"type": "array", "items": {"type": "string"}}, "debtorCountryCodes": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "FactoringDecisionCardAssignee": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "imageFileName": {"type": "string"}}, "type": "object"}, "DebtorCreditDecisionStatus": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "clientName": {"type": "string"}, "clientId": {"type": "string"}, "totalInvoiceBalance": {"type": "number", "format": "decimal"}, "debtorName": {"type": "string"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "creditDecisionGrouping": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceIds": {"type": "string"}, "invoiceData": {"type": "string"}, "identificationNumber": {"type": "string"}, "engineRuleId": {"type": "string"}, "errorColorCodes": {"type": "boolean", "example": false}, "manualControlInvoicesCount": {"type": "integer", "format": "int", "example": 0}, "financingProvider": {"type": "string"}, "noteCount": {"type": "integer", "format": "int", "example": 0}, "todoCount": {"type": "integer", "format": "int", "example": 0}, "useRecourse": {"type": "boolean", "example": false}, "isBlocked": {"type": "boolean", "default": false, "example": false}, "unassignedInvoiceCount": {"type": "integer", "format": "int", "example": 0}, "assignees": {"type": "array", "items": {"$ref": "#/definitions/FactoringDecisionCardAssignee"}}, "responsibleUserIds": {"type": "array", "items": {"type": "string"}}, "debtorCountryCodes": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "InvoiceCreditDecisionStatus": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string"}, "clientName": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "debtorName": {"type": "string"}, "totalInvoiceBalance": {"type": "number", "format": "decimal"}, "useRecourse": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "example": false}, "paymentTerms": {"type": "string"}, "currency": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "creditDecisionGrouping": {"type": "string"}, "mainStatus": {"type": "string"}, "deliveryVerificationStatus": {"type": "string"}, "errandId": {"type": "string"}, "resolvedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "productCode": {"type": "string"}, "refinancingStatus": {"type": "string"}, "refinancingExternalId": {"type": "string"}, "refinancedTwice": {"type": "boolean", "example": false}, "engineRuleId": {"type": "string"}, "engineRuleErrorDetails": {"type": "string"}, "engineRuleErrorStatus": {"type": "string"}, "financingProvider": {"type": "string"}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "noteCount": {"type": "integer", "format": "int", "example": 0}, "todoCount": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "insurancePercentage": {"type": "number", "format": "float", "example": 0.0}, "isDebtorBlocked": {"type": "boolean", "default": false, "example": false}, "assignedUserId": {"type": "string"}, "assignedUserName": {"type": "string"}, "assignedUserImageFileName": {"type": "string"}, "responsibleUserIds": {"type": "array", "items": {"type": "string"}}, "debtorCountryCode": {"type": "string"}}, "type": "object"}, "PutCreditDecisionStatus": {"required": ["status"], "properties": {"status": {"type": "string"}, "grouping": {"type": "string"}}, "type": "object"}, "ExternalPutCreditDecisionStatus": {"required": ["status"], "properties": {"status": {"type": "string"}, "decision": {"type": "string", "example": "APPROVED", "enum": ["APPROVED", "DENIED", "DENIED_SERVICE", "REFINANCE"]}, "useRecourse": {"type": "boolean", "example": false}, "override": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceSystem": {"required": ["articleRows", "invoiceNumber"], "properties": {"id": {"type": "string", "description": "Internal id of the entity."}, "clientId": {"type": "string", "description": "Internal client id for the client connected to the invoice."}, "clientName": {"type": "string", "description": "Your company name."}, "instanceProviderId": {"type": "string"}, "refinancingStatus": {"type": "string"}, "productCode": {"type": "string", "description": "Product used for the invoice. Can be one of INVOICE_SERVICE, EMINDER_SERVICE, COLLECTION_SERVICE, INVOICE_FACTORING_LOAN or INVOICE_FACTORING_SELL."}, "serviceProviderCode": {"type": "string", "description": "Which installed service provider will be used to administrate the invoice."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when debtor pay for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. This should be provided if the invoice is a credit invoice."}, "statuses": {"$ref": "#/definitions/invoiceStatusDetail"}, "partPayment": {"$ref": "#/definitions/invoicePartPayment"}, "dates": {"$ref": "#/definitions/invoiceDates"}, "orderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/invoiceDebtor"}, "document": {"$ref": "#/definitions/invoiceDocuments"}, "distributionCode": {"type": "string", "description": "Distribution method used for the invoice. Can be one of LETTER, EMAIL or NULL.", "enum": [null, "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "documentTemplateCode": {"type": "string", "description": "Template used on the invoice. Determines how the invoice PDF will appear."}, "domesticVAT": {"$ref": "#/definitions/domesticVat"}, "freeText": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedById": {"type": "string"}, "collectionBatchId": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "boolean", "example": false}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/InvoiceReasonCode"}}, "insuranceAgreement": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "default": false, "example": false}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closed": {"type": "string", "format": "date", "example": "2016-06-06"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "credit_decision_grouping_code": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "reminderProfileCode": {"type": "string", "description": "Reminder profile used on the invoice. Determines the reminder process of the invoice. Standard profile will be used if no value is provided. "}, "ourReference": {"type": "string", "description": "Your reference of the invoice."}, "yourReference": {"type": "string", "description": "Debtor reference of the invoice."}, "yourContactPerson": {"type": "string", "description": "Debtor contact person of the invoice."}, "ourOrderNumber": {"type": "string", "description": "Your order number of the invoice."}, "yourOrderNumber": {"type": "string", "description": "Debtor order number of the invoice."}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticle"}}, "vats": {"type": "array", "items": {"$ref": "#/definitions/invoiceVat"}}, "remark": {"type": "string", "description": "Invoice text that will be visible on the invoice PDF. Useful if you want to send a message to your debtor."}, "terms": {"$ref": "#/definitions/invoiceTerms"}, "fees": {"$ref": "#/definitions/invoiceFees"}, "reverseCharge": {"type": "boolean", "example": false}, "refund": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "default": false, "example": false}, "totals": {"$ref": "#/definitions/invoiceTotals"}, "currency": {"$ref": "#/definitions/invoiceCurrency"}, "balances": {"$ref": "#/definitions/invoiceBalances"}, "refinancingExternalId": {"type": "string", "description": "Refinancing external id for the invoice"}}, "type": "object"}, "invoiceStatusDetail": {"properties": {"main": {"type": "string", "description": "Main status of the invoice. Can be one of CREATED, ARCHIVED, PENDING, PENDING_AUTHORIZATION, ACTIVATED, PAUSED, DISPUTED, STOPPED or CLOSED. "}, "ledger": {"type": "string", "description": "Ledger status of the invoice. This is how far the invoice is in the reminder process. Can be one of NULL, INVOICE, EXPIRED, EXPIRED_NOTIFICATION, REMINDER, COLLECTION, DELAYED_PENALTY_FEE, MONITORING_DECISION or MONITORING."}, "ledgerSubType": {"type": "string"}, "closingReason": {"type": "string", "description": "Why a CLOSED invoice was closed: PAID, CREDITED, WRITTEN_OFF or CLOSED. Null when not CLOSED."}}, "type": "object"}, "invoicePartPayment": {"properties": {"isPartPayment": {"type": "boolean", "example": false}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}}, "type": "object"}, "invoiceDates": {"required": ["expireDate", "invoiceDate", "latestFinancialDate"], "properties": {"invoiceDate": {"type": "string", "format": "date", "description": "Invoice date of the invoice.", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "description": "Expire date of the invoice.", "example": "2016-06-06"}, "originalExpireDate": {"type": "string", "format": "date", "description": "Original expire date of the invoice.", "example": "2016-06-06"}, "deliveryDate": {"type": "string", "format": "date", "description": "Delivery date of the invoice.", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string", "format": "date", "description": "Shows for how long the handling of the invoice is paused.", "example": "2016-06-06"}, "ledgerPerformedDate": {"type": "string", "format": "date", "description": "Ledger performed date. Shows the performed date of the previous ledger event. ", "example": "2016-06-06"}, "latestFinancialDate": {"type": "string", "format": "date", "description": "Financial event date of latest created event.", "example": "2016-06-06"}}, "type": "object"}, "invoiceDebtor": {"required": ["customerNumber", "name", "type"], "properties": {"id": {"type": "string", "description": "Internal id of the debtor connected to the invoice."}, "customerNumber": {"type": "string", "description": "Your customer number of the debtor connected to the invoice."}, "locale": {"type": "string"}, "name": {"type": "string", "description": "Debtor name. Either a person- or a company name depending on the debtor type."}, "identificationNumber": {"type": "string", "description": "Debtor identification number. Should be a valid organization number or social security number depending on the debtor type."}, "identificationNumberInternal": {"type": "string", "description": "Internal debtor identification number."}, "type": {"type": "string", "description": "Debtor type. Can be one of COMPANY or PERSON.", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "subtypeId": {"type": "string", "description": "ID of the debtor type."}, "subtypeName": {"type": "string", "description": "Name of the debtor type."}, "GLN": {"type": "string"}, "email": {"type": "string", "description": "Debtor email."}, "emailExpiredDocuments": {"type": "string", "description": "Debtor email on expired invoices."}, "emailInterestInvoice": {"type": "string", "description": "Debtor email for interest invoices."}, "phone": {"type": "string", "description": "Debtor phone number."}, "cellPhone": {"type": "string", "description": "Debtor cell phone number."}, "invoiceAddress": {"$ref": "#/definitions/invoiceAddressInformation"}, "deliveryAddress": {"$ref": "#/definitions/invoiceDeliveryAddress"}, "vatNumber": {"type": "string"}, "distributionChannelOverride": {"type": "boolean", "example": false}, "distributionChannel": {"type": "string"}, "FMI": {"type": "string", "description": "Receiver id for internet bank electronic invoice."}, "peppolId": {"type": "string", "description": "PEPPOL Participant Identifier for e-invoice routing.", "example": "0007:5567321707"}, "einvoicePartyId": {"type": "string"}, "segmentCode": {"type": "string", "description": "Debtor segment code."}, "preferredLanguage": {"type": "string", "description": "Preferred language of the debtor.", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "invoiceAddressInformation": {"required": ["address", "name"], "properties": {"name": {"type": "string", "description": "Debtor invoice address name. Either a person- or a company name depending on the debtor type."}, "name2": {"type": "string", "description": "Debtor invoice address name 2. Either a person- or a company name depending on the debtor type."}, "address": {"type": "string", "description": "Debtor invoice address."}, "address2": {"type": "string", "description": "Debtor invoice address line 2"}, "address3": {"type": "string", "description": "Debtor invoice address line 3"}, "zip": {"type": "string", "description": "Debtor invoice address zip code."}, "city": {"type": "string", "description": "Debtor invoice address city."}, "countryCode": {"type": "string", "description": "Debtor invoice address country code. Should be in ISO 3166-1 alpha-2 format."}}, "type": "object"}, "invoiceDeliveryAddress": {"properties": {"name": {"type": "string", "description": "Debtor delivery address name. Either a person- or a company name depending on the debtor type."}, "name2": {"type": "string", "description": "Debtor invoice address name 2. Either a person- or a company name depending on the debtor type."}, "address": {"type": "string", "description": "Debtor delivery address."}, "address2": {"type": "string", "description": "Debtor delivery address line 2"}, "address3": {"type": "string", "description": "Debtor delivery address line 3"}, "zip": {"type": "string", "description": "Debtor delivery address zip code."}, "city": {"type": "string", "description": "Debtor delivery address city."}, "countryCode": {"type": "string", "description": "Debtor delivery address country code. Should be in ISO 3166-1 alpha-2 format."}}, "type": "object"}, "invoiceDocuments": {"properties": {"attachment": {"type": "string", "description": "File name of the attachment PDF added to the invoice. Download it with {{API}}/storage/{{fileName}}."}, "invoicePreview": {"type": "string", "description": "File name of the invoice preview PDF. Download it with {{API}}/storage/{{fileName}}."}, "invoice": {"type": "string", "description": "File name of the invoice PDF. Download it with {{API}}/storage/{{fileName}}."}, "invoiceWithAttachments": {"type": "string", "description": "File name of the invoice PDF with attachments. Download it with {{API}}/storage/{{fileName}}."}, "connectedFileCount": {"type": "integer", "format": "int", "description": "Count of connected files to the invoice.", "example": 0}}, "type": "object"}, "domesticVat": {"properties": {"amount": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "InvoiceReasonCode": {"properties": {"id": {"type": "string"}, "reasonCode": {"type": "string"}, "description": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "clearedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "appliesToCurrentStatus": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceArticle": {"properties": {"id": {"type": "string", "description": "Internal id of the article row."}, "articleNumber": {"type": "string", "description": "Your article number for the article used."}, "description": {"type": "string", "description": "Description for the article row."}, "purchaseOrderNumber": {"type": "string"}, "deliverNote": {"type": "string"}, "deliverDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "quantity": {"type": "string", "description": "Quantity of article invoiced in the article row."}, "unit": {"type": "string", "description": "Unit of the article used in the article row."}, "price": {"type": "number", "format": "decimal", "description": "Price of the article used in the article row."}, "totalDiscount": {"type": "number", "format": "decimal", "description": "Total discount of the article row."}, "discountType": {"type": "string", "description": "Type of discount of the article row. Can be one of NULL, PERCENTAGE or CURRENCY.", "enum": [null, "PERCENTAGE", "CURRENCY"]}, "vatPercentage": {"type": "number", "format": "float", "description": "VAT percentage used for the article row.", "example": 0.0}, "totalExclVat": {"type": "number", "format": "decimal", "description": "Total amount without VAT of the article row."}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT of the article row."}, "total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the article row."}, "accountNumber": {"type": "string", "description": "The bookkeeping account number that should be used."}}, "type": "object"}, "invoiceVat": {"required": ["percentage", "totalVat"], "properties": {"percentage": {"type": "number", "format": "float", "description": "VAT percentage that is declared.", "example": 0.0}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT amount declared for the percentage."}, "totalTaxable": {"type": "number", "format": "decimal", "description": "Total taxable amount declared for the percentage."}}, "type": "object"}, "invoiceTerms": {"properties": {"payment": {"type": "string", "description": "Terms of payment of the invoice."}, "delivery": {"type": "string", "description": "Terms of delivery of the invoice."}}, "type": "object"}, "invoiceFees": {"properties": {"administration": {"type": "number", "format": "decimal", "description": "Administration fee of the invoice."}, "administrationVatPercentage": {"type": "number", "format": "float", "description": "VAT percentage that is declared.", "example": 0.0}, "freight": {"type": "number", "format": "decimal", "description": "Freight fee of the invoice"}, "freightVatPercentage": {"type": "number", "format": "float", "description": "VAT percentage that is declared.", "example": 0.0}}, "type": "object"}, "invoiceTotals": {"required": ["total", "totalExclVat", "totalVat"], "properties": {"totalToPay": {"type": "number", "format": "decimal", "description": "Total amount for debtor to pay to close the invoice."}, "total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the invoice."}, "totalRoundOff": {"type": "number", "format": "decimal", "description": "Total roundoff amount of the invoice."}, "totalExclVat": {"type": "number", "format": "decimal", "description": "Total amount without VAT of the invoice."}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT of the invoice."}, "taxReduction": {"type": "number", "format": "decimal", "description": "Total tax reduction of the invoice."}, "totalToPayBase": {"type": "number", "format": "decimal", "description": "Total amount for debtor to pay to close the invoice in invoice base currency."}, "prepaid": {"type": "number", "format": "decimal", "description": "Total prepaid amount that will be deducted from invoice balance."}}, "type": "object"}, "invoiceCurrency": {"properties": {"invoiceCurrency": {"type": "string", "description": "Invoice currency. This is what currency we should use in the invoice PDF. Can be one of supported currencies.", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "baseCurrency": {"type": "string", "description": "Invoice base currency. This tells in what currency we should handle the invoice and all transactions connected with it. Can be one of supported currencies.", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "exchangeRate": {"type": "number", "format": "float", "description": "Exchange rate of the invoice. This tells what exchange rate should use to convert transactions connected with the invoice to base currency.", "example": 0.0}}, "type": "object"}, "invoiceBalances": {"properties": {"total": {"type": "number", "format": "decimal", "description": "Total balance of the invoice. This is what's left for your debtor to pay in total to close the invoice."}, "totalLocale": {"type": "number", "format": "decimal", "description": "Total balance of the invoice in locale currency. This is what's left for your debtor to pay in total to close the invoice."}, "capital": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice. This is what's left for your debtor to pay from the original amount."}, "capitalLocale": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice in locale currency. This is what's left for your debtor to pay from the original amount."}, "reminder": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice. This is what's left for your debtor to pay from the reminder fees."}, "reminderLocale": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice in locale. This is what's left for your debtor to pay from the reminder fees. "}, "interest": {"type": "number", "format": "decimal", "description": "Interest balance of the invoice. This is what's left for your debtor to pay from the interest."}, "interestLocale": {"type": "number", "format": "decimal", "description": "Interest balance of the invoice in locale currency. This is what's left for your debtor to pay from the interest."}, "capitalService": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice."}, "capitalServiceLocale": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice in locale currency."}, "capitalFinanced": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice."}, "capitalFinancedLocale": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice in locale currency."}, "reserved": {"type": "number", "format": "decimal", "description": "Reserved balance of the invoice."}, "reservedLocale": {"type": "number", "format": "decimal", "description": "Reserved balance of the invoice in locale currency."}, "insurancePercentage": {"type": "number", "format": "float", "description": "Percentage of the invoice covered by insurance.", "example": 0.0}, "capitalInsured": {"type": "number", "format": "decimal", "description": "Insured share of the outstanding capital balance."}, "capitalUninsured": {"type": "number", "format": "decimal", "description": "Uninsured share of the outstanding capital balance."}, "vatPledge": {"description": "Split Payment Allocation VAT held against this invoice.", "allOf": [{"$ref": "#/definitions/invoiceVatPledge"}]}}, "type": "object"}, "invoiceVatPledge": {"properties": {"pledged": {"type": "number", "format": "decimal", "description": "VAT moved to the Client VAT Pledge Account for this invoice."}, "pledgedLocale": {"type": "number", "format": "decimal", "description": "Pledged VAT in locale currency."}, "released": {"type": "number", "format": "decimal", "description": "Pledged VAT released back to the fund account as capital was settled."}, "releasedLocale": {"type": "number", "format": "decimal", "description": "Released VAT in locale currency."}, "remaining": {"type": "number", "format": "decimal", "description": "Pledged VAT still held, i.e. pledged minus released."}, "remainingLocale": {"type": "number", "format": "decimal", "description": "Remaining pledged VAT in locale currency."}}, "type": "object"}, "ClientFactoringDecisionSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "totalInvoiceBalance": {"type": "string"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "countOfDebtors": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceIds": {"type": "string"}, "debtors": {"type": "string"}, "errorColorCodes": {"type": "string"}, "instanceProviderId": {"type": "string"}, "financingProvider": {"type": "string"}, "hasDebtorBlocked": {"type": "boolean", "example": false}, "responsibleUserId": {"type": "string"}, "debtorCountryCode": {"type": "string"}}, "type": "object"}, "ClientDailyFactorignDecisionSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "totalInvoiceBalance": {"type": "string"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "countOfDebtors": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceIds": {"type": "string"}, "instanceProviderId": {"type": "string"}, "responsibleUserId": {"type": "string"}, "debtorCountryCode": {"type": "string"}, "productCode": {"type": "string"}}, "type": "object"}, "ClientDailyFactorignDecision": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "totalInvoiceBalance": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "creditDecisionGrouping": {"type": "string"}, "countOfDebtors": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceData": {"type": "string"}, "invoiceIds": {"type": "string"}, "engineRuleId": {"type": "string"}, "manualControlInvoicesCount": {"type": "integer", "format": "int", "example": 0}, "financingProvider": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "useRecourse": {"type": "boolean", "example": false}, "hasDebtorBlocked": {"type": "boolean", "default": false, "example": false}, "unassignedInvoiceCount": {"type": "integer", "format": "int", "example": 0}, "assignees": {"type": "array", "items": {"$ref": "#/definitions/FactoringDecisionCardAssignee"}}, "responsibleUserIds": {"type": "array", "items": {"type": "string"}}, "debtorCountryCodes": {"type": "array", "items": {"type": "string"}}, "productCode": {"type": "string"}}, "type": "object"}, "ClientFactoringDecisionSearchDebtor": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "debtorId": {"type": "string"}, "clientName": {"type": "string"}, "clientId": {"type": "string"}, "totalInvoiceBalance": {"type": "string"}, "debtorName": {"type": "string"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceIds": {"type": "string"}, "identificationNumber": {"type": "string"}, "errorColorCodes": {"type": "string"}, "financingProvider": {"type": "string"}, "isBlocked": {"type": "boolean", "example": false}, "responsibleUserId": {"type": "string"}, "debtorCountryCode": {"type": "string"}}, "type": "object"}, "FactorignDecisionSearchDebtorDaily": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "debtorId": {"type": "string"}, "clientName": {"type": "string"}, "clientId": {"type": "string"}, "totalInvoiceBalance": {"type": "string"}, "debtorName": {"type": "string"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceIds": {"type": "string"}, "responsibleUserId": {"type": "string"}, "debtorCountryCode": {"type": "string"}, "productCode": {"type": "string"}}, "type": "object"}, "DebtorDailyCreditDecisionStatus": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "clientName": {"type": "string"}, "clientId": {"type": "string"}, "totalInvoiceBalance": {"type": "number", "format": "decimal"}, "debtorName": {"type": "string"}, "currency": {"type": "string"}, "totalNumberOfInvoices": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "creditDecisionGrouping": {"type": "string"}, "mainStatus": {"type": "string"}, "invoiceIds": {"type": "string"}, "invoiceData": {"type": "string"}, "engineRuleId": {"type": "string"}, "manualControlInvoicesCount": {"type": "integer", "format": "int", "example": 0}, "financingProvider": {"type": "string"}, "useRecourse": {"type": "boolean", "example": false}, "isBlocked": {"type": "boolean", "default": false, "example": false}, "unassignedInvoiceCount": {"type": "integer", "format": "int", "example": 0}, "assignees": {"type": "array", "items": {"$ref": "#/definitions/FactoringDecisionCardAssignee"}}, "responsibleUserIds": {"type": "array", "items": {"type": "string"}}, "debtorCountryCodes": {"type": "array", "items": {"type": "string"}}, "productCode": {"type": "string"}}, "type": "object"}, "ClientFactoringDecisionSearchInvoice": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string"}, "expireDate": {"type": "string"}, "clientName": {"type": "string"}, "clientId": {"type": "string"}, "debtorName": {"type": "string"}, "totalInvoiceBalance": {"type": "string"}, "useRecourse": {"type": "string"}, "isDistributed": {"type": "boolean", "example": false}, "paymentTerms": {"type": "string"}, "currency": {"type": "string"}, "creditDecisionStatus": {"type": "string"}, "mainStatus": {"type": "string"}, "resolvedDate": {"type": "string"}, "productCode": {"type": "string"}, "refinancingStatus": {"type": "string"}, "refinancingExternalId": {"type": "string"}, "refinancedTwice": {"type": "boolean", "example": false}, "engineRuleErrorStatus": {"type": "string"}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "isDebtorBlocked": {"type": "boolean", "example": false}, "responsibleUserId": {"type": "string"}, "debtorCountryCode": {"type": "string"}, "instanceProviderId": {"type": "string"}}, "type": "object"}, "PutListCreditDecisionStatus": {"required": ["status"], "properties": {"status": {"type": "string"}, "invoiceIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "PutFactoringDecisionAssign": {"required": ["action", "invoiceIds"], "properties": {"invoiceIds": {"type": "array", "items": {"type": "string"}}, "action": {"type": "string", "example": "ASSIGN", "enum": ["ASSIGN", "UNASSIGN"]}}, "type": "object"}, "FactoringDecisionAssignResult": {"properties": {"assigned": {"type": "integer", "format": "int", "example": 0}, "unassigned": {"type": "integer", "format": "int", "example": 0}, "skipped": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PutFactoring": {"properties": {"notifyOnRefinance": {"type": "boolean", "example": false}}, "type": "object"}, "FeeTypePost": {"required": ["name"], "properties": {"name": {"type": "string"}, "suggested_amount": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "FeeType": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "suggested_amount": {"type": "number", "format": "float", "example": 0.0}, "settlement_order": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "FeeTypePut": {"required": ["name"], "properties": {"name": {"type": "string"}, "suggested_amount": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "FeeTypeSettlementOrder": {"properties": {"settlement_order": {"type": "array", "items": {"$ref": "#/definitions/FeeTypeSettlementOrderIndex"}}}, "type": "object"}, "FeeTypeSettlementOrderIndex": {"required": ["id", "order_index"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "order_index": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "FinancingRuleUpdate": {"properties": {"allowFactoring": {"type": "boolean", "example": false}, "approveBelow": {"type": "number", "format": "float", "example": 0.0}, "manualVerificationRate": {"type": "integer", "format": "int", "example": 0}, "maxAllowedCollectionLedgerLocaleAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedOverdrawnAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedExpiredLedgerLocaleAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedDayCount": {"type": "integer", "format": "int", "example": 0}, "maxAllowedInsuranceAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedDisposableCreditAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedUsedAmount": {"type": "number", "format": "float", "example": 0.0}, "invoiceMaxAmountLocale": {"type": "number", "format": "float", "example": 0.0}, "annualTurnover": {"type": "number", "format": "float", "example": 0.0}, "acceptedInvoiceAmountSize": {"type": "integer", "format": "int", "example": 0}, "expiredInvoiceOverdue": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "FinancingRule": {"required": ["id"], "properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "systemDebtorId": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "approveBelow": {"type": "number", "format": "float", "example": 0.0}, "manualVerificationRate": {"type": "integer", "format": "int", "example": 0}, "maxAllowedCollectionLedgerLocaleAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedOverdrawnAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedExpiredLedgerLocaleAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedDayCount": {"type": "integer", "format": "int", "example": 0}, "maxAllowedInsuranceAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedDisposableCreditAmount": {"type": "number", "format": "float", "example": 0.0}, "maxAllowedUsedAmount": {"type": "number", "format": "float", "example": 0.0}, "invoiceMaxAmountLocale": {"type": "number", "format": "float", "example": 0.0}, "annualTurnover": {"type": "number", "format": "float", "example": 0.0}, "acceptedInvoiceAmountSize": {"type": "integer", "format": "int", "example": 0}, "expiredInvoiceOverdue": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "FinancingRuleSearch": {"required": ["id"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "systemDebtorId": {"type": "string"}}, "type": "object"}, "GlobalSniRegistryPost": {"required": ["code", "description", "isAllowed"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}, "isAllowed": {"type": "boolean", "example": false}}, "type": "object"}, "GlobalSniRegistry": {"required": ["code", "description", "isAllowed"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}, "isAllowed": {"type": "boolean", "example": false}}, "type": "object"}, "GlobalSniRegistryPut": {"properties": {"code": {"type": "string"}, "description": {"type": "string"}, "isAllowed": {"type": "boolean", "example": false}}, "type": "object"}, "GlobalSniRegistrySearch": {"required": ["code", "description", "isAllowed"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}, "isAllowed": {"type": "boolean", "example": false}}, "type": "object"}, "InternalRequest": {"properties": {"id": {"type": "string"}, "createdById": {"type": "string"}, "status": {"type": "string"}, "topic": {"type": "string"}, "source": {"type": "string"}, "action": {"type": "string"}, "instanceId": {"type": "string"}, "targetLinkId": {"type": "string"}, "currentValues": {"type": "string", "format": "dict"}, "requestValues": {"type": "string", "format": "dict"}, "accountCurrency": {"type": "string"}}, "type": "object"}, "InternalRequestPut": {"required": ["status"], "properties": {"status": {"type": "string", "example": "APPROVED", "enum": ["APPROVED", "DENIED"]}}, "type": "object"}, "InternalRequestBulkUpdate": {"required": ["id", "status"], "properties": {"id": {"type": "string"}, "status": {"type": "string", "example": "APPROVED", "enum": ["APPROVED", "DENIED"]}}, "type": "object"}, "InternalRequestBulkUpdateResponse": {"properties": {"successful": {"type": "array", "items": {"$ref": "#/definitions/InternalRequestBulkUpdateResponseInstance"}}, "failed": {"type": "array", "items": {"$ref": "#/definitions/InternalRequestBulkUpdateResponseInstance"}}}, "type": "object"}, "InternalRequestBulkUpdateResponseInstance": {"properties": {"id": {"type": "string"}, "reason": {"type": "string"}}, "type": "object"}, "InternalRequestSearch": {"properties": {"status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "APPROVED", "DENIED"]}, "topic": {"type": "string"}, "source": {"type": "string"}, "instanceId": {"type": "string"}, "targetLinkId": {"type": "string"}}, "type": "object"}, "InternalRequestGroup": {"properties": {"topic": {"type": "string"}, "count": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "InvoiceOfferUpdate": {"properties": {"price": {"type": "number", "format": "decimal"}}, "type": "object"}, "InvoiceOffer": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "productId": {"type": "string"}, "articleId": {"type": "string"}, "price": {"type": "number", "format": "decimal"}, "priceUnit": {"type": "string"}}, "type": "object"}, "InvoiceOfferSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "productId": {"type": "string"}, "articleId": {"type": "string"}}, "type": "object"}, "CreateLabel": {"required": ["configJson", "enabled", "label", "showOnClient", "showOnDebtor", "showOnInvoice", "showOnSystemDebtor"], "properties": {"label": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "showOnInvoice": {"type": "boolean", "example": false}, "showOnClient": {"type": "boolean", "example": false}, "showOnDebtor": {"type": "boolean", "example": false}, "showOnSystemDebtor": {"type": "boolean", "example": false}, "configJson": {"type": "string", "format": "dict"}}, "type": "object"}, "Label": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "label": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "showOnInvoice": {"type": "boolean", "example": false}, "showOnClient": {"type": "boolean", "example": false}, "showOnDebtor": {"type": "boolean", "example": false}, "showOnSystemDebtor": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "configJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "UpdateLabel": {"required": ["configJson", "label", "showOnClient", "showOnDebtor", "showOnInvoice", "showOnSystemDebtor"], "properties": {"label": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "showOnInvoice": {"type": "boolean", "example": false}, "showOnClient": {"type": "boolean", "example": false}, "showOnDebtor": {"type": "boolean", "example": false}, "showOnSystemDebtor": {"type": "boolean", "example": false}, "configJson": {"type": "string", "format": "dict"}}, "type": "object"}, "LabelSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "showOnInvoice": {"type": "boolean", "example": false}, "showOnClient": {"type": "boolean", "example": false}, "showOnDebtor": {"type": "boolean", "example": false}, "showOnSystemDebtor": {"type": "boolean", "example": false}}, "type": "object"}, "Locale": {"properties": {"countryCode": {"type": "string"}, "languageCode": {"type": "string"}, "date": {"type": "string"}, "timezone": {"type": "string"}, "currency": {"$ref": "#/definitions/CurrencyLocale"}}, "type": "object"}, "CurrencyLocale": {"properties": {"code": {"type": "string"}, "symbol": {"type": "string"}, "precision": {"type": "integer", "format": "int", "example": 0}, "thousandSeparator": {"type": "string"}, "decimalSeparator": {"type": "string"}, "symbolOrder": {"type": "string"}}, "type": "object"}, "LocalePublic": {"properties": {"countryCode": {"type": "string"}, "languageCode": {"type": "string"}, "date": {"type": "string"}, "timezone": {"type": "string"}, "currency": {"$ref": "#/definitions/CurrencyPublicLocal"}}, "type": "object"}, "CurrencyPublicLocal": {"properties": {"code": {"type": "string"}, "symbol": {"type": "string"}, "precision": {"type": "integer", "format": "int", "example": 0}, "thousandSeparator": {"type": "string"}, "decimalSeparator": {"type": "string"}, "symbolOrder": {"type": "string"}}, "type": "object"}, "module": {"required": ["name"], "properties": {"id": {"type": "integer", "format": "int", "readOnly": true, "example": 0}, "key": {"type": "string", "readOnly": true}, "name": {"type": "string"}, "description": {"type": "string", "readOnly": true}, "type": {"type": "string", "readOnly": true}, "enabled": {"type": "boolean", "readOnly": true, "example": false}, "createdDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string", "readOnly": true}, "updatedDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string", "readOnly": true}}, "type": "object"}, "payment_request_post_swish_phone": {"required": ["amount", "phone", "redirectUri", "serviceProviderCode", "test"], "properties": {"amount": {"type": "number", "format": "decimal"}, "redirectUri": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "test": {"type": "boolean", "example": false}, "serviceProviderCode": {"type": "string", "example": "SWISH", "enum": ["SWISH"]}, "phone": {"type": "string"}}, "type": "object"}, "payment_request": {"properties": {"id": {"type": "string"}, "status": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "paymentDate": {"type": "string", "description": "The date that the payment request will be executed"}, "externalLink": {"type": "string", "description": "External link for redirect"}, "externalId": {"type": "string", "description": "External id"}, "externalStatus": {"type": "string", "description": "External status"}, "invoiceId": {"type": "string"}, "clientId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "PaymentRequestSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "status": {"type": "string"}, "amount": {"type": "string"}, "currency": {"type": "string"}, "executionDate": {"type": "string", "description": "The date that the payment request will be executed"}, "externalId": {"type": "string", "description": "External id"}, "externalStatus": {"type": "string", "description": "External status"}, "invoiceId": {"type": "string"}, "clientId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "createdDate": {"type": "string"}}, "type": "object"}, "PingVersionResponse": {"properties": {"version": {"type": "string"}, "commit": {"type": "string"}, "migration": {"type": "string", "description": "Alembic revision of the database; several, separated by \", \", when there is more than one head."}}, "type": "object"}, "PingSystemLocaleResponse": {"properties": {"configLocale": {"type": "string"}, "systemLocaleCountryCode": {"type": "string"}, "generateDateLockedToToday": {"type": "boolean", "description": "In production, the daily routine runs (reminders, charges, part invoices, billing) accept only today's date.", "example": false}}, "type": "object"}, "PriceBracketUpdate": {"properties": {"bracketPrice": {"type": "number", "format": "decimal"}}, "type": "object"}, "PriceBracket": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "priceId": {"type": "integer", "format": "int", "example": 0}, "daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}, "bracketPrice": {"type": "number", "format": "decimal"}}, "type": "object"}, "PriceBracketCreate": {"required": ["priceId"], "properties": {"priceId": {"type": "integer", "format": "int", "example": 0}, "intervals": {"type": "array", "items": {"$ref": "#/definitions/PriceBracketIntervals"}}}, "type": "object"}, "PriceBracketIntervals": {"properties": {"daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}, "bracketPrice": {"type": "number", "format": "decimal"}}, "type": "object"}, "PriceBracketSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "priceId": {"type": "integer", "format": "int", "example": 0}, "daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "price_list": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "isDefault": {"type": "boolean", "example": false}, "isDefaultClientAgreement": {"type": "boolean", "example": false}, "prices": {"type": "array", "items": {"$ref": "#/definitions/price_list_price"}}, "type": {"type": "string"}}, "type": "object"}, "price_list_price": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "articleCode": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "price": {"type": "number", "format": "decimal"}, "priceVariable": {"type": "number", "format": "decimal"}, "priceUnit": {"type": "string", "example": "PERCENTAGE", "enum": ["PERCENTAGE", "CURRENCY"]}, "recurringEnabled": {"type": "boolean", "example": false}, "recurringBillingFrequency": {"type": "integer", "format": "int", "example": 0}, "recurringBillingFrequencyUnit": {"type": "string"}, "recurringBillingChargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "recurringBillingPreviousChargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "recurringBillingChargeCount": {"type": "integer", "format": "int", "example": 0}, "overrideAgreementCurrency": {"type": "boolean", "example": false}}, "type": "object"}, "price_list_currency_mapper": {"properties": {"SEK": {"type": "string"}, "EUR": {"type": "string"}, "USD": {"type": "string"}, "NOK": {"type": "string"}, "DKK": {"type": "string"}, "GBP": {"type": "string"}, "CHF": {"type": "string"}, "PLN": {"type": "string"}}, "type": "object"}, "PriceListSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "currency": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "isDefaultClientAgreement": {"type": "boolean", "example": false}, "clientId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "price_list_price_put": {"properties": {"productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "articleCode": {"type": "string"}, "price": {"type": "number", "format": "decimal"}, "priceVariable": {"type": "number", "format": "decimal"}, "recurringEnabled": {"type": "boolean", "example": false}, "recurringBillingFrequency": {"type": "integer", "format": "int", "example": 0}, "recurringBillingFrequencyUnit": {"type": "string"}, "recurringBillingChargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "overrideAgreementCurrency": {"type": "boolean", "example": false}}, "type": "object"}, "UpdateMultiplePriceLists": {"required": ["priceLists"], "properties": {"priceLists": {"type": "array", "items": {"$ref": "#/definitions/UpdatePriceList"}}}, "type": "object"}, "UpdatePriceList": {"required": ["id", "prices"], "properties": {"id": {"type": "string"}, "prices": {"type": "array", "items": {"$ref": "#/definitions/UpdatePrices"}}}, "type": "object"}, "UpdatePrices": {"required": ["id"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "distributionCode": {"type": "string"}, "price": {"type": "number", "format": "decimal"}, "priceVariable": {"type": "number", "format": "decimal"}, "priceUnit": {"type": "string"}, "priceBrackets": {"type": "array", "items": {"$ref": "#/definitions/UpdatePriceBracket"}}, "recurringEnabled": {"type": "boolean", "example": false}, "recurringBillingFrequency": {"type": "integer", "format": "int", "example": 0}, "recurringBillingFrequencyUnit": {"type": "string"}, "recurringBillingChargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "overrideAgreementCurrency": {"type": "boolean", "example": false}}, "type": "object"}, "UpdatePriceBracket": {"required": ["bracketPrice", "daysFrom", "daysTo"], "properties": {"daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}, "bracketPrice": {"type": "number", "format": "decimal"}}, "type": "object"}, "UpdateMultiplePrices": {"properties": {"clientList": {"type": "array", "items": {"type": "string"}}, "priceList": {"type": "array", "items": {"$ref": "#/definitions/Price"}}}, "type": "object"}, "Price": {"properties": {"priceId": {"type": "integer", "format": "int", "example": 0}, "price": {"type": "number", "format": "float", "example": 0.0}, "percentIncrease": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PriceListBulkPriceUpdateTask": {"properties": {"task_id": {"type": "string"}}, "type": "object"}, "UpdateMultiplePriceBrackets": {"properties": {"clientList": {"type": "array", "items": {"type": "string"}}, "priceBrackets": {"type": "array", "items": {"$ref": "#/definitions/PriceListPriceBracket"}}}, "type": "object"}, "PriceListPriceBracket": {"properties": {"priceId": {"type": "integer", "format": "int", "example": 0}, "percentIncrease": {"type": "number", "format": "float", "example": 0.0}, "intervals": {"type": "array", "items": {"$ref": "#/definitions/Interval"}}}, "type": "object"}, "Interval": {"properties": {"daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}, "bracketPrice": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PriceListBulkBracketUpdateTask": {"properties": {"task_id": {"type": "string"}}, "type": "object"}, "FinancingFeeAdjustment": {"required": ["agreementCurrency", "clientIds", "rateChange"], "properties": {"agreementCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "rateChange": {"type": "number", "format": "decimal", "description": "Annual rate change in percentage points, may be negative."}, "roundingDecimals": {"type": "integer", "format": "int", "description": "Decimals to round new prices to, 0-6. Defaults to 4.", "example": 0}, "clientIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "FinancingFeeAdjustmentPreview": {"properties": {"rows": {"type": "array", "items": {"$ref": "#/definitions/FinancingFeeAdjustmentRow"}}, "skippedClients": {"type": "array", "items": {"$ref": "#/definitions/FinancingFeeAdjustmentSkippedClient"}}, "summary": {"$ref": "#/definitions/FinancingFeeAdjustmentSummary"}}, "type": "object"}, "FinancingFeeAdjustmentRow": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "agreementCurrency": {"type": "string"}, "priceListId": {"type": "string"}, "priceListCode": {"type": "string"}, "priceBracketId": {"type": "integer", "format": "int", "example": 0}, "daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}, "oldPrice": {"type": "number", "format": "float", "example": 0.0}, "newPrice": {"type": "number", "format": "float", "example": 0.0}, "flags": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "FinancingFeeAdjustmentSkippedClient": {"properties": {"clientId": {"type": "string"}, "reason": {"type": "string"}}, "type": "object"}, "FinancingFeeAdjustmentSummary": {"properties": {"clientCount": {"type": "integer", "format": "int", "example": 0}, "bracketCount": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "FinancingFeeAdjustmentApply": {"required": ["agreementCurrency", "clientIds", "expected", "rateChange"], "properties": {"agreementCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "rateChange": {"type": "number", "format": "decimal", "description": "Annual rate change in percentage points, may be negative."}, "roundingDecimals": {"type": "integer", "format": "int", "description": "Decimals to round new prices to, 0-6. Defaults to 4.", "example": 0}, "clientIds": {"type": "array", "items": {"type": "string"}}, "expected": {"type": "array", "items": {"$ref": "#/definitions/FinancingFeeAdjustmentExpected"}}}, "type": "object"}, "FinancingFeeAdjustmentExpected": {"required": ["priceBracketId"], "properties": {"priceBracketId": {"type": "integer", "format": "int", "example": 0}, "oldPrice": {"type": "number", "format": "float", "description": "oldPrice from the preview row, null when the bracket has no price.", "example": 0.0}}, "type": "object"}, "FinancingFeeAdjustmentResult": {"properties": {"rows": {"type": "array", "items": {"$ref": "#/definitions/FinancingFeeAdjustmentRow"}}, "skippedClients": {"type": "array", "items": {"$ref": "#/definitions/FinancingFeeAdjustmentSkippedClient"}}, "summary": {"$ref": "#/definitions/FinancingFeeAdjustmentSummary"}, "runId": {"type": "string"}}, "type": "object"}, "BulkChangeRun": {"properties": {"id": {"type": "string"}, "changeType": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "agreementCurrency": {"type": "string"}, "rateChange": {"type": "number", "format": "float", "example": 0.0}, "roundingDecimals": {"type": "integer", "format": "int", "example": 0}, "clientCount": {"type": "integer", "format": "int", "example": 0}, "bracketCount": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "BulkChangeRunDetail": {"properties": {"id": {"type": "string"}, "changeType": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "agreementCurrency": {"type": "string"}, "rateChange": {"type": "number", "format": "float", "example": 0.0}, "roundingDecimals": {"type": "integer", "format": "int", "example": 0}, "clientCount": {"type": "integer", "format": "int", "example": 0}, "bracketCount": {"type": "integer", "format": "int", "example": 0}, "rows": {"type": "array", "items": {"$ref": "#/definitions/BulkChangeRunRow"}}}, "type": "object"}, "BulkChangeRunRow": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "articleId": {"type": "string"}, "daysFrom": {"type": "integer", "format": "int", "example": 0}, "daysTo": {"type": "integer", "format": "int", "example": 0}, "oldPrice": {"type": "number", "format": "float", "example": 0.0}, "newPrice": {"type": "number", "format": "float", "example": 0.0}, "fieldKey": {"type": "string"}}, "type": "object"}, "ProductRatePut": {"properties": {"data": {"type": "array", "items": {"$ref": "#/definitions/ProductRatePutItem"}}}, "type": "object"}, "QueryReportSchedulerPut": {"properties": {"lastRun": {"type": "string", "format": "date", "example": "2016-06-06"}, "frequency": {"type": "string"}, "runDay": {"type": "integer", "format": "int", "example": 0}, "fileFormat": {"type": "string"}, "recipients": {"$ref": "#/definitions/QueryReportRecipient"}, "isActive": {"type": "boolean", "example": false}}, "type": "object"}, "QueryReportRecipient": {"properties": {"id": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "QueryReportScheduler": {"properties": {"id": {"type": "string"}, "queryReportId": {"type": "string"}, "clientId": {"type": "string"}, "lastRun": {"type": "string", "format": "date", "example": "2016-06-06"}, "frequency": {"type": "string"}, "runDay": {"type": "integer", "format": "int", "example": 0}, "fileFormat": {"type": "string"}, "select": {"type": "array", "items": {"$ref": "#/definitions/QueryReportField"}}, "filter": {"type": "array", "items": {"$ref": "#/definitions/QueryReportSchedulerFilter"}}, "order": {"type": "array", "items": {"$ref": "#/definitions/QueryReportOrderQuery"}}, "group": {"type": "array", "items": {"$ref": "#/definitions/QueryReportGroupQuery"}}, "sum": {"type": "array", "items": {"$ref": "#/definitions/QueryReportField"}}, "recipients": {"$ref": "#/definitions/QueryReportRecipient"}, "isActive": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "QueryReportField": {"properties": {"field": {"type": "string"}}, "type": "object"}, "QueryReportSchedulerFilter": {"properties": {"field": {"type": "string"}, "operator": {"type": "string", "example": "EQ", "enum": ["EQ", "NE", "GT", "LT", "GE", "LE", "IN", "NOT_IN"]}, "value": {"type": "string"}, "dateField": {"type": "boolean", "example": false}}, "type": "object"}, "QueryReportOrderQuery": {"properties": {"field": {"type": "string"}, "order": {"type": "string"}}, "type": "object"}, "QueryReportGroupQuery": {"properties": {"field": {"type": "string"}, "resolution": {"type": "string", "enum": [null, "YEAR", "MONTH", "DAY", "HOUR"]}}, "type": "object"}, "QueryReportRecipientsPost": {"properties": {"recipients": {"type": "array", "items": {"$ref": "#/definitions/QueryReportRecipientPost"}}}, "type": "object"}, "QueryReportRecipientPost": {"required": ["email"], "properties": {"email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "QueryReportSchedulerPost": {"required": ["clientId", "fileFormat", "frequency", "queryReportId"], "properties": {"queryReportId": {"type": "string"}, "clientId": {"type": "string"}, "frequency": {"type": "string", "example": "DAILY", "enum": ["DAILY", "WEEKLY", "MONTHLY"]}, "runDay": {"type": "integer", "format": "int", "example": 0}, "fileFormat": {"type": "string", "example": "PDF", "enum": ["PDF", "XLSX", "CSV"]}, "select": {"type": "array", "items": {"$ref": "#/definitions/QueryReportSelect"}}, "filter": {"type": "array", "items": {"$ref": "#/definitions/QueryReportSchedulerFilter"}}, "order": {"type": "array", "items": {"$ref": "#/definitions/QueryReportOrderQuery"}}, "recipients": {"type": "array", "items": {"$ref": "#/definitions/QueryReportRecipient"}}, "isActive": {"type": "boolean", "example": false}}, "type": "object"}, "QueryReportSelect": {"properties": {"field": {"type": "string"}, "fieldName": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "QueryReportSchedulerSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "queryReportId": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "ReasonCodeUpdate": {"required": ["code", "defaultNoteText", "type"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string", "example": "COLLECTION_BATCH", "enum": ["COLLECTION_BATCH", "INVOICE"]}, "status": {"type": "string"}, "noteRequired": {"type": "boolean", "example": false}, "defaultNoteText": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "bookkeepingAccountId": {"type": "string"}, "includeDescriptionInReport": {"type": "boolean", "example": false}, "systemManaged": {"type": "boolean", "example": false}}, "type": "object"}, "ReasonCode": {"required": ["code", "defaultNoteText"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "noteRequired": {"type": "boolean", "example": false}, "defaultNoteText": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "bookkeepingAccountId": {"type": "string"}, "includeDescriptionInReport": {"type": "boolean", "example": false}, "systemManaged": {"type": "boolean", "example": false}}, "type": "object"}, "ReasonCodeCreate": {"required": ["code", "defaultNoteText", "type"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string", "example": "COLLECTION_BATCH", "enum": ["COLLECTION_BATCH", "INVOICE"]}, "status": {"type": "string"}, "noteRequired": {"type": "boolean", "example": false}, "defaultNoteText": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "bookkeepingAccountId": {"type": "string"}, "includeDescriptionInReport": {"type": "boolean", "example": false}, "systemManaged": {"type": "boolean", "example": false}}, "type": "object"}, "ReasonCodeSearch": {"required": ["code", "defaultNoteText"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "noteRequired": {"type": "boolean", "example": false}, "defaultNoteText": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "bookkeepingAccountId": {"type": "string"}, "includeDescriptionInReport": {"type": "boolean", "example": false}, "systemManaged": {"type": "boolean", "example": false}}, "type": "object"}, "Reminder": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceLedgerEventId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorEmailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "debtorEmailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "type": {"type": "string", "example": "EXPIRED_NOTIFICATION", "enum": ["EXPIRED_NOTIFICATION", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION"]}, "status": {"type": "string", "example": "GENERATED", "enum": ["GENERATED", "AUTHORIZED", "PENDING", "BOOKED"]}, "reminderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "generatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "generatedBy": {"type": "string"}, "authorizedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "authorizedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "documentFileName": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "string"}}, "type": "object"}, "ReminderBulkDeleteResponse": {"properties": {"message": {"type": "string"}, "deleted_count": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ReminderSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceLedgerEventId": {"type": "string"}, "debtorName": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "type": {"type": "string", "example": "EXPIRED_NOTIFICATION", "enum": ["EXPIRED_NOTIFICATION", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION"]}, "status": {"type": "string", "example": "GENERATED", "enum": ["GENERATED", "AUTHORIZED", "PENDING", "BOOKED"]}, "reminderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "generatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "generatedBy": {"type": "string"}, "authorizedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "authorizedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "documentFileName": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "string"}}, "type": "object"}, "ReminderPut": {"properties": {"reminderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "instanceProviderId": {"type": "string"}, "reminderIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ReminderProfileUpdate": {"properties": {"currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "continuousInterestOnPausedInvoices": {"type": "boolean", "example": false}, "recourseInterestOnPausedInvoices": {"type": "boolean", "example": false}, "interestInvoiceOnPausedInvoices": {"type": "boolean", "example": false}, "applyInterestRetroactively": {"type": "boolean", "example": false}, "calculationOrder": {"type": "string", "example": "CAPITAL", "enum": ["CAPITAL", "REMINDER", "INTEREST", "CAPITAL_REMINDER", "CAPITAL_INTEREST", "REMINDER_CAPITAL", "REMINDER_INTEREST", "INTEREST_CAPITAL", "INTEREST_REMINDER", "CAPITAL_REMINDER_INTEREST", "CAPITAL_INTEREST_REMINDER", "REMINDER_CAPITAL_INTEREST", "REMINDER_INTEREST_CAPITAL", "INTEREST_CAPITAL_REMINDER", "INTEREST_REMINDER_CAPITAL"]}, "reminderFeeKickback": {"type": "integer", "format": "int", "example": 0}, "paymentToleranceLimit": {"type": "number", "format": "decimal"}, "paymentToleranceChargeClient": {"type": "boolean", "example": false}, "invoicePartPaymentDistributionChannels": {"type": "array", "items": {"type": "string"}}, "invoiceClosedDistributionChannels": {"type": "array", "items": {"type": "string"}}, "toleranceLimitInterest": {"type": "integer", "format": "int", "example": 0}, "toleranceLimitInterestChargeClient": {"type": "boolean", "example": false}, "toleranceLimitReminder": {"type": "integer", "format": "int", "example": 0}, "toleranceLimitReminderChargeClient": {"type": "boolean", "example": false}, "createCollectionErrand": {"type": "boolean", "example": false}, "collectionWriteoffReminder": {"type": "boolean", "example": false}, "collectionWriteoffInterest": {"type": "boolean", "example": false}, "currencyDifferenceChargeClient": {"type": "boolean", "example": false}, "useDueDateOnPDF": {"type": "boolean", "example": false}, "interest": {"$ref": "#/definitions/reminderProfileInterest"}, "interestInvoice": {"$ref": "#/definitions/reminderProfileInterestInvoice"}, "checkOpenCreditInvoices": {"type": "boolean", "example": false}, "automaticallyResumeInvoices": {"type": "boolean", "example": false}, "lateInterestBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}, "reminderFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}}, "type": "object"}, "reminderProfileInterest": {"properties": {"enabled": {"type": "boolean", "example": false}, "hideLateInterestFromPDF": {"type": "boolean", "example": false}, "rate": {"type": "number", "format": "decimal"}, "freeDays": {"type": "integer", "format": "int", "example": 0}, "kickBack": {"type": "integer", "format": "int", "example": 0}, "kickBackMethodCode": {"type": "string"}, "calculationMethodCode": {"type": "string"}}, "type": "object"}, "reminderProfileInterestInvoice": {"properties": {"enabled": {"type": "boolean", "example": false}, "interestInvoiceFee": {"type": "number", "format": "decimal"}, "reminderProfileCode": {"type": "string"}, "paymentTerms": {"type": "string"}, "balanceTrigger": {"type": "string", "example": "INTEREST", "enum": ["INTEREST", "REMINDER_INTEREST"]}}, "type": "object"}, "reminderProfile": {"properties": {"id": {"type": "string"}, "parentId": {"type": "string"}, "invoiceId": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "code": {"type": "string"}, "public": {"type": "boolean", "example": false}, "isDefault": {"type": "boolean", "example": false}, "continuousInterestOnPausedInvoices": {"type": "boolean", "example": false}, "recourseInterestOnPausedInvoices": {"type": "boolean", "example": false}, "interestInvoiceOnPausedInvoices": {"type": "boolean", "example": false}, "applyInterestRetroactively": {"type": "boolean", "example": false}, "calculationOrder": {"type": "string", "example": "CAPITAL", "enum": ["CAPITAL", "REMINDER", "INTEREST", "CAPITAL_REMINDER", "CAPITAL_INTEREST", "REMINDER_CAPITAL", "REMINDER_INTEREST", "INTEREST_CAPITAL", "INTEREST_REMINDER", "CAPITAL_REMINDER_INTEREST", "CAPITAL_INTEREST_REMINDER", "REMINDER_CAPITAL_INTEREST", "REMINDER_INTEREST_CAPITAL", "INTEREST_CAPITAL_REMINDER", "INTEREST_REMINDER_CAPITAL"]}, "reminderFeeKickback": {"type": "integer", "format": "int", "example": 0}, "paymentToleranceLimit": {"type": "number", "format": "decimal"}, "paymentToleranceChargeClient": {"type": "boolean", "example": false}, "invoicePartPaymentDistributionChannels": {"type": "array", "items": {"type": "string"}}, "invoiceClosedDistributionChannels": {"type": "array", "items": {"type": "string"}}, "toleranceLimitInterest": {"type": "integer", "format": "int", "example": 0}, "toleranceLimitInterestChargeClient": {"type": "boolean", "example": false}, "toleranceLimitReminder": {"type": "integer", "format": "int", "example": 0}, "toleranceLimitReminderChargeClient": {"type": "boolean", "example": false}, "createCollectionErrand": {"type": "boolean", "example": false}, "collectionWriteoffReminder": {"type": "boolean", "example": false}, "collectionWriteoffInterest": {"type": "boolean", "example": false}, "currencyDifferenceChargeClient": {"type": "boolean", "example": false}, "useDueDateOnPDF": {"type": "boolean", "example": false}, "interest": {"$ref": "#/definitions/reminderProfileInterest"}, "interestInvoice": {"$ref": "#/definitions/reminderProfileInterestInvoice"}, "checkOpenCreditInvoices": {"type": "boolean", "example": false}, "automaticallyResumeInvoices": {"type": "boolean", "example": false}, "lateInterestBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}, "reminderFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}}, "type": "object"}, "reminderProfileSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "parentId": {"type": "string"}, "invoiceId": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "code": {"type": "string"}, "public": {"type": "boolean", "example": false}, "isDefault": {"type": "boolean", "example": false}, "useDueDateOnPDF": {"type": "boolean", "example": false}, "continuousInterestOnPausedInvoices": {"type": "boolean", "example": false}, "interestInvoiceOnPausedInvoices": {"type": "boolean", "example": false}, "paymentToleranceLimit": {"type": "number", "format": "decimal"}, "paymentToleranceChargeClient": {"type": "boolean", "example": false}, "toleranceLimitInterest": {"type": "integer", "format": "int", "example": 0}, "toleranceLimitInterestChargeClient": {"type": "boolean", "example": false}, "toleranceLimitReminder": {"type": "integer", "format": "int", "example": 0}, "toleranceLimitReminderChargeClient": {"type": "boolean", "example": false}, "currencyDifferenceChargeClient": {"type": "boolean", "example": false}, "checkOpenCreditInvoices": {"type": "boolean", "example": false}, "automaticallyResumeInvoices": {"type": "boolean", "example": false}, "lateInterestBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}, "reminderFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}}, "type": "object"}, "ReminderProfileCopy": {"properties": {"code": {"type": "string"}}, "type": "object"}, "reminderProfileClient": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}}, "type": "object"}, "ReminderProfileLevelUpdate": {"properties": {"index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "EXPIRED_NOTIFICATION", "enum": ["EXPIRED_NOTIFICATION", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "FINAL_NOTICE"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "reminderFeeAmount": {"type": "number", "format": "decimal"}, "reminderClientFeeAmount": {"type": "number", "format": "decimal"}, "reminderFeeKickback": {"type": "integer", "format": "int", "example": 0}, "calculateInterest": {"type": "boolean", "example": false}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}}, "collectionExternal": {"description": "The external collection agency this COLLECTION level hands its invoices to, or null for none. Admin users only, and only on a level that is not on an invoice. The provider must be an enabled DEBT_COLLECTION service provider. The agency works the case through /collections/external; cases with a provider coded INTRUM_SE or INTRUM_NO are also pushed as COLLECTION_EXTERNAL webhooks. An invoice copies the agency when it is created, so a change affects only invoices created afterwards. Sending the current value changes nothing.", "allOf": [{"$ref": "#/definitions/ReminderProfileLevelCollectionExternalInput"}]}}, "type": "object"}, "ReminderProfileLevelCollectionExternalInput": {"properties": {"serviceProviderId": {"type": "string"}}, "type": "object"}, "reminderProfileLevel": {"properties": {"id": {"type": "string"}, "parentId": {"type": "string"}, "reminderProfileId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "EXPIRED_NOTIFICATION", "enum": ["EXPIRED_NOTIFICATION", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "FINAL_NOTICE"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "reminderFeeAmount": {"type": "number", "format": "decimal"}, "reminderClientFeeAmount": {"type": "number", "format": "decimal"}, "reminderFeeKickback": {"type": "integer", "format": "int", "example": 0}, "calculateInterest": {"type": "boolean", "example": false}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}}, "collectionExternal": {"$ref": "#/definitions/ReminderProfileLevelCollectionExternal"}}, "type": "object"}, "ReminderProfileLevelCollectionExternal": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "serviceProviderId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "status": {"type": "string"}}, "type": "object"}, "ReminderProfileLevelCreate": {"required": ["graceDays", "reminderProfileId", "type", "validDays"], "properties": {"reminderProfileId": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "EXPIRED_NOTIFICATION", "enum": ["EXPIRED_NOTIFICATION", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "FINAL_NOTICE"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "reminderFeeAmount": {"type": "number", "format": "decimal"}, "reminderClientFeeAmount": {"type": "number", "format": "decimal"}, "reminderFeeKickback": {"type": "integer", "format": "int", "example": 0}, "calculateInterest": {"type": "boolean", "example": false}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}}, "collectionExternal": {"description": "The external collection agency this COLLECTION level hands its invoices to, or null for none. Admin users only, and only on a level that is not on an invoice. The provider must be an enabled DEBT_COLLECTION service provider. The agency works the case through /collections/external; cases with a provider coded INTRUM_SE or INTRUM_NO are also pushed as COLLECTION_EXTERNAL webhooks. An invoice copies the agency when it is created, so a change affects only invoices created afterwards. Sending the current value changes nothing.", "allOf": [{"$ref": "#/definitions/ReminderProfileLevelCollectionExternalInput"}]}}, "type": "object"}, "reminderProfileSearchLevel": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "parentId": {"type": "string"}, "reminderProfileId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "index": {"type": "string"}, "type": {"type": "string"}, "afterPreviousDays": {"type": "string"}}, "type": "object"}, "ReportDistribution": {"properties": {"report": {"type": "string"}, "frequency": {"type": "string"}, "fileFormats": {"type": "array", "items": {"type": "string"}}, "isActive": {"type": "boolean", "example": false}, "recipients": {"type": "array", "items": {"$ref": "#/definitions/ReportDistributionRecipient"}}, "usesDefaultRecipients": {"type": "boolean", "example": false}}, "type": "object"}, "ReportDistributionRecipient": {"required": ["email"], "properties": {"email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "ReportDistributionPut": {"properties": {"recipients": {"type": "array", "items": {"$ref": "#/definitions/ReportDistributionRecipient"}}, "isActive": {"type": "boolean", "example": false}}, "type": "object"}, "RoleModel": {"required": ["id"], "properties": {"id": {"type": "string"}, "rights": {"type": "array", "items": {"$ref": "#/definitions/RightModel"}}}, "type": "object"}, "RightModel": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "SettlementAccount": {"properties": {"id": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "balance": {"type": "number", "format": "decimal"}, "balanceLocale": {"type": "number", "format": "decimal"}, "lastTransactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "SettlementAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "currency": {"type": "string"}, "balance": {"type": "number", "format": "decimal"}, "balanceLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "Voucher": {"required": ["external_id", "voucher_ids"], "properties": {"external_id": {"type": "integer", "format": "int", "example": 0}, "voucher_ids": {"type": "array", "items": {"$ref": "#/definitions/VoucherIds"}}}, "type": "object"}, "VoucherIds": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "StrawbayConfiguration": {"properties": {"enabled": {"type": "boolean", "example": false}, "strawbayClientId": {"type": "string"}, "strawbayAudience": {"type": "string"}}, "type": "object"}, "StrawbayOnboardingStart": {"properties": {"state": {"type": "string"}, "exp": {"type": "integer", "format": "int", "example": 0}, "url": {"type": "string"}, "message": {"type": "string"}}, "type": "object"}, "ApiErrorDetailAction": {"allOf": [{"$ref": "#/definitions/Api error"}, {"required": ["action"], "properties": {"action": {"type": "string", "description": "Link to action."}}, "type": "object"}]}, "ApiError": {"required": ["error", "message"], "properties": {"error": {"type": "string", "description": "Stable machine-readable error code. Example: VALIDATION_ERROR"}, "message": {"type": "string", "description": "Human-readable summary."}, "details": {"type": "array", "description": "List of per-field validation errors.", "items": {"$ref": "#/definitions/ApiErrorDetail"}}}, "type": "object"}, "ApiErrorDetail": {"properties": {"field": {"type": "string", "description": "Field related to the issue."}, "issue": {"type": "string", "description": "Machine-friendly issue code."}, "message": {"type": "string", "description": "Human explanation."}}, "type": "object"}, "StrawbayOnboardingDetailed": {"properties": {"state": {"type": "string"}, "status": {"type": "string"}, "exp": {"type": "string"}, "error": {"type": "string"}, "connectionId": {"type": "string"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string"}, "updatedBy": {"type": "string"}}, "type": "object"}, "StrawbayConnectionIdentifier": {"required": ["connectionId"], "properties": {"clientId": {"type": "string"}, "connectionId": {"type": "string"}}, "type": "object"}, "StrawbayConnectionAction": {"required": ["message"], "properties": {"message": {"type": "string"}}, "type": "object"}, "StrawbayOnboardingError": {"required": ["erp_application_id", "errorCode", "errorMessage", "state"], "properties": {"state": {"type": "string"}, "errorMessage": {"type": "string"}, "errorCode": {"type": "string"}, "erp_application_id": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "StrawbayConnection": {"required": ["connectionId", "erpApplicationId", "erpType"], "properties": {"connectionId": {"type": "string"}, "clientId": {"type": "string"}, "erpType": {"type": "string"}, "erpApplicationId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "status": {"type": "string"}, "message": {"type": "string"}}, "type": "object"}, "StrawbayConnectionComplete": {"required": ["connectionId", "erpApplicationId", "erpType"], "properties": {"connectionId": {"type": "string"}, "clientId": {"type": "string"}, "erpType": {"type": "string"}, "erpApplicationId": {"type": "string"}}, "type": "object"}, "StrawbayConnectionFlow": {"required": ["code", "flowId"], "properties": {"flowId": {"type": "string"}, "code": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "StrawbayCreateWebhook": {"required": ["connectionId", "flowCode", "flowId", "secret"], "properties": {"connectionId": {"type": "string"}, "flowId": {"type": "string"}, "flowCode": {"type": "string"}, "secret": {"type": "string"}}, "type": "object"}, "SystemDebtorPut": {"properties": {"allowFactoring": {"type": "boolean", "example": false}, "insuranceLimitLocale": {"type": "number", "format": "decimal"}, "overrideInvoiceInsuranceValidation": {"type": "boolean", "example": false}, "ignoreServiceProviderCreditCheck": {"type": "boolean", "example": false}, "sniCode": {"type": "string"}}, "type": "object"}, "SystemDebtor": {"properties": {"identificationNumber": {"type": "string"}, "locale": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "identifiers": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorNationalLegalIdentifier"}}, "insuranceLimitLocale": {"type": "number", "format": "decimal"}, "allowFactoring": {"type": "boolean", "example": false}, "balances": {"$ref": "#/definitions/systemDebtorBalances"}, "systemDebtorGroupId": {"type": "integer", "format": "int", "example": 0}, "systemDebtorGroupName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "document": {"$ref": "#/definitions/SystemDebtorDocument"}, "segment": {"$ref": "#/definitions/SystemDebtorSegment"}, "overrideInvoiceInsuranceValidation": {"type": "boolean", "default": false, "example": false}, "ignoreServiceProviderCreditCheck": {"type": "boolean", "example": false}, "sniCode": {"type": "string"}, "isBlocked": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "SystemDebtorNationalLegalIdentifier": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "value": {"type": "string"}, "source": {"type": "string"}, "entityName": {"type": "string"}, "entityRegistrationNumber": {"type": "string"}, "entityCity": {"type": "string"}, "entityCountry": {"type": "string"}, "entityConfidence": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "systemDebtorBalances": {"properties": {"total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "capital": {"type": "number", "format": "decimal"}, "capitalLocale": {"type": "number", "format": "decimal"}, "capitalService": {"type": "number", "format": "decimal"}, "capitalServiceLocale": {"type": "number", "format": "decimal"}, "capitalFinanced": {"type": "number", "format": "decimal"}, "capitalFinancedLocale": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "capitalFinancedInsuranceLocale": {"type": "number", "format": "decimal"}, "reminder": {"type": "number", "format": "decimal"}, "reminderLocale": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "interestLocale": {"type": "number", "format": "decimal"}, "expiredTotal": {"type": "number", "format": "decimal"}, "expiredTotalLocale": {"type": "number", "format": "decimal"}, "expiredCapital": {"type": "number", "format": "decimal"}, "expiredCapitalLocale": {"type": "number", "format": "decimal"}, "expiredCapitalService": {"type": "number", "format": "decimal"}, "expiredCapitalServiceLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinanced": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "expiredReminder": {"type": "number", "format": "decimal"}, "expiredReminderLocale": {"type": "number", "format": "decimal"}, "expiredInterest": {"type": "number", "format": "decimal"}, "expiredInterestLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "SystemDebtorDocument": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "SystemDebtorSegment": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "code": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "client": {"required": ["identificationNumber", "name"], "properties": {"locale": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "approvalStatus": {"type": "string"}, "approvedTerms": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/clientContactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "managerUserId": {"type": "string"}, "managerUserGroupId": {"type": "integer", "format": "int", "example": 0}, "managerUserGroupName": {"type": "integer", "format": "int", "example": 0}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "id": {"type": "string"}, "identifiers": {"type": "array", "items": {"$ref": "#/definitions/ClientNationalLegalIdentifier"}}, "externalId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "templateId": {"type": "string"}, "engineRuleSource": {"type": "string", "description": "Where the client engine rule currently comes from. TEMPLATE: the client template it is connected to. PROFILE: the engine rule profile it is connected to. CUSTOM: connected to a template or a profile, but not running its rule, either never pushed or changed on the client since. DEFAULT: connected to neither."}, "engineRuleProfileName": {"type": "string"}, "engineRuleProfileAppliedVersion": {"type": "integer", "format": "int", "example": 0}, "instanceProviderName": {"type": "string"}, "clientGroupId": {"type": "integer", "format": "int", "example": 0}, "clientGroupName": {"type": "string"}, "invoiceErpId": {"type": "string"}, "invoiceErpName": {"type": "string"}, "bookkeepErpId": {"type": "string"}, "bookkeepErpName": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientHandlerName": {"type": "string"}, "sni": {"type": "string"}, "industryCode": {"type": "string"}, "registeredOffice": {"type": "string"}, "businessDescription": {"type": "string"}, "paymentAccounts": {"type": "array", "items": {"$ref": "#/definitions/clientPaymentAccount"}}, "payoutAccounts": {"type": "array", "items": {"$ref": "#/definitions/ClientPayoutAccount"}}, "baseInterestSettings": {"$ref": "#/definitions/BaseInterestSettingsFields"}, "logotypeDocumentFileName": {"type": "string"}, "useDelayedPenaltyFee": {"type": "boolean", "example": false}, "emailNotifications": {"type": "boolean", "example": false}, "customInvoicePaymentReferenceSettings": {"type": "boolean", "example": false}, "customCollectionBatchPaymentReferenceSettings": {"type": "boolean", "example": false}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "ignoreServiceProviderCreditCheck": {"type": "boolean", "example": false}, "enableAutomaticCreditCheckClientDebtor": {"type": "boolean", "example": false}, "sumAccountBalanceOnPayout": {"type": "boolean", "example": false}, "engineRuleId": {"type": "string"}, "invoiceFinancingProvider": {"type": "string"}, "agreementCurrency": {"type": "string"}, "useMfa": {"type": "boolean", "example": false}, "invoiceSettings": {"$ref": "#/definitions/ClientScopedInvoiceSettings"}, "einvoicePartyId": {"type": "string"}, "serviceProviderInsuranceAgreement": {"$ref": "#/definitions/ClientInsuranceAgreement"}}, "type": "object"}, "clientContactInformation": {"required": ["email"], "properties": {"name": {"type": "string", "description": "The name of the person that should be contact person for container when we contact them."}, "email": {"type": "string", "description": "The e-mail of the person that should contact person for container when we contact them."}, "phone": {"type": "string", "description": "The phone of the contact person when we contact them.\t"}, "cellPhone": {"type": "string", "description": "The cell phone of the contact when we contact them.\t"}, "documentEmail": {"type": "string", "format": "email", "example": "email@domain.com"}, "documentPhone": {"type": "string"}, "primaryContactEmail": {"type": "string", "format": "email", "description": "Email for manual contact with the client. Carries no functionality: it is not used for report distribution and does not create a client user.", "example": "email@domain.com"}}, "type": "object"}, "ClientNationalLegalIdentifier": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "value": {"type": "string"}, "source": {"type": "string"}, "entityName": {"type": "string"}, "entityRegistrationNumber": {"type": "string"}, "entityCity": {"type": "string"}, "entityCountry": {"type": "string"}, "entityConfidence": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "clientPaymentAccount": {"properties": {"id": {"type": "string"}, "currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "ClientPayoutAccount": {"properties": {"id": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "bankName": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "useChannel": {"type": "string", "example": "BANKGIRO", "enum": ["BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "enabled": {"type": "boolean", "example": false}, "automatic": {"type": "boolean", "example": false}, "isBlocked": {"type": "boolean", "example": false}}, "type": "object"}, "ClientScopedInvoiceSettings": {"properties": {"invoiceColorPrint": {"type": "boolean", "example": false}, "invoiceExpressDelivery": {"type": "boolean", "example": false}, "reminderColorPrint": {"type": "boolean", "example": false}, "reminderExpressDelivery": {"type": "boolean", "example": false}}, "type": "object"}, "ClientInsuranceAgreement": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "agreementId": {"type": "string"}, "description": {"type": "string"}, "defaultInsuranceLimit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "SystemDebtorBankruptcy": {"required": ["pauseCollectionBatches", "pauseInvoices"], "properties": {"pauseInvoices": {"type": "boolean", "example": false}, "pauseCollectionBatches": {"type": "boolean", "example": false}}, "type": "object"}, "SystemDebtorSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "identificationNumber": {"type": "string"}, "identificationNumberInternal": {"type": "string"}, "locale": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "vatNumber": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "updatedDate": {"type": "string"}}, "type": "object"}, "CollectionBatchGuarantorSystemDebtor": {"required": ["address", "city", "collectionBatchId", "identificationNumber", "name", "zip"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "identificationNumber": {"type": "string"}, "collectionBatchId": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "SystemDebtorCreditData": {"properties": {"id": {"type": "string"}, "metadata": {"type": "object", "default": {}}, "serviceProviderId": {"type": "string"}, "serviceProviderName": {"type": "string"}, "creditCheckDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "latestUpdatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "identificationNumber": {"type": "string"}, "monitoringEvents": {"type": "array", "items": {"$ref": "#/definitions/monitoringDataSystemDebtor"}}}, "type": "object"}, "monitoringDataSystemDebtor": {"properties": {"metadata": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "type": {"type": "string"}, "topic": {"type": "string"}}, "type": "object"}, "CreditDataSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "metadata": {"type": "object", "default": {}}, "serviceProviderId": {"type": "string"}, "serviceProviderName": {"type": "string"}, "creditCheckDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "latestUpdatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "identificationNumber": {"type": "string"}, "monitoringEvents": {"type": "array", "items": {"$ref": "#/definitions/monitoringDataSystemDebtor"}}}, "type": "object"}, "SystemDebtorClientDedicatedLimitPut": {"properties": {"limit": {"type": "integer", "format": "int", "description": "Limit with recourse", "example": 0}, "validToDate": {"type": "string", "format": "date", "description": "Valid until date for limit", "example": "2016-06-06"}}, "type": "object"}, "SystemDebtorClientAllocationStatus": {"properties": {"id": {"type": "string"}, "systemDebtorIdentificationNumber": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "currency": {"type": "string"}, "balance": {"type": "number", "format": "decimal"}, "limit": {"type": "integer", "format": "int", "example": 0}, "limitLocale": {"type": "number", "format": "decimal"}, "totalDisposable": {"type": "number", "format": "decimal"}, "maxDisposable": {"type": "number", "format": "decimal"}, "totalUsed": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "SystemDebtorClientDedicatedLimitPost": {"required": ["clientId", "systemDebtorIdentificationNumber"], "properties": {"systemDebtorIdentificationNumber": {"type": "string", "description": "System debtor ID"}, "clientId": {"type": "string", "description": "Client ID"}, "limit": {"type": "integer", "format": "int", "default": 0, "example": 0}, "limitValidToDate": {"type": "string", "format": "date", "description": "Valid until date for recourse limit", "example": "2016-06-06"}}, "type": "object"}, "SystemDebtorClientDedicatedLimitPutWithId": {"required": ["id"], "properties": {"limit": {"type": "integer", "format": "int", "description": "Limit with recourse", "example": 0}, "validToDate": {"type": "string", "format": "date", "description": "Valid until date for limit", "example": "2016-06-06"}, "id": {"type": "string", "description": "ID of the limit to update"}}, "type": "object"}, "SystemDebtorClientDedicatedLimitSearch": {"properties": {"systemDebtorIdentificationNumber": {"type": "string", "description": "System debtor ID filter"}, "clientId": {"type": "string", "description": "Client ID filter"}, "limit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "SystemDebtorCreditStatusPut": {"properties": {"limitGlobal": {"type": "integer", "format": "int", "example": 0}, "limitGlobalValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "rate": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "SystemDebtorCreditStatus": {"properties": {"id": {"type": "string"}, "systemDebtorId": {"type": "string"}, "limitGlobal": {"type": "integer", "format": "int", "example": 0}, "rate": {"type": "integer", "format": "int", "example": 0}, "totalUsed": {"type": "number", "format": "float", "example": 0.0}, "totalDisposable": {"type": "number", "format": "float", "example": 0.0}, "totalRecoursed": {"type": "number", "format": "float", "example": 0.0}, "totalBalance": {"type": "number", "format": "float", "example": 0.0}, "currencyCreditStatuses": {"type": "array", "items": {"$ref": "#/definitions/SystemDebtorCreditStatusCurrency"}}, "limitGlobalValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "SystemDebtorCreditStatusCurrency": {"properties": {"id": {"type": "string"}, "systemDebtorCreditStatusId": {"type": "string"}, "systemDebtorId": {"type": "string"}, "currency": {"type": "string"}, "limitWithRecourse": {"type": "integer", "format": "int", "example": 0}, "limitWithoutRecourse": {"type": "integer", "format": "int", "example": 0}, "totalUsedWithRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalUsedWithoutRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalDisposableWithRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalDisposableWithoutRecourse": {"type": "number", "format": "float", "example": 0.0}, "totalBalance": {"type": "number", "format": "float", "example": 0.0}, "limitWithRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitWithoutRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "SystemDebtorCreditStatusSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "systemDebtorId": {"type": "string"}}, "type": "object"}, "SystemDebtorCreditStatusCurrencyPut": {"properties": {"limitWithRecourse": {"type": "integer", "format": "int", "example": 0}, "limitWithoutRecourse": {"type": "integer", "format": "int", "example": 0}, "limitWithRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "limitWithoutRecourseValidToDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "SystemDebtorCreditStatusCurrencySearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "systemDebtorId": {"type": "string"}, "systemDebtorCreditStatusId": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "SystemDebtorEvent": {"properties": {"id": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementNumber": {"type": "string"}, "amountTotal": {"type": "number", "format": "decimal"}, "topic": {"type": "string"}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "SystemDebtorEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementNumber": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "SystemDebtorFinancialEvent": {"properties": {"id": {"type": "string"}, "source": {"type": "string"}, "sourceEventId": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "type": {"type": "string"}, "description": {"type": "string"}, "currency": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "metadata": {"$ref": "#/definitions/DebtorFinancialEventMetadata"}, "payment": {"$ref": "#/definitions/DebtorFinancialEventPayment"}, "amounts": {"$ref": "#/definitions/DebtorFinancialEventAmounts"}}, "type": "object"}, "DebtorFinancialEventMetadata": {"properties": {"feeType": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "unplacedPaymentId": {"type": "string"}, "quantity": {"type": "integer", "format": "int", "example": 0}, "capitalFinanced": {"type": "number", "format": "decimal"}, "capitalService": {"type": "number", "format": "decimal"}, "reminder": {"type": "number", "format": "decimal"}, "tolerance": {"type": "number", "format": "decimal"}}, "type": "object"}, "DebtorFinancialEventPayment": {"properties": {"id": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "status": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "externalId": {"type": "string"}, "creditType": {"type": "string"}, "matchingStatus": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "references": {"type": "array", "items": {"$ref": "#/definitions/DebtorFinancialEventPaymentReference"}}, "descriptions": {"type": "array", "items": {"$ref": "#/definitions/DebtorFinancialEventPaymentReference"}}, "sender": {"$ref": "#/definitions/DebtorFinancialEventPaymentSender"}, "senderName": {"type": "string"}, "senderIdentificationNumber": {"type": "string"}}, "type": "object"}, "DebtorFinancialEventPaymentReference": {"properties": {"value": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "DebtorFinancialEventPaymentSender": {"properties": {"name": {"type": "string"}, "identificationNumber": {"type": "string"}, "channel": {"type": "string"}, "phoneNumber": {"type": "string"}, "externalReference": {"type": "string"}, "address": {"$ref": "#/definitions/DebtorFinancialEventPaymentSenderAddress"}}, "type": "object"}, "DebtorFinancialEventPaymentSenderAddress": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "DebtorFinancialEventAmounts": {"properties": {"capital": {"type": "number", "format": "decimal"}, "fee": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "total": {"type": "number", "format": "decimal"}}, "type": "object"}, "SystemDebtorFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "source": {"type": "string"}, "sourceEventId": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string"}, "updatedBy": {"type": "string"}, "date": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "currency": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "paymentStatus": {"type": "string"}, "paymentExternalId": {"type": "string"}, "paymentSenderIdentificationNumber": {"type": "string"}, "feeType": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "enforcementNumber": {"type": "string"}, "amountCapital": {"type": "string"}, "amountFee": {"type": "string"}, "amountInterest": {"type": "string"}, "amountTotal": {"type": "string"}}, "type": "object"}, "SystemDebtorGroup": {"required": ["id", "name"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "numberOfMembers": {"type": "integer", "format": "int", "example": 0}, "limitLocale": {"type": "integer", "format": "int", "example": 0}, "limitLocaleUsed": {"type": "number", "format": "decimal"}, "limitLocaleDisposable": {"type": "number", "format": "decimal"}, "balances": {"$ref": "#/definitions/SystemDebtorGroupBalances"}}, "type": "object"}, "SystemDebtorGroupBalances": {"properties": {"total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "capital": {"type": "number", "format": "decimal"}, "capitalLocale": {"type": "number", "format": "decimal"}, "capitalService": {"type": "number", "format": "decimal"}, "capitalServiceLocale": {"type": "number", "format": "decimal"}, "capitalFinanced": {"type": "number", "format": "decimal"}, "capitalFinancedLocale": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "reminder": {"type": "number", "format": "decimal"}, "reminderLocale": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "interestLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "SystemDebtorGroupItem": {"required": ["id", "name"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "allowFactoring": {"type": "boolean", "example": false}, "numberOfMembers": {"type": "integer", "format": "int", "example": 0}, "limitLocale": {"type": "integer", "format": "int", "example": 0}, "limitLocaleUsed": {"type": "number", "format": "decimal"}, "limitLocaleDisposable": {"type": "number", "format": "decimal"}, "balances": {"$ref": "#/definitions/SystemDebtorGroupBalances"}}, "type": "object"}, "SystemDebtorGroupSearch": {"required": ["id", "name"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "SystemDebtorGroupSystemDebtorPost": {"required": ["systemDebtorId"], "properties": {"systemDebtorId": {"type": "string"}}, "type": "object"}, "SystemDebtorGroupDebtor": {"required": ["systemDebtorGroupId", "systemDebtorId"], "properties": {"systemDebtorGroupId": {"type": "integer", "format": "int", "example": 0}, "systemDebtorId": {"type": "string"}}, "type": "object"}, "SystemDebtorInternal": {"properties": {"identificationNumberInternal": {"type": "string"}, "name": {"type": "string"}, "balances": {"$ref": "#/definitions/systemDebtorInternalBalances"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "systemDebtorInternalBalances": {"properties": {"total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "capital": {"type": "number", "format": "decimal"}, "capitalLocale": {"type": "number", "format": "decimal"}, "capitalService": {"type": "number", "format": "decimal"}, "capitalServiceLocale": {"type": "number", "format": "decimal"}, "capitalFinanced": {"type": "number", "format": "decimal"}, "capitalFinancedLocale": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "reminder": {"type": "number", "format": "decimal"}, "reminderLocale": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "interestLocale": {"type": "number", "format": "decimal"}, "expiredTotal": {"type": "number", "format": "decimal"}, "expiredTotalLocale": {"type": "number", "format": "decimal"}, "expiredCapital": {"type": "number", "format": "decimal"}, "expiredCapitalLocale": {"type": "number", "format": "decimal"}, "expiredCapitalService": {"type": "number", "format": "decimal"}, "expiredCapitalServiceLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinanced": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "expiredReminder": {"type": "number", "format": "decimal"}, "expiredReminderLocale": {"type": "number", "format": "decimal"}, "expiredInterest": {"type": "number", "format": "decimal"}, "expiredInterestLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "SystemDebtorInternalSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "identificationNumberInternal": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "updatedDate": {"type": "string"}}, "type": "object"}, "CreateLabelSystemDebtor": {"required": ["label", "valueJson"], "properties": {"label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "LabelSystemDebtor": {"properties": {"id": {"type": "string"}, "label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "UpdateLabelSystemDebtor": {"required": ["valueJson"], "properties": {"label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "SystemDebtorToDoPost": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "identificationNumber": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "type": {"type": "string"}, "isCreditMonitoring": {"type": "boolean", "example": false}}, "type": "object"}, "SystemDebtorToDo": {"properties": {"id": {"type": "string"}, "identificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}, "type": {"type": "string"}, "activities": {"type": "object"}, "eventDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "UpdateSystemDebtorToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "SystemDebtorToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "identificationNumber": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "ResolveMultipleSystemDebtorToDo": {"required": ["todoIds"], "properties": {"todoIds": {"type": "array", "description": "List of todo IDs to resolve", "items": {"type": "string"}}}, "type": "object"}, "JobQueueOverview": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When the snapshot was taken.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Age of the served snapshot.", "example": 0}, "capabilities": {"description": "Which data sources this environment can read.", "allOf": [{"$ref": "#/definitions/JobQueueCapabilities"}]}, "health": {"description": "Status plus the reasons behind it.", "allOf": [{"$ref": "#/definitions/JobQueueHealth"}]}, "totals": {"$ref": "#/definitions/JobQueueTotals"}, "workers": {"$ref": "#/definitions/JobQueueWorkerTotals"}, "oldestWaiting": {"$ref": "#/definitions/JobQueueOldestWaiting"}}, "type": "object"}, "JobQueueCapabilities": {"properties": {"brokerMetrics": {"type": "boolean", "description": "The RabbitMQ management API could be read.", "example": false}, "workerInspect": {"type": "boolean", "description": "At least one worker answered the inspect broadcast.", "example": false}, "history": {"type": "boolean", "description": "The task log could be read.", "example": false}, "flowerUrl": {"type": "string", "description": "Deep link to Flower. Omitted without ViewDeveloperTools."}}, "type": "object"}, "JobQueueHealth": {"properties": {"status": {"type": "string", "example": "OK", "enum": ["OK", "DEGRADED", "DOWN"]}, "reasons": {"type": "array", "items": {"$ref": "#/definitions/JobQueueHealthReason"}}}, "type": "object"}, "JobQueueHealthReason": {"properties": {"code": {"type": "string", "description": "Closed set of codes the UI writes copy for.", "example": "BROKER_UNREACHABLE", "enum": ["BROKER_UNREACHABLE", "NO_WORKERS_RESPONDING", "QUEUE_WITHOUT_CONSUMER", "QUEUE_BACKING_UP", "WORKER_STALE", "HIGH_FAILURE_RATE", "CAPABILITY_UNAVAILABLE"]}, "severity": {"type": "string", "example": "ERROR", "enum": ["ERROR", "WARNING", "INFO"]}, "message": {"type": "string"}, "queue": {"type": "string", "description": "Present only on queue-scoped reasons."}}, "type": "object"}, "JobQueueTotals": {"properties": {"waiting": {"type": "integer", "format": "int", "description": "Null when broker metrics are unavailable.", "example": 0}, "running": {"type": "integer", "format": "int", "example": 0}, "reserved": {"type": "integer", "format": "int", "example": 0}, "scheduled": {"type": "integer", "format": "int", "example": 0}, "failed24h": {"type": "integer", "format": "int", "description": "Null when the task log is unavailable.", "example": 0}, "succeeded24h": {"type": "integer", "format": "int", "description": "Null when the task log is unavailable.", "example": 0}}, "type": "object"}, "JobQueueWorkerTotals": {"properties": {"online": {"type": "integer", "format": "int", "example": 0}, "stale": {"type": "integer", "format": "int", "example": 0}, "notResponding": {"type": "integer", "format": "int", "example": 0}, "slots": {"type": "integer", "format": "int", "description": "Null when no worker reported a concurrency.", "example": 0}, "busySlots": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "JobQueueOldestWaiting": {"properties": {"queue": {"type": "string"}, "ageSeconds": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "JobQueueQueues": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When the snapshot was taken.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Age of the served snapshot.", "example": 0}, "source": {"type": "string"}, "queues": {"type": "array", "description": "Omitted when broker metrics are unavailable.", "items": {"$ref": "#/definitions/JobQueue"}}}, "type": "object"}, "JobQueue": {"properties": {"name": {"type": "string"}, "waiting": {"type": "integer", "format": "int", "description": "Messages ready for delivery.", "example": 0}, "unacked": {"type": "integer", "format": "int", "example": 0}, "consumers": {"type": "integer", "format": "int", "example": 0}, "oldestWaitingAgeSeconds": {"type": "integer", "format": "int", "description": "Null unless publishers set a message timestamp.", "example": 0}, "messageRateIn": {"type": "number", "format": "float", "example": 0.0}, "messageRateOut": {"type": "number", "format": "float", "example": 0.0}, "state": {"type": "string", "example": "HEALTHY", "enum": ["HEALTHY", "IDLE", "DRAINING", "BACKING_UP", "NO_CONSUMER"]}}, "type": "object"}, "JobQueueWorkers": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When the snapshot was taken.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Age of the served snapshot.", "example": 0}, "inspectTimeoutSeconds": {"type": "number", "format": "float", "example": 0.0}, "respondedCount": {"type": "integer", "format": "int", "example": 0}, "expectedCount": {"type": "integer", "format": "int", "example": 0}, "workers": {"type": "array", "items": {"$ref": "#/definitions/JobQueueWorker"}}}, "type": "object"}, "JobQueueWorker": {"properties": {"displayName": {"type": "string", "description": "Node name with the replica suffix dropped."}, "status": {"type": "string", "example": "ONLINE", "enum": ["ONLINE", "STALE", "NOT_RESPONDING"]}, "queues": {"type": "array", "items": {"type": "string"}}, "slots": {"type": "integer", "format": "int", "example": 0}, "activeCount": {"type": "integer", "format": "int", "example": 0}, "reservedCount": {"type": "integer", "format": "int", "example": 0}, "processed24h": {"type": "integer", "format": "int", "example": 0}, "uptimeSeconds": {"type": "integer", "format": "int", "example": 0}, "lastHeartbeat": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "id": {"type": "string", "description": "Requires ViewDeveloperTools; omitted otherwise."}, "host": {"type": "string", "description": "Requires ViewDeveloperTools; omitted otherwise."}, "pool": {"type": "string", "description": "Requires ViewDeveloperTools; omitted otherwise."}, "softwareVersion": {"type": "string", "description": "Requires ViewDeveloperTools; omitted otherwise."}}, "type": "object"}, "JobQueueTasks": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When the snapshot was taken.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Age of the served snapshot.", "example": 0}, "state": {"type": "string", "example": "ACTIVE", "enum": ["ACTIVE", "RESERVED", "SCHEDULED"]}, "total": {"type": "integer", "format": "int", "example": 0}, "truncated": {"type": "boolean", "example": false}, "tenantScoped": {"type": "boolean", "description": "True when rows are limited to your instance provider.", "example": false}, "tasks": {"type": "array", "items": {"$ref": "#/definitions/JobLiveTask"}}}, "type": "object"}, "JobLiveTask": {"properties": {"taskId": {"type": "string"}, "name": {"type": "string"}, "state": {"type": "string", "example": "PENDING", "enum": ["PENDING", "STARTED", "SUCCESS", "FAILURE", "ACTIVE", "RESERVED", "SCHEDULED", "REVOKED", "RETRY"]}, "queue": {"type": "string"}, "worker": {"type": "string"}, "queuedAt": {"type": "string", "format": "date-time", "description": "Always null: the broker does not record it.", "example": "2016-06-06T11:22:33"}, "startedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "eta": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "runtimeSeconds": {"type": "number", "format": "float", "example": 0.0}, "retries": {"type": "integer", "format": "int", "example": 0}, "maxRetries": {"type": "integer", "format": "int", "example": 0}, "progress": {"$ref": "#/definitions/JobTaskProgress"}, "context": {"$ref": "#/definitions/JobTaskContext"}, "triggeredBy": {"type": "string", "description": "User id that put the job on the queue, null for system work."}, "arguments": {"$ref": "#/definitions/JobTaskArguments"}, "argumentsDetail": {"description": "Requires ViewDeveloperTools; omitted otherwise.", "allOf": [{"$ref": "#/definitions/JobTaskArgumentsDetail"}]}}, "type": "object"}, "JobTaskProgress": {"properties": {"current": {"type": "integer", "format": "int", "example": 0}, "total": {"type": "integer", "format": "int", "example": 0}, "message": {"type": "string"}}, "type": "object"}, "JobTaskContext": {"properties": {"type": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "DEBTOR", "COLLECTION_BATCH", "PAYMENT_BATCH", "PAYOUT_ROUTINE", "REPORT", "NONE"]}, "id": {"type": "string"}, "label": {"type": "string"}}, "type": "object"}, "JobTaskArguments": {"properties": {"positional": {"type": "integer", "format": "int", "example": 0}, "keyword": {"type": "integer", "format": "int", "description": "Always 0 on history rows: before_start flattens kwargs.", "example": 0}}, "type": "object"}, "JobTaskArgumentsDetail": {"properties": {"args": {"type": "array", "items": {"type": "object"}}, "kwargs": {"type": "object"}}, "type": "object"}, "JobQueueTaskDetail": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When the snapshot was taken.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Age of the served snapshot.", "example": 0}, "taskId": {"type": "string"}, "name": {"type": "string"}, "state": {"type": "string", "example": "PENDING", "enum": ["PENDING", "STARTED", "SUCCESS", "FAILURE", "ACTIVE", "RESERVED", "SCHEDULED", "REVOKED", "RETRY"]}, "queue": {"type": "string"}, "worker": {"type": "string"}, "queuedAt": {"type": "string", "format": "date-time", "description": "Always null: the broker does not record it.", "example": "2016-06-06T11:22:33"}, "startedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "eta": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "runtimeSeconds": {"type": "number", "format": "float", "example": 0.0}, "retries": {"type": "integer", "format": "int", "example": 0}, "maxRetries": {"type": "integer", "format": "int", "example": 0}, "progress": {"$ref": "#/definitions/JobTaskProgress"}, "context": {"$ref": "#/definitions/JobTaskContext"}, "triggeredBy": {"type": "string", "description": "User id that put the job on the queue, null for system work."}, "arguments": {"$ref": "#/definitions/JobTaskArguments"}, "argumentsDetail": {"description": "Requires ViewDeveloperTools; omitted otherwise.", "allOf": [{"$ref": "#/definitions/JobTaskArgumentsDetail"}]}, "finishedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "error": {"$ref": "#/definitions/JobTaskError"}, "timeline": {"type": "array", "items": {"$ref": "#/definitions/JobTaskTimelineEvent"}}, "traceback": {"type": "string", "description": "Requires ViewDeveloperTools; omitted otherwise."}}, "type": "object"}, "JobTaskError": {"properties": {"type": {"type": "string", "description": "Exception class parsed from the stored traceback."}, "message": {"type": "string"}}, "type": "object"}, "JobTaskTimelineEvent": {"properties": {"at": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "event": {"type": "string", "example": "STARTED", "enum": ["STARTED", "SUCCEEDED", "FAILED"]}, "worker": {"type": "string"}, "errorType": {"type": "string"}}, "type": "object"}, "JobQueueHistory": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When this response was built. It is read per request.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Always 0: not served from the snapshot cache.", "example": 0}, "states": {"type": "array", "description": "The applied state filters, echoed back.", "items": {"type": "string", "example": "FAILURE", "enum": ["FAILURE", "SUCCESS", "REVOKED"]}}, "total": {"type": "integer", "format": "int", "example": 0}, "truncated": {"type": "boolean", "example": false}, "tenantScoped": {"type": "boolean", "example": false}, "tasks": {"type": "array", "items": {"$ref": "#/definitions/JobHistoryTask"}}}, "type": "object"}, "JobHistoryTask": {"properties": {"taskId": {"type": "string"}, "name": {"type": "string"}, "state": {"type": "string", "example": "PENDING", "enum": ["PENDING", "STARTED", "SUCCESS", "FAILURE", "ACTIVE", "RESERVED", "SCHEDULED", "REVOKED", "RETRY"]}, "queue": {"type": "string"}, "worker": {"type": "string"}, "queuedAt": {"type": "string", "format": "date-time", "description": "Always null: the broker does not record it.", "example": "2016-06-06T11:22:33"}, "startedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "eta": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "runtimeSeconds": {"type": "number", "format": "float", "example": 0.0}, "retries": {"type": "integer", "format": "int", "example": 0}, "maxRetries": {"type": "integer", "format": "int", "example": 0}, "progress": {"$ref": "#/definitions/JobTaskProgress"}, "context": {"$ref": "#/definitions/JobTaskContext"}, "triggeredBy": {"type": "string", "description": "User id that put the job on the queue, null for system work."}, "arguments": {"$ref": "#/definitions/JobTaskArguments"}, "argumentsDetail": {"description": "Requires ViewDeveloperTools; omitted otherwise.", "allOf": [{"$ref": "#/definitions/JobTaskArgumentsDetail"}]}, "finishedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "error": {"$ref": "#/definitions/JobTaskError"}}, "type": "object"}, "JobQueueSchedule": {"properties": {"generatedAt": {"type": "string", "format": "date-time", "description": "When this response was built. It is read per request.", "example": "2016-06-06T11:22:33"}, "cacheAgeSeconds": {"type": "integer", "format": "int", "description": "Always 0: not served from the snapshot cache.", "example": 0}, "tenantScoped": {"type": "boolean", "example": false}, "entries": {"type": "array", "items": {"$ref": "#/definitions/JobScheduleEntry"}}}, "type": "object"}, "JobScheduleEntry": {"properties": {"name": {"type": "string", "description": "Beat schedule entry name."}, "task": {"type": "string", "description": "Task the entry puts on the queue."}, "cron": {"type": "string", "description": "minute hour day-of-month month day-of-week, evaluated in cronTimezone."}, "cronTimezone": {"type": "string", "description": "Always UTC: beat evaluates the cron fields in UTC."}, "enabled": {"type": "boolean", "description": "False when listed in CELERYBEAT_DISABLED_TASKS.", "example": false}, "nextRunAt": {"type": "string", "format": "date-time", "description": "Next run in system time; null when disabled.", "example": "2016-06-06T11:22:33"}, "lastRun": {"description": "Newest run in the last 7 days, or null.", "allOf": [{"$ref": "#/definitions/JobScheduleLastRun"}]}}, "type": "object"}, "JobScheduleLastRun": {"properties": {"taskId": {"type": "string"}, "state": {"type": "string", "example": "PENDING", "enum": ["PENDING", "STARTED", "SUCCESS", "FAILURE", "ACTIVE", "RESERVED", "SCHEDULED", "REVOKED", "RETRY"]}, "startedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "finishedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "runtimeSeconds": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "systemSetting": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "putSystemSetting": {"properties": {"value": {"type": "string"}}, "type": "object"}, "SystemSettingHideBalanceDetailsEnabled": {"properties": {"enabled": {"type": "boolean", "description": "Whether hiding balance details is enabled.", "example": false}}, "type": "object"}, "TokenGenerateRequest": {"required": ["clientId"], "properties": {"clientId": {"type": "string"}, "email": {"type": "string"}}, "type": "object"}, "token": {"properties": {"clientId": {"type": "string"}, "idToken": {"type": "string"}, "email": {"type": "string"}}, "type": "object"}, "ClientTokenRequest": {"required": ["clientId"], "properties": {"clientId": {"type": "string"}}, "type": "object"}, "DebtorTokenRequest": {"required": ["identificationNumber"], "properties": {"identificationNumber": {"type": "string"}}, "type": "object"}, "User": {"required": ["active", "id", "name"], "properties": {"id": {"type": "string", "format": "email", "example": "email@domain.com"}, "clientId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "erpId": {"type": "string"}, "name": {"type": "string"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "category": {"type": "string"}, "isSuperUser": {"type": "boolean", "example": false}, "isServiceUser": {"type": "boolean", "example": false}, "useMfa": {"type": "boolean", "example": false}, "active": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "profileImageFileName": {"type": "string"}}, "type": "object"}, "UserSearch": {"required": ["active", "id", "name"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string", "format": "email", "example": "email@domain.com"}, "clientId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "erpId": {"type": "string"}, "name": {"type": "string"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "category": {"type": "string"}, "isSuperUser": {"type": "boolean", "example": false}, "isServiceUser": {"type": "boolean", "example": false}, "useMfa": {"type": "boolean", "example": false}, "active": {"type": "boolean", "example": false}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "profileImageFileName": {"type": "string"}}, "type": "object"}, "UserPasswordUpdate": {"properties": {"password": {"type": "string"}}, "type": "object"}, "UserMfaUpdate": {"required": ["useMfa"], "properties": {"useMfa": {"type": "boolean", "example": false}}, "type": "object"}, "UserRolePost": {"required": ["roleId"], "properties": {"roleId": {"type": "string"}}, "type": "object"}, "UserRole": {"required": ["roleId", "userId"], "properties": {"userId": {"type": "string"}, "roleId": {"type": "string"}, "rights": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "UserResetMfaModel": {"required": ["email"], "properties": {"email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "UserResetMfaResponse": {"properties": {"message": {"type": "string", "description": "Result message for the MFA reset request."}}, "type": "object"}, "UserAdvancedLoginEnabled": {"properties": {"enabled": {"type": "boolean", "description": "Whether advanced login is enabled.", "example": false}}, "type": "object"}, "user_group": {"required": ["id", "name"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}}, "type": "object"}, "user_group_search": {"required": ["id", "name"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}}, "type": "object"}, "user_group_user_post": {"required": ["userId"], "properties": {"userId": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "user_group_user": {"required": ["userGroupId", "userId"], "properties": {"userGroupId": {"type": "integer", "format": "int", "example": 0}, "userId": {"type": "string", "format": "email", "example": "email@domain.com"}, "userName": {"type": "string"}}, "type": "object"}, "Vouchers": {"properties": {"id": {"type": "string"}, "parentId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "originalCurrency": {"type": "string"}, "bookkeepingVerificationNumber": {"type": "integer", "format": "int", "example": 0}, "topic": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reverseVoucherId": {"type": "string"}, "originalVoucherId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "externalInformation": {"$ref": "#/definitions/ExternalInformation"}, "comment": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/Documents"}}, "relatedBusinessEvents": {"$ref": "#/definitions/voucherBusinessEvents"}}, "type": "object"}, "ExternalInformation": {"properties": {"id": {"type": "string"}, "series": {"type": "string"}, "financialYearId": {"type": "string"}, "status": {"type": "string"}, "integrationId": {"type": "string"}, "errorMessage": {"type": "string"}, "attempts": {"type": "integer", "format": "int", "example": 0}, "bookkeepingFileId": {"type": "string"}}, "type": "object"}, "Documents": {"properties": {"name": {"type": "string"}, "fileName": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "voucherBusinessEvents": {"properties": {"clients": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventClients"}}, "invoices": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventInvoices"}}, "invoiceFinancialEvents": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventInvoiceFinancialEvents"}}, "clientAccounts": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventClientAccounts"}}, "clientAccountTransactions": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventClientAccountTransactions"}}, "paymentBatches": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPaymentBatches"}}, "paymentTransactions": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPaymentTransactions"}}, "paymentTransactionFinancialEvents": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPaymentTransactionFinancialEvents"}}, "collectionBatches": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventCollectionBatches"}}, "collectionBatchFinancialEvents": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventCollectionBatchFinancialEvents"}}, "enforcements": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventEnforcements"}}, "partPaymentPlans": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPartPaymentPlans"}}, "partPaymentPlanFinancialEvents": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPartPaymentPlanFinancialEvents"}}, "payoutBatches": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPayoutBatches"}}, "payoutTransactions": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventPayoutTransactions"}}, "businessLoans": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventBusinessLoans"}}, "businessLoanFinancialEvents": {"type": "array", "items": {"$ref": "#/definitions/voucherBusinessEventBusinessLoanFinancialEvents"}}}, "type": "object"}, "voucherBusinessEventClients": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "voucherBusinessEventInvoices": {"properties": {"id": {"type": "string"}, "invoiceNumber": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}}, "type": "object"}, "voucherBusinessEventInvoiceFinancialEvents": {"properties": {"id": {"type": "string"}}, "type": "object"}, "voucherBusinessEventClientAccounts": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}}, "type": "object"}, "voucherBusinessEventClientAccountTransactions": {"properties": {"id": {"type": "string"}}, "type": "object"}, "voucherBusinessEventPaymentBatches": {"properties": {"id": {"type": "string"}, "currency": {"type": "string"}, "accountNumber": {"type": "string"}}, "type": "object"}, "voucherBusinessEventPaymentTransactions": {"properties": {"id": {"type": "string"}}, "type": "object"}, "voucherBusinessEventPaymentTransactionFinancialEvents": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "voucherBusinessEventCollectionBatches": {"properties": {"id": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}}, "type": "object"}, "voucherBusinessEventCollectionBatchFinancialEvents": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "voucherBusinessEventEnforcements": {"properties": {"id": {"type": "string"}}, "type": "object"}, "voucherBusinessEventPartPaymentPlans": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}}, "type": "object"}, "voucherBusinessEventPartPaymentPlanFinancialEvents": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "voucherBusinessEventPayoutBatches": {"properties": {"id": {"type": "string"}, "currency": {"type": "string"}, "accountNumber": {"type": "string"}}, "type": "object"}, "voucherBusinessEventPayoutTransactions": {"properties": {"id": {"type": "string"}}, "type": "object"}, "voucherBusinessEventBusinessLoans": {"properties": {"id": {"type": "string"}, "loanNumber": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}}, "type": "object"}, "voucherBusinessEventBusinessLoanFinancialEvents": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "VoucherCreate": {"required": ["postings"], "properties": {"clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "originalCurrency": {"type": "string"}, "description": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "comment": {"type": "string"}, "relatedBusinessEvents": {"$ref": "#/definitions/voucherBusinessEvents"}, "postings": {"type": "array", "items": {"$ref": "#/definitions/VoucherPostingCreate"}}}, "type": "object"}, "VoucherPostingCreate": {"properties": {"accountId": {"type": "string"}, "accountNumber": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "transactionInformation": {"type": "string"}, "debit": {"type": "number", "format": "decimal"}, "credit": {"type": "number", "format": "decimal"}, "debitOriginalCurrency": {"type": "number", "format": "decimal"}, "creditOriginalCurrency": {"type": "number", "format": "decimal"}}, "type": "object"}, "VouchersSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "parentId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "originalCurrency": {"type": "string"}, "bookkeepingVerificationNumber": {"type": "string", "example": "1[OR]2"}, "topic": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reverseVoucherId": {"type": "string"}, "originalVoucherId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "externalInformation.id": {"type": "string"}, "externalInformation.series": {"type": "string"}, "externalInformation.financialYearId": {"type": "string"}, "externalInformation.status": {"type": "string"}, "externalInformation.attempts": {"type": "string"}, "externalInformation.errorMessage": {"type": "string"}, "relatedBusinessEvents.clientId": {"type": "string"}, "relatedBusinessEvents.invoiceId": {"type": "string"}, "relatedBusinessEvents.invoiceFinancialEventId": {"type": "string"}, "relatedBusinessEvents.clientAccountId": {"type": "string"}, "relatedBusinessEvents.clientAccountTransactionId": {"type": "string"}, "relatedBusinessEvents.paymentBatchId": {"type": "string"}, "relatedBusinessEvents.paymentTransactionId": {"type": "string"}, "relatedBusinessEvents.paymentTransactionFinancialEventId": {"type": "string", "example": "1[OR]2"}, "relatedBusinessEvents.collectionBatchId": {"type": "string"}, "relatedBusinessEvents.collectionBatchFinancialEventId": {"type": "string", "example": "1[OR]2"}, "relatedBusinessEvents.invoicesInCollectionBatchId": {"type": "string"}, "relatedBusinessEvents.enforcementId": {"type": "string"}, "relatedBusinessEvents.partPaymentPlanId": {"type": "string"}, "relatedBusinessEvents.partPaymentPlanFinancialEventId": {"type": "string", "example": "1[OR]2"}, "relatedBusinessEvents.payoutBatchId": {"type": "string"}, "relatedBusinessEvents.payoutTransactionId": {"type": "string"}, "relatedBusinessEvents.businessLoanId": {"type": "string"}, "relatedBusinessEvents.businessLoanFinancialEventId": {"type": "string", "example": "1[OR]2"}}, "type": "object"}, "ExternalVouchers": {"properties": {"id": {"type": "string"}, "parentId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "originalCurrency": {"type": "string"}, "bookkeepingVerificationNumber": {"type": "integer", "format": "int", "example": 0}, "topic": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reverseVoucherId": {"type": "string"}, "originalVoucherId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "externalInformation": {"$ref": "#/definitions/ExternalInformation"}, "comment": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/Documents"}}, "relatedBusinessEvents": {"$ref": "#/definitions/voucherBusinessEvents"}, "postings": {"type": "array", "items": {"$ref": "#/definitions/ExternalVoucherPostings"}}, "series": {"type": "string"}}, "type": "object"}, "ExternalVoucherPostings": {"properties": {"id": {"type": "string"}, "accountId": {"type": "string"}, "accountNumber": {"type": "string"}, "externalAccountNumber": {"type": "string"}, "accountCode": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "exchangeRateSource": {"type": "string"}, "transactionInformation": {"type": "string"}, "debit": {"type": "number", "format": "decimal"}, "credit": {"type": "number", "format": "decimal"}, "debitOriginalCurrency": {"type": "number", "format": "decimal"}, "creditOriginalCurrency": {"type": "number", "format": "decimal"}}, "type": "object"}, "ExternalPayments": {"properties": {"id": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "amountLocale": {"type": "number", "format": "decimal"}, "amount": {"type": "number", "format": "decimal"}, "invoiceNumber": {"type": "string"}, "invoiceCurrency": {"type": "string"}, "baseCurrency": {"type": "string"}, "name": {"type": "string"}, "externalPaymentMethodCode": {"type": "string"}, "accountNumber": {"type": "string"}, "accountCode": {"type": "string"}}, "type": "object"}, "ExternalExport": {"required": ["externalId"], "properties": {"externalId": {"type": "string"}}, "type": "object"}, "ExternalBookkeep": {"required": ["externalInformationFinancialYearId", "externalInformationId", "externalInformationSeries"], "properties": {"externalInformationId": {"type": "string"}, "externalInformationSeries": {"type": "string"}, "externalInformationFinancialYearId": {"type": "string"}}, "type": "object"}, "ExternalFail": {"required": ["errorMessage"], "properties": {"errorMessage": {"type": "string"}}, "type": "object"}, "VoucherSettingLockedPeriod": {"properties": {"lockedDate": {"type": "string"}}, "type": "object"}, "VoucherSettingLockedPeriodRequestCreated": {"properties": {"internalRequestId": {"type": "string"}}, "type": "object"}, "VoucherReverse": {"properties": {"description": {"type": "string"}}, "type": "object"}, "VoucherSummary": {"properties": {"accountId": {"type": "string"}, "accountCode": {"type": "string"}, "accountNumber": {"type": "string"}, "originalCurrency": {"type": "string"}, "totalDebitOriginalCurrency": {"type": "number", "format": "decimal"}, "totalCreditOriginalCurrency": {"type": "number", "format": "decimal"}, "totalOriginalCurrency": {"type": "number", "format": "decimal"}, "averageExchangeRate": {"type": "number", "format": "float", "example": 0.0}, "totalDebit": {"type": "number", "format": "decimal"}, "totalCredit": {"type": "number", "format": "decimal"}, "total": {"type": "number", "format": "decimal"}}, "type": "object"}, "VoucherWebhookResendResponse": {"properties": {"message": {"type": "string", "description": "Result message for the voucher webhook resend request."}}, "type": "object"}, "VoucherPostings": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceId": {"type": "string"}, "voucherId": {"type": "string"}, "voucherType": {"type": "string"}, "voucherTransactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "voucherOriginalCurrency": {"type": "string"}, "voucherDescription": {"type": "string"}, "accountId": {"type": "string"}, "accountNumber": {"type": "string"}, "externalAccountNumber": {"type": "string"}, "accountCode": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "exchangeRateSource": {"type": "string"}, "transactionInformation": {"type": "string"}, "debit": {"type": "number", "format": "decimal"}, "credit": {"type": "number", "format": "decimal"}, "debitOriginalCurrency": {"type": "number", "format": "decimal"}, "creditOriginalCurrency": {"type": "number", "format": "decimal"}, "relatedBusinessEvents": {"$ref": "#/definitions/voucherPostingBusinessEvents"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "voucherPostingBusinessEvents": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceFinancialEventId": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountTransactionId": {"type": "string"}, "paymentBatchId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "paymentTransactionFinancialEventId": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "collectionBatchFinancialEventId": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "partPaymentPlanFinancialEventId": {"type": "integer", "format": "int", "example": 0}, "payoutBatchId": {"type": "string"}, "payoutTransactionId": {"type": "string"}, "enforcementId": {"type": "integer", "format": "int", "example": 0}, "businessLoanId": {"type": "string"}, "businessLoanFinancialEventId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "VoucherPostingsSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceId": {"type": "string"}, "voucherId": {"type": "string"}, "voucherType": {"type": "string"}, "voucherOriginalCurrency": {"type": "string"}, "voucherDescription": {"type": "string"}, "accountId": {"type": "string"}, "accountNumber": {"type": "string"}, "externalAccountNumber": {"type": "string"}, "accountCode": {"type": "string"}, "exchangeRateSource": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "voucherTopic": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INTERNAL", "INTERNAL_EXPORT"]}, "exchangeRate": {"type": "string"}, "debit": {"type": "string"}, "credit": {"type": "string"}, "debitOriginalCurrency": {"type": "string"}, "creditOriginalCurrency": {"type": "string"}, "voucherTransactionDate": {"type": "string"}, "relatedBusinessEvents.clientId": {"type": "string"}, "relatedBusinessEvents.invoiceId": {"type": "string"}, "relatedBusinessEvents.invoiceFinancialEventId": {"type": "string"}, "relatedBusinessEvents.clientAccountId": {"type": "string"}, "relatedBusinessEvents.clientAccountTransactionId": {"type": "string"}, "relatedBusinessEvents.paymentBatchId": {"type": "string"}, "relatedBusinessEvents.paymentTransactionId": {"type": "string"}, "relatedBusinessEvents.paymentTransactionFinancialEventId": {"type": "integer", "format": "int", "example": 0}, "relatedBusinessEvents.collectionBatchId": {"type": "string"}, "relatedBusinessEvents.partPaymentPlanId": {"type": "string"}, "relatedBusinessEvents.payoutBatchId": {"type": "string"}, "relatedBusinessEvents.payoutTransactionId": {"type": "string"}, "relatedBusinessEvents.enforcementId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "VoucherRequest": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "isStale": {"type": "boolean", "example": false}}, "type": "object"}, "VoucherRequestSummary": {"properties": {"total": {"type": "integer", "format": "int", "example": 0}, "stale": {"type": "integer", "format": "int", "example": 0}, "groups": {"type": "array", "items": {"$ref": "#/definitions/VoucherRequestSummaryGroup"}}}, "type": "object"}, "VoucherRequestSummaryGroup": {"properties": {"topic": {"type": "string"}, "type": {"type": "string"}, "count": {"type": "integer", "format": "int", "example": 0}, "stale": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "VoucherRequestRetry": {"properties": {"upToDate": {"type": "string"}}, "type": "object"}, "VoucherRequestRetryResult": {"properties": {"retried": {"type": "integer", "format": "int", "example": 0}, "failed": {"type": "integer", "format": "int", "example": 0}, "remaining": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "Create Webhook": {"required": ["enabled", "key", "method", "title", "trigger", "type", "url"], "properties": {"title": {"type": "string"}, "url": {"type": "string"}, "type": {"type": "string", "example": "DISTRIBUTION", "enum": ["DISTRIBUTION", "PAYOUT_FILE_XML", "PAYOUT_FILE_TXT", "BOOKKEEPING_FILE_SIE", "INVOICE_REFINANCE", "INVOICE", "INVOICE_BALANCE", "SYSTEM_DEBTOR", "CREDIT_CHECK", "VOUCHER", "VOUCHER_PAYMENT", "FACTORING_STATUS", "TRANSACTION_MONITORING", "INVOICE_CREATED", "BUSINESS_LOAN_CREATED", "BUSINESS_LOAN_MAIN_STATUS", "BUSINESS_LOAN_BALANCE", "BUSINESS_LOAN_CREDIT_DECISION_STATUS", "EXCHANGE_RATE_FALLBACK", "CURRENCY_REVALUATION", "COLLECTION_EXTERNAL", "COLLECTION_EXTERNAL_PAYMENT", "COLLECTION_EXTERNAL_CREDIT_NOTE", "COLLECTION_EXTERNAL_DEPRECIATION", "REMINDER_DISTRIBUTION", "REMINDER_STEP", "COLLECTION_CASE_STATUS"]}, "trigger": {"type": "string", "example": "PUSH", "enum": ["PUSH"]}, "clientId": {"type": "string"}, "method": {"type": "string", "example": "POST", "enum": ["POST", "GET", "PUT", "DELETE"]}, "key": {"type": "string"}, "keyParam": {"type": "string", "default": "hmac"}, "useHeaderSecret": {"type": "boolean", "default": false, "example": false}, "customHeaders": {"type": "object"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "View Webhook": {"properties": {"id": {"type": "string"}, "title": {"type": "string"}, "url": {"type": "string"}, "type": {"type": "string"}, "trigger": {"type": "string"}, "clientId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "method": {"type": "string"}, "keyParam": {"type": "string"}, "isHeaderSecret": {"type": "boolean", "example": false}, "customHeaders": {"type": "object"}, "createdById": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedById": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "Update Webhook": {"properties": {"title": {"type": "string"}, "url": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "key": {"type": "string"}, "customHeaders": {"type": "object"}}, "type": "object"}, "WebhookLogReplay": {"required": ["fromDate"], "properties": {"fromDate": {"type": "string", "description": "Replay FAILED deliveries logged at or after this ISO timestamp."}, "fromId": {"type": "string", "description": "Continue after this delivery, logged at fromDate. The nextFromId of the previous answer."}, "toDate": {"type": "string", "description": "Up to, not including, this ISO timestamp. Default and latest: 75 minutes ago."}, "webhookId": {"type": "string", "description": "Only this subscription's deliveries."}, "type": {"type": "string", "description": "Only deliveries of this type.", "example": "DISTRIBUTION", "enum": ["DISTRIBUTION", "PAYOUT_FILE_XML", "PAYOUT_FILE_TXT", "BOOKKEEPING_FILE_SIE", "INVOICE_REFINANCE", "INVOICE", "INVOICE_BALANCE", "SYSTEM_DEBTOR", "CREDIT_CHECK", "VOUCHER", "VOUCHER_PAYMENT", "FACTORING_STATUS", "TRANSACTION_MONITORING", "INVOICE_CREATED", "BUSINESS_LOAN_CREATED", "BUSINESS_LOAN_MAIN_STATUS", "BUSINESS_LOAN_BALANCE", "BUSINESS_LOAN_CREDIT_DECISION_STATUS", "EXCHANGE_RATE_FALLBACK", "CURRENCY_REVALUATION", "COLLECTION_EXTERNAL", "COLLECTION_EXTERNAL_PAYMENT", "COLLECTION_EXTERNAL_CREDIT_NOTE", "COLLECTION_EXTERNAL_DEPRECIATION", "REMINDER_DISTRIBUTION", "REMINDER_STEP", "COLLECTION_CASE_STATUS"]}}, "type": "object"}, "WebhookLogReplayResult": {"properties": {"queued": {"type": "integer", "format": "int", "description": "Deliveries queued to be sent again, oldest first. One that another replay or retry is already sending is left to that send.", "example": 0}, "limitReached": {"type": "boolean", "description": "True when 1000 deliveries matched, so more may remain.", "example": false}, "nextFromDate": {"type": "string", "description": "When the newest delivery queued was logged, to the microsecond. With limitReached, pass it as fromDate."}, "nextFromId": {"type": "string", "description": "The newest delivery queued. With limitReached, pass it as fromId, so one of the same microsecond is neither skipped nor sent twice."}}, "type": "object"}, "Webhook Request Log Search": {"properties": {"clientId": {"type": "string"}, "webhookId": {"type": "string"}, "objectId": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string"}, "updatedDate": {"type": "string"}}, "type": "object"}, "Webhook Request Log List": {"properties": {"id": {"type": "string"}, "objectId": {"type": "string"}, "webhookId": {"type": "string"}, "type": {"type": "string"}, "trigger": {"type": "string"}, "status": {"type": "string"}, "statusCode": {"type": "integer", "format": "int", "example": 0}, "attempts": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "Webhook Request Log Detail": {"properties": {"id": {"type": "string"}, "objectId": {"type": "string"}, "webhookId": {"type": "string"}, "deliveryId": {"type": "string"}, "type": {"type": "string"}, "trigger": {"type": "string"}, "status": {"type": "string"}, "statusCode": {"type": "integer", "format": "int", "example": 0}, "responseText": {"type": "string"}, "pushData": {"type": "object"}, "attempts": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "webhook": {"$ref": "#/definitions/Webhook Info"}}, "type": "object"}, "Webhook Info": {"properties": {"id": {"type": "string"}, "title": {"type": "string"}, "url": {"type": "string"}, "type": {"type": "string"}, "trigger": {"type": "string"}, "method": {"type": "string"}, "clientId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "keyParam": {"type": "string"}, "isSystemManaged": {"type": "boolean", "example": false}, "customHeaders": {"type": "object"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "updateClient": {"required": ["identificationNumber", "name"], "properties": {"name": {"type": "string"}, "vatNumber": {"type": "string"}, "GLN": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "approvedTerms": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/clientContactInformation"}, "invoiceSettings": {"$ref": "#/definitions/ClientScopedInvoiceSettings"}, "identificationNumber": {"type": "string"}, "identifiers": {"type": "array", "items": {"$ref": "#/definitions/ClientNationalLegalIdentifier"}}, "locale": {"type": "string", "example": "AD", "enum": ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW", "EU", "OTHER"]}, "enabled": {"type": "boolean", "example": false}, "disabled": {"type": "boolean", "example": false}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "managerUserId": {"type": "string"}, "managerUserGroupId": {"type": "integer", "format": "int", "example": 0}, "instanceProviderId": {"type": "string"}, "templateId": {"type": "string"}, "sni": {"type": "string"}, "industryCode": {"type": "string"}, "registeredOffice": {"type": "string"}, "businessDescription": {"type": "string"}, "useDelayedPenaltyFee": {"type": "boolean", "example": false}, "emailNotifications": {"type": "boolean", "example": false}, "customInvoicePaymentReferenceSettings": {"type": "boolean", "example": false}, "customCollectionBatchPaymentReferenceSettings": {"type": "boolean", "example": false}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "ignoreServiceProviderCreditCheck": {"type": "boolean", "example": false}, "enableAutomaticCreditCheckClientDebtor": {"type": "boolean", "example": false}, "sumAccountBalanceOnPayout": {"type": "boolean", "example": false}, "engineRuleId": {"type": "string"}, "invoiceFinancingProvider": {"type": "string"}, "agreementCurrency": {"type": "string"}, "useMfa": {"type": "boolean", "example": false}, "serviceProviderInsuranceAgreementId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "createClient": {"required": ["identificationNumber", "name"], "properties": {"locale": {"type": "string", "example": "AD", "enum": ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW", "EU", "OTHER"]}, "enabled": {"type": "boolean", "example": false}, "approvedTerms": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/clientContactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "managerUserId": {"type": "string"}, "managerUserGroupId": {"type": "integer", "format": "int", "example": 0}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "identifiers": {"type": "array", "items": {"$ref": "#/definitions/ClientNationalLegalIdentifier"}}, "externalId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "templateId": {"type": "string"}, "sni": {"type": "string"}, "industryCode": {"type": "string"}, "registeredOffice": {"type": "string"}, "businessDescription": {"type": "string"}, "payoutAccounts": {"type": "array", "items": {"$ref": "#/definitions/ClientPayoutAccount"}}, "useDelayedPenaltyFee": {"type": "boolean", "example": false}, "emailNotifications": {"type": "boolean", "example": false}, "customInvoicePaymentReferenceSettings": {"type": "boolean", "example": false}, "customCollectionBatchPaymentReferenceSettings": {"type": "boolean", "example": false}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "ignoreServiceProviderCreditCheck": {"type": "boolean", "example": false}, "enableAutomaticCreditCheckClientDebtor": {"type": "boolean", "example": false}, "sumAccountBalanceOnPayout": {"type": "boolean", "example": false}, "engineRuleId": {"type": "string"}, "invoiceFinancingProvider": {"type": "string"}, "agreementCurrency": {"type": "string"}, "useMfa": {"type": "boolean", "example": false}, "invoiceSettings": {"$ref": "#/definitions/ClientScopedInvoiceSettings"}, "userPassword": {"type": "string"}, "engineRuleProfileId": {"type": "string", "description": "When set, the client engine rule is copied from this profile instead of the client template."}, "serviceProviderInsuranceAgreementId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "clientSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "locale": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "disabled": {"type": "boolean", "example": false}, "approvalStatus": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "ownerUserId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "id": {"type": "string"}, "externalId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientHandlerName": {"type": "string"}, "primaryContactEmail": {"type": "string"}, "sni": {"type": "string"}, "industryCode": {"type": "string"}, "registeredOffice": {"type": "string"}, "businessDescription": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "bookkeepErpId": {"type": "string"}, "bookkeepErpName": {"type": "string"}, "invoiceErpId": {"type": "string"}, "invoiceErpName": {"type": "string"}, "customInvoicePaymentReferenceSettings": {"type": "boolean", "example": false}, "customCollectionBatchPaymentReferenceSettings": {"type": "boolean", "example": false}, "agreementCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "clientConnectToErp": {"properties": {"bookkeepErpId": {"type": "string"}, "invoiceErpId": {"type": "string"}}, "type": "object"}, "updateClientBillingSettings": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "receiver": {"type": "string", "example": "ERP", "enum": ["ERP", "CLIENT_HANDLER", "CLIENT"]}, "channel": {"type": "string", "example": "CLIENT_ACCOUNT", "enum": ["CLIENT_ACCOUNT", "INVOICE"]}}, "type": "object"}, "Contains billing settings for ERP and client handler.": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}}, "type": "object"}, "clientBillingSettings": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "clientId": {"type": "string"}, "receiver": {"type": "string", "example": "ERP", "enum": ["ERP", "CLIENT_HANDLER", "CLIENT"]}, "channel": {"type": "string", "example": "CLIENT_ACCOUNT", "enum": ["CLIENT_ACCOUNT", "INVOICE"]}}, "type": "object"}, "updateClientBookkeepingSettings": {"properties": {"export": {"$ref": "#/definitions/clientBookkeepingSettingsExport"}}, "type": "object"}, "clientBookkeepingSettingsExport": {"properties": {"method": {"type": "string"}, "voucherSeries": {"type": "string"}, "invoiceActivation": {"type": "boolean", "example": false}, "invoicePayment": {"type": "boolean", "example": false}, "invoicePaymentMethod": {"type": "string"}, "invoicePaymentTolerance": {"type": "boolean", "example": false}, "invoiceRecourse": {"type": "boolean", "example": false}, "payout": {"type": "boolean", "example": false}, "bill": {"type": "boolean", "example": false}}, "type": "object"}, "clientBookkeepingSettings": {"properties": {"clientId": {"type": "string"}, "bookkeepingAccountsId": {"type": "string"}, "export": {"$ref": "#/definitions/clientBookkeepingSettingsExport"}}, "type": "object"}, "updateClientComplianceSettings": {"properties": {"generalRiskClass": {"type": "boolean", "example": false}, "factoringRiskClass": {"type": "string"}}, "type": "object"}, "clientComplianceSettings": {"properties": {"clientId": {"type": "string"}, "generalRiskClass": {"type": "boolean", "example": false}, "factoringRiskClass": {"type": "string"}, "bookkeepingAccountsId": {"type": "string"}}, "type": "object"}, "invoiceTextSettings": {"properties": {"clientId": {"type": "string"}, "localeId": {"type": "string", "example": "SE", "enum": ["SE", "EU", "FI", "NO"]}, "text": {"type": "string"}}, "type": "object"}, "creditDataClient": {"required": ["serviceProviderCode"], "properties": {"serviceProviderCode": {"type": "string"}}, "type": "object"}, "ClientCreditDataWithPdfItem": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "fileName": {"type": "string"}, "creditCheckDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "latestUpdatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "metadata": {"type": "object", "default": {}}, "monitoringEvents": {"type": "array", "items": {"$ref": "#/definitions/monitoringDataClient"}}, "decisionMessage": {"type": "string"}}, "type": "object"}, "monitoringDataClient": {"properties": {"metadata": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "type": {"type": "string"}, "topic": {"type": "string"}}, "type": "object"}, "ClientEmailRecipientPost": {"required": ["email"], "properties": {"email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "ClientEmailRecipient": {"required": ["clientId", "email"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}}, "type": "object"}, "clientPaymentAccountPost": {"required": ["paymentAccountId"], "properties": {"paymentAccountId": {"type": "string"}}, "type": "object"}, "creditHistoryMonitoringClient": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "sourceId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "metadata": {"type": "object", "default": {}}, "identificationNumber": {"type": "string"}, "source": {"type": "string"}, "fileName": {"type": "string"}}, "type": "object"}, "clientPreferredLanguage": {"required": ["preferredLanguage"], "properties": {"preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "clientUpdateReminderProfile": {"properties": {"reminderProfileId": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}}, "type": "object"}, "clientReminderProfile": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "reminderProfileId": {"type": "string"}, "reminderProfileCode": {"type": "string"}, "currency": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}}, "type": "object"}, "copyClientSetup": {"required": ["parts", "sourceClientId"], "properties": {"sourceClientId": {"type": "string", "description": "The client whose set-up is copied."}, "parts": {"type": "array", "description": "What to copy, any of: INVOICE_PROFILES, COLLECTION_PROFILES, INVOICE_SETTINGS, BASE_INTEREST, CLIENT_SETTINGS, DISTRIBUTION, PAYMENT_MATCHING_ENGINE.", "items": {"type": "string"}}}, "type": "object"}, "copyClientSetupResult": {"properties": {"clientId": {"type": "string"}, "sourceClientId": {"type": "string"}, "copied": {"type": "array", "items": {"$ref": "#/definitions/copiedClientSetupPart"}}}, "type": "object"}, "copiedClientSetupPart": {"properties": {"part": {"type": "string"}, "count": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "clientDocumentSetting": {"properties": {"clientId": {"type": "string"}, "generateXml": {"type": "boolean", "example": false}, "generatePaymentReport": {"type": "boolean", "example": false}, "generatePaymentReportBgmax": {"type": "boolean", "example": false}, "generateActivityReportXlsx": {"type": "boolean", "example": false}, "activityReportFormats": {"type": "array", "items": {"type": "string", "example": "XLSX", "enum": ["XLSX", "PDF", "CSV", "XML"]}}, "generateXlsx": {"type": "boolean", "example": false}, "generateBookedInvoiceReport": {"type": "boolean", "example": false}}, "type": "object"}, "updateClientEinvoiceSettings": {"required": ["settings"], "properties": {"settings": {"type": "array", "items": {"$ref": "#/definitions/clientEinvoiceSetting"}}}, "type": "object"}, "clientEinvoiceSetting": {"required": ["b2cIssuerAddress", "countryCode"], "properties": {"countryCode": {"type": "string"}, "b2cIssuerAddress": {"type": "string"}}, "type": "object"}, "ClientConnectToGitResponse": {"properties": {"clientId": {"type": "string"}, "erpId": {"type": "string"}}, "type": "object"}, "ClientHandlerPut": {"required": ["name"], "properties": {"approvedTerms": {"type": "boolean", "example": false}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/contactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "contactInformation": {"required": ["email", "phone"], "properties": {"name": {"type": "string", "description": "The name of the person that should be contact person for container when we contact them."}, "email": {"type": "string", "description": "The e-mail of the person that should contact person for container when we contact them."}, "phone": {"type": "string", "description": "The phone of the contact person when we contact them.\t"}, "cellPhone": {"type": "string", "description": "The cell phone of the contact when we contact them.\t"}}, "type": "object"}, "ClientHandler": {"required": ["identificationNumber", "name"], "properties": {"locale": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "approvalStatus": {"type": "string"}, "approvedTerms": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/contactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "managerUserId": {"type": "string"}, "managerUserGroupId": {"type": "integer", "format": "int", "example": 0}, "managerUserGroupName": {"type": "integer", "format": "int", "example": 0}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "id": {"type": "string"}}, "type": "object"}, "ClientHandlerPost": {"required": ["identificationNumber", "name", "userPassword"], "properties": {"approvedTerms": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/contactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "userPassword": {"type": "string"}}, "type": "object"}, "ClientHandlerSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "disabled": {"type": "boolean", "example": false}, "approvalStatus": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "ownerUserId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "id": {"type": "string"}}, "type": "object"}, "ClientHandlerBillingSettingPut": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "manageClientBilling": {"type": "boolean", "example": false}}, "type": "object"}, "ClientHandlerBillingSettings": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "manageClientBilling": {"type": "boolean", "example": false}, "clientHandlerId": {"type": "string"}}, "type": "object"}, "ClientInvoiceSettingsUpdate": {"properties": {"clientId": {"type": "string"}, "enableAutomaticActivate": {"type": "boolean", "example": false}, "defaultInvoiceType": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "creditAfterDays": {"type": "integer", "format": "int", "example": 0}, "blockNewServiceInvoices": {"type": "boolean", "example": false}, "blockNewFactoringInvoices": {"type": "boolean", "example": false}, "email": {"$ref": "#/definitions/ClientInvoiceSettingsEmail"}, "pdf": {"$ref": "#/definitions/ClientInvoiceSettingsPdf"}, "disableEmailPaymentInformation": {"type": "boolean", "example": false}, "invoiceColorPrint": {"type": "boolean", "example": false}, "invoiceExpressDelivery": {"type": "boolean", "example": false}, "reminderColorPrint": {"type": "boolean", "example": false}, "reminderExpressDelivery": {"type": "boolean", "example": false}, "invoiceSettlementOrder": {"type": "string", "example": "CAPITAL", "enum": ["CAPITAL", "REMINDER", "INTEREST", "CAPITAL_REMINDER", "CAPITAL_INTEREST", "REMINDER_CAPITAL", "REMINDER_INTEREST", "INTEREST_CAPITAL", "INTEREST_REMINDER", "CAPITAL_REMINDER_INTEREST", "CAPITAL_INTEREST_REMINDER", "REMINDER_CAPITAL_INTEREST", "REMINDER_INTEREST_CAPITAL", "INTEREST_CAPITAL_REMINDER", "INTEREST_REMINDER_CAPITAL"]}, "collectionSettlementOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}}, "type": "object"}, "ClientInvoiceSettingsEmail": {"properties": {"enableLogotype": {"type": "boolean", "example": false}, "message": {"type": "string"}}, "type": "object"}, "ClientInvoiceSettingsPdf": {"properties": {"hideArticleColumn": {"type": "boolean", "example": false}, "hidePriceColumn": {"type": "boolean", "example": false}, "showInclVat": {"type": "boolean", "example": false}, "showPurchaseOrderNumber": {"type": "boolean", "example": false}, "showDeliverNote": {"type": "boolean", "example": false}, "showDeliverDate": {"type": "boolean", "example": false}}, "type": "object"}, "ClientInvoiceSettings": {"properties": {"clientId": {"type": "string"}, "enableAutomaticActivate": {"type": "boolean", "example": false}, "defaultInvoiceType": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "creditAfterDays": {"type": "integer", "format": "int", "example": 0}, "blockNewServiceInvoices": {"type": "boolean", "example": false}, "blockNewFactoringInvoices": {"type": "boolean", "example": false}, "email": {"$ref": "#/definitions/ClientInvoiceSettingsEmail"}, "pdf": {"$ref": "#/definitions/ClientInvoiceSettingsPdf"}, "disableEmailPaymentInformation": {"type": "boolean", "example": false}, "invoiceColorPrint": {"type": "boolean", "example": false}, "invoiceExpressDelivery": {"type": "boolean", "example": false}, "reminderColorPrint": {"type": "boolean", "example": false}, "reminderExpressDelivery": {"type": "boolean", "example": false}, "invoiceSettlementOrder": {"type": "string", "example": "CAPITAL", "enum": ["CAPITAL", "REMINDER", "INTEREST", "CAPITAL_REMINDER", "CAPITAL_INTEREST", "REMINDER_CAPITAL", "REMINDER_INTEREST", "INTEREST_CAPITAL", "INTEREST_REMINDER", "CAPITAL_REMINDER_INTEREST", "CAPITAL_INTEREST_REMINDER", "REMINDER_CAPITAL_INTEREST", "REMINDER_INTEREST_CAPITAL", "INTEREST_CAPITAL_REMINDER", "INTEREST_REMINDER_CAPITAL"]}, "collectionSettlementOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}}, "type": "object"}, "CreateLabelClient": {"required": ["label", "valueJson"], "properties": {"label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "LabelClient": {"properties": {"id": {"type": "string"}, "label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "UpdateLabelClient": {"required": ["valueJson"], "properties": {"label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "ClientSyncUpdate": {"properties": {"enabled": {"type": "boolean", "example": false}, "status": {"type": "string"}, "enableAutomatic": {"type": "boolean", "example": false}}, "type": "object"}, "ClientSync": {"properties": {"clientId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "enableAutomatic": {"type": "boolean", "example": false}, "status": {"type": "string"}, "lastInvoiceSyncDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "lastInvoiceSyncQuantity": {"type": "integer", "format": "int", "example": 0}, "lastVoucherSyncDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "lastVoucherSyncQuantity": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientSyncCompleteIntegration": {"required": ["erp_type"], "properties": {"erp_type": {"type": "string", "description": "ERP type to connect. Determines which credential fields below are used.", "example": "MICROSOFT_BC_NAB", "enum": ["MICROSOFT_BC_NAB", "YOUNIUM", "BL_ADMIN", "WOO_COMMERCE", "FORTNOX"]}, "user_name": {"type": "string", "description": "Credential for MICROSOFT_BC_NAB and YOUNIUM."}, "password": {"type": "string", "description": "Credential for MICROSOFT_BC_NAB and YOUNIUM."}, "company_id": {"type": "string", "description": "Credential for MICROSOFT_BC_NAB."}, "tenant_id": {"type": "string", "description": "Credential for MICROSOFT_BC_NAB."}, "client_id": {"type": "string", "description": "Credential for BL_ADMIN and FORTNOX."}, "client_secret": {"type": "string", "description": "Credential for BL_ADMIN and FORTNOX."}, "user_key": {"type": "string", "description": "Credential for BL_ADMIN."}, "client_url": {"type": "string", "description": "Credential for WOO_COMMERCE."}, "consumer_key": {"type": "string", "description": "Credential for WOO_COMMERCE."}, "consumer_secret": {"type": "string", "description": "Credential for WOO_COMMERCE."}, "redirect_uri": {"type": "string", "description": "Optional credential for FORTNOX."}, "add_invoice_attachment": {"type": "boolean", "description": "Optional flag for FORTNOX.", "example": false}}, "type": "object"}, "ClientSyncOnboardingUrl": {"properties": {"action": {"type": "string"}, "url": {"type": "string"}}, "type": "object"}, "ClientSyncStatus": {"required": ["status"], "properties": {"status": {"type": "string", "example": "CONNECTED", "enum": ["CONNECTED", "FAILED"]}}, "type": "object"}, "ClientSyncReset": {"properties": {"invoiceErp": {"type": "boolean", "description": "Remove the invoice ERP. Defaults to true.", "example": false}, "bookkeepErp": {"type": "boolean", "description": "Remove the bookkeep ERP. Defaults to true.", "example": false}}, "type": "object"}, "ClientSyncInvoiceCreate": {"properties": {"type": {"type": "string", "example": "NEW", "enum": ["NEW", "EXPIRED"]}}, "type": "object"}, "ClientSyncInvoice": {"properties": {"id": {"type": "string"}, "externalId": {"type": "string"}, "clientId": {"type": "string"}, "type": {"type": "string", "example": "NEW", "enum": ["NEW", "EXPIRED"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "finishedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "finishedBy": {"type": "string"}, "status": {"type": "string"}, "quantity": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientInvoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "type": {"type": "string", "example": "NEW", "enum": ["NEW", "EXPIRED"]}, "status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "FINISHED", "FAILED"]}}, "type": "object"}, "ClientSyncStatusInvoice": {"required": ["externalId", "quantity", "status"], "properties": {"status": {"type": "string", "example": "FINISHED", "enum": ["FINISHED", "FAILED"]}, "externalId": {"type": "string"}, "quantity": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ClientSyncInvoiceBookingError": {"required": ["errors", "invoiceId"], "properties": {"invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string", "description": "The invoice number in the ERP."}, "connectionId": {"type": "string"}, "errors": {"type": "array", "minItems": 1, "items": {"$ref": "#/definitions/ClientSyncInvoiceBookingErrorItem"}}}, "type": "object"}, "ClientSyncInvoiceBookingErrorItem": {"required": ["code", "message"], "properties": {"code": {"type": "string", "description": "The error code from the ERP."}, "message": {"type": "string", "description": "The error message from the ERP."}}, "type": "object"}, "ClientToDoPost": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "clientId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "type": {"type": "string"}, "isCreditMonitoring": {"type": "boolean", "example": false}}, "type": "object"}, "ClientToDo": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}, "type": {"type": "string"}, "isCreditMonitoring": {"type": "boolean", "example": false}, "activities": {"type": "object"}, "eventDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "UpdateClientToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "ClientToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "clientId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "ResolveMultipleClientToDo": {"required": ["todoIds"], "properties": {"todoIds": {"type": "array", "description": "List of todo IDs to resolve", "items": {"type": "string"}}}, "type": "object"}, "client-transfer-text-post": {"required": ["invoiceType", "languageId", "productId", "serviceProviderCode", "text"], "properties": {"clientFinancialPriceTemplateId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceType": {"type": "string"}, "productId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "languageId": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "text": {"type": "string"}}, "type": "object"}, "client-transfer-text-put": {"required": ["invoiceType", "languageId", "productId", "serviceProviderCode", "text"], "properties": {"clientId": {"type": "string"}, "invoiceType": {"type": "string"}, "productId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "languageId": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "text": {"type": "string"}}, "type": "object"}, "client-transfer-text-search": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "clientFinancialPriceTemplateId": {"type": "string"}, "clientId": {"type": "string"}, "invoiceType": {"type": "string"}, "productId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "languageId": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "text": {"type": "string"}, "createdBy": {"type": "string"}, "createdDate": {"type": "string"}, "updatedBy": {"type": "string"}, "updatedDate": {"type": "string"}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "ErpUpdate": {"required": ["name"], "properties": {"approvedTerms": {"type": "boolean", "example": false}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/contactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "Erp": {"required": ["identificationNumber", "name"], "properties": {"locale": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "approvalStatus": {"type": "string"}, "approvedTerms": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/contactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "managerUserId": {"type": "string"}, "managerUserGroupId": {"type": "integer", "format": "int", "example": 0}, "managerUserGroupName": {"type": "integer", "format": "int", "example": 0}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "id": {"type": "string"}, "types": {"type": "array", "items": {"$ref": "#/definitions/ErpTypeEntry"}}}, "type": "object"}, "ErpTypeEntry": {"properties": {"type": {"type": "string"}}, "type": "object"}, "ErpPost": {"required": ["identificationNumber", "name", "userPassword"], "properties": {"approvedTerms": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "contactInformation": {"$ref": "#/definitions/contactInformation"}, "GLN": {"type": "string"}, "FUI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "ownerUserId": {"type": "string"}, "disabled": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "userPassword": {"type": "string"}}, "type": "object"}, "ErpSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "locale": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "disabled": {"type": "boolean", "example": false}, "approvalStatus": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "ownerUserId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "id": {"type": "string"}}, "type": "object"}, "ErpBillingSettingsUpdate": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "manageClientBilling": {"type": "boolean", "example": false}}, "type": "object"}, "ErpBillingSettings": {"properties": {"interval": {"type": "string", "description": "Defines the interval of invoices.", "example": "MONTHLY", "enum": ["MONTHLY", "QUARTERLY", "HALF_YEARLY", "YEARLY", "DAILY"]}, "invoiceDistributionMethod": {"type": "string", "description": "Defines which distribution type should be used when sending invoice.", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "invoiceAdministrationFee": {"type": "number", "format": "float", "description": "Defines which administration fee should be used when sending invoice.", "example": 0.0}, "billingAddress": {"$ref": "#/definitions/addressInformation"}, "manageClientBilling": {"type": "boolean", "example": false}, "erpId": {"type": "string"}}, "type": "object"}, "ERPShort": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "logoFileName": {"type": "string"}, "types": {"type": "array", "items": {"$ref": "#/definitions/ERPTypeShort"}}}, "type": "object"}, "ERPTypeShort": {"properties": {"type": {"type": "string"}}, "type": "object"}, "ERPType": {"required": ["erpId", "type"], "properties": {"erpId": {"type": "string"}, "type": {"type": "string", "example": "BOOKKEEP", "enum": ["BOOKKEEP", "INVOICE"]}}, "type": "object"}, "StatisticsFactoring": {"required": ["type"], "properties": {"type": {"type": "string", "example": "WEEKLY", "enum": ["WEEKLY", "MONTHLY"]}, "fromDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "toDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "intervalBack": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "StatisticsFactoringResponse": {"properties": {"data": {"type": "array", "items": {"$ref": "#/definitions/StatisticsFactoringPeriodData"}}}, "type": "object"}, "StatisticsFactoringPeriodData": {"properties": {"periodName": {"type": "string"}, "periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "avgFinancingRate": {"type": "number", "format": "float", "example": 0.0}, "totalInvoices": {"type": "integer", "format": "int", "example": 0}, "financedInvoiceCount": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "OverdueOpenBalanceRequest": {"properties": {"debtorId": {"type": "string"}, "invoiceType": {"type": "array", "items": {"type": "string"}}, "productType": {"type": "array", "items": {"type": "string", "example": "financedWithoutRecourse", "enum": ["financedWithoutRecourse", "financedWithRecourse", "service", "recoursed"]}}}, "type": "object"}, "OverdueChart": {"properties": {"data": {"type": "array", "items": {"$ref": "#/definitions/OverduePeriodData"}}}, "type": "object"}, "OverduePeriodData": {"properties": {"periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "notOverdue": {"type": "number", "format": "float", "example": 0.0}, "overdue1to15": {"type": "number", "format": "float", "example": 0.0}, "overdue16to30": {"type": "number", "format": "float", "example": 0.0}, "overdue31to60": {"type": "number", "format": "float", "example": 0.0}, "overdue61Plus": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "OverdueStatistics": {"properties": {"type": {"type": "string", "example": "WEEKLY", "enum": ["WEEKLY", "MONTHLY"]}, "fromDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "toDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "intervalBack": {"type": "integer", "format": "int", "example": 0}, "debtorId": {"type": "string"}, "invoiceType": {"type": "array", "items": {"type": "string"}}, "productType": {"type": "array", "items": {"type": "string", "example": "financedWithoutRecourse", "enum": ["financedWithoutRecourse", "financedWithRecourse", "service", "recoursed"]}}}, "type": "object"}, "ProductOpenBalanceRequest": {"properties": {"debtorId": {"type": "string"}, "invoiceType": {"type": "array", "items": {"type": "string"}}, "overdueBucket": {"type": "string"}}, "type": "object"}, "ProductChart": {"properties": {"data": {"type": "array", "items": {"$ref": "#/definitions/ProductPeriodData"}}}, "type": "object"}, "ProductPeriodData": {"properties": {"periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "financedWithoutRecourseAmount": {"type": "number", "format": "float", "example": 0.0}, "financedWithRecourseAmount": {"type": "number", "format": "float", "example": 0.0}, "serviceAmount": {"type": "number", "format": "float", "example": 0.0}, "recoursedAmount": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "ProductStatistics": {"properties": {"type": {"type": "string", "example": "WEEKLY", "enum": ["WEEKLY", "MONTHLY"]}, "fromDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "toDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "intervalBack": {"type": "integer", "format": "int", "example": 0}, "debtorId": {"type": "string"}, "invoiceType": {"type": "array", "items": {"type": "string"}}, "overdueBucket": {"type": "string"}}, "type": "object"}, "StatisticsCounts": {"properties": {"id": {"type": "string"}, "todosType": {"type": "string"}, "todosToResolve": {"type": "integer", "format": "int", "example": 0}, "invoicesToActivate": {"type": "integer", "format": "int", "example": 0}, "invoicesInPendingAuthorization": {"type": "integer", "format": "int", "example": 0}, "errandsToResolve": {"type": "integer", "format": "int", "example": 0}, "collections_open": {"type": "integer", "format": "int", "example": 0}, "invoiceValidationErrors": {"type": "integer", "format": "int", "example": 0}, "failedDistribution": {"type": "integer", "format": "int", "example": 0}, "failedBookkeeping": {"type": "integer", "format": "int", "example": 0}, "nrOfInvoicesAboutToGoToCollection": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "StatisticsCountsSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}}, "type": "object"}, "CollectionBatchBulkUpdatePostpone": {"required": ["collectionBatches", "postponeUntilDate"], "properties": {"collectionBatches": {"type": "array", "items": {"$ref": "#/definitions/collectionBatchId"}}, "actionType": {"type": "string", "example": "POSTPONE_COLLECTION_BATCHES", "enum": ["POSTPONE_COLLECTION_BATCHES"]}, "postponeUntilDate": {"type": "string"}}, "type": "object"}, "collectionBatchId": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "CollectionBatchBulkUpdateNote": {"required": ["collectionBatches", "description"], "properties": {"collectionBatches": {"type": "array", "items": {"$ref": "#/definitions/collectionBatchId"}}, "description": {"type": "string"}}, "type": "object"}, "collection-batch-collection-profile-get": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "code": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "collection-batch-change-profile": {"required": ["collectionProfileId"], "properties": {"collectionProfileId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchEvent": {"required": ["amountCapital", "amountFee", "amountInterest", "amountTotal", "balanceCapital", "balanceFee", "balanceInterest", "balanceTotal", "createdAt", "date", "id", "index", "plannedDate", "topic", "type"], "properties": {"index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "amountCapital": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "invoiceId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "createdAt": {"type": "number", "format": "float", "example": 0.0}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "noteId": {"type": "string"}, "noteDescription": {"type": "string"}, "reasonCode": {"type": "string"}, "reasonCodeDescription": {"type": "string"}, "reasonCodeStatus": {"type": "string"}, "documentId": {"type": "string"}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "distributionChannels": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "CollectionBatchEventSearch": {"required": ["createdAt", "date", "id", "index", "plannedDate", "topic", "type"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "invoiceId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "createdAt": {"type": "number", "format": "float", "example": 0.0}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "noteId": {"type": "string"}, "noteDescription": {"type": "string"}, "reasonCode": {"type": "string"}, "reasonCodeDescription": {"type": "string"}, "reasonCodeStatus": {"type": "string"}, "documentId": {"type": "string"}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "distributionChannels": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "TriggerCollectionBatchEvent": {"required": ["date", "type"], "properties": {"type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "validDays": {"type": "integer", "format": "int", "example": 0}, "amountFee": {"type": "number", "format": "decimal"}, "distributionChannels": {"type": "array", "items": {"type": "string"}}, "triggerDebtorLookup": {"type": "boolean", "example": false}, "documentTemplateCode": {"type": "string"}, "placeholders": {"type": "array", "items": {"$ref": "#/definitions/TriggerCollectionBatchEventPlaceholder"}}}, "type": "object"}, "TriggerCollectionBatchEventPlaceholder": {"properties": {"code": {"type": "string"}, "value": {"type": "string"}, "localeId": {"type": "string"}, "language": {"type": "string"}}, "type": "object"}, "TriggerCollectionBatchEventResponse": {"required": ["date", "type"], "properties": {"type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "validDays": {"type": "integer", "format": "int", "example": 0}, "amountFee": {"type": "number", "format": "decimal"}, "distributionChannels": {"type": "array", "items": {"type": "string"}}, "triggerDebtorLookup": {"type": "boolean", "example": false}, "placeholders": {"type": "array", "items": {"$ref": "#/definitions/TriggerCollectionBatchEventPlaceholder"}}}, "type": "object"}, "CollectionBatchFinancialEvent": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "amounts": {"$ref": "#/definitions/CollectionBatchFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/CollectionBatchFinancialEventBalances"}, "collectionFeeTypeId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchFinancialEventAmounts": {"properties": {"fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "CollectionBatchFinancialEventBalances": {"properties": {"fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "CollectionBatchFinancialEventPostInput": {"required": ["amount", "type"], "properties": {"amount": {"type": "number", "format": "float", "example": 0.0}, "type": {"type": "string", "example": "COLLECTION_BATCH_FEE", "enum": ["COLLECTION_BATCH_FEE", "COLLECTION_BATCH_INTEREST"]}, "description": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "collectionFeeTypeId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchGuarantorUpdate": {"properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "CollectionBatchGuarantor": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "CollectionBatchGuarantorCreate": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "InvoiceGuarantorSearchCollection": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "CollectionBatchHistory": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "args": {"type": "string", "format": "dict"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}}, "type": "object"}, "CollectionBatchHistorySearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "args": {"type": "string", "format": "dict"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "collectionBatchId": {"type": "string"}, "invoiceId": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoice": {"required": ["collectionBatchId", "invoiceId"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "invoiceId": {"type": "string"}}, "type": "object"}, "CollectionBatchLabelInvoice": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "label": {"type": "string"}, "value": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "CollectionBatchPaymentReferenceSettingsPost": {"required": ["clientId", "prefix"], "properties": {"clientId": {"type": "string"}, "length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "CollectionBatchPaymentReferenceSettings": {"required": ["clientId"], "properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "CollectionBatchPaymentReferenceSettingsPut": {"properties": {"length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "CollectionBatchPaymentReferenceSettingsSearch": {"properties": {"length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "CollectionBatchPublic": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "debtorIdentificationNumber": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodePublic"}}}, "type": "object"}, "CollectionBatchReasonCodePublic": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "reasonCode": {"type": "string"}, "description": {"type": "string"}, "notes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeNotesPublic"}}}, "type": "object"}, "CollectionBatchReasonCodeNotesPublic": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchInvoiceInfo": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceNumber": {"type": "string"}, "balances": {"$ref": "#/definitions/CollectionBatchInvoiceInfoBalances"}, "currency": {"$ref": "#/definitions/CollectionBatchInvoiceInfoCurrency"}, "dates": {"$ref": "#/definitions/CollectionBatchInvoiceInfoDates"}, "totals": {"$ref": "#/definitions/CollectionBatchInvoiceInfoTotals"}, "purchaseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "clientRegisteredOffice": {"type": "string"}, "clientBusinessDescription": {"type": "string"}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticleCollection"}}, "paymentReference": {"type": "string"}, "mainStatus": {"type": "string"}, "zip": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceInfoBalances": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "CollectionBatchInvoiceInfoCurrency": {"properties": {"baseCurrency": {"type": "string"}, "invoiceCurrency": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceInfoDates": {"properties": {"expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "CollectionBatchInvoiceInfoTotals": {"properties": {"totalToPay": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "invoiceArticleCollection": {"properties": {"id": {"type": "string", "description": "Internal id of the article row."}, "articleNumber": {"type": "string", "description": "Your article number for the article used."}, "description": {"type": "string", "description": "Description for the article row."}, "quantity": {"type": "string", "description": "Quantity of article invoiced in the article row."}, "unit": {"type": "string", "description": "Unit of the article used in the article row."}, "price": {"type": "number", "format": "decimal", "description": "Price of the article used in the article row."}, "totalDiscount": {"type": "number", "format": "decimal", "description": "Total discount of the article row."}, "discountType": {"type": "string", "description": "Type of discount of the article row. Can be one of NULL, PERCENTAGE or CURRENCY.", "enum": [null, "PERCENTAGE", "CURRENCY"]}, "vatPercentage": {"type": "number", "format": "float", "description": "VAT percentage used for the article row.", "example": 0.0}, "totalExclVat": {"type": "number", "format": "decimal", "description": "Total amount without VAT of the article row."}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT of the article row."}, "total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the article row."}, "accountNumber": {"type": "string", "description": "The bookkeeping account number that should be used."}}, "type": "object"}, "PublicCollectionBatchLedgerStatus": {"properties": {"ledger_status": {"type": "string"}}, "type": "object"}, "ClientPublicCollection": {"required": ["name"], "properties": {"name": {"type": "string"}, "logotypeDocumentFileName": {"type": "string"}, "paymentAccounts": {"type": "array", "items": {"$ref": "#/definitions/PublicClientPaymentAccount"}}, "addressInformation": {"$ref": "#/definitions/_ClientAddressPublicCollection"}, "contactInformation": {"$ref": "#/definitions/_ClientContactPublicCollection"}}, "type": "object"}, "PublicClientPaymentAccount": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "_ClientAddressPublicCollection": {"properties": {"name": {"type": "string", "description": "The address name."}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}}, "type": "object"}, "_ClientContactPublicCollection": {"required": ["email", "phone"], "properties": {"email": {"type": "string", "description": "The e-mail of the person that should contact person for container when we contact them."}, "phone": {"type": "string", "description": "The phone of the contact person when we contact them.   "}}, "type": "object"}, "PublicClientPaymentAccountSingle": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchWithDocumentPublic": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "debtorIdentificationNumber": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoices": {"type": "array", "items": {"type": "string"}}, "document": {"$ref": "#/definitions/CollectionBatchDocumentSetPublic"}}, "type": "object"}, "CollectionBatchDocumentSetPublic": {"properties": {"report": {"$ref": "#/definitions/CollectionBatchDocumentPublic"}, "collection": {"$ref": "#/definitions/CollectionBatchDocumentPublic"}, "notifications": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchDocumentPublic"}}, "agreement": {"$ref": "#/definitions/CollectionBatchDocumentPublic"}, "partPaymentPlan": {"$ref": "#/definitions/CollectionBatchDocumentPublic"}, "partPaymentNotification": {"$ref": "#/definitions/CollectionBatchDocumentPublic"}}, "type": "object"}, "CollectionBatchDocumentPublic": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "PaymentMethodConfigurationInvoicePublic": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentMethodId": {"type": "integer", "format": "int", "example": 0}, "productId": {"type": "string"}, "debtorType": {"type": "string"}, "annuity": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}, "localeId": {"type": "string"}, "code": {"type": "string"}, "paymentMethodEnabled": {"type": "boolean", "example": false}, "partPaymentPlanSetting": {"$ref": "#/definitions/PartPaymentPlanSettingInvoicePublic"}, "partPaymentAccountSetting": {"$ref": "#/definitions/PartPaymentAccountSettingPublic"}, "annuityData": {"$ref": "#/definitions/PartPaymentPlanSettingSummaryResponse"}, "accountInvoiceAmount": {"type": "number", "format": "decimal", "description": "Estimated monthly part payment account invoice for these invoices: the installment, one month of interest and the administration fee including VAT, start fee excluded. Null for other payment methods and for collection batches."}, "variant": {"type": "string"}}, "type": "object"}, "PartPaymentPlanSettingInvoicePublic": {"properties": {"paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceRetainerPercentage": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "priceStartFee": {"type": "number", "format": "decimal"}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "debtorPortalLegalVisible": {"type": "boolean", "example": false}, "debtorPortalTermsVisible": {"type": "boolean", "example": false}, "addToExisting": {"type": "boolean", "example": false}, "paymentTermsPlaceholderText": {"type": "string"}}, "type": "object"}, "PartPaymentAccountSettingPublic": {"properties": {"paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "accountInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "priceStartFee": {"type": "number", "format": "decimal"}, "accountInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "debtorPortalLegalVisible": {"type": "boolean", "example": false}, "debtorPortalTermsVisible": {"type": "boolean", "example": false}, "addToExisting": {"type": "boolean", "example": false}}, "type": "object"}, "PartPaymentPlanSettingSummaryResponse": {"properties": {"annuityTotalAmount": {"type": "number", "format": "decimal"}, "annuityInstallmentAmount": {"type": "number", "format": "decimal"}, "annuityInterestAmount": {"type": "number", "format": "decimal"}, "annuityFeeAmount": {"type": "number", "format": "decimal"}, "annuityRetainerFeeAmount": {"type": "number", "format": "decimal"}, "totalInstallment": {"type": "number", "format": "decimal"}, "totalInterest": {"type": "number", "format": "decimal"}, "totalFeeInterest": {"type": "number", "format": "decimal"}, "totalToPay": {"type": "number", "format": "decimal"}}, "type": "object"}, "CollectionBatchFinancialEventsPublic": {"properties": {"type": {"type": "string", "example": "COLLECTION_BATCH_FEE", "enum": ["COLLECTION_BATCH_FEE", "COLLECTION_BATCH_INTEREST", "COLLECTION_BATCH_PAYMENT", "COLLECTION_BATCH_LINKED_UNPLACED_PAYMENT", "COLLECTION_BATCH_FEE_WRITEOFF", "COLLECTION_BATCH_FEE_WRITEOFF", "COLLECTION_BATCH_INTEREST_WRITEOFF"]}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "amounts": {"$ref": "#/definitions/CollectionBatchFinancialEventAmountsPublic"}, "balances": {"$ref": "#/definitions/CollectionBatchFinancialEventBalancesPublic"}}, "type": "object"}, "CollectionBatchFinancialEventAmountsPublic": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "CollectionBatchFinancialEventBalancesPublic": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "payment_request_post_swish": {"required": ["amount", "redirectUri", "serviceProviderCode", "test"], "properties": {"amount": {"type": "number", "format": "decimal"}, "redirectUri": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "test": {"type": "boolean", "example": false}, "serviceProviderCode": {"type": "string", "example": "BANKID", "enum": ["BANKID", "PAYMENT_REFERENCE", "SWISH", "DUN_BRADSTREET", "QUIDDLY", "ATRADIUS", "INEXCHANGE", "CAPORUM", "STRAWBAY", "INTRUM_SE", "INTRUM_NO", "EXTERNAL_COLLECTION"]}}, "type": "object"}, "PaymentRequest": {"properties": {"id": {"type": "string"}, "status": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "paymentDate": {"type": "string", "description": "The date that the payment request will be executed"}, "externalLink": {"type": "string", "description": "External link for redirect"}, "externalId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "serviceProviderCode": {"type": "string"}}, "type": "object"}, "collection-batch-file": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "totalCount": {"type": "integer", "format": "int", "example": 0}, "pendingCount": {"type": "integer", "format": "int", "example": 0}, "failedCount": {"type": "integer", "format": "int", "example": 0}, "successfulCount": {"type": "integer", "format": "int", "example": 0}, "rejectedCount": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}}, "type": "object"}, "collection-batch-file-search": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "totalCount": {"type": "integer", "format": "int", "example": 0}, "pendingCount": {"type": "integer", "format": "int", "example": 0}, "failedCount": {"type": "integer", "format": "int", "example": 0}, "successfulCount": {"type": "integer", "format": "int", "example": 0}, "rejectedCount": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}}, "type": "object"}, "collection-batch-purchase-search": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "newClient": {"type": "string"}, "collectionBatchFileId": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "error": {"type": "string"}}, "type": "object"}, "collection-batch-purchase": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "newClient": {"type": "string"}, "collectionBatchFileId": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "error": {"type": "string"}}, "type": "object"}, "CollectionBatchToDoPost": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "collectionBatchId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchToDo": {"properties": {"id": {"type": "string"}, "collectionBatchId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}}, "type": "object"}, "UpdateCollectionBatchToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "collectionBatchId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}}, "type": "object"}, "CollectionBatchPost": {"required": ["clientId", "currency", "productCode"], "properties": {"clientId": {"type": "string"}, "debtorId": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "ledgerStatus": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "text": {"type": "string"}, "debtor": {"$ref": "#/definitions/CollectionBatchPostDebtor"}, "debtInvoices": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchPostInvoice"}}, "paymentCalculationOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}, "paymentNotification": {"type": "boolean", "example": false}, "collectionProfileCode": {"type": "string"}, "allowMerge": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchPostDebtor": {"properties": {"customerNumber": {"type": "string"}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "identificationNumberInternal": {"type": "string"}, "locale": {"type": "string", "example": "AD", "enum": ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW", "EU", "OTHER"]}, "type": {"type": "string", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "subtypeId": {"type": "string"}, "GLN": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "segmentCode": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/CollectionBatchPostDebtorInvoiceAddress"}, "deliveryAddress": {"$ref": "#/definitions/CollectionBatchPostDebtorDeliveryAddress"}, "vatNumber": {"type": "string"}, "distributionChannelOverride": {"type": "boolean", "example": false}, "distributionChannel": {"type": "string"}, "FMI": {"type": "string"}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "CollectionBatchPostDebtorInvoiceAddress": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "CollectionBatchPostDebtorDeliveryAddress": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "CollectionBatchPostInvoice": {"required": ["amountOriginal", "description", "expireDate", "invoiceDate", "invoiceNumber", "productCode"], "properties": {"invoiceNumber": {"type": "string"}, "productCode": {"type": "string"}, "reminderProfileCode": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "ourOrderNumber": {"type": "string"}, "amountOriginal": {"type": "number", "format": "decimal"}, "amountPrepaid": {"type": "number", "format": "decimal"}, "description": {"type": "string"}, "labels": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchPostInvoiceLabel"}}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "claimedFees": {"$ref": "#/definitions/claimedInvoiceFees"}}, "type": "object"}, "CollectionBatchPostInvoiceLabel": {"required": ["label", "value"], "properties": {"label": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "claimedInvoiceFees": {"properties": {"reminder": {"description": "Reminder fee of the invoice. Only applicable if product code is COLLECTION_SERVICE", "allOf": [{"$ref": "#/definitions/reminderClaimedFees"}]}, "interest": {"description": "Claimed interest of the invoice. Will override other interest calculations for expired invoices. Only applicable if product code is COLLECTION_SERVICE", "allOf": [{"$ref": "#/definitions/reminderClaimedFees"}]}}, "type": "object"}, "reminderClaimedFees": {"properties": {"amount": {"type": "number", "format": "decimal", "description": "Reminder fee of the invoice. Only applicable if product code is COLLECTION_SERVICE"}}, "type": "object"}, "CollectionBatch": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "paymentCalculationOrder": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "paymentNotification": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "example": false}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementId": {"type": "integer", "format": "int", "example": 0}, "invoiceIds": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchInvoices"}}, "balanceCollectionFee": {"type": "number", "format": "decimal"}, "balanceCollectionFeeLocale": {"type": "number", "format": "decimal"}, "balanceEnforcementFee": {"type": "number", "format": "decimal"}, "balanceEnforcementFeeLocale": {"type": "number", "format": "decimal"}, "invoices": {"type": "array", "items": {"type": "string"}}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeCollection"}}}, "type": "object"}, "CollectionBatchInvoices": {"properties": {"invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}}, "type": "object"}, "CollectionBatchReasonCodeCollection": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "reasonCode": {"type": "string"}, "description": {"type": "string"}, "notes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeNotes"}}}, "type": "object"}, "CollectionBatchReasonCodeNotes": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchPut": {"properties": {"status": {"type": "string", "example": "OPEN", "enum": ["OPEN", "PAUSED", "STOPPED", "RESUME"]}, "text": {"type": "string"}, "ledgerStatus": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}, "paymentCalculationOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}, "paymentNotification": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchWithDocument": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "paymentCalculationOrder": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "paymentNotification": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "example": false}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementId": {"type": "integer", "format": "int", "example": 0}, "invoiceIds": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchInvoices"}}, "balanceCollectionFee": {"type": "number", "format": "decimal"}, "balanceCollectionFeeLocale": {"type": "number", "format": "decimal"}, "balanceEnforcementFee": {"type": "number", "format": "decimal"}, "balanceEnforcementFeeLocale": {"type": "number", "format": "decimal"}, "invoices": {"type": "array", "items": {"type": "string"}}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeCollection"}}, "document": {"$ref": "#/definitions/CollectionBatchDocumentModel"}}, "type": "object"}, "CollectionBatchDocumentModel": {"properties": {"report": {"$ref": "#/definitions/CollectionBatchDocument"}, "collection": {"$ref": "#/definitions/CollectionBatchDocument"}, "notifications": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchDocument"}}, "agreement": {"$ref": "#/definitions/CollectionBatchDocument"}, "partPaymentPlan": {"$ref": "#/definitions/CollectionBatchDocument"}, "partPaymentNotification": {"$ref": "#/definitions/CollectionBatchDocument"}}, "type": "object"}, "CollectionBatchDocument": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceInvoice": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/CollectionBatchInvoiceDebtor"}, "dates": {"$ref": "#/definitions/CollectionBatchInvoiceDates"}, "totals": {"$ref": "#/definitions/CollectionBatchInvoiceTotals"}, "balances": {"$ref": "#/definitions/CollectionBatchInvoiceBalances"}, "statuses": {"$ref": "#/definitions/CollectionBatchInvoiceStatuses"}}, "type": "object"}, "CollectionBatchInvoiceDebtor": {"properties": {"id": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceDates": {"properties": {"invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "CollectionBatchInvoiceTotals": {"properties": {"totalToPay": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceBalances": {"properties": {"total": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoiceStatuses": {"properties": {"ledger": {"type": "string"}, "ledgerSubType": {"type": "string"}}, "type": "object"}, "StopCollectionBatch": {"properties": {"chargeFee": {"type": "boolean", "default": false, "example": false}, "chargeInterest": {"type": "boolean", "default": false, "example": false}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}, "feeAmount": {"type": "number", "format": "decimal"}, "interestAmount": {"type": "number", "format": "decimal"}}, "type": "object"}, "WriteOffCollectionBatch": {"required": ["chargeFee", "chargeInterest", "feeAmount", "interestAmount"], "properties": {"feeAmount": {"type": "number", "format": "decimal"}, "interestAmount": {"type": "number", "format": "decimal"}, "chargeFee": {"type": "boolean", "example": false}, "chargeInterest": {"type": "boolean", "example": false}, "feeType": {"type": "string", "example": "COLLECTION_FEE", "enum": ["COLLECTION_FEE", "PART_PAYMENT_START_FEE", "PART_PAYMENT_NOTIFICATION_FEE", "PART_PAYMENT_REMINDER_FEE", "ORDER_TO_PAY_COST", "ORDER_TO_PAY_FEE", "ENFORCEMENT_COST", "DOCUMENT_SERVICE_COST", "REMINDER_FEE", "PARTY_SERVING_COST", "FINAL_INVOICE_FEE", "MORTGAGE_FEE"]}}, "type": "object"}, "PostponeCollectionBatch": {"required": ["postponeUntilDate"], "properties": {"postponeUntilDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "ReprieveCreateCollectionBatch": {"required": ["finalInvoiceDueDate"], "properties": {"finalInvoiceDueDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reprieveDays": {"type": "integer", "format": "int", "default": 10, "example": 0}, "minimumReprieveAmount": {"type": "number", "format": "decimal", "default": 1}, "description": {"type": "string"}}, "type": "object"}, "ReprieveGetCollectionBatch": {"required": ["finalInvoiceDueDate"], "properties": {"finalInvoiceDueDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closeReason": {"type": "string"}, "reprieveDays": {"type": "integer", "format": "int", "example": 0}, "minimumReprieveAmount": {"type": "number", "format": "decimal"}, "hasFinalInvoiceBeenSent": {"type": "boolean", "readOnly": true, "example": false}, "isClosed": {"type": "boolean", "readOnly": true, "example": false}, "createdById": {"type": "string", "readOnly": true}, "description": {"type": "string", "readOnly": true}, "collectionBatchId": {"type": "string", "readOnly": true}}, "type": "object"}, "ReprieveCloseCollectionBatch": {"required": ["closeReason"], "properties": {"closeReason": {"type": "string"}}, "type": "object"}, "ReprieveJobCollectionBatch": {"properties": {}, "type": "object"}, "CollectionBatchSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string", "example": "OPEN", "enum": ["OPEN", "RESUME", "PAUSED", "STOPPED", "CLOSED", "DISPUTED"]}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "paymentReference": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "invoiceIds": {"type": "string"}, "createdDate": {"type": "string"}, "instanceProviderId": {"type": "string"}}, "type": "object"}, "CreateSingleInvoiceCollectionBatchResponse": {"properties": {"id": {"type": "string"}}, "type": "object"}, "CollectionBatchInvoicesUpdate": {"required": ["invoices"], "properties": {"invoices": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "CollectionBatchInvoicesResponse": {"properties": {"collectionBatches": {"type": "array", "items": {"type": "object"}}, "missedInvoiceIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "CollectionBatchInvoiceCollection": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}}, "type": "object"}, "CollectionBatchPartPaymentStart": {"required": ["addToExisting", "type"], "properties": {"type": {"type": "string", "example": "PART_PAYMENT_PLAN", "enum": ["PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT"]}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "addToExisting": {"type": "boolean", "example": false}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "skipStartFee": {"type": "boolean", "default": false, "example": false}, "skipAdministrationFee": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "CollectionBatchPartPaymentStartResponse": {"properties": {"id": {"type": "string"}}, "type": "object"}, "CollectionBatchPartPaymentStop": {"properties": {"writeOffFees": {"type": "boolean", "default": true, "example": false}}, "type": "object"}, "CollectionBatchCounter": {"properties": {"count": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "NoteCollection": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}, "topic": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DocumentCollection"}}, "collectionBatchIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "DocumentCollection": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "CollectionBatchNote": {"properties": {"collectionBatchId": {"type": "string"}, "topic": {"type": "string"}, "target": {"type": "string"}, "description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchJudgementPut": {"properties": {"judgementNumber": {"type": "string"}, "caseNumber": {"type": "string"}}, "type": "object"}, "CollectionBatchJudgement": {"properties": {"id": {"type": "string"}, "judgementNumber": {"type": "string"}, "caseNumber": {"type": "string"}}, "type": "object"}, "CollectionBatchPutClientUpdate": {"properties": {"clientId": {"type": "string"}, "collectionProfileId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchClientPaymentAccount": {"properties": {"id": {"type": "string"}, "currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchClientHistorySearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "collectionBatchId": {"type": "string"}, "currentClientId": {"type": "string"}, "previousClientId": {"type": "string"}, "purchaseDate": {"type": "string"}}, "type": "object"}, "CollectionBatchClientHistory": {"properties": {"id": {"type": "string"}, "collectionBatchId": {"type": "string"}, "currentClientId": {"type": "string"}, "previousClientId": {"type": "string"}, "purchaseDate": {"type": "string"}}, "type": "object"}, "ChargeCollectionBatch": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "chargeId": {"type": "string"}, "chargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "chargeDescription": {"type": "string"}, "chargeStatus": {"type": "string"}, "chargeType": {"type": "string"}, "chargeAmount": {"type": "number", "format": "decimal"}, "chargeAmountLocale": {"type": "number", "format": "decimal"}, "chargeAmountPrepaid": {"type": "number", "format": "decimal"}, "chargeAmountPrepaidLocale": {"type": "number", "format": "decimal"}, "chargeAmountVat": {"type": "number", "format": "decimal"}, "chargeAmountVatLocale": {"type": "number", "format": "decimal"}, "chargeAmountVariable": {"type": "number", "format": "decimal"}, "chargeAmountTotal": {"type": "number", "format": "decimal"}, "chargeAmountTotalLocale": {"type": "number", "format": "decimal"}, "chargeAuthorizedDate": {"type": "string"}, "chargeAuthorizedBy": {"type": "string"}, "chargeBilledDate": {"type": "string"}, "chargeBilledBy": {"type": "string"}}, "type": "object"}, "CollectionBatchChargeSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "chargeId": {"type": "string"}, "chargeDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "chargeDescription": {"type": "string"}, "chargeStatus": {"type": "string"}, "chargeType": {"type": "string"}}, "type": "object"}, "collectionBatch": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "paymentCalculationOrder": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string", "example": "OPEN", "enum": ["OPEN", "RESUME", "PAUSED", "STOPPED", "CLOSED", "DISPUTED"]}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "paymentNotification": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "example": false}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementId": {"type": "string"}, "invoices": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchInvoicesGet"}}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCode"}}, "invoiceIds": {"type": "array", "items": {"type": "string"}}, "balanceEnforcementFee": {"type": "number", "format": "decimal", "default": 0}}, "type": "object"}, "CollectionBatchInvoicesGet": {"properties": {"invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}}, "type": "object"}, "CollectionBatchReasonCode": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "reasonCode": {"type": "string"}, "description": {"type": "string"}, "notes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeGet"}}}, "type": "object"}, "CollectionBatchReasonCodeGet": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchWithDocumentGet": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "paymentCalculationOrder": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string", "example": "OPEN", "enum": ["OPEN", "RESUME", "PAUSED", "STOPPED", "CLOSED", "DISPUTED"]}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "paymentNotification": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "example": false}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "enforcementId": {"type": "string"}, "invoices": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchInvoicesGet"}}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCode"}}, "invoiceIds": {"type": "array", "items": {"type": "string"}}, "balanceEnforcementFee": {"type": "number", "format": "decimal", "default": 0}, "document": {"$ref": "#/definitions/CollectionBatchDocumentModelGet"}}, "type": "object"}, "CollectionBatchDocumentModelGet": {"properties": {"report": {"$ref": "#/definitions/CollectionBatchDocumentGet"}, "collection": {"$ref": "#/definitions/CollectionBatchDocumentGet"}, "notifications": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchDocumentGet"}}, "agreement": {"$ref": "#/definitions/CollectionBatchDocumentGet"}, "partPaymentPlan": {"$ref": "#/definitions/CollectionBatchDocumentGet"}, "partPaymentNotification": {"$ref": "#/definitions/CollectionBatchDocumentGet"}}, "type": "object"}, "CollectionBatchDocumentGet": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "collection-profile-post": {"required": ["code", "currency", "description", "settlementOrder"], "properties": {"currency": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "default": false, "example": false}, "collectionClaimClosedDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "settlementOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}, "partPaymentDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseTargetClient": {"type": "string"}, "toleranceLimitFee": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitInterest": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitCapital": {"type": "integer", "format": "int", "default": 0, "example": 0}, "collectionFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}}, "type": "object"}, "collection-profile": {"required": ["code", "currency", "description", "settlementOrder"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "default": false, "example": false}, "collectionClaimClosedDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "settlementOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}, "partPaymentDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseTargetClient": {"type": "string"}, "toleranceLimitFee": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitInterest": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitCapital": {"type": "integer", "format": "int", "default": 0, "example": 0}, "collectionFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "levels": {"type": "array", "items": {"$ref": "#/definitions/collection-profile-level"}}, "systemCollectionProfile": {"type": "array", "items": {"$ref": "#/definitions/system-collection-profile"}}}, "type": "object"}, "collection-profile-level": {"required": ["collectionProfileId", "index", "type"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "COLLECTION_CLAIM", "enum": ["COLLECTION_CLAIM", "PURCHASE", "COLLECTION_NOTIFICATION", "ENFORCEMENT", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "MONITORING", "MONITORING_DECISION", "COLLECTION_TO_DO_TASK", "CREDIT_CHECK", "ADDRESS_LOOKUP", "WAIT", "CHANGE_LEDGER_STATUS"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "feeAmount": {"type": "number", "format": "decimal"}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "collectionProfileId": {"type": "integer", "format": "int", "example": 0}, "documentTemplateId": {"type": "string"}, "triggerDebtorLookup": {"type": "boolean", "example": false}, "ledgerStatusCode": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "system-collection-profile": {"required": ["collectionProfileId"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionProfileId": {"type": "integer", "format": "int", "example": 0}, "productId": {"type": "string"}, "debtorType": {"type": "string"}, "debtorCountryCode": {"type": "string"}, "clientId": {"type": "string"}, "segmentId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "collection-profile-put": {"required": ["code", "currency", "description", "settlementOrder"], "properties": {"currency": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "default": false, "example": false}, "collectionClaimClosedDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "settlementOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}, "partPaymentDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseTargetClient": {"type": "string"}, "toleranceLimitFee": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitInterest": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitCapital": {"type": "integer", "format": "int", "default": 0, "example": 0}, "collectionFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}}, "type": "object"}, "collection-profile-copy": {"required": ["code"], "properties": {"code": {"type": "string"}}, "type": "object"}, "staged-collection-profile": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "oldCollectionProfileId": {"type": "integer", "format": "int", "example": 0}, "newCollectionProfileId": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "staged-collection-profile-search": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "oldCollectionProfileId": {"type": "integer", "format": "int", "example": 0}, "newCollectionProfileId": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "collection-profile-is-live": {"properties": {"isLive": {"type": "boolean", "example": false}, "collectionBatchCount": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "collection-profile-search": {"required": ["code", "currency", "description", "settlementOrder"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "code": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "default": false, "example": false}, "collectionClaimClosedDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "settlementOrder": {"type": "string", "example": "FEE_INTEREST_CAPITAL", "enum": ["FEE_INTEREST_CAPITAL", "INTEREST_FEE_CAPITAL", "CAPITAL_FEE_INTEREST", "CAPITAL_INTEREST_FEE", "FEE_CAPITAL_INTEREST", "INTEREST_CAPITAL_FEE"]}, "partPaymentDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseDistributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "purchaseTargetClient": {"type": "string"}, "toleranceLimitFee": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitInterest": {"type": "integer", "format": "int", "default": 0, "example": 0}, "toleranceLimitCapital": {"type": "integer", "format": "int", "default": 0, "example": 0}, "collectionFeeBookkeepingMethod": {"type": "string", "example": "INVOICE_METHOD", "enum": ["INVOICE_METHOD", "CASH_METHOD"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "levels": {"type": "array", "items": {"$ref": "#/definitions/collection-profile-level"}}, "systemCollectionProfile": {"type": "array", "items": {"$ref": "#/definitions/system-collection-profile"}}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "collection-profile-level-put": {"required": ["index", "type"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "COLLECTION_CLAIM", "enum": ["COLLECTION_CLAIM", "PURCHASE", "COLLECTION_NOTIFICATION", "ENFORCEMENT", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "MONITORING", "MONITORING_DECISION", "COLLECTION_TO_DO_TASK", "CREDIT_CHECK", "ADDRESS_LOOKUP", "WAIT", "CHANGE_LEDGER_STATUS"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "feeAmount": {"type": "number", "format": "decimal"}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "documentTemplateId": {"type": "string"}, "triggerDebtorLookup": {"type": "boolean", "example": false}, "ledgerStatusCode": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "collection-profile-level-placeholder-post": {"required": ["localeId", "name", "value"], "properties": {"value": {"type": "string"}, "localeId": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "collection-profile-level-placeholder": {"required": ["collectionProfileLevelId", "localeId", "name", "value"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "value": {"type": "string"}, "localeId": {"type": "string"}, "name": {"type": "string"}, "collectionProfileLevelId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "collection-document-preview": {"required": ["collectionBatchId", "distributionChannel", "documentType"], "properties": {"documentType": {"type": "string"}, "distributionChannel": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}, "collectionBatchId": {"type": "string"}, "documentTemplateId": {"type": "string"}, "collectionProfileLevelId": {"type": "integer", "format": "int", "example": 0}, "email": {"type": "string"}, "phone": {"type": "string"}}, "type": "object"}, "collection-profile-level-placeholder-put": {"required": ["localeId", "value"], "properties": {"value": {"type": "string"}, "localeId": {"type": "string"}}, "type": "object"}, "collection-profile-level-placeholder-search": {"required": ["collectionProfileLevelId", "localeId", "name", "value"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "value": {"type": "string"}, "localeId": {"type": "string"}, "name": {"type": "string"}, "collectionProfileLevelId": {"type": "integer", "format": "int", "example": 0}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "collection-profile-level-post": {"required": ["collectionProfileId", "index", "type"], "properties": {"index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "COLLECTION_CLAIM", "enum": ["COLLECTION_CLAIM", "PURCHASE", "COLLECTION_NOTIFICATION", "ENFORCEMENT", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "MONITORING", "MONITORING_DECISION", "COLLECTION_TO_DO_TASK", "CREDIT_CHECK", "ADDRESS_LOOKUP", "WAIT", "CHANGE_LEDGER_STATUS"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "feeAmount": {"type": "number", "format": "decimal"}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "collectionProfileId": {"type": "integer", "format": "int", "example": 0}, "documentTemplateId": {"type": "string"}, "triggerDebtorLookup": {"type": "boolean", "example": false}, "ledgerStatusCode": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}}, "type": "object"}, "collection-profile-level-search": {"required": ["collectionProfileId", "index", "type"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "index": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string", "example": "COLLECTION_CLAIM", "enum": ["COLLECTION_CLAIM", "PURCHASE", "COLLECTION_NOTIFICATION", "ENFORCEMENT", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "MONITORING", "MONITORING_DECISION", "COLLECTION_TO_DO_TASK", "CREDIT_CHECK", "ADDRESS_LOOKUP", "WAIT", "CHANGE_LEDGER_STATUS"]}, "afterPreviousDays": {"type": "integer", "format": "int", "example": 0}, "validDays": {"type": "integer", "format": "int", "example": 0}, "graceDays": {"type": "integer", "format": "int", "example": 0}, "feeAmount": {"type": "number", "format": "decimal"}, "distributionChannels": {"type": "array", "items": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "DIGITAL_MAILBOX", "LETTER", "ELECTRONIC_INVOICE", "PARTNER", "SMS"]}}, "collectionProfileId": {"type": "integer", "format": "int", "example": 0}, "documentTemplateId": {"type": "string"}, "triggerDebtorLookup": {"type": "boolean", "example": false}, "ledgerStatusCode": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "system-collection-profile-search": {"required": ["collectionProfileId"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "collectionProfileId": {"type": "integer", "format": "int", "example": 0}, "productId": {"type": "string"}, "debtorType": {"type": "string"}, "debtorCountryCode": {"type": "string"}, "clientId": {"type": "string"}, "segmentId": {"type": "integer", "format": "int", "example": 0}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "DebtorCollectionBatch": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "debtorIdentificationNumber": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeDebtorCollection"}}}, "type": "object"}, "CollectionBatchReasonCodeDebtorCollection": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "reasonCode": {"type": "string"}, "description": {"type": "string"}, "notes": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchReasonCodeNotesDebtorCollection"}}}, "type": "object"}, "CollectionBatchReasonCodeNotesDebtorCollection": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "CollectionBatchSearchDebtor": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string", "example": "OPEN", "enum": ["OPEN", "RESUME", "PAUSED", "STOPPED", "CLOSED", "DISPUTED"]}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "ledgerStatus": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "COLLECTION", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "WATCH", "LEGAL", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "BANKRUPTCY_MONITORING", "CORPORATE_REORGANIZATION", "LIQUIDATION", "PART_PAYMENT_PLAN", "ABROAD", "DEBT_SETTLEMENT", "PART_PAYMENT_PLAN_ASSERTED", "BAILIFF_DISPUTE", "SUMMONS_BEFORE_BF", "PRE_ABROAD", "PAYMENT_REQUEST_SENT_FOR_SERVICE", "PURCHASE", "DISPUTE", "COLLECTION_TO_DO_TASK", "EXTERNAL_SCORING", "ENFORCEMENT", "REPRIEVE", "COLLECTION_BATCH_FINAL_INVOICE", "PENDING_IMPORT", "IMPORT_IN_PROGRESS"]}, "isPartPayment": {"type": "boolean", "example": false}, "invoiceIds": {"type": "string"}}, "type": "object"}, "ReasonCodeDebtorCollection": {"required": ["reasonCode"], "properties": {"reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}}, "type": "object"}, "ClientCollectionDebtor": {"required": ["name"], "properties": {"name": {"type": "string"}, "logotypeDocumentFileName": {"type": "string"}, "paymentAccounts": {"type": "array", "items": {"$ref": "#/definitions/DebtorClientPaymentAccountClient"}}, "addressInformation": {"$ref": "#/definitions/_ClientAddressDebtorCollection"}, "contactInformation": {"$ref": "#/definitions/_ClientContactDebtorCollection"}}, "type": "object"}, "DebtorClientPaymentAccountClient": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "_ClientAddressDebtorCollection": {"properties": {"name": {"type": "string", "description": "The address name."}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}}, "type": "object"}, "_ClientContactDebtorCollection": {"required": ["email", "phone"], "properties": {"email": {"type": "string", "description": "The e-mail of the person that should contact person for container when we contact them."}, "phone": {"type": "string", "description": "The phone of the contact person when we contact them."}}, "type": "object"}, "DebtorClientPaymentAccount": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "DebtorCollectionBatchLedgerStatusResponse": {"properties": {"ledger_status": {"type": "string"}}, "type": "object"}, "CollectionBatchWithDocumentDebtor": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "text": {"type": "string"}, "ledgerStatus": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "invoicesCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceReminder": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "debtorIdentificationNumber": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoices": {"type": "array", "items": {"type": "string"}}, "document": {"$ref": "#/definitions/CollectionBatchDocumentSetDebtor"}}, "type": "object"}, "CollectionBatchDocumentSetDebtor": {"properties": {"report": {"$ref": "#/definitions/CollectionBatchDocumentDebtor"}, "collection": {"$ref": "#/definitions/CollectionBatchDocumentDebtor"}, "notifications": {"type": "array", "items": {"$ref": "#/definitions/CollectionBatchDocumentDebtor"}}, "agreement": {"$ref": "#/definitions/CollectionBatchDocumentDebtor"}, "partPaymentPlan": {"$ref": "#/definitions/CollectionBatchDocumentDebtor"}, "partPaymentNotification": {"$ref": "#/definitions/CollectionBatchDocumentDebtor"}}, "type": "object"}, "CollectionBatchDocumentDebtor": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "CollectionBatchFinancialEventsDebtor": {"properties": {"type": {"type": "string", "example": "COLLECTION_BATCH_FEE", "enum": ["COLLECTION_BATCH_FEE", "COLLECTION_BATCH_INTEREST", "COLLECTION_BATCH_PAYMENT", "COLLECTION_BATCH_LINKED_UNPLACED_PAYMENT", "COLLECTION_BATCH_FEE_WRITEOFF", "COLLECTION_BATCH_FEE_WRITEOFF", "COLLECTION_BATCH_INTEREST_WRITEOFF"]}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "amounts": {"$ref": "#/definitions/CollectionBatchFinancialEventsDebtorAmounts"}, "balances": {"$ref": "#/definitions/CollectionBatchFinancialEventsDebtorBalances"}}, "type": "object"}, "CollectionBatchFinancialEventsDebtorAmounts": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "CollectionBatchFinancialEventsDebtorBalances": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "CollectionBatchPartDebtorPaymentStart": {"required": ["addToExisting", "debtorLevel", "type"], "properties": {"type": {"type": "string", "example": "PART_PAYMENT_PLAN", "enum": ["PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT"]}, "debtorLevel": {"type": "string", "example": "DEBTOR", "enum": ["DEBTOR", "SYSTEM_DEBTOR"]}, "annuity": {"type": "integer", "format": "int", "example": 0}, "addToExisting": {"type": "boolean", "example": false}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "generateFirstPartInvoice": {"type": "boolean", "example": false}}, "type": "object"}, "NoteCreateDebtor": {"required": ["description"], "properties": {"description": {"type": "string"}}, "type": "object"}, "NoteDebtor": {"properties": {"id": {"type": "string"}, "topic": {"type": "string"}, "target": {"type": "string"}, "description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "collectionBatchId": {"type": "string"}}, "type": "object"}, "DocumentCollectionPublic": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "CollectionBatchPublicToDoPost": {"properties": {"description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "dueDate": {"type": "string"}}, "type": "object"}, "CollectionBatchToDoModel": {"properties": {"id": {"type": "string"}, "collectionBatchId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "isDebtor": {"type": "boolean", "example": false}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "CollectionBatchInvoiceInfoDebtor": {"properties": {"id": {"type": "string"}, "invoiceNumber": {"type": "string"}, "purchaseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "clientRegisteredOffice": {"type": "string"}, "clientBusinessDescription": {"type": "string"}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticle"}}}, "type": "object"}, "PostponeCollectionBatchDebtor": {"required": ["postponeUntilDate"], "properties": {"postponeUntilDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "segmentPost": {"required": ["code", "description"], "properties": {"code": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "segmentGet": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "code": {"type": "string"}, "description": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedBy": {"type": "string"}}, "type": "object"}, "segmentPut": {"properties": {"code": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "Enforcement": {"properties": {"id": {"type": "string"}, "enforcementNumber": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "debtorInternalIdentificationNumber": {"type": "string"}, "status": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "serviceProviderId": {"type": "string"}, "serviceProviderName": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "journalNumber": {"type": "string"}, "journalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "verdictNumber": {"type": "string"}, "verdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayVerdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayVerdictNumber": {"type": "string"}, "orderToPayJournalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayJournalNumber": {"type": "string"}, "executionJournalNumber": {"type": "string"}, "executionVerdictDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "executionVerdictNumber": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "enforcementBalanceFee": {"type": "number", "format": "decimal"}, "enforcementBalanceFeeLocale": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "collectionBatchIds": {"type": "array", "items": {"type": "string"}}, "collectionBatchNumbers": {"type": "array", "items": {"type": "string"}}, "closedCollectionBatchIds": {"type": "array", "items": {"type": "string"}}, "closedCollectionBatchNumbers": {"type": "array", "items": {"type": "string"}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "salaryDistraintAmount": {"type": "number", "format": "decimal"}, "salaryReservedAmount": {"type": "number", "format": "decimal"}, "salaryDecisionDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "salaryPeriodicity": {"type": "string"}}, "type": "object"}, "EnforcementSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "enforcementNumber": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "debtorInternalIdentificationNumber": {"type": "string"}, "status": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "serviceProviderId": {"type": "string"}, "serviceProviderName": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "journalNumber": {"type": "string"}, "journalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "verdictNumber": {"type": "string"}, "verdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayVerdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayVerdictNumber": {"type": "string"}, "orderToPayJournalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayJournalNumber": {"type": "string"}, "executionJournalNumber": {"type": "string"}, "executionVerdictDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "executionVerdictNumber": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "enforcementBalanceFee": {"type": "number", "format": "decimal"}, "enforcementBalanceFeeLocale": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchIds": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "closedCollectionBatchId": {"type": "string"}, "closedCollectionBatchNumber": {"type": "string"}, "createdDate": {"type": "string"}}, "type": "object"}, "EnforcementDeliveries": {"properties": {"id": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "deliveryType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "confirmationDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "errorMessage": {"type": "string"}}, "type": "object"}, "EnforcementDeliveriesSearch": {"properties": {"id": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementNumber": {"type": "integer", "format": "int", "example": 0}, "deliveryType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "confirmationDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "errorMessage": {"type": "string"}}, "x-mask": "{query,queryTarget}", "type": "object"}, "EnforcementDeliveryHistorySearch": {"properties": {"createdDate": {"type": "string"}, "updatedDate": {"type": "string"}, "enforcementDeliveryId": {"type": "string"}, "type": {"type": "string"}, "sequenceNo": {"type": "string"}, "oldStatus": {"type": "string"}, "newStatus": {"type": "string"}, "createdById": {"type": "string"}, "updatedById": {"type": "string"}}, "x-mask": "{query,queryTarget}", "type": "object"}, "EnforcementDeliveryHistory": {"properties": {"createdDate": {"type": "string"}, "updatedDate": {"type": "string"}, "enforcementDeliveryId": {"type": "string"}, "type": {"type": "string"}, "sequenceNo": {"type": "string"}, "oldStatus": {"type": "string"}, "newStatus": {"type": "string"}, "createdById": {"type": "string"}, "updatedById": {"type": "string"}}, "type": "object"}, "EnforcementDeliveryApiLog": {"properties": {"id": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementDeliveryId": {"type": "string"}, "endpoint": {"type": "string"}, "httpStatusCode": {"type": "integer", "format": "int", "example": 0}, "requestData": {"type": "object"}, "responseData": {"type": "object"}, "reference": {"type": "string"}, "status": {"type": "string"}, "errorMessage": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "EnforcementDeliveryApiLogSearch": {"properties": {"id": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementDeliveryId": {"type": "string"}, "endpoint": {"type": "string"}, "httpStatusCode": {"type": "integer", "format": "int", "example": 0}, "requestData": {"type": "object"}, "responseData": {"type": "object"}, "reference": {"type": "string"}, "status": {"type": "string"}, "errorMessage": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "EnforcementRecall": {"properties": {"message": {"type": "string", "description": "User message reason for recall"}, "manuallyRecalled": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "EnforcementCompleteClosingExecution": {"properties": {"message": {"type": "string"}}, "type": "object"}, "EnforcementNotePost": {"properties": {"description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "linkCollectionBatches": {"type": "boolean", "example": false}}, "type": "object"}, "EnforcementNote": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}, "topic": {"type": "string"}, "target": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "documents": {"type": "array", "items": {"$ref": "#/definitions/EnforcementDocument"}}, "collectionBatchIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "EnforcementDocument": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "EnforcementDeliveriesRetry": {"properties": {"deliveryType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "enforcementId": {"type": "string"}}, "type": "object"}, "EnforcementDeliveriesUpdateListRequest": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/UpdateDeliveryListUpdates"}}}, "type": "object"}, "UpdateDeliveryListUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string"}, "ServiceType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "Status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "EnforcementDeliveriesUpdateListResponse": {"properties": {"Results": {"type": "array", "items": {"$ref": "#/definitions/UpdateEnforcementDeliveryListResponseModel"}}}, "type": "object"}, "UpdateEnforcementDeliveryListResponseModel": {"required": ["ReferenceNo", "Success"], "properties": {"ReferenceNo": {"type": "string"}, "Success": {"type": "boolean", "example": false}, "Error": {"type": "string"}}, "type": "object"}, "EnforcementDeliveriesConfirmVerdictListRequest": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/ConfirmVerdictUpdates"}}}, "type": "object"}, "ConfirmVerdictUpdates": {"required": ["Data", "ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/ConfirmVerdictModel"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string"}, "ServiceType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "Status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ConfirmVerdictModel": {"required": ["JournalDate", "JournalNo"], "properties": {"JournalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "JournalNo": {"type": "string"}, "OrgNo": {"type": "string"}}, "type": "object"}, "EnforcementDeliveriesReportRecallListRequest": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/UpdateEnforcementRecallListUpdates"}}}, "type": "object"}, "UpdateEnforcementRecallListUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string"}, "ServiceType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "Status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "EnforcementVerdictReportList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/VerdictReportList"}}}, "type": "object"}, "VerdictReportList": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/VerdictReportData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string"}, "ServiceType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "Status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "VerdictReportData": {"required": ["Capital", "IsPartlyDisputed", "ServingDate", "SumCollectionCosts", "SumDelayFee", "SumProcessCosts", "VerdictDate", "VerdictNo"], "properties": {"VerdictNoInt": {"type": "integer", "format": "int", "example": 0}, "VerdictNo": {"type": "string"}, "VerdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "ServingDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "OrgNo": {"type": "string"}, "IsPartlyDisputed": {"type": "boolean", "example": false}, "Capital": {"type": "number", "format": "float", "example": 0.0}, "SumProcessCosts": {"type": "number", "format": "float", "example": 0.0}, "SumCollectionCosts": {"type": "number", "format": "float", "example": 0.0}, "SumDelayFee": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "EnforcementDeductionReportList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/DeductionReportUpdates"}}}, "type": "object"}, "DeductionReportUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/DeductionReportData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string"}, "ServiceType": {"type": "string", "example": "VERDICT", "enum": ["VERDICT", "VERDICTRECALL", "DEDUCTION", "EXECUTION_DEDUCTION", "EXECUTION", "VERDICT", "ORDER_TO_PAY_REVISION"]}, "Status": {"type": "string", "example": "PENDING", "enum": ["PENDING", "READY_FOR_EXPORT", "CANCELED", "RECEIVED", "EXPORTED", "CONFIRMED", "REJECTED", "ACCEPTED", "RECALLED", "VERDICT", "DEDUCTED", "EXPORT_FAILED"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "DeductionReportData": {"properties": {"ErrorMessage": {"type": "string"}, "PartialClaimNo": {"type": "integer", "format": "int", "example": 0}, "PartialClaimType": {"type": "string", "example": "Capital", "enum": ["Capital", "CollectionCost"]}}, "type": "object"}, "EnforcementExecutionReportList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/ExecutionClosureReportUpdates"}}}, "type": "object"}, "ExecutionClosureReportUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/ExecutionClosureReportData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string", "example": "REPORT", "enum": ["REPORT"]}, "ServiceType": {"type": "string", "example": "EXECUTION", "enum": ["EXECUTION"]}, "Status": {"type": "string", "example": "CLOSURE", "enum": ["CLOSURE"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ExecutionClosureReportData": {"properties": {"HandlingAvailable": {"type": "string"}, "InvoicingInfo": {"type": "string"}, "JournalNo": {"type": "string"}, "OrgNo": {"type": "string"}, "RemainingFee": {"type": "integer", "format": "int", "example": 0}, "ReportDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "ReportingCause": {"type": "string"}}, "type": "object"}, "EnforcementExecutionConfirmationReportList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/ExecutionConfirmationUpdates"}}}, "type": "object"}, "ExecutionConfirmationUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/ExecutionConfirmationData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string", "example": "REPORT", "enum": ["REPORT"]}, "ServiceType": {"type": "string", "example": "EXECUTION", "enum": ["EXECUTION"]}, "Status": {"type": "string", "example": "CONFIRMED", "enum": ["CONFIRMED"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ExecutionConfirmationData": {"properties": {"ArrearsReportingDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "JournalNo": {"type": "string"}, "OrgNo": {"type": "string"}, "TeamCodeBailiff": {"type": "string"}, "VerdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "VerdictNo": {"type": "string"}}, "type": "object"}, "EnforcementExecutionPartialDisclosureList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/ExecutionPartialDisclosureUpdates"}}}, "type": "object"}, "ExecutionPartialDisclosureUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/ExecutionPartialDisclosureData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string", "example": "REPORT", "enum": ["REPORT"]}, "ServiceType": {"type": "string", "example": "EXECUTION", "enum": ["EXECUTION"]}, "Status": {"type": "string", "example": "PARTIALDISCLOSURE", "enum": ["PARTIALDISCLOSURE"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ExecutionPartialDisclosureData": {"properties": {"JournalNo": {"type": "string"}, "OrgNo": {"type": "string"}, "ClosureDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "ClosureReason": {"type": "string"}, "PartialDisclosureDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "SurveillanceDate": {"type": "string"}, "InvestigationReportInfo": {"type": "string"}}, "type": "object"}, "EnforcementExecutionAnnualFeeReportList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/ExecutionAnnualFeeUpdates"}}}, "type": "object"}, "ExecutionAnnualFeeUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/ExecutionAnnualFeeData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string", "example": "REPORT", "enum": ["REPORT"]}, "ServiceType": {"type": "string", "example": "EXECUTION", "enum": ["EXECUTION"]}, "Status": {"type": "string", "example": "ANNUALFEE", "enum": ["ANNUALFEE"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ExecutionAnnualFeeData": {"properties": {"JournalNo": {"type": "string"}, "OrgNo": {"type": "string"}, "RemainingFee": {"type": "integer", "format": "int", "example": 0}, "NewAnnualFeeDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "ReportDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "CaseIsJointAndSeveralLiability": {"type": "boolean", "example": false}, "ChildSupport": {"type": "boolean", "example": false}, "DebtRestructuringInitiated": {"type": "boolean", "example": false}, "FeeExempt": {"type": "boolean", "example": false}}, "type": "object"}, "EnforcementExecutionDistraintSalaryReportList": {"properties": {"Updates": {"type": "array", "items": {"$ref": "#/definitions/ExecutionDistraintSalaryReportUpdates"}}}, "type": "object"}, "ExecutionDistraintSalaryReportUpdates": {"required": ["ServiceFileType", "ServiceType"], "properties": {"Data": {"$ref": "#/definitions/ExecutionDistraintSalaryReportData"}, "ReferenceNo": {"type": "string"}, "SequenceNo": {"type": "integer", "format": "int", "example": 0}, "ServiceFileType": {"type": "string", "example": "REPORT", "enum": ["REPORT"]}, "ServiceType": {"type": "string", "example": "EXECUTION", "enum": ["EXECUTION"]}, "Status": {"type": "string", "example": "SALARYDISTRAINT", "enum": ["SALARYDISTRAINT"]}, "ErrorMessages": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "ExecutionDistraintSalaryReportData": {"properties": {"JournalNo": {"type": "string"}, "OrgNo": {"type": "string"}, "DistraintAmount": {"type": "string"}, "ReservedAmount": {"type": "string"}, "DecisionDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "Periodicity": {"type": "string"}, "SourceIncome": {"type": "string"}, "PrivateCases": {"type": "array", "items": {"$ref": "#/definitions/ExecutionDistraintSalaryReportPrivateCase"}}, "PublicCases": {"type": "array", "items": {"$ref": "#/definitions/ExecutionDistraintSalaryReportPublicCase"}}}, "type": "object"}, "ExecutionDistraintSalaryReportPrivateCase": {"properties": {"AgencyCode": {"type": "string"}, "AgencyReferenceNo": {"type": "string"}, "ApplicantName": {"type": "string"}, "CurrentDebt": {"type": "string"}, "IsNewDebt": {"type": "boolean", "example": false}, "JournalNo": {"type": "string"}, "PriorityOrder": {"type": "string"}}, "type": "object"}, "ExecutionDistraintSalaryReportPublicCase": {"properties": {"AgencyReferenceNo": {"type": "string"}, "CurrentDebt": {"type": "string"}, "DebtNumber": {"type": "string"}, "DebtType": {"type": "string"}, "DebtType2": {"type": "string"}, "IsNewDebt": {"type": "boolean", "example": false}, "PriorityOrder": {"type": "string"}}, "type": "object"}, "EnforcementFinancialEventGet": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "enforcementId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "amounts": {"$ref": "#/definitions/EnforcementFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/EnforcementFinancialEventBalances"}, "feeType": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "EnforcementFinancialEventAmounts": {"properties": {"fee": {"type": "number", "format": "decimal"}, "feeLocale": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "interestLocale": {"type": "number", "format": "decimal"}, "total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "EnforcementFinancialEventBalances": {"properties": {"fee": {"type": "number", "format": "decimal"}, "feeLocale": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "interestLocale": {"type": "number", "format": "decimal"}, "total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "EnforcementFinancialEvent": {"required": ["enforcementFinancialEventType", "enforcementId", "feeType"], "properties": {"enforcementId": {"type": "string"}, "amountFee": {"type": "number", "format": "decimal"}, "description": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "enforcementFinancialEventType": {"type": "string", "example": "ENFORCEMENT_FEE", "enum": ["ENFORCEMENT_FEE", "ENFORCEMENT_FEE_WRITEOFF"]}, "feeType": {"type": "string", "example": "ORDER_TO_PAY_FEE", "enum": ["ORDER_TO_PAY_FEE", "ORDER_TO_PAY_COST", "ENFORCEMENT_COST", "DOCUMENT_SERVICE_COST", "PARTY_SERVING_COST"]}, "useSuggestedAmount": {"type": "boolean", "example": false}}, "type": "object"}, "EnforcementToDoPost": {"required": ["dueDate", "enforcementId"], "properties": {"enforcementId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "EnforcementToDo": {"properties": {"id": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}}, "type": "object"}, "UpdateEnforcementToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "EnforcementToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "enforcementId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}}, "type": "object"}, "EnforcementView": {"properties": {"id": {"type": "string"}, "enforcementNumber": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "status": {"type": "string"}, "clientId": {"type": "string"}, "orderToPayJournalNumber": {"type": "string"}, "orderToPayJournalDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "orderToPayVerdictNumber": {"type": "string"}, "orderToPayVerdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "currency": {"type": "string"}, "verdictNumber": {"type": "string"}, "verdictDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "verdictIsPartlyDisputed": {"type": "boolean", "example": false}, "verdictCapital": {"type": "number", "format": "decimal"}, "verdictSumProcessCosts": {"type": "number", "format": "decimal"}, "verdictSumCollectionCosts": {"type": "number", "format": "decimal"}, "verdictSumDelayFee": {"type": "number", "format": "decimal"}, "executionJournalNumber": {"type": "string"}, "executionOrganizationNumber": {"type": "string"}, "executionTeamCodeBailiff": {"type": "string"}, "executionArrearsReportingDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "executionVerdictDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "executionVerdictNumber": {"type": "string"}, "salaryDistraintAmount": {"type": "number", "format": "decimal"}, "salaryReservedAmount": {"type": "number", "format": "decimal"}, "salaryDecisionDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "salaryPeriodicity": {"type": "string"}, "salarySourceIncome": {"type": "string"}, "newAnnualFeeDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "newAnnualFeeReportDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "newAnnualFeeRemainingFee": {"type": "string"}, "newAnnualFeeCaseIsJointAndSeveralLiability": {"type": "boolean", "example": false}, "newAnnualFeeChildSupport": {"type": "boolean", "example": false}, "newAnnualFeeDebtStructuringInitiated": {"type": "boolean", "example": false}, "newAnnualFeeFeeExempt": {"type": "boolean", "example": false}, "closingHandlingAvailable": {"type": "string"}, "closingInvoicingInfo": {"type": "string"}, "closingRemainingFee": {"type": "string"}, "closingReportDatetime": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "closingReportingCause": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "EnforcementViewSearch": {"properties": {"id": {"type": "string"}, "enforcementNumber": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "status": {"type": "string"}, "clientId": {"type": "string"}, "orderToPayJournalNumber": {"type": "string"}, "orderToPayVerdictNumber": {"type": "string"}, "currency": {"type": "string"}}, "x-mask": "{query,queryTarget}", "type": "object"}, "System Errand": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "clientHandlerId": {"type": "string"}, "erpId": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "reason": {"type": "string"}, "source": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "resolveOwner": {"type": "string"}, "optional": {"type": "boolean", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "closedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "resolvedBy": {"type": "string"}, "closedBy": {"type": "string"}, "pauseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "typeFields": {"type": "string", "format": "dict", "default": {}}, "allowedActions": {"type": "array", "default": [], "items": {"type": "string"}}}, "type": "object"}, "ErrandSystemEvent": {"properties": {"id": {"type": "string"}, "errandId": {"type": "string"}, "createdDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "createdById": {"type": "string"}, "status": {"type": "string"}, "comment": {"type": "string"}, "commentById": {"type": "string"}}, "type": "object"}, "ErrandSystemPut": {"properties": {"comment": {"type": "string"}, "typeFields": {"type": "string", "format": "dict", "default": {}}, "skipFutureErrands": {"type": "boolean", "default": false, "example": false}, "executeNow": {"type": "boolean", "description": "Invoice monitoring decision errands only: perform the monitoring ledger event right away instead of waiting for the next reminder run.", "default": false, "example": false}}, "type": "object"}, "ErrandSystemForceClose": {"properties": {"comment": {"type": "string"}}, "type": "object"}, "ErrandSearchModel": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "erpId": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "source": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "resolveOwner": {"type": "string"}, "status": {"type": "string"}}, "type": "object"}, "ErrandSystemInvoice": {"properties": {"id": {"type": "string"}, "invoiceNumber": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "ErrandSystemInvoiceValidation": {"properties": {"errors": {"type": "array", "items": {"$ref": "#/definitions/ValidationErrors"}}}, "type": "object"}, "ValidationErrors": {"properties": {"path": {"type": "string"}, "model": {"type": "string"}, "property": {"type": "string"}, "errorCode": {"type": "string"}, "errorMessage": {"type": "string"}, "ruleType": {"type": "string"}}, "type": "object"}, "model_system_errand_suggestion_update": {"required": ["suggestion"], "properties": {"suggestion": {"type": "string", "example": "BAILIFF_PAYMENT_INJUCTION", "enum": ["BAILIFF_PAYMENT_INJUCTION", "WATCH", "WRITE_OFF"]}}, "type": "object"}, "ClientInvoiceRequestsPost": {"properties": {"requests": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequestPost"}}}, "type": "object"}, "ClientInvoiceRequestPost": {"properties": {"invoiceId": {"type": "string"}, "action": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "capitalAmount": {"type": "number", "format": "decimal"}, "comments": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequestCommentPost"}}}, "type": "object"}, "ClientInvoiceRequestCommentPost": {"properties": {"comment": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequests": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "action": {"type": "string"}, "status": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "previousRequestExists": {"type": "boolean", "example": false}, "capitalAmount": {"type": "number", "format": "decimal"}, "collectionBatchId": {"type": "string"}, "comments": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequestComment"}}, "documents": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequestDocument"}}, "createdDate": {"type": "string"}, "clientName": {"type": "string"}, "invoice": {"$ref": "#/definitions/ClientInvoiceRequestsInvoice"}, "collectionBatch": {"$ref": "#/definitions/ClientInvoiceRequestsCollectionBatch"}}, "type": "object"}, "ClientInvoiceRequestComment": {"properties": {"id": {"type": "string"}, "clientInvoiceRequestId": {"type": "string"}, "comment": {"type": "string"}, "source": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestDocument": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "documentId": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestsInvoice": {"properties": {"dates": {"$ref": "#/definitions/ClientInvoiceRequestsInvoiceDates"}, "debtor": {"$ref": "#/definitions/ClientInvoiceRequestsInvoiceDebtor"}, "balances": {"$ref": "#/definitions/ClientInvoiceRequestsInvoiceBalance"}, "currency": {"$ref": "#/definitions/ClientInvoiceRequestsInvoiceCurrency"}, "collectionBatchId": {"type": "string"}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "productCode": {"type": "string"}, "partPayment": {"$ref": "#/definitions/ClientInvoiceRequestsInvoicePartPayment"}}, "type": "object"}, "ClientInvoiceRequestsInvoiceDates": {"properties": {"expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "ClientInvoiceRequestsInvoiceDebtor": {"properties": {"name": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestsInvoiceBalance": {"properties": {"total": {"type": "number", "format": "decimal"}, "capital": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "reminder": {"type": "number", "format": "decimal"}}, "type": "object"}, "ClientInvoiceRequestsInvoiceCurrency": {"properties": {"invoiceCurrency": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestsInvoicePartPayment": {"properties": {"isPartPayment": {"type": "boolean", "example": false}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestsCollectionBatch": {"properties": {"debtorName": {"type": "string"}, "balanceTotal": {"type": "number", "format": "decimal"}, "currency": {"type": "string"}, "ledgerStatus": {"type": "string"}, "status": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "invoices": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequestsCBInvoice"}}}, "type": "object"}, "ClientInvoiceRequestsCBInvoice": {"properties": {"invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "ClientInvoiceRequestsPut": {"properties": {"status": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string"}, "capitalAmount": {"type": "number", "format": "decimal"}, "chargeFees": {"type": "boolean", "default": true, "example": false}, "chargeInterest": {"type": "boolean", "default": true, "example": false}, "overrideAction": {"type": "string"}, "comment": {"type": "string"}, "note": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestsRejectMultiple": {"properties": {"requests": {"type": "array", "items": {"$ref": "#/definitions/ClientInvoiceRequestsRejected"}}}, "type": "object"}, "ClientInvoiceRequestsRejected": {"properties": {"id": {"type": "string"}, "comment": {"type": "string"}, "note": {"type": "string"}}, "type": "object"}, "ClientInvoiceRequestsSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "action": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string"}, "clientName": {"type": "string"}}, "type": "object"}, "invoicePublicSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "dates.invoiceDate": {"type": "string"}, "dates.expireDate": {"type": "string"}, "statuses.main": {"type": "string"}, "statuses.ledger": {"type": "string"}, "totals.totalToPay": {"type": "string"}, "currency.invoiceCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "currency.baseCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "PublicInvoice": {"required": ["invoiceNumber"], "properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "partPaymentVariant": {"type": "string"}, "type": {"type": "string"}, "debtor": {"$ref": "#/definitions/PublicInvoicePublic"}, "statuses": {"$ref": "#/definitions/PublicInvoiceStatuses"}, "dates": {"$ref": "#/definitions/PublicInvoiceDates"}, "totals": {"$ref": "#/definitions/PublicInvoiceTotals"}, "balances": {"$ref": "#/definitions/PublicInvoiceBalances"}, "currency": {"$ref": "#/definitions/PublicInvoiceCurrency"}, "document": {"$ref": "#/definitions/PublicInvoiceDocumentRefs"}}, "type": "object"}, "PublicInvoicePublic": {"required": ["email", "name", "phone"], "properties": {"name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/Invoice address information"}}, "type": "object"}, "Invoice address information": {"required": ["address", "city", "name", "zip"], "properties": {"name": {"type": "string", "description": "The address name."}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "address3": {"type": "string", "description": "The third address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}}, "type": "object"}, "PublicInvoiceStatuses": {"properties": {"main": {"type": "string"}, "ledger": {"type": "string"}}, "type": "object"}, "PublicInvoiceDates": {"required": ["expireDate", "invoiceDate"], "properties": {"invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PublicInvoiceTotals": {"properties": {"totalToPay": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PublicInvoiceBalances": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PublicInvoiceCurrency": {"properties": {"invoiceCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "baseCurrency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "PublicInvoiceDocumentRefs": {"properties": {"invoiceWithAttachments": {"type": "string"}}, "type": "object"}, "PublicInvoiceClient": {"required": ["name"], "properties": {"name": {"type": "string"}, "logotypeDocumentFileName": {"type": "string"}, "addressInformation": {"$ref": "#/definitions/_ClientAddress"}, "contactInformation": {"$ref": "#/definitions/_ClientContactInvoice"}}, "type": "object"}, "_ClientAddress": {"properties": {"name": {"type": "string", "description": "The address name."}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}}, "type": "object"}, "_ClientContactInvoice": {"required": ["email", "phone"], "properties": {"email": {"type": "string", "description": "The e-mail of the person that should contact person for container when we contact them."}, "phone": {"type": "string", "description": "The phone of the contact person when we contact them.   "}}, "type": "object"}, "PublicInvoiceInstanceProvider": {"required": ["name"], "properties": {"name": {"type": "string"}, "identificationNumber": {"type": "string"}, "homepage": {"type": "string"}, "vatNumber": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "contactInformation": {"$ref": "#/definitions/_ClientContact"}, "addressInformation": {"$ref": "#/definitions/_ClientAddress"}, "brandInformation": {"$ref": "#/definitions/brandInformationPublic"}, "fileInformation": {"$ref": "#/definitions/fileInformationPublic"}}, "type": "object"}, "_ClientContact": {"required": ["email", "phone"], "properties": {"email": {"type": "string"}, "phone": {"type": "string"}}, "type": "object"}, "brandInformationPublic": {"required": ["debtorPortalButtonColor", "debtorPortalPrimaryBrandColor", "debtorPortalSecondaryBrandColor", "emailButtonColor", "emailPrimaryBrandColor", "emailSecondaryBrandColor"], "properties": {"debtorPortalButtonColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "debtorPortalPrimaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "debtorPortalSecondaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "emailPrimaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "emailSecondaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "emailButtonColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}}, "type": "object"}, "fileInformationPublic": {"properties": {"clientPortalLogotypeDocumentId": {"type": "string"}, "clientPortalFaviconDocumentId": {"type": "string"}, "debtorPortalLogotypeFileName": {"type": "string"}, "debtorPortalLogotypeDocumentId": {"type": "string"}, "debtorPortalFaviconFileName": {"type": "string"}, "debtorPortalFaviconDocumentId": {"type": "string"}, "debtorPortalBackgroundFileName": {"type": "string"}, "debtorPortalBackgroundDocumentId": {"type": "string"}, "debtorPortalLoginBackgroundFileName": {"type": "string"}, "debtorPortalLoginBackgroundDocumentId": {"type": "string"}, "adminLogotypeDocumentId": {"type": "string"}, "adminFaviconDocumentId": {"type": "string"}, "pdfLogotypeDocumentId": {"type": "string"}, "emailLogotypeFileName": {"type": "string"}, "emailLogotypeDocumentId": {"type": "string"}, "partPaymentPlanSekkiFileName": {"type": "string"}, "partPaymentPlanSekkiDocumentId": {"type": "string"}, "partPaymentPlanTermsFileName": {"type": "string"}, "partPaymentPlanTermsDocumentId": {"type": "string"}}, "type": "object"}, "PublicInvoiceLedgerEvent": {"properties": {"status": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "ACCOUNT_INVOICE"]}, "subType": {"type": "string", "example": "BAILIFF_PAYMENT_INJUCTION", "enum": ["BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "LEGAL", "WATCH", "READY_FOR_ORDER_TO_PAY"]}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "performedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/PublicInvoiceEventDocument"}}, "distributions": {"type": "array", "items": {"$ref": "#/definitions/PublicInvoiceventDistribution"}}}, "type": "object"}, "PublicInvoiceEventDocument": {"properties": {"id": {"type": "string"}}, "type": "object"}, "PublicInvoiceventDistribution": {"properties": {"id": {"type": "string"}}, "type": "object"}, "PublicInvoiceFinancialEvent": {"properties": {"type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "REMINDER", "REMINDER_WRITEOFF", "COLLECTION", "INTEREST", "INTEREST_WRITEOFF", "PAYMENT", "DIRECT_PAYMENT", "UNPLACED_PAYMENT", "STOPPED"]}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "amounts": {"$ref": "#/definitions/PublicInvoiceFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/PublicInvoiceFinancialEventBalances"}}, "type": "object"}, "PublicInvoiceFinancialEventAmounts": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PublicInvoiceFinancialEventBalances": {"properties": {"total": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PublicInvoiceDocument": {"properties": {"fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}, "topic": {"type": "string", "example": "CLIENT", "enum": ["CLIENT", "INVOICE", "REMINDER", "PAYOUT", "PAYMENT", "COMPLIANCE", "BOOKKEEPING", "DISTRIBUTION", "INVOICE_FILE", "SETTLEMENT_ACCOUNT", "ERP", "PDF", "BRAND", "CONNECTED_FILE", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_COLLECTION", "COLLECTION_BATCH_COLLECTION_CLAIM", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_FILE", "SYSTEM_DEBTOR_REPORT", "CREDIT_CHECK", "SIGNATURE_REQUEST", "TEMPLATE", "CLIENT_INVOICE_REQUEST", "ENFORCEMENT", "GDPR", "REPORT_ARCHIVE", "USER", "QUERY_REPORT_EXPORT"]}, "type": {"type": "string", "example": "CLIENT_LOGOTYPE", "enum": ["CLIENT_LOGOTYPE", "ERP_LOGOTYPE", "INVOICE_PREVIEW", "INVOICE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "CREDIT_INVOICE", "INTEREST_INVOICE", "INVOICE_ATTACHMENT", "CLIENT_ATTACHMENT", "CLIENT_INVOICE_REQUEST_ATTACHMENT", "INVOICE_FULL", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "REMINDER_ATTACHMENT", "COLLECTION", "COLLECTION_GUARANTOR", "COLLECTION_ATTACHMENT", "DELAYED_PENALTY_FEE", "DELAYED_PENALTY_FEE_ATTACHMENT", "DELAYED_PAYMENT", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "PAYOUT_FILE", "PAYMENT_FILE", "PAYMENT_TRANSACTION_SPECIFICATION_FILE", "VOUCHER", "BOOKKEEPING_FILE", "BOOKKEEPING_FILE_REPORT", "ELECTRONIC_INVOICE", "INVOICE_FILE", "BILL", "FONT_GENERAL", "FONT_MACHINE_INSTRUCTIONS", "IMAGE_LOGO", "IMAGE_LOGO_SHORT", "IMAGE_PAYMENT_TALON", "IMAGE_QR_CODE_BACKGROUND", "IMAGE_QR_CODE", "SETTLEMENT_SPECIFICATION", "SETTLEMENT_SPECIFICATION_XML", "SETTLEMENT_SPECIFICATION_XLSX", "CLIENT_ACCOUNT_SPECIFICATION", "SETTLEMENT_INVOICE_SERVICE", "SETTLEMENT_INVOICE_SERVICE_XML", "SETTLEMENT_INVOICE_SERVICE_XLSX", "SETTLEMENT_BUSINESS_LOAN", "INVOICE_AD", "SETTLEMENT_TRANSACTION", "COLLECTION_BATCH_REPORT", "COLLECTION_BATCH_REPORT_PREVIEW", "COLLECTION_BATCH_COLLECTION", "PART_PAYMENT_AGREEMENT", "PART_PAYMENT_AGREEMENT_BUSINESS_LOAN", "INVOICE_SIGNED", "COLLECTION_PAYMENT_INJUNCTION", "PAYMENT_INJUNCTION_MANUAL_REQUEST", "PAYMENT_INJUNCTION_MANUAL_INFORMATION", "COLLECTION_ENFORCEMENT_ORDER", "WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION", "PART_PAYMENT_PLAN_WARNING_EXECUTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT", "TEMPLATE_LOGOTYPE", "ACTIVITY_REPORT", "ACTIVITY_REPORT_DAILY", "ACTIVITY_REPORT_XLSX", "ACTIVITY_REPORT_DAILY_XLSX", "ACTIVITY_REPORT_XML", "ACTIVITY_REPORT_DAILY_XML", "INVOICE_EXTRACT", "COLLECTION_CLAIM", "COLLECTION_NOTIFICATION", "COLLECTION_BATCH_PART_PAYMENT_NOTIFICATION", "COLLECTION_BATCH_FINAL_INVOICE", "COLLECTION_BATCH_PART_PAYMENT_PLAN", "COLLECTION_BATCH_PART_PAYMENT_EVENT", "COLLECTION_BATCH_PART_PAYMENT_PLAN_REMINDER", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER", "PURCHASE", "PURCHASE_FILE", "CLIENT_PORTAL_LOGOTYPE", "CLIENT_PORTAL_FAVICON", "DEBTOR_PORTAL_LOGOTYPE", "DEBTOR_PORTAL_FAVICON", "DEBTOR_PORTAL_BACKGROUND", "DEBTOR_PORTAL_LOGIN_BACKGROUND", "ADMIN_LOGOTYPE", "ADMIN_FAVICON", "PDF_LOGOTYPE", "EMAIL_LOGOTYPE", "EMAIL_TEMPLATE_IMAGE", "PART_PAYMENT_PLAN_SEKKI", "PART_PAYMENT_PLAN_TERMS", "USER_PROFILE_IMAGE", "CLIENT_AGREEMENT", "INVOICE_AGREEMENT", "DEBTOR_AGREEMENT", "OTHER", "GDPR_RESULT_FILE", "QUERY_REPORT_EXPORT_FILE", "QUERY_REPORT_EXPORT_SELECTION", "CONNECTED_FILE", "SYSTEM_DEBTOR_REPORT_PREVIEW", "PAYMENT_RECEIPT", "DEBTOR_CREDIT_CHECK", "ENFORCEMENT_DELIVERY_PDF", "PAYMENT_TRANSACTION", "PAYMENT_TRANSACTION_CLIENT_REPORT", "PAYMENT_TRANSACTION_CLIENT_REPORT_BGMAX", "FACTORING_SETTLEMENT_NOTE_XML", "WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_REQUEST_GUARANTOR", "PAYMENT_INJUNCTION_MANUAL_INFORMATION_GUARANTOR", "INFORMATION_PAYMENT_INJUNCTION_PART_PAYMENT_GUARANTOR", "PART_PAYMENT_PLAN_WARNING_EXECUTION_GUARANTOR", "PART_PAYMENT_WARNING_PAYMENT_INJUNCTION_GUARANTOR", "PART_PAYMENT_ONGOING_PAYMENT_INJUCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_PAYMENT_INJUNCTION_GUARANTOR", "OFFER_PART_PAYMENT_PLAN_ONGOING_EXECUTION_GUARANTOR", "COLLECTION_BATCH_COLLECTION_MANUAL_LETTER_GUARANTOR", "PAYOUT_BATCH_REPORT", "BUSINESS_LOAN_PART_PAYMENT_PLAN_REMINDER", "BUSINESS_LOAN_PART_PAYMENT_PLAN", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN_PART_PAYMENT_ACCOUNT_REMINDER", "BOOKED_INVOICE_REPORT", "SCHEDULED_QUERY_REPORT", "REPORT_ARCHIVE_UPLOAD"]}}, "type": "object"}, "_PaymentAccount": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceModelPut": {"required": ["articleRows", "invoiceNumber"], "properties": {"productCode": {"type": "string", "description": "Product used for the invoice. Can be one of INVOICE_SERVICE, EMINDER_SERVICE, COLLECTION_SERVICE, INVOICE_FACTORING_LOAN or INVOICE_FACTORING_SELL."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when debtor pay for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. This should be provided if the invoice is a credit invoice."}, "dates": {"$ref": "#/definitions/invoiceCreateDates"}, "orderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/invoiceDebtor"}, "distributionCode": {"type": "string", "description": "Distribution method used for the invoice. Can be one of LETTER, EMAIL or NULL.", "enum": [null, "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "documentTemplateCode": {"type": "string", "description": "Template used on the invoice. Determines how the invoice PDF will appear."}, "domesticVAT": {"$ref": "#/definitions/domesticVat"}, "freeText": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "useRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedById": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "boolean", "example": false}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/InvoiceReasonCodeCreateUpdate"}}, "insuranceAgreement": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "default": false, "example": false}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closed": {"type": "string", "format": "date", "example": "2016-06-06"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "credit_decision_grouping_code": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "ourReference": {"type": "string", "description": "Your reference of the invoice."}, "yourReference": {"type": "string", "description": "Debtor reference of the invoice."}, "yourContactPerson": {"type": "string", "description": "Debtor contact person of the invoice."}, "ourOrderNumber": {"type": "string", "description": "Your order number of the invoice."}, "yourOrderNumber": {"type": "string", "description": "Debtor order number of the invoice."}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticle"}}, "vats": {"type": "array", "items": {"$ref": "#/definitions/invoiceVat"}}, "remark": {"type": "string", "description": "Invoice text that will be visible on the invoice PDF. Useful if you want to send a message to your debtor."}, "terms": {"$ref": "#/definitions/invoiceTerms"}, "fees": {"$ref": "#/definitions/invoiceFees"}, "reverseCharge": {"type": "boolean", "example": false}, "refund": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "default": false, "example": false}, "totals": {"$ref": "#/definitions/invoiceTotals"}, "currency": {"$ref": "#/definitions/invoiceCurrency"}, "externalServiceProvider": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "claimedFees": {"$ref": "#/definitions/claimedInvoiceFees"}}, "type": "object"}, "invoiceCreateDates": {"required": ["expireDate", "invoiceDate"], "properties": {"invoiceDate": {"type": "string", "format": "date", "description": "Invoice date of the invoice.", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "description": "Expire date of the invoice.", "example": "2016-06-06"}, "deliveryDate": {"type": "string", "format": "date", "description": "Delivery date of the invoice.", "example": "2016-06-06"}}, "type": "object"}, "InvoiceReasonCodeCreateUpdate": {"properties": {"reasonCode": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "invoiceList": {"required": ["invoiceNumber"], "properties": {"id": {"type": "string", "description": "Internal id of the entity."}, "clientId": {"type": "string", "description": "Internal client id for the client connected to the invoice."}, "clientName": {"type": "string", "description": "Your company name."}, "instanceProviderId": {"type": "string"}, "refinancingStatus": {"type": "string"}, "productCode": {"type": "string", "description": "Product used for the invoice. Can be one of INVOICE_SERVICE, REMINDER_SERVICE, COLLECTION_SERVICE, INVOICE_FACTORING_LOAN or INVOICE_FACTORING_SELL."}, "serviceProviderCode": {"type": "string", "description": "Which installed service provider will be used to administrate the invoice."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when debtor pay for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. This should be provided if the invoice is a credit invoice."}, "statuses": {"$ref": "#/definitions/invoiceStatus"}, "partPayment": {"$ref": "#/definitions/invoicePartPayment"}, "dates": {"$ref": "#/definitions/invoiceDates"}, "orderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/invoiceDebtorList"}, "document": {"$ref": "#/definitions/invoiceDocumentsList"}, "distributionCode": {"type": "string", "description": "Distribution method used for the invoice. Can be one of LETTER, EMAIL or NULL.", "enum": [null, "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "documentTemplateCode": {"type": "string", "description": "Template used on the invoice. Determines how the invoice PDF will appear."}, "domesticVAT": {"$ref": "#/definitions/domesticVat"}, "freeText": {"type": "string"}, "currency": {"$ref": "#/definitions/invoiceCurrencyList"}, "totals": {"$ref": "#/definitions/invoiceTotalsList"}, "balances": {"$ref": "#/definitions/invoiceBalancesList"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedById": {"type": "string"}, "collectionBatchId": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "boolean", "example": false}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "reasonCodes": {"type": "string"}, "insuranceAgreement": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "example": false}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closed": {"type": "string", "format": "date", "example": "2016-06-06"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "credit_decision_grouping_code": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "payout": {"$ref": "#/definitions/invoiceListPayout"}, "clientReportDocuments": {"type": "array", "items": {"$ref": "#/definitions/invoiceListClientReportDocument"}}}, "type": "object"}, "invoiceStatus": {"properties": {"main": {"type": "string", "description": "Main status of the invoice. Can be one of CREATED, ARCHIVED, PENDING, PENDING_AUTHORIZATION, ACTIVATED, PAUSED, DISPUTED, STOPPED or CLOSED. "}, "ledger": {"type": "string", "description": "Ledger status of the invoice. This is how far the invoice is in the reminder process. Can be one of NULL, INVOICE, EXPIRED, EXPIRED_NOTIFICATION, REMINDER, COLLECTION, DELAYED_PENALTY_FEE, MONITORING_DECISION or MONITORING."}, "ledgerSubType": {"type": "string"}}, "type": "object"}, "invoiceDebtorList": {"required": ["customerNumber", "name", "type"], "properties": {"id": {"type": "string", "description": "Internal id of the debtor connected to the invoice."}, "customerNumber": {"type": "string", "description": "Your customer number of the debtor connected to the invoice."}, "name": {"type": "string", "description": "Debtor name. Either a person- or a company name depending on the debtor type."}, "identificationNumber": {"type": "string", "description": "Debtor identification number. Should be a valid organization number or social security number depending on the debtor type."}, "identificationNumberInternal": {"type": "string", "description": "Internal debtor identification number."}, "locale": {"type": "string", "example": "AD", "enum": ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW", "EU", "OTHER"]}, "type": {"type": "string", "description": "Debtor type. Can be one of COMPANY or PERSON.", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "subtypeId": {"type": "string", "description": "ID of the debtor type."}, "subtypeName": {"type": "string", "description": "Name of the debtor type."}, "GLN": {"type": "string"}, "email": {"type": "string", "description": "Debtor email."}, "emailExpiredDocuments": {"type": "string", "description": "Debtor email on expired invoices."}, "emailInterestInvoice": {"type": "string", "description": "Debtor email for interest invoices."}, "FMI": {"type": "string", "description": "Receiver id for internet bank electronic invoice."}, "peppolId": {"type": "string", "description": "PEPPOL ID for e-invoice identification.", "example": "0007:5567321707"}, "einvoicePartyId": {"type": "string", "description": "E-invoice party ID."}, "phone": {"type": "string", "description": "Debtor phone number."}, "cellPhone": {"type": "string", "description": "Debtor cell phone number."}, "preferredLanguage": {"type": "string", "description": "Preferred language of the debtor.", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "invoiceDocumentsList": {"properties": {"attachment": {"type": "string", "description": "File name of the attachment PDF added to the invoice. Download it with {{API}}/storage/{{fileName}}."}, "invoicePreview": {"type": "string", "description": "File name of the invoice preview PDF. Download it with {{API}}/storage/{{fileName}}."}, "invoice": {"type": "string", "description": "File name of the invoice PDF. Download it with {{API}}/storage/{{fileName}}."}, "invoiceWithAttachments": {"type": "string", "description": "File name of the invoice PDF with attachments. Download it with {{API}}/storage/{{fileName}}."}, "connectedFileCount": {"type": "integer", "format": "int", "description": "Count of connected files to the invoice.", "example": 0}}, "type": "object"}, "invoiceCurrencyList": {"properties": {"invoiceCurrency": {"type": "string", "description": "Invoice currency. This is what currency we should use in the invoice PDF. Can be one of supported currencies.", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "invoiceTotalsList": {"required": ["total"], "properties": {"totalToPay": {"type": "number", "format": "decimal", "description": "Total amount for debtor to pay to close the invoice."}, "total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the invoice."}}, "type": "object"}, "invoiceBalancesList": {"properties": {"total": {"type": "number", "format": "decimal", "description": "Total balance of the invoice. This is what's left for your debtor to pay in total to close the invoice."}, "totalLocale": {"type": "number", "format": "decimal", "description": "Total balance of the invoice in locale currency. This is what's left for your debtor to pay in total to close the invoice."}, "capital": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice. This is what's left for your debtor to pay from the original amount."}, "capitalLocale": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice in locale currency. This is what's left for your debtor to pay from the original amount."}, "reminder": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice. This is what's left for your debtor to pay from the reminder fees."}, "reminderLocale": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice in locale. This is what's left for your debtor to pay from the reminder fees. "}, "interest": {"type": "number", "format": "decimal", "description": "Interest balance of the invoice. This is what's left for your debtor to pay from the interest."}, "interestLocale": {"type": "number", "format": "decimal", "description": "Interest balance of the invoice in locale currency. This is what's left for your debtor to pay from the interest."}, "capitalService": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice."}, "capitalServiceLocale": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice in locale currency."}, "capitalFinanced": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice."}, "capitalFinancedLocale": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice in locale currency."}}, "type": "object"}, "invoiceListPayout": {"properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "invoiceListClientReportDocument": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "invoice": {"required": ["articleRows", "invoiceNumber"], "properties": {"id": {"type": "string", "description": "Internal id of the entity."}, "clientId": {"type": "string", "description": "Internal client id for the client connected to the invoice."}, "clientName": {"type": "string", "description": "Your company name."}, "instanceProviderId": {"type": "string"}, "refinancingStatus": {"type": "string"}, "productCode": {"type": "string", "description": "Product used for the invoice. Can be one of INVOICE_SERVICE, EMINDER_SERVICE, COLLECTION_SERVICE, INVOICE_FACTORING_LOAN or INVOICE_FACTORING_SELL."}, "serviceProviderCode": {"type": "string", "description": "Which installed service provider will be used to administrate the invoice."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when debtor pay for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. This should be provided if the invoice is a credit invoice."}, "statuses": {"$ref": "#/definitions/invoiceStatusDetail"}, "partPayment": {"$ref": "#/definitions/invoicePartPayment"}, "dates": {"$ref": "#/definitions/invoiceDates"}, "orderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/invoiceDebtor"}, "document": {"$ref": "#/definitions/invoiceDocuments"}, "distributionCode": {"type": "string", "description": "Distribution method used for the invoice. Can be one of LETTER, EMAIL or NULL.", "enum": [null, "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "documentTemplateCode": {"type": "string", "description": "Template used on the invoice. Determines how the invoice PDF will appear."}, "domesticVAT": {"$ref": "#/definitions/domesticVat"}, "freeText": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedById": {"type": "string"}, "collectionBatchId": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "boolean", "example": false}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/InvoiceReasonCode"}}, "insuranceAgreement": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "default": false, "example": false}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closed": {"type": "string", "format": "date", "example": "2016-06-06"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "credit_decision_grouping_code": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "reminderProfileCode": {"type": "string", "description": "Reminder profile used on the invoice. Determines the reminder process of the invoice. Standard profile will be used if no value is provided. "}, "ourReference": {"type": "string", "description": "Your reference of the invoice."}, "yourReference": {"type": "string", "description": "Debtor reference of the invoice."}, "yourContactPerson": {"type": "string", "description": "Debtor contact person of the invoice."}, "ourOrderNumber": {"type": "string", "description": "Your order number of the invoice."}, "yourOrderNumber": {"type": "string", "description": "Debtor order number of the invoice."}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticle"}}, "vats": {"type": "array", "items": {"$ref": "#/definitions/invoiceVat"}}, "remark": {"type": "string", "description": "Invoice text that will be visible on the invoice PDF. Useful if you want to send a message to your debtor."}, "terms": {"$ref": "#/definitions/invoiceTerms"}, "fees": {"$ref": "#/definitions/invoiceFees"}, "reverseCharge": {"type": "boolean", "example": false}, "refund": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "default": false, "example": false}, "totals": {"$ref": "#/definitions/invoiceTotals"}, "currency": {"$ref": "#/definitions/invoiceCurrency"}, "balances": {"$ref": "#/definitions/invoiceBalances"}}, "type": "object"}, "createInvoice": {"required": ["articleRows", "invoiceNumber"], "properties": {"clientId": {"type": "string", "description": "Internal client id for the client connected to the invoice."}, "productCode": {"type": "string", "description": "Product used for the invoice. Can be one of INVOICE_SERVICE, EMINDER_SERVICE, COLLECTION_SERVICE, INVOICE_FACTORING_LOAN or INVOICE_FACTORING_SELL."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when debtor pay for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. This should be provided if the invoice is a credit invoice."}, "dates": {"$ref": "#/definitions/invoiceCreateDates"}, "orderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/invoiceDebtor"}, "distributionCode": {"type": "string", "description": "Distribution method used for the invoice. Can be one of LETTER, EMAIL or NULL.", "enum": [null, "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "documentTemplateCode": {"type": "string", "description": "Template used on the invoice. Determines how the invoice PDF will appear."}, "domesticVAT": {"$ref": "#/definitions/domesticVat"}, "freeText": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "useRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedById": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "boolean", "example": false}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "isTaggedForManualControl": {"type": "boolean", "example": false}, "reasonCodes": {"type": "array", "items": {"$ref": "#/definitions/InvoiceReasonCodeCreateUpdate"}}, "insuranceAgreement": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "default": false, "example": false}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closed": {"type": "string", "format": "date", "example": "2016-06-06"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "credit_decision_grouping_code": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "ourReference": {"type": "string", "description": "Your reference of the invoice."}, "yourReference": {"type": "string", "description": "Debtor reference of the invoice."}, "yourContactPerson": {"type": "string", "description": "Debtor contact person of the invoice."}, "ourOrderNumber": {"type": "string", "description": "Your order number of the invoice."}, "yourOrderNumber": {"type": "string", "description": "Debtor order number of the invoice."}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticle"}}, "vats": {"type": "array", "items": {"$ref": "#/definitions/invoiceVat"}}, "remark": {"type": "string", "description": "Invoice text that will be visible on the invoice PDF. Useful if you want to send a message to your debtor."}, "terms": {"$ref": "#/definitions/invoiceTerms"}, "fees": {"$ref": "#/definitions/invoiceFees"}, "reverseCharge": {"type": "boolean", "example": false}, "refund": {"type": "boolean", "example": false}, "isDistributed": {"type": "boolean", "default": false, "example": false}, "totals": {"$ref": "#/definitions/invoiceTotals"}, "currency": {"$ref": "#/definitions/invoiceCurrency"}, "externalServiceProvider": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "articleRowsGenerate": {"type": "boolean", "description": "True if article row should automatically be generated based on invoice information", "example": false}, "claimedFees": {"$ref": "#/definitions/claimedInvoiceFees"}}, "type": "object"}, "InvoiceIntegrationCreateResponse": {"properties": {"id": {"type": "string"}}, "type": "object"}, "InvoiceCreationRequestResponse": {"properties": {"id": {"type": "string"}, "sourceId": {"type": "string"}, "status": {"type": "string"}, "invoiceId": {"type": "string"}, "error": {"type": "string"}}, "type": "object"}, "InvoiceIntegrationAsyncCreateResponse": {"properties": {"id": {"type": "string"}, "status": {"type": "string"}}, "type": "object"}, "invoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "refinancingExternalId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "instanceProviderId": {"type": "string"}, "refinancingStatus": {"type": "string"}, "debitInvoiceNumber": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "reminderProfileCode": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "documentTemplateCode": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "orderDate": {"type": "string"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "statuses.main": {"type": "string"}, "statuses.ledger": {"type": "string"}, "statuses.ledgerSubType": {"type": "string"}, "partPayment.isPartPayment": {"type": "boolean", "example": false}, "partPayment.partPaymentPlanId": {"type": "string"}, "partPayment.partPaymentAccountId": {"type": "string"}, "dates.invoiceDate": {"type": "string"}, "dates.expireDate": {"type": "string"}, "dates.originalExpireDate": {"type": "string"}, "dates.pausedUntilDate": {"type": "string"}, "dates.latestFinancialDate": {"type": "string"}, "debtor.id": {"type": "string"}, "debtor.customerNumber": {"type": "string"}, "debtor.type": {"type": "string"}, "debtor.subtypeId": {"type": "string"}, "debtor.subtypeName": {"type": "string"}, "debtor.identificationNumber": {"type": "string"}, "debtor.identificationNumberInternal": {"type": "string"}, "debtor.GLN": {"type": "string"}, "debtor.FMI": {"type": "string"}, "debtor.peppolId": {"type": "string"}, "debtor.einvoicePartyId": {"type": "string"}, "debtor.name": {"type": "string"}, "debtor.email": {"type": "string"}, "debtor.emailExpiredDocuments": {"type": "string"}, "debtor.emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "debtor.phone": {"type": "string"}, "debtor.cellPhone": {"type": "string"}, "debtor.invoiceAddress.name": {"type": "string"}, "debtor.invoiceAddress.name2": {"type": "string"}, "debtor.invoiceAddress.address": {"type": "string"}, "debtor.invoiceAddress.address2": {"type": "string"}, "debtor.invoiceAddress.address3": {"type": "string"}, "debtor.invoiceAddress.zip": {"type": "string"}, "debtor.invoiceAddress.city": {"type": "string"}, "debtor.invoiceAddress.countryCode": {"type": "string"}, "debtor.deliveryAddress.name": {"type": "string"}, "debtor.deliveryAddress.name2": {"type": "string"}, "debtor.deliveryAddress.address": {"type": "string"}, "debtor.deliveryAddress.address2": {"type": "string"}, "debtor.deliveryAddress.address3": {"type": "string"}, "debtor.deliveryAddress.zip": {"type": "string"}, "debtor.deliveryAddress.city": {"type": "string"}, "debtor.deliveryAddress.countryCode": {"type": "string"}, "debtor.preferredLanguage": {"type": "string"}, "currency.invoiceCurrency": {"type": "string"}, "currency.baseCurrency": {"type": "string"}, "totals.total": {"type": "string"}, "totals.totalToPay": {"type": "string"}, "balances.capital": {"type": "string"}, "balances.reminder": {"type": "string"}, "balances.interest": {"type": "string"}, "balances.total": {"type": "string"}, "type": {"type": "string"}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "closed": {"type": "string"}, "activatedDate": {"type": "string"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string"}, "bookedById": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "string"}, "insuranceAgreement": {"type": "string"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "reasonCodes": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "invoiceActivate": {"properties": {"productCode": {"type": "string"}, "distributionCode": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "reminderProfileCode": {"type": "string"}, "documentTemplateCode": {"type": "string"}, "paymentReference": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "useRecourse": {"type": "boolean", "example": false}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "disableFallbackDistribution": {"type": "boolean", "default": false, "example": false}, "distributeOnActivation": {"type": "boolean", "example": false}, "isValidated": {"type": "boolean", "example": false}}, "type": "object"}, "InvoiceRetryPostActivateResponse": {"properties": {"message": {"type": "string"}}, "type": "object"}, "invoiceInterestRate": {"required": ["manualInterestRate"], "properties": {"manualInterestRate": {"type": "number", "format": "decimal"}}, "type": "object"}, "changeExpireDate": {"required": ["expireDate"], "properties": {"invoices": {"type": "array", "items": {"$ref": "#/definitions/invoiceExpireDate"}}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "invoiceExpireDate": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "bulkUpdateInvoices": {"properties": {"invoices": {"type": "array", "items": {"$ref": "#/definitions/invoiceIdBulk"}}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "shouldUpdateRecourseDate": {"type": "boolean", "example": false}, "shouldUpdateInterestFee": {"type": "boolean", "example": false}, "shouldUpdateFinancingFee": {"type": "boolean", "example": false}, "shouldRestoreLedgerTimeline": {"type": "boolean", "example": false}, "actionType": {"type": "string", "example": "PAUSE", "enum": ["PAUSE", "DISPUTE", "ADD_NOTE", "WRITE_OFF", "WRITE_OFF_REMINDER", "WRITE_OFF_CAPITAL", "WRITE_OFF_INTEREST", "CHANGE_EXPIRE_DATE", "CHANGE_EXPIRE_DATE_AS_CLIENT", "DIRECT_PAYMENT", "FINANCE_INVOICES", "RESUME"]}, "pausedUntilDate": {"type": "string"}, "comment": {"type": "string"}, "description": {"type": "string"}, "sendDisputeNotice": {"type": "boolean", "example": false}, "reason": {"type": "string"}, "reminderAmount": {"type": "number", "format": "decimal"}, "interestAmount": {"type": "number", "format": "decimal"}, "chargeReminder": {"type": "boolean", "example": false}, "chargeInterest": {"type": "boolean", "example": false}, "capitalAmount": {"type": "number", "format": "decimal"}, "kickback": {"type": "boolean", "example": false}, "bookkeep": {"type": "boolean", "example": false}, "reasonCode": {"type": "string"}, "reasonCodeDescription": {"type": "string"}, "paymentAmount": {"type": "number", "format": "decimal"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "writeoffReminder": {"type": "boolean", "example": false}, "writeoffInterest": {"type": "boolean", "example": false}, "writeoffCapitalPercentage": {"type": "number", "format": "float", "example": 0.0}, "chargeDirectPayment": {"type": "boolean", "example": false}, "chargeCollectionFee": {"type": "boolean", "example": false}, "writeoffReasonCodes": {"type": "array", "items": {"$ref": "#/definitions/invoiceBulkUpdateReasonCodes"}}}, "type": "object"}, "invoiceIdBulk": {"required": ["id"], "properties": {"id": {"type": "string"}, "clientInvoiceRequestId": {"type": "string"}, "clientInvoiceRequestComment": {"type": "string"}, "clientInvoiceRequestInternalNote": {"type": "string"}}, "type": "object"}, "invoiceBulkUpdateReasonCodes": {"properties": {"reasonCode": {"type": "string"}, "reasonCodeDescription": {"type": "string"}, "actionType": {"type": "string"}}, "type": "object"}, "InvoiceBulkUpdateGetBalanceResponse": {"properties": {"balance": {"type": "number", "format": "float", "example": 0.0}, "invoiceIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "dailySummary": {"properties": {"financedAmount": {"type": "number", "format": "decimal"}, "financedCount": {"type": "integer", "format": "int", "example": 0}, "createdAmount": {"type": "number", "format": "decimal"}, "createdCount": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "financeDate": {"type": "string"}}, "type": "object"}, "bulkActivateInvoices": {"required": ["invoiceIds"], "properties": {"invoiceIds": {"type": "array", "items": {"type": "string"}}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "example": false}}, "type": "object"}, "bulkActivateResult": {"properties": {"succeeded": {"type": "array", "items": {"type": "string"}}, "failed": {"type": "object", "description": "Mapping of invoice id to error message."}}, "type": "object"}, "downloadInvoiceCopies": {"required": ["invoiceIds"], "properties": {"invoiceIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "invoicePause": {"required": ["pausedUntilDate"], "properties": {"pausedUntilDate": {"type": "string"}, "comment": {"type": "string"}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}, "chargeCollectionFee": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceDirectPayment": {"required": ["bookkeep", "chargeInterest", "chargeReminder", "paymentAmount"], "properties": {"paymentAmount": {"type": "number", "format": "decimal"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "writeoffReminder": {"type": "boolean", "example": false}, "writeoffInterest": {"type": "boolean", "example": false}, "chargeReminder": {"type": "boolean", "example": false}, "chargeInterest": {"type": "boolean", "example": false}, "chargeDirectPayment": {"type": "boolean", "example": false}, "bookkeep": {"type": "boolean", "example": false}}, "type": "object"}, "invoicePayment": {"required": ["amount", "amountLocale", "paymentAccountNumber", "paymentDate"], "properties": {"paymentAccountNumber": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "dcaPayment": {"type": "boolean", "example": false}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "invoiceCreditInvoice": {"properties": {"amount": {"type": "number", "format": "decimal"}, "distributionCode": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}}, "type": "object"}, "invoiceStop": {"required": ["chargeInterest", "chargeReminder"], "properties": {"chargeReminder": {"type": "boolean", "example": false}, "chargeInterest": {"type": "boolean", "example": false}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}}, "type": "object"}, "invoiceWriteOffReminder": {"required": ["chargeInterest", "chargeReminder", "interestAmount", "reminderAmount"], "properties": {"reminderAmount": {"type": "number", "format": "decimal"}, "interestAmount": {"type": "number", "format": "decimal"}, "chargeReminder": {"type": "boolean", "example": false}, "chargeInterest": {"type": "boolean", "example": false}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}}, "type": "object"}, "invoiceWriteOffCapital": {"required": ["bookkeep", "capitalAmount", "kickback"], "properties": {"capitalAmount": {"type": "number", "format": "decimal"}, "kickback": {"type": "boolean", "example": false}, "bookkeep": {"type": "boolean", "example": false}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}}, "type": "object"}, "invoiceCreateInterestInvoice": {"properties": {"reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}, "comment": {"type": "string"}}, "type": "object"}, "invoiceDispute": {"required": ["debtorEmail", "reason"], "properties": {"debtorEmail": {"type": "string"}, "reason": {"type": "string"}, "comment": {"type": "string"}, "reasonCode": {"type": "string"}, "reasonDescription": {"type": "string"}}, "type": "object"}, "invoiceSend": {"properties": {"distributionCode": {"type": "string", "example": "SMS", "enum": ["SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "chargeDistribution": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceDenyTaxReduction": {"required": ["amount"], "properties": {"amount": {"type": "number", "format": "decimal"}}, "type": "object"}, "creditCheckModel": {"properties": {"identificationNumber": {"type": "string"}, "vatNumber": {"type": "string"}, "countryCode": {"type": "string"}, "amountLocale": {"type": "number", "format": "decimal"}, "createdDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "canFinance": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceFastForward": {"properties": {"invoiceLedgerEventCode": {"type": "string"}}, "type": "object"}, "invoicePartPaymentStart": {"required": ["addToExisting", "debtorLevel", "type"], "properties": {"type": {"type": "string", "example": "PART_PAYMENT_PLAN", "enum": ["PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT"]}, "debtorLevel": {"type": "string", "example": "DEBTOR", "enum": ["DEBTOR", "SYSTEM_DEBTOR"]}, "annuity": {"type": "integer", "format": "int", "example": 0}, "addToExisting": {"type": "boolean", "example": false}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "invoiceRefund": {"properties": {"amount": {"type": "number", "format": "decimal"}, "chargeClient": {"type": "boolean", "default": false, "example": false}, "chargeClientDescription": {"type": "string"}}, "type": "object"}, "invoiceRefundCredit": {"properties": {"amount": {"type": "number", "format": "decimal"}, "reference": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "debtorPayoutAccountId": {"type": "string"}, "payoutAccount": {"$ref": "#/definitions/clientDebtorPayoutAccount"}, "createPermanentAccount": {"type": "boolean", "example": false}, "comment": {"type": "string"}}, "type": "object"}, "clientDebtorPayoutAccount": {"properties": {"id": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "bankName": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "useChannel": {"type": "string", "example": "BANKGIRO", "enum": ["BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "bulkRefundCreditInvoice": {"properties": {"internalRequest": {"$ref": "#/definitions/InternalRequestInvoice"}, "invoiceId": {"type": "string"}}, "type": "object"}, "InternalRequestInvoice": {"properties": {"id": {"type": "string"}, "createdById": {"type": "string"}, "status": {"type": "string"}, "topic": {"type": "string"}, "source": {"type": "string"}, "instanceId": {"type": "string"}, "targetLinkId": {"type": "string"}, "currentValues": {"type": "string", "format": "dict"}, "requestValues": {"type": "string", "format": "dict"}}, "type": "object"}, "bulkInvoiceRefund": {"properties": {"reference": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoices": {"type": "array", "items": {"$ref": "#/definitions/invoiceId"}}, "debtorPayoutAccountId": {"type": "string"}, "payoutAccount": {"$ref": "#/definitions/clientDebtorPayoutAccount"}, "createPermanentAccount": {"type": "boolean", "example": false}, "comment": {"type": "string"}}, "type": "object"}, "invoiceId": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "linkMultipleCreditDebitInvoices": {"required": ["invoiceId", "linkedInvoices"], "properties": {"invoiceId": {"type": "string"}, "linkedInvoices": {"type": "array", "items": {"$ref": "#/definitions/invoicesToLink"}}}, "type": "object"}, "invoicesToLink": {"required": ["amount", "invoiceIdentificationNumber"], "properties": {"amount": {"type": "number", "format": "decimal"}, "invoiceIdentificationNumber": {"type": "string"}}, "type": "object"}, "bulkLinkMultipleCreditDebitInvoices": {"required": ["linkedInvoices"], "properties": {"invoices": {"type": "array", "items": {"type": "string"}}, "linkedInvoices": {"type": "array", "items": {"$ref": "#/definitions/invoicesToLink"}}, "comment": {"type": "string"}}, "type": "object"}, "signatureRequest": {"required": ["expireDate", "type", "variant"], "properties": {"type": {"type": "string", "example": "DELIVERY_VERIFICATION", "enum": ["DELIVERY_VERIFICATION"]}, "variant": {"type": "string", "example": "SOFT", "enum": ["SOFT", "HARD"]}, "expireDate": {"type": "string"}, "invoiceIds": {"type": "array", "items": {"$ref": "#/definitions/invoiceIds"}}, "reciever": {"type": "array", "items": {"$ref": "#/definitions/reciever"}}, "notifyClient": {"type": "boolean", "default": false, "example": false}, "deliveryMethod": {"type": "string", "example": "EMAIL", "enum": ["EMAIL", "SMS"]}, "clientEmail": {"type": "string"}, "clientPhoneNumber": {"type": "string"}, "clientMessage": {"type": "string"}, "confirmClientContact": {"type": "boolean", "description": "Send although the receiver's e-mail or phone number is the client's own. Refused with 409 otherwise.", "default": false, "example": false}}, "type": "object"}, "invoiceIds": {"properties": {"id": {"type": "string"}}, "type": "object"}, "reciever": {"required": ["email", "name"], "properties": {"name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "cellPhone": {"type": "string"}, "personalNumber": {"type": "string", "description": "Only for a BankID request to a debtor in Sweden: only this person can sign. YYYYMMDD-NNNN."}}, "type": "object"}, "getSignatureRequest": {"properties": {"id": {"type": "string"}, "externalId": {"type": "string"}, "externalLink": {"type": "string"}, "externalStatus": {"type": "string"}, "fileName": {"type": "string"}, "invoiceId": {"type": "string"}, "metaData": {"type": "string", "format": "dict", "default": {}}, "expireDate": {"type": "string"}, "email": {"type": "string"}, "previewLink": {"type": "string"}, "status": {"type": "string"}, "description": {"type": "string"}, "clientPhone": {"type": "string"}, "clientEmail": {"type": "string"}, "provider": {"type": "string", "description": "GETACCEPT or QUIDDLY"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "signingMethod": {"type": "string", "description": "OTP_EMAIL, OTP_SMS or BANKID_SE"}, "viewedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "signedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "signerName": {"type": "string"}, "rejectReason": {"type": "string"}, "requestedSignerName": {"type": "string", "description": "Who the request was sent to, recorded when it is signed with BankID"}, "personalNumberRequired": {"type": "boolean", "description": "Only the person with the given personal number can sign", "example": false}}, "type": "object"}, "signatureRequestOptions": {"properties": {"inHouse": {"type": "boolean", "description": "The delivery confirmation is signed in the debtor portal, not through GetAccept.", "example": false}, "bankId": {"type": "boolean", "description": "An in-house BankID request is signed with Swedish BankID; otherwise it falls back to a one-time code.", "example": false}}, "type": "object"}, "PaymentAccountInvoice": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isFinanced": {"type": "boolean", "example": false}}, "type": "object"}, "TransferTextInvoice": {"properties": {"transferText": {"type": "string"}}, "type": "object"}, "invoiceRewind": {"required": ["invoiceLedgerEventType", "writeoffReminder"], "properties": {"invoiceLedgerEventType": {"type": "string"}, "writeoffReminder": {"type": "boolean", "example": false}, "chargeClient": {"type": "boolean", "example": false}}, "type": "object"}, "collectionExternalStatus": {"properties": {"id": {"type": "string", "description": "Collection external ID"}, "status": {"type": "string", "description": "Status of the external collection (PENDING, EXPORTED, COMPLETED, etc.)"}, "externalExportId": {"type": "string", "description": "External export ID"}, "externalCompleteId": {"type": "string", "description": "External complete ID"}, "serviceProviderCode": {"type": "string", "description": "Service provider code"}, "serviceProviderId": {"type": "string", "description": "Service provider ID"}, "serviceProviderName": {"type": "string", "description": "Service provider name"}}, "type": "object"}, "ArticlesInvoice": {"properties": {"articles": {"type": "array", "items": {"$ref": "#/definitions/Article"}}}, "type": "object"}, "Article": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "articleNumber": {"type": "string"}, "description": {"type": "string"}, "quantity": {"type": "string"}, "unit": {"type": "string"}, "price": {"type": "string"}, "totalDiscount": {"type": "string"}, "vatPercentage": {"type": "string"}, "totalExclVat": {"type": "string"}, "totalVat": {"type": "string"}, "total": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "CreateArticleLabel": {"required": ["articleId", "label", "value"], "properties": {"articleId": {"type": "string"}, "label": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ArticleLabel": {"properties": {"articleId": {"type": "string"}, "label": {"type": "string"}, "value": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "externalInvoiceIdOnly": {"properties": {"id": {"type": "string", "description": "Internal id of the created invoice."}}, "type": "object"}, "externalInvoice": {"properties": {"id": {"type": "string", "description": "Internal id of the invoice."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when the debtor pays for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. Provided if the invoice is a credit invoice."}, "productCode": {"type": "string", "description": "Product used for the invoice."}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "yourReference": {"type": "string", "description": "Debtor reference of the invoice."}, "dates": {"$ref": "#/definitions/externalInvoiceDates"}, "currency": {"$ref": "#/definitions/externalInvoiceCurrency"}, "totals": {"$ref": "#/definitions/externalInvoiceTotals"}, "balances": {"$ref": "#/definitions/externalInvoiceBalances"}, "debtor": {"$ref": "#/definitions/externalInvoiceDebtor"}, "articleRows": {"type": "array", "items": {"$ref": "#/definitions/externalInvoiceArticle"}}, "vats": {"type": "array", "items": {"$ref": "#/definitions/externalInvoiceVat"}}}, "type": "object"}, "externalInvoiceDates": {"properties": {"invoiceDate": {"type": "string", "format": "date", "description": "Invoice date of the invoice.", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "description": "Expire date of the invoice.", "example": "2016-06-06"}}, "type": "object"}, "externalInvoiceCurrency": {"properties": {"invoiceCurrency": {"type": "string", "description": "Invoice currency. This is what currency we should use in the invoice PDF.", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "baseCurrency": {"type": "string", "description": "Invoice base currency. This tells in what currency we should handle the invoice and all transactions connected with it.", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "exchangeRate": {"type": "number", "format": "float", "description": "Exchange rate used to convert transactions connected with the invoice to base currency.", "example": 0.0}}, "type": "object"}, "externalInvoiceTotals": {"properties": {"total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the invoice."}, "totalToPay": {"type": "number", "format": "decimal", "description": "Total amount for debtor to pay to close the invoice."}, "totalExclVat": {"type": "number", "format": "decimal", "description": "Total amount without VAT of the invoice."}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT of the invoice."}, "totalRoundOff": {"type": "number", "format": "decimal", "description": "Total roundoff amount of the invoice."}, "taxReduction": {"type": "number", "format": "decimal", "description": "Total tax reduction of the invoice."}}, "type": "object"}, "externalInvoiceBalances": {"properties": {"total": {"type": "number", "format": "decimal", "description": "Total balance of the invoice."}, "totalLocale": {"type": "number", "format": "decimal", "description": "Total balance of the invoice in locale currency."}, "capital": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice."}, "capitalLocale": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice in locale currency."}, "reminder": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice."}, "reminderLocale": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice in locale currency."}, "capitalService": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice."}, "capitalServiceLocale": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice in locale currency."}, "capitalFinanced": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice."}, "capitalFinancedLocale": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice in locale currency."}}, "type": "object"}, "externalInvoiceDebtor": {"properties": {"customerNumber": {"type": "string", "description": "Your customer number of the debtor."}, "name": {"type": "string", "description": "Debtor name. Either a person- or a company name depending on the debtor type."}, "type": {"type": "string", "description": "Debtor type. Can be one of COMPANY or PERSON.", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "locale": {"type": "string"}, "email": {"type": "string", "description": "Debtor email."}, "phone": {"type": "string", "description": "Debtor phone number."}, "cellPhone": {"type": "string", "description": "Debtor cell phone number."}, "invoiceAddress": {"$ref": "#/definitions/externalInvoiceAddress"}}, "type": "object"}, "externalInvoiceAddress": {"properties": {"name": {"type": "string", "description": "Debtor invoice address name. Either a person- or a company name depending on the debtor type."}, "address": {"type": "string", "description": "Debtor invoice address."}, "zip": {"type": "string", "description": "Debtor invoice address zip code."}, "city": {"type": "string", "description": "Debtor invoice address city."}, "countryCode": {"type": "string", "description": "Debtor invoice address country code. Should be in ISO 3166-1 alpha-2 format."}}, "type": "object"}, "externalInvoiceArticle": {"properties": {"description": {"type": "string", "description": "Description for the article row."}, "quantity": {"type": "string", "description": "Quantity of article invoiced in the article row."}, "unit": {"type": "string", "description": "Unit of the article used in the article row."}, "price": {"type": "number", "format": "decimal", "description": "Price of the article used in the article row."}, "totalDiscount": {"type": "number", "format": "decimal", "description": "Total discount of the article row."}, "discountType": {"type": "string", "description": "Type of discount of the article row. Can be one of NULL, PERCENTAGE or CURRENCY.", "enum": [null, "PERCENTAGE", "CURRENCY"]}, "vatPercentage": {"type": "number", "format": "float", "description": "VAT percentage used for the article row.", "example": 0.0}, "totalExclVat": {"type": "number", "format": "decimal", "description": "Total amount without VAT of the article row."}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT of the article row."}, "total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the article row."}}, "type": "object"}, "externalInvoiceVat": {"properties": {"percentage": {"type": "number", "format": "float", "description": "VAT percentage that is declared.", "example": 0.0}, "totalVat": {"type": "number", "format": "decimal", "description": "Total VAT amount declared for the percentage."}, "totalTaxable": {"type": "number", "format": "decimal", "description": "Total taxable amount declared for the percentage."}}, "type": "object"}, "externalInvoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "debitInvoiceNumber": {"type": "string"}, "productCode": {"type": "string"}, "dates.invoiceDate": {"type": "string"}, "dates.expireDate": {"type": "string"}, "debtor.customerNumber": {"type": "string"}, "debtor.name": {"type": "string"}, "debtor.type": {"type": "string"}}, "type": "object"}, "externalInvoiceActivateResponse": {"properties": {"activatedById": {"type": "string"}, "paymentReference": {"type": "string"}}, "type": "object"}, "externalInvoiceFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "creditInvoiceId": {"type": "string"}, "paymentId": {"type": "string"}, "unplacedPaymentId": {"type": "string"}, "type": {"type": "string"}, "date": {"type": "string"}, "target": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "externalInvoiceFinancialEvent": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "creditInvoiceId": {"type": "string"}, "paymentId": {"type": "string"}, "unplacedPaymentId": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "REMINDER", "REMINDER_WRITEOFF", "COLLECTION", "INTEREST", "INTEREST_WRITEOFF", "PAYMENT", "DIRECT_PAYMENT", "UNPLACED_PAYMENT", "STOPPED"]}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "target": {"type": "string"}, "quantity": {"type": "integer", "format": "int", "example": 0}, "amounts": {"$ref": "#/definitions/externalInvoiceFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/externalInvoiceFinancialEventBalances"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "externalInvoiceFinancialEventAmounts": {"properties": {"capital": {"type": "number", "format": "float", "example": 0.0}, "capitalLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalService": {"type": "number", "format": "float", "example": 0.0}, "capitalServiceLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalFinanced": {"type": "number", "format": "float", "example": 0.0}, "capitalFinancedLocale": {"type": "number", "format": "float", "example": 0.0}, "reminder": {"type": "number", "format": "float", "example": 0.0}, "reminderLocale": {"type": "number", "format": "float", "example": 0.0}, "tolerance": {"type": "number", "format": "float", "example": 0.0}, "toleranceLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceInternalLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceClientLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "externalInvoiceFinancialEventBalances": {"properties": {"capital": {"type": "number", "format": "float", "example": 0.0}, "capitalLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalService": {"type": "number", "format": "float", "example": 0.0}, "capitalServiceLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalFinanced": {"type": "number", "format": "float", "example": 0.0}, "capitalFinancedLocale": {"type": "number", "format": "float", "example": 0.0}, "reminder": {"type": "number", "format": "float", "example": 0.0}, "reminderLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "invoiceFinancialEvent": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "creditInvoiceId": {"type": "string"}, "creditInvoiceNumber": {"type": "string"}, "debitInvoiceId": {"type": "string"}, "debitInvoiceNumber": {"type": "string"}, "paymentId": {"type": "string"}, "unplacedPaymentId": {"type": "string"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "REMINDER", "REMINDER_WRITEOFF", "COLLECTION", "INTEREST", "INTEREST_WRITEOFF", "PAYMENT", "DIRECT_PAYMENT", "UNPLACED_PAYMENT", "STOPPED"]}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "transactionDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "amounts": {"$ref": "#/definitions/invoiceFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/invoiceFinancialEventBalances"}, "target": {"type": "string"}, "quantity": {"type": "integer", "format": "int", "example": 0}, "vouchers": {"type": "array", "items": {"$ref": "#/definitions/VoucherConnected"}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "isUnlinked": {"type": "boolean", "example": false}, "isReversed": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceFinancialEventAmounts": {"properties": {"capital": {"type": "number", "format": "float", "example": 0.0}, "capitalLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalService": {"type": "number", "format": "float", "example": 0.0}, "capitalServiceLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalFinanced": {"type": "number", "format": "float", "example": 0.0}, "capitalFinancedLocale": {"type": "number", "format": "float", "example": 0.0}, "reminder": {"type": "number", "format": "float", "example": 0.0}, "reminderLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "tolerance": {"type": "number", "format": "float", "example": 0.0}, "toleranceLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceInternalLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceClientLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "invoiceFinancialEventBalances": {"properties": {"capital": {"type": "number", "format": "float", "example": 0.0}, "capitalLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalService": {"type": "number", "format": "float", "example": 0.0}, "capitalServiceLocale": {"type": "number", "format": "float", "example": 0.0}, "capitalFinanced": {"type": "number", "format": "float", "example": 0.0}, "capitalFinancedLocale": {"type": "number", "format": "float", "example": 0.0}, "reminder": {"type": "number", "format": "float", "example": 0.0}, "reminderLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceClientLocale": {"type": "number", "format": "float", "example": 0.0}, "currencyDifferenceTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "VoucherConnected": {"properties": {"voucherPostingId": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "topic": {"type": "string"}, "description": {"type": "string"}, "externalInformationBookkeepingFileId": {"type": "string"}, "externalInformationMethod": {"type": "string"}, "externalInformationSeries": {"type": "string"}, "externalInformationId": {"type": "string"}, "externalInformationStatus": {"type": "string"}, "externalInformationAttempts": {"type": "integer", "format": "int", "example": 0}, "externalInformationErrorMessage": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/clientAccountTransactionDocument"}}}, "type": "object"}, "invoiceFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "creditInvoiceId": {"type": "string"}, "paymentId": {"type": "string"}, "unplacedPaymentId": {"type": "string"}, "type": {"type": "string"}, "date": {"type": "string"}, "transactionDate": {"type": "string"}, "target": {"type": "string"}, "amounts.capital": {"type": "string"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string"}, "updatedBy": {"type": "string"}}, "type": "object"}, "invoiceFinancialEventReverse": {"properties": {"bookOnOriginalDate": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceTableList": {"required": ["invoiceNumber"], "properties": {"id": {"type": "string", "description": "Internal id of the entity."}, "clientId": {"type": "string", "description": "Internal client id for the client connected to the invoice."}, "clientName": {"type": "string", "description": "Your company name."}, "instanceProviderId": {"type": "string"}, "refinancingStatus": {"type": "string"}, "productCode": {"type": "string", "description": "Product used for the invoice. Can be one of INVOICE_SERVICE, REMINDER_SERVICE, COLLECTION_SERVICE, INVOICE_FACTORING_LOAN or INVOICE_FACTORING_SELL."}, "serviceProviderCode": {"type": "string", "description": "Which installed service provider will be used to administrate the invoice."}, "invoiceNumber": {"type": "string", "description": "Your invoice number of the invoice."}, "paymentReference": {"type": "string", "description": "Payment reference of the invoice. Used when debtor pay for the invoice."}, "debitInvoiceNumber": {"type": "string", "description": "Your reference to debit invoice number. This should be provided if the invoice is a credit invoice."}, "statuses": {"$ref": "#/definitions/invoiceTableStatus"}, "partPayment": {"$ref": "#/definitions/invoiceTablePartPayment"}, "dates": {"$ref": "#/definitions/invoiceTableDates"}, "orderDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "debtor": {"$ref": "#/definitions/invoiceTableDebtor"}, "document": {"$ref": "#/definitions/invoiceTableDocumentsList"}, "distributionCode": {"type": "string", "description": "Distribution method used for the invoice. Can be one of LETTER, EMAIL or NULL.", "enum": [null, "SMS", "LETTER", "EMAIL", "ELECTRONIC_INVOICE", "DIGITAL_MAILBOX", "PARTNER", "APPLY_CLIENT_DISTRIBUTION_HIERARCHY"]}, "documentTemplateCode": {"type": "string", "description": "Template used on the invoice. Determines how the invoice PDF will appear."}, "refinancingExternalId": {"type": "string"}, "domesticVAT": {"$ref": "#/definitions/InvoiceTableDomesticVat"}, "freeText": {"type": "string"}, "currency": {"$ref": "#/definitions/invoiceTableCurrencyList"}, "totals": {"$ref": "#/definitions/invoiceTableTotalsList"}, "balances": {"$ref": "#/definitions/invoiceTableBalancesList"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "MEMBERSHIP_FEE", "PART_INVOICE", "ONGOING_INVOICE", "ACCOUNT_INVOICE", "INTEREST_INVOICE"]}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedById": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "boolean", "example": false}, "interestRate": {"type": "number", "format": "float", "example": 0.0}, "insuranceAgreement": {"type": "string"}, "disableFallbackDistribution": {"type": "boolean", "example": false}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "closed": {"type": "string", "format": "date", "example": "2016-06-06"}, "documentLanguage": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "credit_decision_grouping_code": {"type": "string"}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "errorMessage": {"type": "string"}, "reasonCodes": {"type": "array", "items": {"type": "string"}}, "plannedCollectionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "ourReference": {"type": "string"}, "ourOrderNumber": {"type": "string"}, "yourOrderNumber": {"type": "string"}, "yourReference": {"type": "string"}, "yourContactPerson": {"type": "string"}, "payout": {"$ref": "#/definitions/invoiceTablePayout"}, "clientReportDocuments": {"type": "array", "items": {"$ref": "#/definitions/invoiceTableClientReportDocument"}}}, "type": "object"}, "invoiceTableStatus": {"properties": {"main": {"type": "string", "description": "Main status of the invoice. Can be one of CREATED, ARCHIVED, PENDING, PENDING_AUTHORIZATION, ACTIVATED, PAUSED, DISPUTED, STOPPED or CLOSED. "}, "ledger": {"type": "string", "description": "Ledger status of the invoice. This is how far the invoice is in the reminder process. Can be one of NULL, INVOICE, EXPIRED, EXPIRED_NOTIFICATION, REMINDER, COLLECTION, DELAYED_PENALTY_FEE, MONITORING_DECISION or MONITORING."}, "ledgerSubType": {"type": "string"}, "refinancing": {"type": "string"}, "closingReason": {"type": "string", "description": "Why a CLOSED invoice was closed: PAID, CREDITED, WRITTEN_OFF or CLOSED. Null when not CLOSED."}}, "type": "object"}, "invoiceTablePartPayment": {"properties": {"isPartPayment": {"type": "boolean", "example": false}, "partPaymentPlanId": {"type": "string"}}, "type": "object"}, "invoiceTableDates": {"required": ["expireDate", "invoiceDate", "latestFinancialDate"], "properties": {"invoiceDate": {"type": "string", "format": "date", "description": "Invoice date of the invoice.", "example": "2016-06-06"}, "expireDate": {"type": "string", "format": "date", "description": "Expire date of the invoice.", "example": "2016-06-06"}, "originalExpireDate": {"type": "string", "format": "date", "description": "Original expire date of the invoice.", "example": "2016-06-06"}, "deliveryDate": {"type": "string", "format": "date", "description": "Delivery date of the invoice.", "example": "2016-06-06"}, "pausedUntilDate": {"type": "string", "format": "date", "description": "Shows for how long the handling of the invoice is paused.", "example": "2016-06-06"}, "ledgerPerformedDate": {"type": "string", "format": "date", "description": "Ledger performed date. Shows the performed date of the previous ledger event.", "example": "2016-06-06"}, "latestFinancialDate": {"type": "string", "format": "date", "description": "Financial event date of latest created event.", "example": "2016-06-06"}}, "type": "object"}, "invoiceTableDebtor": {"required": ["customerNumber", "name", "type"], "properties": {"id": {"type": "string", "description": "Internal id of the debtor connected to the invoice."}, "customerNumber": {"type": "string", "description": "Your customer number of the debtor connected to the invoice."}, "locale": {"type": "string"}, "name": {"type": "string", "description": "Debtor name. Either a person- or a company name depending on the debtor type."}, "identificationNumber": {"type": "string", "description": "Debtor identification number. Should be a valid organization number or social security number depending on the debtor type."}, "identificationNumberInternal": {"type": "string", "description": "Internal debtor identification number."}, "type": {"type": "string", "description": "Debtor type. Can be one of COMPANY or PERSON.", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "subtypeId": {"type": "string", "description": "ID of the debtor type."}, "subtypeName": {"type": "string", "description": "Name of the debtor type."}, "GLN": {"type": "string"}, "email": {"type": "string", "description": "Debtor email."}, "emailExpiredDocuments": {"type": "string", "description": "Debtor email on expired invoices."}, "emailInterestInvoice": {"type": "string", "description": "Debtor email for interest invoices."}, "phone": {"type": "string", "description": "Debtor phone number."}, "cellPhone": {"type": "string", "description": "Debtor cell phone number."}, "invoiceAddress": {"$ref": "#/definitions/invoiceTableAddressInformation"}, "deliveryAddress": {"$ref": "#/definitions/invoiceTableDeliveryAddress"}, "distributionChannelOverride": {"type": "boolean", "example": false}, "distributionChannel": {"type": "string"}, "FMI": {"type": "string", "description": "Receiver id for internet bank electronic invoice."}, "peppolId": {"type": "string", "description": "PEPPOL Participant Identifier for e-invoice routing.", "example": "0007:5567321707"}, "einvoicePartyId": {"type": "string", "description": "E-invoice party ID."}, "segmentCode": {"type": "string", "description": "Debtor segment code."}, "preferredLanguage": {"type": "string", "description": "Preferred language of the debtor.", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "invoiceTableAddressInformation": {"required": ["address", "name"], "properties": {"name": {"type": "string", "description": "Debtor invoice address name. Either a person- or a company name depending on the debtor type."}, "name2": {"type": "string", "description": "Debtor invoice address name 2. Either a person- or a company name depending on the debtor type."}, "address": {"type": "string", "description": "Debtor invoice address."}, "address2": {"type": "string", "description": "Debtor invoice address line 2"}, "address3": {"type": "string", "description": "Debtor invoice address line 3"}, "zip": {"type": "string", "description": "Debtor invoice address zip code."}, "city": {"type": "string", "description": "Debtor invoice address city."}, "countryCode": {"type": "string", "description": "Debtor invoice address country code. Should be in ISO 3166-1 alpha-2 format."}}, "type": "object"}, "invoiceTableDeliveryAddress": {"properties": {"name": {"type": "string", "description": "Debtor delivery address name. Either a person- or a company name depending on the debtor type."}, "name2": {"type": "string", "description": "Debtor invoice address name 2. Either a person- or a company name depending on the debtor type."}, "address": {"type": "string", "description": "Debtor delivery address."}, "address2": {"type": "string", "description": "Debtor delivery address line 2"}, "address3": {"type": "string", "description": "Debtor delivery address line 3"}, "zip": {"type": "string", "description": "Debtor delivery address zip code."}, "city": {"type": "string", "description": "Debtor delivery address city."}, "countryCode": {"type": "string", "description": "Debtor delivery address country code. Should be in ISO 3166-1 alpha-2 format."}}, "type": "object"}, "invoiceTableDocumentsList": {"properties": {"attachment": {"type": "string", "description": "File name of the attachment PDF added to the invoice. Download it with {{API}}/storage/{{fileName}}."}, "invoicePreview": {"type": "string", "description": "File name of the invoice preview PDF. Download it with {{API}}/storage/{{fileName}}."}, "invoice": {"type": "string", "description": "File name of the invoice PDF. Download it with {{API}}/storage/{{fileName}}."}, "invoiceWithAttachments": {"type": "string", "description": "File name of the invoice PDF with attachments. Download it with {{API}}/storage/{{fileName}}."}, "connectedFileCount": {"type": "integer", "format": "int", "description": "Count of connected files to the invoice.", "example": 0}}, "type": "object"}, "InvoiceTableDomesticVat": {"properties": {"amount": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "invoiceTableCurrencyList": {"properties": {"invoiceCurrency": {"type": "string", "description": "Invoice currency. This is what currency we should use in the invoice PDF. Can be one of supported currencies.", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}}, "type": "object"}, "invoiceTableTotalsList": {"required": ["total"], "properties": {"totalToPay": {"type": "number", "format": "decimal", "description": "Total amount for debtor to pay to close the invoice."}, "total": {"type": "number", "format": "decimal", "description": "Total amount with VAT of the invoice."}}, "type": "object"}, "invoiceTableBalancesList": {"properties": {"total": {"type": "number", "format": "decimal", "description": "Total balance of the invoice. This is what's left for your debtor to pay in total to close the invoice.", "default": 0}, "totalLocale": {"type": "number", "format": "decimal", "description": "Total balance of the invoice in locale currency. This is what's left for your debtor to pay in total to close the invoice.", "default": 0}, "capital": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice. This is what's left for your debtor to pay from the original amount.", "default": 0}, "capitalLocale": {"type": "number", "format": "decimal", "description": "Capital balance of the invoice in locale currency. This is what's left for your debtor to pay from the original amount.", "default": 0}, "reminder": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice. This is what's left for your debtor to pay from the reminder fees.", "default": 0}, "reminderLocale": {"type": "number", "format": "decimal", "description": "Reminder balance of the invoice in locale. This is what's left for your debtor to pay from the reminder fees. ", "default": 0}, "interest": {"type": "number", "format": "decimal", "description": "Interest balance of the invoice. This is what's left for your debtor to pay from the interest.", "default": 0}, "interestLocale": {"type": "number", "format": "decimal", "description": "Interest balance of the invoice in locale currency. This is what's left for your debtor to pay from the interest.", "default": 0}, "capitalService": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice.", "default": 0}, "capitalServiceLocale": {"type": "number", "format": "decimal", "description": "Capital service balance of the invoice in locale currency.", "default": 0}, "capitalFinanced": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice.", "default": 0}, "capitalFinancedLocale": {"type": "number", "format": "decimal", "description": "Capital financed balance of the invoice in locale currency.", "default": 0}, "capitalWithDiscount": {"type": "number", "format": "decimal", "description": "Capital balance after applying available cash discount.", "default": 0}, "insurancePercentage": {"type": "number", "format": "float", "description": "Percentage of the invoice covered by insurance.", "example": 0.0}, "capitalInsured": {"type": "number", "format": "decimal", "description": "Insured share of the still-outstanding capital balance. ", "default": 0}, "capitalUninsured": {"type": "number", "format": "decimal", "description": "Uninsured share of the still-outstanding capital balance.", "default": 0}}, "type": "object"}, "invoiceTablePayout": {"properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "invoiceTableClientReportDocument": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "invoiceTableSearchGet": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "refinancingExternalId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "instanceProviderId": {"type": "string"}, "refinancingStatus": {"type": "string"}, "debitInvoiceNumber": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "reminderProfileCode": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "documentTemplateCode": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "ourOrderNumber": {"type": "string"}, "yourOrderNumber": {"type": "string"}, "orderDate": {"type": "string"}, "packageNumber": {"type": "string"}, "shippingReference": {"type": "string"}, "deliveryMethod": {"type": "string"}, "contractNumber": {"type": "string"}, "projectReference": {"type": "string"}, "statuses.main": {"type": "string"}, "statuses.ledger": {"type": "string"}, "statuses.ledgerSubType": {"type": "string"}, "partPayment.isPartPayment": {"type": "boolean", "example": false}, "partPayment.partPaymentPlanId": {"type": "string"}, "partPayment.partPaymentAccountId": {"type": "string"}, "dates.invoiceDate": {"type": "string"}, "dates.expireDate": {"type": "string"}, "dates.originalExpireDate": {"type": "string"}, "dates.pausedUntilDate": {"type": "string"}, "dates.latestFinancialDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "debtor.id": {"type": "string"}, "debtor.customerNumber": {"type": "string"}, "debtor.type": {"type": "string"}, "debtor.subtypeId": {"type": "string"}, "debtor.identificationNumber": {"type": "string"}, "debtor.identificationNumberInternal": {"type": "string"}, "debtor.GLN": {"type": "string"}, "debtor.FMI": {"type": "string"}, "debtor.peppolId": {"type": "string"}, "debtor.einvoicePartyId": {"type": "string"}, "debtor.name": {"type": "string"}, "debtor.email": {"type": "string"}, "debtor.emailExpiredDocuments": {"type": "string"}, "debtor.emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "debtor.phone": {"type": "string"}, "debtor.cellPhone": {"type": "string"}, "debtor.invoiceAddress.name": {"type": "string"}, "debtor.invoiceAddress.name2": {"type": "string"}, "debtor.invoiceAddress.address": {"type": "string"}, "debtor.invoiceAddress.address2": {"type": "string"}, "debtor.invoiceAddress.address3": {"type": "string"}, "debtor.invoiceAddress.zip": {"type": "string"}, "debtor.invoiceAddress.city": {"type": "string"}, "debtor.invoiceAddress.countryCode": {"type": "string"}, "debtor.deliveryAddress.name": {"type": "string"}, "debtor.deliveryAddress.name2": {"type": "string"}, "debtor.deliveryAddress.address": {"type": "string"}, "debtor.deliveryAddress.address2": {"type": "string"}, "debtor.deliveryAddress.address3": {"type": "string"}, "debtor.deliveryAddress.zip": {"type": "string"}, "debtor.deliveryAddress.city": {"type": "string"}, "debtor.deliveryAddress.countryCode": {"type": "string"}, "debtor.preferredLanguage": {"type": "string"}, "currency.invoiceCurrency": {"type": "string"}, "currency.baseCurrency": {"type": "string"}, "totals.total": {"type": "string"}, "totals.totalToPay": {"type": "string"}, "balances.capital": {"type": "string"}, "balances.reminder": {"type": "string"}, "balances.interest": {"type": "string"}, "balances.total": {"type": "string"}, "type": {"type": "string"}, "isRecourse": {"type": "boolean", "example": false}, "useRecourse": {"type": "boolean", "example": false}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "financingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "closed": {"type": "string"}, "activatedDate": {"type": "string"}, "activatedById": {"type": "string"}, "bookedDate": {"type": "string"}, "bookedById": {"type": "string"}, "insuranceServiceProvider": {"type": "string"}, "insured": {"type": "string"}, "insuranceAgreement": {"type": "string"}, "invoiceDistributionCompleted": {"type": "boolean", "example": false}, "reasonCodes": {"type": "string"}, "plannedCollectionDate": {"type": "string"}}, "type": "object"}, "InvoiceGuarantorUpdate": {"properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "InvoiceGuarantor": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "InvoiceGuarantorCreate": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "InvoiceGuarantorSearch": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "CreateLabelInvoice": {"required": ["label", "valueJson"], "properties": {"label": {"type": "string"}, "value": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "LabelInvoice": {"properties": {"id": {"type": "string"}, "label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "value": {"type": "string"}, "createdBy": {"type": "string"}}, "type": "object"}, "UpdateLabelInvoice": {"required": ["valueJson"], "properties": {"label": {"type": "string"}, "value": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "invoiceLedgerEventUpdate": {"properties": {"subType": {"type": "string"}}, "type": "object"}, "invoiceLedgerEvent": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "reminderProfileLevelId": {"type": "string"}, "collectionExternal": {"$ref": "#/definitions/invoiceLedgerEventCollectionExternal"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "CREDIT_INVOICE", "EXPIRED", "EXPIRED_NOTIFICATION", "FINAL_NOTICE", "REMINDER", "COLLECTION", "MONITORING_DECISION", "MONITORING", "PART_PAYMENT_NOTIFICATION", "DENIED_TAX_REDUCTION_NOTIFICATION", "DELAYED_PENALTY_FEE", "PART_INVOICE", "ACCOUNT_INVOICE"]}, "subType": {"type": "string", "example": "BAILIFF_PAYMENT_INJUCTION", "enum": ["BAILIFF_PAYMENT_INJUCTION", "BAILIFF_JUDGEMENT", "BAILIFF_EXECUTION", "LEGAL", "WATCH", "READY_FOR_ORDER_TO_PAY"]}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "performedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "status": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/invoiceLedgerEventDocument"}}, "distributions": {"type": "array", "items": {"$ref": "#/definitions/invoiceLedgerEventDistribution"}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "invoiceLedgerEventCollectionExternal": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "status": {"type": "string"}, "serviceProviderId": {"type": "string"}}, "type": "object"}, "invoiceLedgerEventDocument": {"properties": {"fileName": {"type": "string"}}, "type": "object"}, "invoiceLedgerEventDistribution": {"properties": {"id": {"type": "string"}}, "type": "object"}, "invoiceLedgerEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "invoiceId": {"type": "string"}, "reminderProfileLevelId": {"type": "string"}, "type": {"type": "string"}, "subType": {"type": "string"}, "plannedDate": {"type": "string"}, "performedDate": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "InvoiceNote": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}, "topic": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DocumentInvoiceNote"}}}, "type": "object"}, "DocumentInvoiceNote": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "InvoiceNoteSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}, "topic": {"type": "string"}}, "type": "object"}, "UpdateInvoicePaymentMethod": {"properties": {"paymentMethodId": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "InvoicePaymentMethod": {"properties": {"invoiceId": {"type": "string"}, "paymentMethodId": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "UpdateInvoicePaymentMethodConfiguration": {"properties": {"paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "InvoicePaymentMethodConfiguration": {"properties": {"invoiceId": {"type": "string"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "InvoicePaymentReferenceSettingsPost": {"required": ["clientId", "prefix"], "properties": {"clientId": {"type": "string"}, "length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "InvoicePaymentReferenceSettings": {"required": ["clientId"], "properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "InvoicePaymentReferenceSettingsPut": {"properties": {"length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "InvoicePaymentReferenceSettingsSearch": {"properties": {"length": {"type": "integer", "format": "int", "example": 0}, "prefix": {"type": "string"}}, "type": "object"}, "InvoicePayout": {"properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "status": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}, "currency": {"type": "string"}}, "type": "object"}, "InvoicePDFExtractResponse": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "result": {"type": "object"}, "documentId": {"type": "string"}, "exchangeRateAvailable": {"type": "boolean", "description": "Whether the system has an exchange rate for the read invoice currency, or the client agreement currency when none was read, by the same rule as the exchangeRate check. Null when the item is not READ or holds no read invoice.", "example": false}}, "type": "object"}, "InvoicePDFExtractEnabled": {"properties": {"enabled": {"type": "boolean", "example": false}, "aiEnabled": {"type": "boolean", "example": false}, "defaultReader": {"type": "string", "description": "The reader an upload uses when none is chosen, or null when none can be used."}, "aiConfidenceThreshold": {"type": "integer", "format": "int", "description": "Smart reader reads with a lower AI confidence (0-100) need a check.", "example": 0}, "readers": {"type": "array", "items": {"$ref": "#/definitions/InvoicePDFExtractReader"}}}, "type": "object"}, "InvoicePDFExtractReader": {"properties": {"reader": {"type": "string", "description": "One of ['AI', 'AWS']."}, "available": {"type": "boolean", "example": false}, "reason": {"type": "string", "description": "Why the reader cannot be used: one of ['module_off', 'setting_off', 'no_worker', 'no_right']."}}, "type": "object"}, "PDFExtractItem": {"properties": {"id": {"type": "string"}, "source": {"type": "string"}, "documentId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "fileName": {"type": "string"}, "storageName": {"type": "string"}, "status": {"type": "string"}, "band": {"type": "string"}, "checks": {"type": "object"}, "result": {"type": "object"}, "invoiceId": {"type": "string"}, "pdfAttached": {"type": "boolean", "description": "The uploaded PDF is linked to the created invoice.", "example": false}, "invoiceStatus": {"type": "string", "description": "Main status of the created invoice."}, "exchangeRateAvailable": {"type": "boolean", "description": "Whether the system has an exchange rate for the read invoice currency, or the client agreement currency when none was read, by the same rule as the exchangeRate check. Null when the item is not READ or holds no read invoice.", "example": false}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "expiresAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "PDFExtractItemSearchAllClients": {"allOf": [{"$ref": "#/definitions/PDFExtractItemSearch"}, {"properties": {"clientId": {"type": "string"}}, "type": "object"}]}, "PDFExtractItemSearch": {"properties": {"band": {"type": "array", "description": "Any of ['HIGH', 'MEDIUM', 'LOW', 'ERROR'] or NONE for not yet banded.", "items": {"type": "string"}}, "status": {"type": "array", "description": "Defaults to every status except DELETED.", "items": {"type": "string"}}}, "type": "object"}, "PDFExtractItemPut": {"properties": {"result": {"type": "object", "description": "The extracted invoice data, with the user edits applied. The server recomputes the checks and band from it."}, "status": {"type": "string", "example": "CREATED", "enum": ["CREATED"]}, "invoiceId": {"type": "string"}}, "type": "object"}, "PDFExtractItemChecksRequest": {"required": ["result"], "properties": {"result": {"type": "object", "description": "The extracted invoice data with the user edits applied, as the item PUT takes it."}}, "type": "object"}, "PDFExtractItemChecks": {"properties": {"checks": {"type": "object", "description": "The checks the item would get for this result: key, label, result, detail, message and values."}, "band": {"type": "string", "description": "The band the item would get, one of ['HIGH', 'MEDIUM', 'LOW', 'ERROR']."}}, "type": "object"}, "PDFExtractItemIds": {"required": ["ids"], "properties": {"ids": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "PDFExtractUsage": {"properties": {"date": {"type": "string", "format": "date", "example": "2016-06-06"}, "model": {"type": "string"}, "documents": {"type": "integer", "format": "int", "example": 0}, "errors": {"type": "integer", "format": "int", "example": 0}, "promptTokens": {"type": "integer", "format": "int", "example": 0}, "outputTokens": {"type": "integer", "format": "int", "example": 0}, "thinkingTokens": {"type": "integer", "format": "int", "example": 0}, "totalTokens": {"type": "integer", "format": "int", "example": 0}, "cutOff": {"type": "integer", "format": "int", "example": 0}, "averageLatencyMs": {"type": "integer", "format": "int", "example": 0}, "budgetAlerted": {"type": "boolean", "example": false}}, "type": "object"}, "PublicInvoiceMasked": {"required": ["invoiceNumber"], "properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "distributionCode": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentReference": {"type": "string"}, "isPartPayment": {"type": "boolean", "example": false}, "partPaymentVariant": {"type": "string"}, "type": {"type": "string"}, "debtor": {"$ref": "#/definitions/PublicInvoiceDebtorMasked"}, "statuses": {"$ref": "#/definitions/PublicInvoiceStatuses"}, "dates": {"$ref": "#/definitions/PublicInvoiceDates"}, "totals": {"$ref": "#/definitions/PublicInvoiceTotals"}, "balances": {"$ref": "#/definitions/PublicInvoiceBalances"}, "currency": {"$ref": "#/definitions/PublicInvoiceCurrency"}, "document": {"$ref": "#/definitions/PublicInvoiceDocumentRefs"}}, "type": "object"}, "PublicInvoiceDebtorMasked": {"required": ["name"], "properties": {"name": {"type": "string"}, "email": {"type": "string"}, "emailExpiredDocuments": {"type": "string"}, "emailInterestInvoice": {"type": "string"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/Invoice address information"}}, "type": "object"}, "invoiceStats": {"required": ["balance", "count", "currency"], "properties": {"currency": {"type": "string"}, "count": {"type": "integer", "format": "int", "example": 0}, "balance": {"type": "number", "format": "decimal"}}, "type": "object"}, "InvoiceRefinancing": {"properties": {"invoiceId": {"type": "string"}, "useRecourse": {"type": "boolean", "example": false}, "status": {"type": "string"}, "isRecourse": {"type": "boolean", "example": false}, "recourseDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "externalId": {"type": "string"}, "externalMessage": {"type": "string"}}, "type": "object"}, "UpdateInvoiceRefinancing": {"properties": {"useRecourse": {"type": "boolean", "example": false}, "status": {"type": "string", "example": "APPROVED", "enum": ["APPROVED", "DENIED"]}}, "type": "object"}, "UpdateInvoiceUseRefinancingRecourse": {"required": ["useRecourse"], "properties": {"useRecourse": {"type": "boolean", "example": false}}, "type": "object"}, "InvoiceToDoPost": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "invoiceId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "InvoiceToDo": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}}, "type": "object"}, "UpdateInvoiceToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "InvoiceToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "invoiceId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}}, "type": "object"}, "InvoiceTransactionReport": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "transactionDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "fromDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "toDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "linkTypes": {"type": "array", "items": {"type": "string"}}, "documents": {"type": "array", "items": {"$ref": "#/definitions/InvoiceTransactionReportDocument"}}}, "type": "object"}, "InvoiceTransactionReportDocument": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "publicSignatureRequestToken": {"required": ["token"], "properties": {"token": {"type": "string", "description": "The token from the signing link"}}, "type": "object"}, "publicSignatureRequest": {"properties": {"status": {"type": "string", "description": "CREATED, VIEWED, SIGNED or STOPPED"}, "open": {"type": "boolean", "description": "Whether the request can still be signed or rejected", "example": false}, "expireDate": {"type": "string"}, "clientName": {"type": "string"}, "receiverName": {"type": "string"}, "invoices": {"type": "array", "items": {"$ref": "#/definitions/publicSignatureRequestInvoice"}}, "signingMethods": {"type": "array", "description": "ONE_TIME_CODE or BANKID_SE", "items": {"type": "string"}}, "oneTimeCodeChannel": {"type": "string", "description": "SMS or EMAIL"}, "oneTimeCodeSentTo": {"type": "string", "description": "Masked phone or email"}, "signedAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "publicSignatureRequestInvoice": {"properties": {"invoiceNumber": {"type": "string"}, "totalToPay": {"type": "number", "format": "float", "example": 0.0}, "currency": {"type": "string"}}, "type": "object"}, "publicSignatureRequestCodeSent": {"properties": {"channel": {"type": "string", "description": "SMS or EMAIL"}, "sentTo": {"type": "string", "description": "Masked phone or email"}}, "type": "object"}, "publicSignatureRequestVerify": {"required": ["code", "consent", "token"], "properties": {"token": {"type": "string", "description": "The token from the signing link"}, "code": {"type": "string"}, "consent": {"type": "boolean", "description": "The signer confirms the delivery", "example": false}, "language": {"type": "string", "description": "The language the signer read the consent in, for example sv or en. The proof is written in it when it is translated to it, otherwise in the language of the signing link."}}, "type": "object"}, "publicSignatureRequestBankidSign": {"required": ["consent", "token"], "properties": {"token": {"type": "string", "description": "The token from the signing link"}, "consent": {"type": "boolean", "description": "The signer confirms the delivery", "example": false}, "language": {"type": "string", "description": "The language the signer read the consent in, for example sv or en. The proof is written in it when it is translated to it, otherwise in the language of the signing link."}}, "type": "object"}, "publicSignatureRequestBankidOrder": {"properties": {"orderRef": {"type": "string"}, "autoStartToken": {"type": "string"}}, "type": "object"}, "publicSignatureRequestBankidCollect": {"required": ["orderRef", "token", "type"], "properties": {"token": {"type": "string", "description": "The token from the signing link"}, "orderRef": {"type": "string"}, "type": {"type": "string", "description": "QR_CODE or AUTO_START"}}, "type": "object"}, "publicSignatureRequestBankidStatus": {"properties": {"status": {"type": "string", "description": "pending, failed or complete"}, "hintCode": {"type": "string", "description": "While pending or after a failure"}, "qrCode": {"type": "string", "description": "For QR_CODE, renewed on every collect"}, "autoStartToken": {"type": "string", "description": "For AUTO_START"}}, "type": "object"}, "publicSignatureRequestBankidCancel": {"required": ["orderRef", "token"], "properties": {"token": {"type": "string", "description": "The token from the signing link"}, "orderRef": {"type": "string"}}, "type": "object"}, "publicSignatureRequestReject": {"required": ["reason", "token"], "properties": {"token": {"type": "string", "description": "The token from the signing link"}, "reason": {"type": "string", "description": "At most 1000 characters"}}, "type": "object"}, "PaymentAccountUpdate": {"properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "registrationNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isAssigned": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "type": {"type": "string"}, "enableSetPaymentReference": {"type": "boolean", "example": false}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountIdUnplaced": {"type": "string"}, "instanceProviderId": {"type": "string"}, "paymentAccountSettings": {"$ref": "#/definitions/paymentAccountSettingsPut"}}, "type": "object"}, "paymentAccountSettingsPut": {"properties": {"isEnforcementAccount": {"type": "boolean", "example": false}, "markAsDca": {"type": "boolean", "example": false}, "ignoreBgMaxRowsInCamtFile": {"type": "boolean", "example": false}, "fikEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentAccount": {"properties": {"id": {"type": "string"}, "currency": {"type": "string"}, "accountNumber": {"type": "string"}, "registrationNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "dedicatedClientId": {"type": "string"}, "isAssigned": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "type": {"type": "string"}, "isDefaultCommon": {"type": "boolean", "example": false}, "isDefaultPayout": {"type": "boolean", "example": false}, "enableSetPaymentReference": {"type": "boolean", "example": false}, "paymentReferenceLength": {"type": "integer", "format": "int", "example": 0}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "bookkeepingAccountIdUnplaced": {"type": "string"}, "bookkeepingAccountNumberUnplaced": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountSettings": {"$ref": "#/definitions/paymentAccountSettingsGet"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "paymentAccountSettingsGet": {"properties": {"paymentAccountId": {"type": "string"}, "markAsDca": {"type": "boolean", "example": false}, "isEnforcementAccount": {"type": "boolean", "example": false}, "ignoreBgMaxRowsInCamtFile": {"type": "boolean", "example": false}, "fikEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentAccountCreate": {"required": ["bankName", "bic"], "properties": {"currency": {"type": "string"}, "accountNumber": {"type": "string"}, "registrationNumber": {"type": "string"}, "receiverName": {"type": "string"}, "bankName": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "isAssigned": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "type": {"type": "string"}, "enableSetPaymentReference": {"type": "boolean", "example": false}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountIdUnplaced": {"type": "string"}, "instanceProviderId": {"type": "string"}, "paymentAccountSettings": {"$ref": "#/definitions/paymentAccountSettingsPut"}, "paymentReferenceLength": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PaymentAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "currency": {"type": "string"}, "accountNumber": {"type": "string"}, "registrationNumber": {"type": "string"}, "receiverName": {"type": "string"}, "isAssigned": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "type": {"type": "string"}, "isDefaultCommon": {"type": "boolean", "example": false}, "isDefaultPayout": {"type": "boolean", "example": false}, "enableSetPaymentReference": {"type": "boolean", "example": false}, "paymentReferenceLength": {"type": "integer", "format": "int", "example": 0}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "bookkeepingAccountIdUnplaced": {"type": "string"}, "bookkeepingAccountNumberUnplaced": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountSettings": {"$ref": "#/definitions/paymentAccountSettingsGet"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "PaymentAccountSettingCreate": {"properties": {"paymentAccountId": {"type": "string"}, "markAsDca": {"type": "boolean", "example": false}, "isEnforcementAccount": {"type": "boolean", "example": false}, "ignoreBgMaxRowsInCamtFile": {"type": "boolean", "example": false}, "fikEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentAccountSetting": {"properties": {"paymentAccountId": {"type": "string"}, "markAsDca": {"type": "boolean", "example": false}, "isEnforcementAccount": {"type": "boolean", "example": false}, "ignoreBgMaxRowsInCamtFile": {"type": "boolean", "example": false}, "fikEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentAccountSettingUpdate": {"properties": {"isEnforcementAccount": {"type": "boolean", "example": false}, "markAsDca": {"type": "boolean", "example": false}, "ignoreBgMaxRowsInCamtFile": {"type": "boolean", "example": false}, "fikEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentAccountSettingSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "paymentAccountId": {"type": "string"}, "markAsDca": {"type": "boolean", "example": false}, "isEnforcementAccount": {"type": "boolean", "example": false}, "ignoreBgMaxRowsInCamtFile": {"type": "boolean", "example": false}, "fikEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentBatch": {"properties": {"id": {"type": "string"}, "paymentFileId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "source": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "matchedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "matchedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "external_id": {"type": "string", "description": "Deprecated"}, "externalId": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}, "amountFee": {"type": "number", "format": "float", "example": 0.0}, "counts": {"$ref": "#/definitions/CountPaymentBatches"}}, "type": "object"}, "CountPaymentBatches": {"properties": {"payments": {"type": "number", "format": "float", "example": 0.0}, "matched": {"type": "number", "format": "float", "example": 0.0}, "linked": {"type": "number", "format": "float", "example": 0.0}, "unplaced": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PaymentBatchSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "paymentFileId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "source": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "matchedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "matchedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}}, "type": "object"}, "ClientArticlePut": {"required": ["description"], "properties": {"accountNumber": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "ClientArticle": {"required": ["description"], "properties": {"id": {"type": "string"}, "articleNumber": {"type": "string"}, "clientId": {"type": "string"}, "accountNumber": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "ClientArticlePost": {"required": ["articleNumber", "description"], "properties": {"articleNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "ClientArticleSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "articleNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "PaymentTransactionSearchClient": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "status": {"type": "string"}, "visibleForClient": {"type": "boolean", "example": false}}, "type": "object"}, "ClientMatchPayments": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "clientStatus": {"type": "string"}, "status": {"type": "string"}, "visibleForClient": {"type": "boolean", "example": false}, "hasNotes": {"type": "boolean", "example": false}, "currency": {"type": "string"}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "sender": {"$ref": "#/definitions/SenderPaymentTransactionClientMatch"}, "client": {"$ref": "#/definitions/Client"}, "links": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionLinkClientMatch"}}}, "type": "object"}, "SenderPaymentTransactionClientMatch": {"properties": {"accountNumber": {"type": "string"}, "address": {"$ref": "#/definitions/SenderAddress"}}, "type": "object"}, "SenderAddress": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}}, "type": "object"}, "Client": {"properties": {"name": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/ContactInformation"}}, "type": "object"}, "ContactInformation": {"properties": {"name": {"type": "string"}}, "type": "object"}, "PaymentTransactionLinkClientMatch": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "status": {"type": "string"}, "clientLinkType": {"type": "string"}, "description": {"type": "string"}, "invoice": {"$ref": "#/definitions/Invoice"}}, "type": "object"}, "Invoice": {"properties": {"debtor": {"$ref": "#/definitions/InvoiceDebtor"}}, "type": "object"}, "InvoiceDebtor": {"properties": {"name": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/ContactInformation"}}, "type": "object"}, "PaymentFile": {"properties": {"id": {"type": "string"}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "importedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "importedBy": {"type": "string"}, "fileCreatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "fileTest": {"type": "boolean", "example": false}, "message": {"type": "string"}, "counts": {"$ref": "#/definitions/PaymentFileCounts"}}, "type": "object"}, "PaymentFileCounts": {"properties": {"batches": {"type": "number", "format": "float", "example": 0.0}, "payments": {"type": "number", "format": "float", "example": 0.0}, "deductions": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PaymentFileSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "documentFileName": {"type": "string"}, "documentFileNameRaw": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "importedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "importedBy": {"type": "string"}}, "type": "object"}, "ImportData": {"properties": {"dcaPayment": {"type": "boolean", "example": false}, "instanceProviderId": {"type": "string"}}, "type": "object"}, "PartPaymentGroupSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "sourceType": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "statusCode": {"type": "string"}, "paymentCurrency": {"type": "string"}, "latestPaymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "totalPaymentAmount": {"type": "number", "format": "decimal"}, "totalPaymentAmountLocale": {"type": "number", "format": "decimal"}, "payments": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentGroupPaymentItem"}}, "sourceStatus": {"type": "string"}, "sourceOriginalAmount": {"type": "number", "format": "decimal"}, "sourceCapitalBalance": {"type": "number", "format": "decimal"}, "sourceCapitalBalanceLocale": {"type": "number", "format": "decimal"}, "sourceCurrency": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "hasCreditInvoices": {"type": "boolean", "default": false, "example": false}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "customerNumber": {"type": "string"}, "invoiceNumber": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentGroupPaymentItem": {"properties": {"paymentId": {"type": "string"}, "paymentDate": {"type": "string"}, "paymentAmount": {"type": "number", "format": "float", "example": 0.0}, "paymentAmountLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PartPaymentGroupList": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "sourceType": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "statusCode": {"type": "string"}, "paymentCurrency": {"type": "string"}, "latestPaymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "totalPaymentAmount": {"type": "number", "format": "decimal"}, "totalPaymentAmountLocale": {"type": "number", "format": "decimal"}, "payments": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentGroupPaymentItem"}}, "sourceStatus": {"type": "string"}, "sourceOriginalAmount": {"type": "number", "format": "decimal"}, "sourceCapitalBalance": {"type": "number", "format": "decimal"}, "sourceCapitalBalanceLocale": {"type": "number", "format": "decimal"}, "sourceCurrency": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "hasCreditInvoices": {"type": "boolean", "default": false, "example": false}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "customerNumber": {"type": "string"}, "invoiceNumber": {"type": "string"}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentGroupCompleteResponse": {"properties": {"message": {"type": "string", "description": "Result message for the part payment completion request."}}, "type": "object"}, "PartPaymentGroupCreditInvoice": {"properties": {"id": {"type": "string"}, "balanceTotal": {"type": "number", "format": "float", "example": 0.0}, "balanceTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "balanceCapital": {"type": "number", "format": "float", "example": 0.0}, "balanceCapitalLocale": {"type": "number", "format": "float", "example": 0.0}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "float", "example": 0.0}, "clientDebtorId": {"type": "string"}, "clientDebtorName": {"type": "string"}}, "type": "object"}, "PartPayment": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionLinkId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "paymentAccountId": {"type": "string"}, "debtSource": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceMainStatus": {"type": "string"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceCapitalLocale": {"type": "number", "format": "decimal"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "collectionBatchId": {"type": "string"}, "collectionBatchErrandNumber": {"type": "integer", "format": "int", "example": 0}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "collectionBatchStatus": {"type": "integer", "format": "int", "example": 0}, "collectionBatchBalanceTotal": {"type": "number", "format": "decimal"}, "collectionBatchBalanceTotalLocale": {"type": "number", "format": "decimal"}, "collectionBatchBalanceCapital": {"type": "number", "format": "decimal"}, "collectionBatchBalanceCapitalLocale": {"type": "number", "format": "decimal"}, "collectionBatchInvoiceTotalToPay": {"type": "number", "format": "decimal"}, "collectionBatchCurrency": {"type": "string"}, "clientDebtorId": {"type": "string"}, "clientDebtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "clientId": {"type": "string"}, "creditInvoices": {"type": "array", "items": {"$ref": "#/definitions/CreditInvoice"}}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentCurrency": {"type": "string"}, "paymentAmount": {"type": "number", "format": "decimal"}, "paymentAmountLocale": {"type": "number", "format": "decimal"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "statusCode": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "CreditInvoice": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "balanceTotal": {"type": "number", "format": "float", "example": 0.0}, "balanceTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "balanceCapital": {"type": "number", "format": "float", "example": 0.0}, "balanceCapitalLocale": {"type": "number", "format": "float", "example": 0.0}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "float", "example": 0.0}, "clientDebtorName": {"type": "string"}, "clientDebtorId": {"type": "string"}}, "type": "object"}, "PartPaymentSearch": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionLinkId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "paymentAccountId": {"type": "string"}, "debtSource": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceMainStatus": {"type": "string"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceCapitalLocale": {"type": "number", "format": "decimal"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "collectionBatchId": {"type": "string"}, "collectionBatchErrandNumber": {"type": "integer", "format": "int", "description": "Deprecated", "example": 0}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "collectionBatchStatus": {"type": "integer", "format": "int", "example": 0}, "collectionBatchBalanceTotal": {"type": "number", "format": "decimal"}, "collectionBatchBalanceTotalLocale": {"type": "number", "format": "decimal"}, "collectionBatchBalanceCapital": {"type": "number", "format": "decimal"}, "collectionBatchBalanceCapitalLocale": {"type": "number", "format": "decimal"}, "collectionBatchInvoiceTotalToPay": {"type": "number", "format": "decimal"}, "collectionBatchCurrency": {"type": "string"}, "clientDebtorId": {"type": "string"}, "clientDebtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "clientId": {"type": "string"}, "creditInvoices": {"type": "array", "items": {"$ref": "#/definitions/CreditInvoice"}}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentCurrency": {"type": "string"}, "paymentAmount": {"type": "number", "format": "decimal"}, "paymentAmountLocale": {"type": "number", "format": "decimal"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "statusCode": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "x-mask": "{query,queryTarget}", "type": "object"}, "PaymentReconciliation": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "categoryCode": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "reconciled": {"type": "boolean", "example": false}, "reconciledDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "reconciledBy": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentAccountId": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PaymentReconciliationSearch": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "categoryCode": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "reconciled": {"type": "boolean", "example": false}, "reconciledDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "reconciledBy": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceCurrency": {"type": "string"}, "collectionBatchBalanceTotal": {"type": "number", "format": "decimal"}, "collectionBatchBalanceTotalLocale": {"type": "number", "format": "decimal"}, "collectionBatchCurrency": {"type": "string"}}, "x-mask": "{query,queryTarget}", "type": "object"}, "PaymentReconciliationList": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "categoryCode": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "reconciled": {"type": "boolean", "example": false}, "reconciledDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "reconciledBy": {"type": "string"}, "invoiceId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "expireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceTotalLocale": {"type": "number", "format": "decimal"}, "invoiceCurrency": {"type": "string"}, "collectionBatchBalanceTotal": {"type": "number", "format": "decimal"}, "collectionBatchBalanceTotalLocale": {"type": "number", "format": "decimal"}, "collectionBatchCurrency": {"type": "string"}}, "type": "object"}, "PaymentTransactionReturn": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "reference": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "invoiceId": {"type": "string"}, "payoutTransactionId": {"type": "string"}, "payoutBatchId": {"type": "string"}, "fromAccountNumber": {"type": "string"}, "receiver": {"$ref": "#/definitions/DebtorPayoutAccount"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountFeeVatLocale": {"type": "number", "format": "decimal"}, "amountFeeVat": {"type": "number", "format": "decimal"}, "amountFeeLocale": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "amountTotalLocale": {"type": "number", "format": "decimal"}, "authorizedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "returnedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "deniedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "authorizedBy": {"type": "string"}, "returnedBy": {"type": "string"}, "deniedBy": {"type": "string"}, "topic": {"type": "string"}, "receiverAccountSource": {"type": "string"}, "createdBy": {"$ref": "#/definitions/PaymentTransactionReturnCreatedBy"}, "latestInternalRequest": {"$ref": "#/definitions/InternalRequest"}}, "type": "object"}, "DebtorPayoutAccount": {"properties": {"id": {"type": "string"}, "payoutAccountId": {"type": "string"}, "useChannel": {"type": "string", "enum": [null, "BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "identificationNumber": {"type": "string"}, "phoneNumber": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "address": {"$ref": "#/definitions/Address"}}, "type": "object"}, "Address": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "PaymentTransactionReturnCreatedBy": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "PaymentTransactionReturnPut": {"properties": {"fromAccountNumber": {"type": "string"}, "reference": {"type": "string"}, "receiver": {"$ref": "#/definitions/DebtorPayoutAccount"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "ForcePaymentTransactionReturn": {"properties": {"forcePayout": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentTransactionReturnSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "type": {"type": "string"}, "reference": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "invoiceId": {"type": "string"}, "payoutTransactionId": {"type": "string"}, "payoutBatchId": {"type": "string"}, "fromAccountNumber": {"type": "string"}, "receiver.identificationNumber": {"type": "string"}, "receiver.address.name": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "payoutDate": {"type": "string"}, "currency": {"type": "string"}, "amount": {"type": "string"}, "amountLocale": {"type": "string"}, "amountFee": {"type": "string"}, "amountFeeVatLocale": {"type": "string"}, "amountFeeVat": {"type": "string"}, "amountFeeLocale": {"type": "string"}, "amountTotal": {"type": "string"}, "amountTotalLocale": {"type": "string"}, "authorizedDate": {"type": "string"}, "returnedDate": {"type": "string"}, "deniedDate": {"type": "string"}, "authorizedBy": {"type": "string"}, "returnedBy": {"type": "string"}, "deniedBy": {"type": "string"}, "topic": {"type": "string"}, "latestInternalRequest": {"$ref": "#/definitions/InternalRequest"}}, "type": "object"}, "PaymentTransactionUpdate": {"properties": {"id": {"type": "string"}, "dcaPayment": {"type": "boolean", "example": false}, "sender": {"$ref": "#/definitions/SenderPaymentTransactionPut"}}, "type": "object"}, "SenderPaymentTransactionPut": {"properties": {"identificationNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "channel": {"type": "string", "example": "ELECTRONIC_MANUAL", "enum": ["ELECTRONIC_MANUAL", "ELECTRONIC_FILE", "PAPER", "ELECTRONIC_AUTOGIRO", "OTHER", "MOBILE_PAYMENT"]}, "address": {"$ref": "#/definitions/SenderAddressPaymentTransaction"}}, "type": "object"}, "SenderAddressPaymentTransaction": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "PaymentTransaction": {"properties": {"id": {"type": "string"}, "paymentBatchId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "matchedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "matchedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "linksAmountTotal": {"type": "number", "format": "decimal"}, "linksAmountTotalLocale": {"type": "number", "format": "decimal"}, "returnAmountTotal": {"type": "number", "format": "decimal"}, "returnAmountTotalLocale": {"type": "number", "format": "decimal"}, "writeOffAmountTotal": {"type": "number", "format": "decimal"}, "writeOffAmountTotalLocale": {"type": "number", "format": "decimal"}, "revaluationsAmountTotal": {"type": "number", "format": "decimal"}, "revaluationsAmountTotalLocale": {"type": "number", "format": "decimal"}, "revenueAmountTotal": {"type": "number", "format": "decimal"}, "revenueAmountTotalLocale": {"type": "number", "format": "decimal"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "externalId": {"type": "string"}, "creditType": {"type": "string"}, "dcaPayment": {"type": "boolean", "example": false}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "balance": {"type": "number", "format": "decimal"}, "balanceLocale": {"type": "number", "format": "decimal"}, "balanceBooked": {"type": "number", "format": "decimal"}, "balanceLocaleBooked": {"type": "number", "format": "decimal"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "originalExchangeRate": {"type": "number", "format": "float", "example": 0.0}, "senderAmount": {"type": "number", "format": "decimal"}, "senderCurrency": {"type": "string"}, "references": {"type": "array", "items": {"$ref": "#/definitions/TransactionReference"}}, "descriptions": {"type": "array", "items": {"$ref": "#/definitions/TransactionReference"}}, "sender": {"$ref": "#/definitions/SenderPaymentTransaction"}, "matching": {"$ref": "#/definitions/MatchingPaymentTransaction"}, "returns": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionReturns"}}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionSpecification": {"$ref": "#/definitions/PaymentFileSpecification"}}, "type": "object"}, "TransactionReference": {"properties": {"value": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "SenderPaymentTransaction": {"properties": {"identificationNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "channel": {"type": "string", "example": "ELECTRONIC_MANUAL", "enum": ["ELECTRONIC_MANUAL", "ELECTRONIC_FILE", "PAPER", "ELECTRONIC_AUTOGIRO", "OTHER", "MOBILE_PAYMENT"]}, "address": {"$ref": "#/definitions/SenderAddressPaymentTransaction"}, "phoneNumber": {"type": "string"}, "externalReference": {"type": "string"}}, "type": "object"}, "MatchingPaymentTransaction": {"properties": {"status": {"type": "string"}, "reason": {"type": "string"}, "rate": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PaymentTransactionReturns": {"properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "payoutAccountNumber": {"type": "string"}, "status": {"type": "string"}, "payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "channel": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountFeeLocale": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "amountTotalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "PaymentFileSpecification": {"properties": {"id": {"type": "string"}, "documentId": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}, "fileKey": {"type": "string"}, "matchedReferences": {"type": "array", "items": {"type": "string"}}, "unmatchedReferences": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "NoteTransaction": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}, "topic": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DocumentTransaction"}}}, "type": "object"}, "DocumentTransaction": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "NoteTransactionPut": {"properties": {"description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentTransactionCreate": {"properties": {"paymentAccountNumber": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "externalId": {"type": "string", "description": "Free-text client reference. Stored and returned unchanged; not used for matching, not validated, not unique. Do not put personal data here."}, "dcaPayment": {"type": "boolean", "example": false}, "links": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionLinkPost"}}, "sender": {"$ref": "#/definitions/SenderPaymentTransactionPost"}}, "type": "object"}, "PaymentTransactionLinkPost": {"properties": {"invoiceId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "clientAccountId": {"type": "string"}, "collectionBatchErrandNumber": {"type": "integer", "format": "int", "example": 0}, "businessLoanNumber": {"type": "integer", "format": "int", "example": 0}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountDebtCurrency": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}}, "type": "object"}, "SenderPaymentTransactionPost": {"properties": {"identificationNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "channel": {"type": "string", "example": "ELECTRONIC_MANUAL", "enum": ["ELECTRONIC_MANUAL", "ELECTRONIC_FILE", "PAPER", "ELECTRONIC_AUTOGIRO", "OTHER", "MOBILE_PAYMENT"]}, "address": {"$ref": "#/definitions/SenderAddressPaymentTransactionPost"}}, "type": "object"}, "SenderAddressPaymentTransactionPost": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "PaymentTransactionCreateList": {"properties": {"paymentAccountNumber": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "dcaPaymentUniversal": {"type": "boolean", "example": false}, "payments": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionListWithLinks"}}}, "type": "object"}, "PaymentTransactionListWithLinks": {"properties": {"amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "externalId": {"type": "string", "description": "Free-text client reference. Stored and returned unchanged; not used for matching, not validated, not unique. Do not put personal data here."}, "dcaPayment": {"type": "boolean", "example": false}, "references": {"type": "array", "items": {"type": "string"}}, "descriptions": {"type": "array", "items": {"type": "string"}}, "links": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionLink"}}, "sender": {"$ref": "#/definitions/SenderPaymentTransactionPost"}}, "type": "object"}, "PaymentTransactionLink": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "createdVia": {"type": "string"}, "invoiceId": {"type": "string"}, "debitInvoiceId": {"type": "string"}, "creditInvoiceId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "collectionBatchErrandNumber": {"type": "integer", "format": "int", "description": "Deprecated use collectionBatchNumber", "example": 0}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "clientAccountId": {"type": "string"}, "reversesLinkId": {"type": "integer", "format": "int", "example": 0}, "enforcementId": {"type": "string"}, "businessLoanId": {"type": "string"}, "businessLoanNumber": {"type": "integer", "format": "int", "example": 0}, "invoiceFinancialEventId": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountDebtCurrency": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}, "amountVatLocale": {"type": "number", "format": "decimal"}, "status": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoiceNumber": {"type": "string"}, "debtorCustomerNumber": {"type": "string"}, "debtorName": {"type": "string"}, "debtorId": {"type": "string"}, "currency": {"type": "string"}, "exchangeRate": {"type": "number", "format": "float", "example": 0.0}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "PaymentTransactionSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "paymentBatchId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "matchedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "matchedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "linksAmountTotal": {"type": "number", "format": "decimal"}, "linksAmountTotalLocale": {"type": "number", "format": "decimal"}, "returnAmountTotal": {"type": "number", "format": "decimal"}, "returnAmountTotalLocale": {"type": "number", "format": "decimal"}, "writeOffAmountTotal": {"type": "number", "format": "decimal"}, "writeOffAmountTotalLocale": {"type": "number", "format": "decimal"}, "revaluationsAmountTotal": {"type": "number", "format": "decimal"}, "revaluationsAmountTotalLocale": {"type": "number", "format": "decimal"}, "revenueAmountTotal": {"type": "number", "format": "decimal"}, "revenueAmountTotalLocale": {"type": "number", "format": "decimal"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "ValidatePaymentReferenceRequest": {"required": ["paymentReference"], "properties": {"paymentReference": {"type": "string"}}, "type": "object"}, "PaymentTransactionLinkSearch": {"properties": {"invoiceId": {"type": "string"}, "debitInvoiceId": {"type": "string"}, "creditInvoiceId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "collectionBatchErrandNumber": {"type": "integer", "format": "int", "description": "Deprecated, use collectionBatchNumber", "example": 0}, "collectionBatchNumber": {"type": "integer", "format": "int", "example": 0}, "collectionBatchId": {"type": "string"}, "clientAccountId": {"type": "string"}, "businessLoanId": {"type": "string"}, "businessLoanNumber": {"type": "integer", "format": "int", "example": 0}, "invoiceFinancialEventId": {"type": "string"}, "status": {"type": "string"}, "invoiceNumber": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "createdVia": {"type": "string"}}, "type": "object"}, "PaymentTransactionFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "paymentTransactionLinkId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionReturnId": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PaymentTransactionFinancialEvent": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "string"}, "paymentTransactionLinkId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionReturnId": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceId": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "balance": {"type": "number", "format": "decimal"}, "balanceLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "UpdateUnplacedPayment": {"properties": {"visibleForClient": {"type": "boolean", "example": false}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "sourceInvoiceId": {"type": "string", "description": "Only null clears the invoice link; any other value must equal the current one."}}, "type": "object"}, "UnplacedPayment": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "sourceInvoiceId": {"type": "string"}, "paymentId": {"type": "string"}, "transactionReportId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentAccountId": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "bookkeepingAccountIdUnplaced": {"type": "string"}, "bookkeepingAccountNumberUnplaced": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "status": {"type": "string"}, "paymentType": {"type": "string"}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}, "currency": {"type": "string"}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "revenueBalance": {"type": "number", "format": "float", "example": 0.0}, "revenueBalanceLocale": {"type": "number", "format": "float", "example": 0.0}, "writeOffAmountTotal": {"type": "number", "format": "float", "example": 0.0}, "writeOffAmountTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "dcaPayment": {"type": "boolean", "example": false}, "senderAmount": {"type": "number", "format": "decimal"}, "senderCurrency": {"type": "string"}, "senderExchangeRate": {"type": "number", "format": "float", "example": 0.0}, "references": {"type": "array", "items": {"$ref": "#/definitions/UnplacedTransactionReference"}}, "descriptions": {"type": "array", "items": {"$ref": "#/definitions/UnplacedTransactionReference"}}, "sender": {"$ref": "#/definitions/SenderUnplacedPayment"}, "matching": {"$ref": "#/definitions/MatchingUnplacedPayment"}, "returnedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "returnedBookkeepingDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "returnedBy": {"type": "string"}, "clientStatus": {"type": "string"}, "visibleForClient": {"type": "boolean", "example": false}, "notesCount": {"type": "integer", "format": "int", "example": 0}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "aiResultRank": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "UnplacedTransactionReference": {"properties": {"value": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "SenderUnplacedPayment": {"properties": {"identificationNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "address": {"$ref": "#/definitions/SenderAddressUnplacedPayment"}}, "type": "object"}, "SenderAddressUnplacedPayment": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "MatchingUnplacedPayment": {"properties": {"status": {"type": "string"}, "reason": {"type": "string"}, "rate": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "UnplacedPaymentCategory": {"properties": {"categoryCode": {"type": "string"}, "count": {"type": "integer", "format": "int", "example": 0}, "suggestions": {"type": "integer", "format": "int", "example": 0}, "unplacedPaymentIds": {"type": "array", "items": {"type": "string"}}, "paymentTransactionIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "UnplacedPaymentSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "sourceInvoiceId": {"type": "string"}, "paymentId": {"type": "string"}, "transactionReportId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "bookkeepingAccountId": {"type": "string"}, "bookkeepingAccountNumber": {"type": "string"}, "bookkeepingAccountIdUnplaced": {"type": "string"}, "bookkeepingAccountNumberUnplaced": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentDate": {"type": "string"}, "status": {"type": "string"}, "sender.identificationNumber": {"type": "string"}, "sender.accountNumber": {"type": "string"}, "sender.address.name": {"type": "string"}, "total": {"type": "string"}, "totalLocale": {"type": "string"}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "revenueBalance": {"type": "number", "format": "float", "example": 0.0}, "revenueBalanceLocale": {"type": "number", "format": "float", "example": 0.0}, "clientStatus": {"type": "string"}, "visibleForClient": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "currency": {"type": "string"}, "paymentType": {"type": "string"}, "categoryCode": {"type": "string"}}, "type": "object"}, "UnplacedPaymentLink": {"required": ["link"], "properties": {"dcaPayment": {"type": "boolean", "example": false}, "link": {"type": "array", "items": {"$ref": "#/definitions/UnplacedPaymentLinkData"}}, "usePaymentDate": {"type": "boolean", "example": false}, "aiSuggestionUsed": {"type": "boolean", "example": false}}, "type": "object"}, "UnplacedPaymentLinkData": {"required": ["amount", "id", "type"], "properties": {"id": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountDebtCurrency": {"type": "number", "format": "decimal"}, "type": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT", "CLIENT_ACCOUNT_PAYMENT", "COLLECTION_BATCH_PAYMENT", "ENFORCEMENT_PAYMENT", "BUSINESS_LOAN_PAYMENT"]}, "description": {"type": "string"}, "amountCapital": {"type": "number", "format": "decimal"}, "amountCapitalLocale": {"type": "number", "format": "decimal"}, "amountCapitalDebtCurrency": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountInterestLocale": {"type": "number", "format": "decimal"}, "amountInterestDebtCurrency": {"type": "number", "format": "decimal"}, "amountReminder": {"type": "number", "format": "decimal"}, "amountReminderLocale": {"type": "number", "format": "decimal"}, "amountReminderDebtCurrency": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountFeeLocale": {"type": "number", "format": "decimal"}, "amountFeeDebtCurrency": {"type": "number", "format": "decimal"}}, "type": "object"}, "UnplacedPaymentReturn": {"required": ["payoutDate", "toAccountUseChannel"], "properties": {"payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reference": {"type": "string"}, "fromPaymentAccountId": {"type": "string"}, "toPhoneNumber": {"type": "string"}, "toIdentificationNumber": {"type": "string"}, "toAccountNumber": {"type": "string"}, "toAccountIBAN": {"type": "string"}, "toAccountBIC": {"type": "string"}, "toAccountUseChannel": {"type": "string"}, "toName": {"type": "string"}, "toName2": {"type": "string"}, "toAddress": {"type": "string"}, "toAddress2": {"type": "string"}, "toZip": {"type": "string"}, "toCity": {"type": "string"}, "toCountryCode": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "UnplacedPaymentMarkAsIncome": {"required": ["accountNumber"], "properties": {"accountNumber": {"type": "string"}, "accountId": {"type": "string"}, "clientId": {"type": "string"}, "amountRevenue": {"type": "number", "format": "decimal"}}, "type": "object"}, "UnplacedPaymentWriteOff": {"properties": {"accountNumber": {"type": "string"}, "amountWriteoff": {"type": "number", "format": "decimal"}, "accountId": {"type": "string"}, "usePaymentDate": {"type": "boolean", "description": "Book the write-off on the payment date instead of today.", "example": false}}, "type": "object"}, "ClientUnplacedPayment": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "status": {"type": "string"}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}, "clientStatus": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "debtorCustomerNumber": {"type": "string"}, "hasNotes": {"type": "boolean", "example": false}, "paymentAccountNumber": {"type": "string"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "currency": {"type": "string"}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "references": {"type": "array", "items": {"$ref": "#/definitions/TransactionReferenceUnplacedClient"}}, "descriptions": {"type": "array", "items": {"$ref": "#/definitions/TransactionReferenceUnplacedClient"}}, "sender": {"$ref": "#/definitions/SenderUnplacedPaymentClient"}, "links": {"type": "array", "items": {"$ref": "#/definitions/PaymentTransactionLinkUnplacedClient"}}, "historyStatus": {"type": "string"}, "subTransactionCount": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "TransactionReferenceUnplacedClient": {"properties": {"value": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "SenderUnplacedPaymentClient": {"properties": {"identificationNumber": {"type": "string"}, "accountNumber": {"type": "string"}, "address": {"$ref": "#/definitions/SenderAddressUnplacedPaymentClient"}}, "type": "object"}, "SenderAddressUnplacedPaymentClient": {"properties": {"name": {"type": "string"}, "name2": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}}, "type": "object"}, "PaymentTransactionLinkUnplacedClient": {"properties": {"invoiceId": {"type": "string"}, "invoiceFinancialEventId": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "type": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "UnplacedPaymentSubTransactionClient": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "customerId": {"type": "string"}, "customerName": {"type": "string"}, "customerNumber": {"type": "string"}, "date": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClientUnplacedPaymentReturnAccount": {"properties": {"resolved": {"type": "boolean", "example": false}, "source": {"type": "string"}, "useChannel": {"type": "string"}, "receiverNameRequired": {"type": "boolean", "example": false}}, "type": "object"}, "ClientUnplacedPaymentReturn": {"properties": {"payoutDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "reference": {"type": "string"}, "toAccountUseChannel": {"type": "string"}, "toAccountNumber": {"type": "string"}, "toAccountIBAN": {"type": "string"}, "toAccountBIC": {"type": "string"}, "toName": {"type": "string"}, "proofOfAccountNoteId": {"type": "string"}}, "type": "object"}, "UnplacedPaymentSearchClient": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "sender.identificationNumber": {"type": "string"}, "sender.accountNumber": {"type": "string"}, "sender.addressName": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "paymentDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "clientStatus": {"type": "string"}, "matchingStatus": {"type": "string"}, "balance": {"type": "string"}, "historyStatus": {"type": "string"}}, "type": "object"}, "UnplacedPaymentLinkClient": {"required": ["amount", "invoiceId"], "properties": {"invoiceId": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "PaymentTransactionLinkClientFull": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "status": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "invoiceFinancialEventId": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "amountTolerance": {"type": "number", "format": "decimal"}, "amountToleranceLocale": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}, "amountVatLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "UnplacedPaymentTransferClient": {"required": ["unplacedPaymentId"], "properties": {"unplacedPaymentId": {"type": "string"}, "reference": {"type": "string"}}, "type": "object"}, "PayoutAccountPut": {"properties": {"currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "bankName": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "useChannel": {"type": "string", "example": "BANKGIRO", "enum": ["BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "clientId": {"type": "string"}, "isBlocked": {"type": "boolean", "example": false}, "clearAccount": {"type": "boolean", "example": false}}, "type": "object"}, "Payout Accounts": {"properties": {"id": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "bankName": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "useChannel": {"type": "string", "example": "BANKGIRO", "enum": ["BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "enabled": {"type": "boolean", "example": false}, "clientId": {"type": "string"}, "clientPayoutAccountId": {"type": "string"}, "automatic": {"type": "boolean", "example": false}, "isBlocked": {"type": "boolean", "example": false}}, "type": "object"}, "PayoutAccountRequestCreated": {"properties": {"internalRequestId": {"type": "string"}}, "type": "object"}, "PayoutAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}}, "type": "object"}, "PayoutBatch": {"properties": {"id": {"type": "string"}, "payoutDate": {"type": "string"}, "payoutBookkeepingDate": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "authorizedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "authorizedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "exportedBy": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}, "amountBalanceOut": {"type": "number", "format": "float", "example": 0.0}, "amountBalanceOutLocale": {"type": "number", "format": "float", "example": 0.0}, "amountTotal": {"type": "number", "format": "float", "example": 0.0}, "amountTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "documents": {"type": "array", "items": {"$ref": "#/definitions/payoutBatchDocument"}}, "channel": {"type": "string"}}, "type": "object"}, "payoutBatchDocument": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "PayoutBatchBookkeep": {"required": ["payoutBookkeepingDate"], "properties": {"payoutBookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PayoutBatchSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "payoutDate": {"type": "string"}, "payoutBookkeepingDate": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "authorizedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "authorizedBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "exportedBy": {"type": "string"}, "amountBalanceOut": {"type": "number", "format": "float", "example": 0.0}, "amountBalanceOutLocale": {"type": "number", "format": "float", "example": 0.0}, "amountTotal": {"type": "number", "format": "float", "example": 0.0}, "amountTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "documents": {"type": "array", "items": {"$ref": "#/definitions/payoutBatchDocument"}}, "channel": {"type": "string"}}, "type": "object"}, "PayoutBatchGenerate": {"properties": {"instanceProviderId": {"type": "string"}, "regenerate": {"type": "boolean", "default": false, "example": false}, "onlyClientAccountIds": {"type": "array", "description": "Pay out only these client accounts. Every other account is left for the next run, and no payment returns go out in this run.", "items": {"type": "string"}}}, "type": "object"}, "Payout": {"properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "currency": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountCurrency": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "payoutDate": {"type": "string"}, "payoutAccount": {"type": "string"}, "payoutAccountChannel": {"type": "string"}, "payoutAccountBankGiro": {"type": "string"}, "payoutAccountPlusGiro": {"type": "string"}, "payoutAccountAccountNumber": {"type": "string"}, "payoutAccountIban": {"type": "string"}, "payoutAccountBic": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "exportedChannel": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}, "channel": {"type": "string"}, "clientPayoutAccountBlockedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "clientPayoutAccountBlockedById": {"type": "string"}}, "type": "object"}, "BlockedPayoutSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "currency": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountCurrency": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "payoutDate": {"type": "string"}, "payoutAccount": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "exportedChannel": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "channel": {"type": "string"}, "clientPayoutAccountBlockedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "clientPayoutAccountBlockedById": {"type": "string"}}, "type": "object"}, "Client Debtor Payout Account Put": {"properties": {"debtorId": {"type": "string"}, "payoutAccountId": {"type": "string"}, "payoutAccount": {"$ref": "#/definitions/clientDebtorPayoutAccount"}, "latestInternalRequest": {"$ref": "#/definitions/InternalRequest"}, "clearAccount": {"type": "boolean", "example": false}}, "type": "object"}, "Client Debtor Payout Account": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "payoutAccountId": {"type": "string"}, "payoutAccount": {"$ref": "#/definitions/clientDebtorPayoutAccount"}, "latestInternalRequest": {"$ref": "#/definitions/InternalRequest"}}, "type": "object"}, "DebtorPayoutAccountPut": {"properties": {"currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "bankName": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "useChannel": {"type": "string", "example": "BANKGIRO", "enum": ["BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "payoutAccountId": {"type": "string"}, "clearAccount": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentTransactionReturnAccount": {"properties": {"id": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "bankName": {"type": "string"}, "bankGiro": {"type": "string"}, "plusGiro": {"type": "string"}, "accountNumber": {"type": "string"}, "iban": {"type": "string"}, "bic": {"type": "string"}, "useChannel": {"type": "string", "example": "BANKGIRO", "enum": ["BANKGIRO", "PLUSGIRO", "ACCOUNT_NUMBER", "IBAN_BIC", "CASH", "SWISH"]}, "enabled": {"type": "boolean", "example": false}, "payoutAccountId": {"type": "string"}}, "type": "object"}, "DebtorPayoutAccountRequestCreated": {"properties": {"internalRequestId": {"type": "string"}}, "type": "object"}, "DebtorPayoutAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}}, "type": "object"}, "PayoutFile": {"properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "documentId": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "PayoutFileSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "documentId": {"type": "string"}, "status": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "PendingPayoutSettlement": {"properties": {"clientAccountId": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "transactionCount": {"type": "integer", "format": "int", "description": "Null when tooManyToPreview.", "example": 0}, "lastIncludedTransactionId": {"type": "string", "description": "The newest transaction this settlement includes, read when the preview was taken. The payout run takes its own, so a transaction created after this one will be settled by the run without appearing here."}, "tooManyToPreview": {"type": "boolean", "description": "True when the account has more unsettled transactions than the preview lists. Sections and transactionCount are then null; the settlement note still lists them all once the payout is booked.", "example": false}, "sections": {"type": "object", "description": "Raw because its shape depends on the product. Settlement sections for the product: invoices/recourse/other for invoice factoring sell, payments/fees/other for invoice service, each with its totals. Null for products without a settlement breakdown."}}, "type": "object"}, "PendingPayoutHoldRequest": {"properties": {"reason": {"type": "string", "description": "Why the payouts are on hold. Optional."}}, "type": "object"}, "PendingPayoutHold": {"properties": {"clientAccountId": {"type": "string"}, "reason": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "releasedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "releasedById": {"type": "string"}}, "type": "object"}, "PendingPayoutHoldCreated": {"properties": {"clientAccountId": {"type": "string"}, "reason": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "releasedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "releasedById": {"type": "string"}, "removedPayoutIds": {"type": "array", "description": "Payouts Generate had already created for the account, removed by the hold as they were not yet booked.", "items": {"type": "string"}}, "bookedPayoutIds": {"type": "array", "description": "Payouts of the account already booked. The hold cannot stop them.", "items": {"type": "string"}}}, "type": "object"}, "PendingPayout": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "serviceProviderCode": {"type": "string"}, "balance": {"type": "number", "format": "float", "example": 0.0}, "balanceLocale": {"type": "number", "format": "float", "example": 0.0}, "reservedAmount": {"type": "number", "format": "float", "example": 0.0}, "disposablePayoutAmount": {"type": "number", "format": "float", "example": 0.0}, "disposablePayoutAmountLocale": {"type": "number", "format": "float", "example": 0.0}, "pendingTriggeredPayout": {"type": "boolean", "example": false}, "lastTransactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PendingPayoutSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string", "example": "SEK", "enum": ["SEK", "EUR", "USD", "NOK", "DKK", "GBP", "CHF", "PLN"]}, "serviceProviderCode": {"type": "string"}, "balance": {"type": "string"}, "disposablePayoutAmount": {"type": "string"}, "lastTransactionDate": {"type": "string"}}, "type": "object"}, "PendingPayoutBlockersRequest": {"required": ["clientAccountIds"], "properties": {"clientAccountIds": {"type": "array", "description": "The client accounts to explain, normally the ids on the current page.", "items": {"type": "string"}}}, "type": "object"}, "PendingPayoutBlockers": {"properties": {"facts": {"type": "array", "items": {"$ref": "#/definitions/PendingPayoutFacts"}}}, "type": "object"}, "PendingPayoutFacts": {"properties": {"clientAccountId": {"type": "string"}, "status": {"type": "string", "description": "PAYABLE, HELD (see reasons), NOTHING_TO_PAY for an account with nothing to pay out, which carries no reason, or ON_HOLD for an account whose payouts are on hold until released (see hold)."}, "reasons": {"type": "array", "description": "Why the account will not be paid out, empty unless the status is HELD. Codes: NO_PAYOUT_ACCOUNT, PAYOUT_ACCOUNT_BLOCKED, NOT_AUTOMATIC, CLIENT_BALANCE_NOT_POSITIVE, PAYOUT_IN_PROGRESS, NO_SENDING_ACCOUNT, AMBIGUOUS_SENDING_ACCOUNT, NETTED_TO_ZERO, PAYOUT_ACCOUNT_CHANGE_PENDING.", "items": {"type": "string"}}, "payoutAmount": {"type": "number", "format": "float", "description": "What the payout run would pay out, which is not always the disposablePayoutAmount of the account: for a business loan the run adds the loan capital to the account balance, so a loan about to be disbursed has a negative account balance and a positive payout amount, and when the client balances out payouts the run subtracts its negative accounts (see balancedOutAmount). Show this one wherever the status is shown.", "example": 0.0}, "balancedOutAmount": {"type": "number", "format": "float", "description": "The negative balances of the client's other fund accounts (Invoice service and Invoice factoring sell, same currency and service provider) the run subtracts from this payout when the client balances out payouts. 0 when nothing is balanced out.", "example": 0.0}, "payoutDestination": {"description": "The payout account the money would be sent to, or null when the client has none usable in that currency.", "allOf": [{"$ref": "#/definitions/PendingPayoutDestination"}]}, "hold": {"description": "The active hold, or null when not on hold.", "allOf": [{"$ref": "#/definitions/PendingPayoutHoldFacts"}]}}, "type": "object"}, "PendingPayoutDestination": {"properties": {"channel": {"type": "string"}, "number": {"type": "string"}, "bankName": {"type": "string"}}, "type": "object"}, "PendingPayoutHoldFacts": {"properties": {"reason": {"type": "string", "description": "Null for anyone but a system user."}, "heldDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "heldByName": {"type": "string", "description": "Null for anyone but a system user."}}, "type": "object"}, "PendingPayoutSummary": {"properties": {"accountCount": {"type": "integer", "format": "int", "example": 0}, "blockedAccountCount": {"type": "integer", "format": "int", "description": "How many accounts have something to pay out and will not be paid as things stand. Accounts with nothing to pay are not counted.", "example": 0}, "payableAccountCount": {"type": "integer", "format": "int", "example": 0}, "nothingToPayAccountCount": {"type": "integer", "format": "int", "example": 0}, "onHoldAccountCount": {"type": "integer", "format": "int", "example": 0}, "statusCounts": {"description": "Accounts per status and per reason, keyed by the same codes the status query parameter takes.", "allOf": [{"$ref": "#/definitions/PendingPayoutStatusCounts"}]}, "payable": {"type": "array", "description": "What the next run would pay out, per currency.", "items": {"$ref": "#/definitions/PendingPayoutSummaryPayable"}}, "currencies": {"type": "array", "items": {"$ref": "#/definitions/PendingPayoutSummaryCurrency"}}}, "type": "object"}, "PendingPayoutStatusCounts": {"properties": {"*": {"type": "object", "additionalProperties": {"type": "integer", "format": "int", "example": 0}}}, "type": "object"}, "PendingPayoutSummaryPayable": {"properties": {"currency": {"type": "string"}, "accountCount": {"type": "integer", "format": "int", "example": 0}, "amount": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PendingPayoutSummaryCurrency": {"properties": {"currency": {"type": "string"}, "accountCount": {"type": "integer", "format": "int", "example": 0}, "disposablePayoutAmount": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PayoutTransaction": {"required": ["balanceOutTransactions"], "properties": {"id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "currency": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountTransactionId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentTransactionReturnId": {"type": "string"}, "payoutDate": {"type": "string"}, "payoutBookkeepingDate": {"type": "string"}, "payoutAccount": {"type": "string"}, "payoutAccountChannel": {"type": "string"}, "payoutAccountBankGiro": {"type": "string"}, "payoutAccountPlusGiro": {"type": "string"}, "payoutAccountAccountNumber": {"type": "string"}, "payoutAccountIban": {"type": "string"}, "payoutAccountBic": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "exportedChannel": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "exportedBy": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}, "countBalanceOut": {"type": "integer", "format": "int", "example": 0}, "amountBalanceOut": {"type": "number", "format": "float", "example": 0.0}, "amountBalanceOutLocale": {"type": "number", "format": "float", "example": 0.0}, "amountTotal": {"type": "number", "format": "float", "example": 0.0}, "amountTotalLocale": {"type": "number", "format": "float", "example": 0.0}, "channel": {"type": "string"}, "totalBalanceLocaleOtherCurrencies": {"type": "number", "format": "float", "example": 0.0}, "balanceOutTransactions": {"type": "array", "items": {"$ref": "#/definitions/invoiceArticleTransaction"}}, "description": {"type": "string"}, "express": {"type": "boolean", "example": false}}, "type": "object"}, "invoiceArticleTransaction": {"properties": {"clientAccountId": {"type": "string"}, "clientAccountProductCode": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PayoutSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "payoutBatchId": {"type": "string"}, "currency": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "clientAccountId": {"type": "string"}, "clientAccountTransactionId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentTransactionReturnId": {"type": "string"}, "payoutDate": {"type": "string"}, "payoutBookkeepingDate": {"type": "string"}, "payoutAccount": {"type": "string"}, "status": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "exportedChannel": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedBy": {"type": "string"}, "exportedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "exportedBy": {"type": "string"}, "channel": {"type": "string"}, "description": {"type": "string"}, "express": {"type": "boolean", "example": false}}, "type": "object"}, "DeveloperPortalTenant": {"properties": {"name": {"type": "string", "description": "Tenant display name."}, "homepage": {"type": "string"}, "helpdeskTermsUrl": {"type": "string"}, "supportEmail": {"type": "string"}, "supportPhone": {"type": "string"}, "logotypeUrl": {"type": "string", "description": "Same-origin path of the client-portal logotype, or null."}, "faviconUrl": {"type": "string", "description": "Same-origin path of the client-portal favicon, or null."}, "colors": {"$ref": "#/definitions/DeveloperPortalTenantColors"}}, "type": "object"}, "DeveloperPortalTenantColors": {"properties": {"primaryBrandColor": {"type": "string"}, "secondaryBrandColor": {"type": "string"}, "buttonColor": {"type": "string"}, "pageBackgroundColor": {"type": "string"}, "menuBackgroundColor": {"type": "string"}, "menuTextColor": {"type": "string"}, "menuIconBackgroundColor": {"type": "string"}}, "type": "object"}, "InstanceProviderPut": {"properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "homepage": {"type": "string"}, "vatNumber": {"type": "string"}, "locale": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "authClientId": {"type": "string"}, "authDomain": {"type": "string"}, "authAudience": {"type": "string"}, "authRealm": {"type": "string"}, "authRealmAui": {"type": "string"}, "urlDomain": {"type": "string"}, "urlAlias": {"type": "string"}, "helpdeskTermsUrl": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/instanceProviderContactInformation"}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "brandInformation": {"$ref": "#/definitions/brandInformation"}, "fileInformation": {"$ref": "#/definitions/fileInformation"}, "serviceProviders": {"type": "array", "items": {"$ref": "#/definitions/ServiceProviderInstanceProvider"}}, "webSocketKey": {"type": "string"}, "emailSender": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailSenderName": {"type": "string"}, "emailSenderIpPoolName": {"type": "string"}, "clientAnalyticsCode": {"type": "string"}, "debtorAnalyticsCode": {"type": "string"}, "agentCode": {"type": "string"}, "urlDebtorPortal": {"type": "string"}, "bankCustomerId": {"type": "string"}, "bankDivisionId": {"type": "string"}, "enforcementTolerance": {"type": "number", "format": "float", "example": 0.0}, "collectionMergingStrategy": {"type": "string"}, "enforcementMergingStrategy": {"type": "string"}}, "type": "object"}, "instanceProviderContactInformation": {"required": ["email", "phone"], "properties": {"name": {"type": "string", "description": "The name of the person that should be contact person for container when we contact them."}, "email": {"type": "string", "description": "The e-mail of the person that should contact person for container when we contact them."}, "phone": {"type": "string", "description": "The phone of the contact person when we contact them.\t"}, "cellPhone": {"type": "string", "description": "The cell phone of the contact when we contact them.\t"}, "documentEmail": {"type": "string", "format": "email", "example": "email@domain.com"}, "documentPhone": {"type": "string"}}, "type": "object"}, "brandInformation": {"required": ["clientPortalButtonColor", "clientPortalMenuBackgroundColor", "clientPortalMenuIconBackgroundColor", "clientPortalMenuTextColor", "clientPortalPrimaryBrandColor", "clientPortalSecondaryBrandColor", "debtorPortalButtonColor", "debtorPortalPrimaryBrandColor", "debtorPortalSecondaryBrandColor", "emailButtonColor", "emailPrimaryBrandColor", "emailSecondaryBrandColor"], "properties": {"clientPortalPageBackgroundColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "clientPortalMenuBackgroundColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "clientPortalMenuTextColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "clientPortalPrimaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "clientPortalSecondaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "clientPortalMenuIconBackgroundColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "clientPortalButtonColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "debtorPortalButtonColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "debtorPortalPrimaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "debtorPortalSecondaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "emailPrimaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "emailSecondaryBrandColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}, "emailButtonColor": {"type": "string", "description": "Hex Color Code: #NNNNNN"}}, "type": "object"}, "fileInformation": {"properties": {"clientPortalLogotypeFileName": {"type": "string"}, "clientPortalLogotypeDocumentId": {"type": "string"}, "clientPortalFaviconFileName": {"type": "string"}, "clientPortalFaviconDocumentId": {"type": "string"}, "debtorPortalLogotypeFileName": {"type": "string"}, "debtorPortalLogotypeDocumentId": {"type": "string"}, "debtorPortalFaviconFileName": {"type": "string"}, "debtorPortalFaviconDocumentId": {"type": "string"}, "debtorPortalBackgroundFileName": {"type": "string"}, "debtorPortalBackgroundDocumentId": {"type": "string"}, "debtorPortalLoginBackgroundFileName": {"type": "string"}, "debtorPortalLoginBackgroundDocumentId": {"type": "string"}, "adminLogotypeFileName": {"type": "string"}, "adminLogotypeDocumentId": {"type": "string"}, "adminFaviconFileName": {"type": "string"}, "adminFaviconDocumentId": {"type": "string"}, "pdfLogotypeFileName": {"type": "string"}, "pdfLogotypeDocumentId": {"type": "string"}, "emailLogotypeFileName": {"type": "string"}, "emailLogotypeDocumentId": {"type": "string"}, "partPaymentPlanSekkiFileName": {"type": "string"}, "partPaymentPlanSekkiDocumentId": {"type": "string"}, "partPaymentPlanTermsFileName": {"type": "string"}, "partPaymentPlanTermsDocumentId": {"type": "string"}}, "type": "object"}, "ServiceProviderInstanceProvider": {"properties": {"code": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "localeId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "factoringRefinancing": {"type": "boolean", "example": false}, "factoringRefinancingRecourseDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "InstanceProvider": {"properties": {"id": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "homepage": {"type": "string"}, "vatNumber": {"type": "string"}, "locale": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "authClientId": {"type": "string"}, "authDomain": {"type": "string"}, "authAudience": {"type": "string"}, "authRealm": {"type": "string"}, "authRealmAui": {"type": "string"}, "urlDomain": {"type": "string"}, "urlAlias": {"type": "string"}, "helpdeskTermsUrl": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/instanceProviderContactInformation"}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "brandInformation": {"$ref": "#/definitions/brandInformation"}, "fileInformation": {"$ref": "#/definitions/fileInformation"}, "serviceProviders": {"type": "array", "items": {"$ref": "#/definitions/ServiceProviderInstanceProvider"}}, "webSocketKey": {"type": "string"}, "emailSender": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailSenderName": {"type": "string"}, "emailSenderIpPoolName": {"type": "string"}, "clientAnalyticsCode": {"type": "string"}, "debtorAnalyticsCode": {"type": "string"}, "agentCode": {"type": "string"}, "urlDebtorPortal": {"type": "string"}, "bankCustomerId": {"type": "string"}, "bankDivisionId": {"type": "string"}, "enforcementTolerance": {"type": "number", "format": "float", "example": 0.0}, "collectionMergingStrategy": {"type": "string"}, "enforcementMergingStrategy": {"type": "string"}, "webSocketUrl": {"type": "string", "readOnly": true}}, "type": "object"}, "InstanceProviderPost": {"properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "homepage": {"type": "string"}, "vatNumber": {"type": "string"}, "locale": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "authClientId": {"type": "string"}, "authDomain": {"type": "string"}, "authAudience": {"type": "string"}, "authRealm": {"type": "string"}, "authRealmAui": {"type": "string"}, "urlDomain": {"type": "string"}, "urlAlias": {"type": "string"}, "helpdeskTermsUrl": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/instanceProviderContactInformation"}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "brandInformation": {"$ref": "#/definitions/brandInformation"}, "fileInformation": {"$ref": "#/definitions/fileInformation"}, "serviceProviders": {"type": "array", "items": {"$ref": "#/definitions/ServiceProviderInstanceProvider"}}, "webSocketKey": {"type": "string"}, "emailSender": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailSenderName": {"type": "string"}, "emailSenderIpPoolName": {"type": "string"}, "clientAnalyticsCode": {"type": "string"}, "debtorAnalyticsCode": {"type": "string"}, "agentCode": {"type": "string"}, "urlDebtorPortal": {"type": "string"}, "bankCustomerId": {"type": "string"}, "bankDivisionId": {"type": "string"}, "enforcementTolerance": {"type": "number", "format": "float", "example": 0.0}, "collectionMergingStrategy": {"type": "string"}, "enforcementMergingStrategy": {"type": "string"}}, "type": "object"}, "InstanceProviderSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "homepage": {"type": "string"}, "vatNumber": {"type": "string"}, "locale": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "authClientId": {"type": "string"}, "authDomain": {"type": "string"}, "authAudience": {"type": "string"}, "authRealm": {"type": "string"}, "authRealmAui": {"type": "string"}, "urlDomain": {"type": "string"}, "urlAlias": {"type": "string"}, "helpdeskTermsUrl": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/instanceProviderContactInformation"}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "webSocketKey": {"type": "string"}, "emailSender": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailSenderName": {"type": "string"}, "emailSenderIpPoolName": {"type": "string"}, "clientAnalyticsCode": {"type": "string"}, "debtorAnalyticsCode": {"type": "string"}, "agentCode": {"type": "string"}, "urlDebtorPortal": {"type": "string"}, "bankCustomerId": {"type": "string"}, "bankDivisionId": {"type": "string"}, "enforcementTolerance": {"type": "number", "format": "float", "example": 0.0}, "collectionMergingStrategy": {"type": "string"}, "enforcementMergingStrategy": {"type": "string"}}, "type": "object"}, "InstanceProviderConfigurationCopyRequest": {"required": ["sourceInstanceProviderId"], "properties": {"sourceInstanceProviderId": {"type": "string"}}, "type": "object"}, "InstanceProviderConfigurationCopy": {"properties": {"sourceInstanceProviderId": {"type": "string"}, "serviceProvidersCopied": {"type": "integer", "format": "int", "example": 0}, "serviceProvidersSkipped": {"type": "integer", "format": "int", "example": 0}, "paymentAccountsCopied": {"type": "integer", "format": "int", "example": 0}, "paymentAccountsSkipped": {"type": "integer", "format": "int", "example": 0}, "systemBankAccountsCopied": {"type": "integer", "format": "int", "example": 0}, "systemBankAccountsSkipped": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "InstanceProviderDefault": {"properties": {"id": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "homepage": {"type": "string"}, "vatNumber": {"type": "string"}, "locale": {"type": "string"}, "approvedCompanyTax": {"type": "boolean", "example": false}, "authClientId": {"type": "string"}, "authDomain": {"type": "string"}, "authAudience": {"type": "string"}, "authRealm": {"type": "string"}, "authRealmAui": {"type": "string"}, "urlDomain": {"type": "string"}, "urlAlias": {"type": "string"}, "helpdeskTermsUrl": {"type": "string"}, "contactInformation": {"$ref": "#/definitions/instanceProviderContactInformation"}, "addressInformation": {"$ref": "#/definitions/addressInformation"}, "brandInformation": {"$ref": "#/definitions/brandInformation"}, "fileInformation": {"$ref": "#/definitions/fileInformation"}, "webSocketKey": {"type": "string"}, "emailSender": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailSenderName": {"type": "string"}, "emailSenderIpPoolName": {"type": "string"}, "clientAnalyticsCode": {"type": "string"}, "debtorAnalyticsCode": {"type": "string"}, "agentCode": {"type": "string"}, "urlDebtorPortal": {"type": "string"}, "bankCustomerId": {"type": "string"}, "bankDivisionId": {"type": "string"}, "enforcementTolerance": {"type": "number", "format": "float", "example": 0.0}, "collectionMergingStrategy": {"type": "string"}, "enforcementMergingStrategy": {"type": "string"}, "webSocketUrl": {"type": "string", "readOnly": true}}, "type": "object"}, "InstanceProviderCreditCheckSettingsPut": {"properties": {"newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "InstanceProviderCreditCheckSettings": {"properties": {"id": {"type": "string"}, "instanceProviderId": {"type": "string"}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "InstanceProviderCreditCheckSettingsPost": {"required": ["existingSystemDebtors", "instanceProviderId", "newSystemDebtors"], "properties": {"instanceProviderId": {"type": "string"}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "InstanceProviderCreditCheckSettingsSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "instanceProviderId": {"type": "string"}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ServiceProviderPut": {"properties": {"code": {"type": "string", "example": "BANKID", "enum": ["BANKID", "PAYMENT_REFERENCE", "SWISH", "DUN_BRADSTREET", "QUIDDLY", "ATRADIUS", "INEXCHANGE", "CAPORUM", "STRAWBAY", "INTRUM_SE", "INTRUM_NO", "EXTERNAL_COLLECTION"]}, "type": {"type": "string", "example": "COLLECTION", "enum": ["COLLECTION", "INVOICE_FACTORING_SELL", "INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "BUSINESS_LOAN", "LETTER", "EMAIL", "SMS", "DIGITAL_MAILBOX", "ELECTRONIC_INVOICE", "LOGIN", "LOGIN_DEBTOR", "PERSON_CREDIT_DATA", "DEBT_COLLECTION", "SIGNATURES", "PERSON_INFORMATION", "CREDIT_DATA", "CREDIT_INSURANCE", "INSURANCE_DATA", "ENFORCEMENT", "DIRECT_PAYMENT"]}, "topic": {"type": "string", "example": "PRODUCT", "enum": ["PRODUCT", "DISTRIBUTION", "AUTHENTICATION", "COMPLIANCE", "DEBT_COLLECTION", "PAYMENT"]}, "integrationChannel": {"type": "string", "example": "EXTERNAL_API", "enum": ["EXTERNAL_API", "INTERNAL_API"]}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "localeId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ServiceProvider": {"properties": {"id": {"type": "string"}, "code": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "integrationChannel": {"type": "string"}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "localeId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "factoringRefinancing": {"type": "boolean", "example": false}, "factoringRefinancingRecourseDays": {"type": "integer", "format": "int", "example": 0}, "legalText": {"type": "array", "items": {"$ref": "#/definitions/serviceProviderLegalText"}}}, "type": "object"}, "serviceProviderLegalText": {"properties": {"locale": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ServiceProviderPost": {"required": ["code", "identificationNumber", "integrationChannel", "localeId", "name", "topic", "type"], "properties": {"code": {"type": "string", "example": "BANKID", "enum": ["BANKID", "PAYMENT_REFERENCE", "SWISH", "DUN_BRADSTREET", "QUIDDLY", "ATRADIUS", "INEXCHANGE", "CAPORUM", "STRAWBAY", "INTRUM_SE", "INTRUM_NO", "EXTERNAL_COLLECTION"]}, "type": {"type": "string", "example": "COLLECTION", "enum": ["COLLECTION", "INVOICE_FACTORING_SELL", "INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "BUSINESS_LOAN", "LETTER", "EMAIL", "SMS", "DIGITAL_MAILBOX", "ELECTRONIC_INVOICE", "LOGIN", "LOGIN_DEBTOR", "PERSON_CREDIT_DATA", "DEBT_COLLECTION", "SIGNATURES", "PERSON_INFORMATION", "CREDIT_DATA", "CREDIT_INSURANCE", "INSURANCE_DATA", "ENFORCEMENT", "DIRECT_PAYMENT"]}, "topic": {"type": "string", "example": "PRODUCT", "enum": ["PRODUCT", "DISTRIBUTION", "AUTHENTICATION", "COMPLIANCE", "DEBT_COLLECTION", "PAYMENT"]}, "integrationChannel": {"type": "string", "example": "EXTERNAL_API", "enum": ["EXTERNAL_API", "INTERNAL_API"]}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "localeId": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ServiceProviderSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "code": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "integrationChannel": {"type": "string"}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "isDefault": {"type": "string"}, "localeId": {"type": "string"}, "enabled": {"type": "string"}, "factoringRefinancing": {"type": "boolean", "example": false}, "factoringRefinancingRecourseDays": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ServiceProviderCreditCheckSettingsPut": {"properties": {"newClients": {"type": "boolean", "example": false}, "existingClients": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}, "allowCreditCheck": {"type": "boolean", "example": false}, "allowCreditDecision": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "automaticCreditCheckDebtorNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckDebtorNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "autoEnableMonitoringDebtor": {"type": "boolean", "example": false}, "autoEnableMonitoringClient": {"type": "boolean", "example": false}, "monitoringActiveDaysDebtor": {"type": "integer", "format": "int", "example": 0}, "monitoringActiveDaysClient": {"type": "integer", "format": "int", "example": 0}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDaysSystemDebtors": {"type": "integer", "format": "int", "example": 0}, "dnbGlobalCleanseMatchConfidenceThreshold": {"type": "integer", "format": "int", "example": 0}, "dnbGlobalDataBlocks": {"type": "string"}, "dnbGlobalRatingConversionRules": {"type": "object"}, "dnbNordicEnabled": {"type": "boolean", "example": false}, "dnbGlobalEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "ServiceProviderCreditCheckSettings": {"properties": {"id": {"type": "string"}, "serviceProviderId": {"type": "string"}, "newClients": {"type": "boolean", "example": false}, "existingClients": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}, "allowCreditCheck": {"type": "boolean", "example": false}, "allowCreditDecision": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "automaticCreditCheckDebtorNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckDebtorNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "autoEnableMonitoringDebtor": {"type": "boolean", "example": false}, "autoEnableMonitoringClient": {"type": "boolean", "example": false}, "monitoringActiveDaysDebtor": {"type": "integer", "format": "int", "example": 0}, "monitoringActiveDaysClient": {"type": "integer", "format": "int", "example": 0}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDaysSystemDebtors": {"type": "integer", "format": "int", "example": 0}, "dnbGlobalCleanseMatchConfidenceThreshold": {"type": "integer", "format": "int", "example": 0}, "dnbGlobalDataBlocks": {"type": "string"}, "dnbGlobalRatingConversionRules": {"type": "object"}, "dnbNordicEnabled": {"type": "boolean", "example": false}, "dnbGlobalEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "DnbGlobalEntitlements": {"properties": {"entitlements": {"type": "array", "description": "null when D&B could not be reached \u2014 render as unknown, not as nothing available", "items": {"$ref": "#/definitions/DnbGlobalEntitlement"}}}, "type": "object"}, "DnbGlobalEntitlement": {"properties": {"id": {"type": "string", "description": "D&B data block family, e.g. companyinfo"}, "levels": {"type": "array", "description": "Levels the contract covers for that family", "items": {"type": "integer", "format": "int", "example": 0}}}, "type": "object"}, "ServiceProviderCreditCheckSettingsPost": {"required": ["automaticCreditCheckClientNewInvoice", "automaticCreditCheckDebtorNewInvoice", "existingClients", "existingSystemDebtors", "newClients", "serviceProviderId"], "properties": {"serviceProviderId": {"type": "string"}, "newClients": {"type": "boolean", "example": false}, "existingClients": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}, "allowCreditCheck": {"type": "boolean", "example": false}, "allowCreditDecision": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "automaticCreditCheckDebtorNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckDebtorNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "autoEnableMonitoringDebtor": {"type": "boolean", "example": false}, "autoEnableMonitoringClient": {"type": "boolean", "example": false}, "monitoringActiveDaysDebtor": {"type": "integer", "format": "int", "example": 0}, "monitoringActiveDaysClient": {"type": "integer", "format": "int", "example": 0}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDaysSystemDebtors": {"type": "integer", "format": "int", "example": 0}, "dnbGlobalCleanseMatchConfidenceThreshold": {"type": "integer", "format": "int", "example": 0}, "dnbGlobalDataBlocks": {"type": "string"}, "dnbGlobalRatingConversionRules": {"type": "object"}, "dnbNordicEnabled": {"type": "boolean", "example": false}, "dnbGlobalEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "ServiceProviderCreditCheckSettingsSearchSettings": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "serviceProviderId": {"type": "string"}, "newClients": {"type": "boolean", "example": false}, "existingClients": {"type": "boolean", "example": false}, "automaticCheckDays": {"type": "integer", "format": "int", "example": 0}, "allowCreditCheck": {"type": "boolean", "example": false}, "allowCreditDecision": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckClientNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "automaticCreditCheckDebtorNewInvoice": {"type": "boolean", "example": false}, "automaticCreditCheckDebtorNewInvoiceDays": {"type": "integer", "format": "int", "example": 0}, "autoEnableMonitoringDebtor": {"type": "boolean", "example": false}, "autoEnableMonitoringClient": {"type": "boolean", "example": false}, "monitoringActiveDaysDebtor": {"type": "integer", "format": "int", "example": 0}, "monitoringActiveDaysClient": {"type": "integer", "format": "int", "example": 0}, "newSystemDebtors": {"type": "boolean", "example": false}, "existingSystemDebtors": {"type": "boolean", "example": false}, "automaticCheckDaysSystemDebtors": {"type": "integer", "format": "int", "example": 0}, "dnbNordicEnabled": {"type": "boolean", "example": false}, "dnbGlobalEnabled": {"type": "boolean", "example": false}}, "type": "object"}, "ServiceProviderInsuranceAgreementPut": {"required": ["agreementId", "description", "isDefault"], "properties": {"agreementId": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "defaultInsuranceLimit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ServiceProviderInsuranceAgreement": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "serviceProviderId": {"type": "string"}, "agreementId": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "defaultInsuranceLimit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ServiceProviderInsuranceAgreementPost": {"required": ["agreementId", "description", "isDefault", "serviceProviderId"], "properties": {"serviceProviderId": {"type": "string"}, "agreementId": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "defaultInsuranceLimit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ServiceProviderCreditCheckSettingsSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "serviceProviderId": {"type": "string"}, "agreementId": {"type": "string"}, "description": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "defaultInsuranceLimit": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "ServiceProviderSearchPublic": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "code": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "isDefault": {"type": "string"}, "enabled": {"type": "string"}, "localeId": {"type": "string"}}, "type": "object"}, "ServiceProviderPublic": {"properties": {"id": {"type": "string"}, "code": {"type": "string"}, "topic": {"type": "string"}, "type": {"type": "string"}, "name": {"type": "string"}, "identificationNumber": {"type": "string"}, "isDefault": {"type": "boolean", "example": false}, "enabled": {"type": "boolean", "example": false}, "localeId": {"type": "string"}}, "type": "object"}, "NoteUpdate": {"properties": {"description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "isPinned": {"type": "boolean", "example": false}}, "type": "object"}, "Note": {"properties": {"id": {"type": "string"}, "businessLoanId": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementIds": {"type": "array", "items": {"type": "string"}}, "collectionBatchId": {"type": "string"}, "collectionBatchIds": {"type": "array", "items": {"type": "string"}}, "invoiceId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "systemDebtorId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "isArchived": {"type": "boolean", "example": false}, "archivedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "archivedBy": {"type": "string"}, "topic": {"type": "string"}, "target": {"type": "string"}, "description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "isPinned": {"type": "boolean", "example": false}, "pinnedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "noteType": {"type": "string"}, "collectionBatchReasonCodeId": {"type": "integer", "format": "int", "example": 0}, "invoiceReasonCodeId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "createdByImageFileName": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DocumentNote"}}}, "type": "object"}, "DocumentNote": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "NoteCreate": {"properties": {"description": {"type": "string"}, "invoiceId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "systemDebtorId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "collectionBatchReasonCodeId": {"type": "integer", "format": "int", "example": 0}, "businessLoanId": {"type": "string"}, "enforcementId": {"type": "string"}, "invoiceReasonCodeId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "topic": {"type": "string"}, "target": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "isPinned": {"type": "boolean", "example": false}}, "type": "object"}, "NoteSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "businessLoanId": {"type": "string"}, "enforcementId": {"type": "string"}, "enforcementIds": {"type": "array", "items": {"type": "string"}}, "collectionBatchId": {"type": "string"}, "collectionBatchIds": {"type": "array", "items": {"type": "string"}}, "invoiceId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientId": {"type": "string"}, "debtorId": {"type": "string"}, "systemDebtorId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "isArchived": {"type": "boolean", "example": false}, "archivedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "archivedBy": {"type": "string"}, "topic": {"type": "string"}, "target": {"type": "string"}, "description": {"type": "string"}, "isVisibleClient": {"type": "boolean", "example": false}, "isPinned": {"type": "boolean", "example": false}, "pinnedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "noteType": {"type": "string"}, "collectionBatchReasonCodeId": {"type": "integer", "format": "int", "example": 0}, "invoiceReasonCodeId": {"type": "string"}, "paymentTransactionId": {"type": "string"}}, "type": "object"}, "service_account": {"required": ["active", "name"], "properties": {"id": {"type": "string", "format": "email", "example": "email@domain.com"}, "name": {"type": "string"}, "clientId": {"type": "string"}, "active": {"type": "boolean", "example": false}, "isServiceUser": {"type": "boolean", "example": false}, "tokenExpiresAt": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ServiceAccountGenerateTokenResponse": {"properties": {"tokenType": {"type": "string"}, "idToken": {"type": "string"}, "expiresAt": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "service_account_search": {"required": ["active", "id", "name"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string", "format": "email", "example": "email@domain.com"}, "clientId": {"type": "string"}, "name": {"type": "string"}, "active": {"type": "boolean", "example": false}}, "type": "object"}, "ClientSettingPut": {"required": ["key", "value"], "properties": {"key": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ClientSetting": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ClientSettingSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "setting.key": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ClientSettingFlagPut": {"required": ["enabled", "key"], "properties": {"key": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ClientSettingFlag": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ClientFinancialPriceTemplateSettingPut": {"required": ["key", "value"], "properties": {"key": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ClientFinancialPriceTemplateSetting": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ClientFinancialPriceTemplateSettingSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "setting.key": {"type": "string"}, "value": {"type": "string"}}, "type": "object"}, "ClientFinancialPriceTemplateSettingFlagPut": {"required": ["enabled", "key"], "properties": {"key": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "ClientFinancialPriceTemplateSettingFlag": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "debtorSettingFlagPut": {"required": ["enabled", "key"], "properties": {"key": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "debtorSettingFlag": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "systemDebtorSettingFlagPut": {"required": ["enabled", "key"], "properties": {"key": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "systemDebtorSettingFlag": {"properties": {"key": {"type": "string"}, "description": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "SettlementAccountTransactionPost": {"properties": {"id": {"type": "string"}, "settlementAccountId": {"type": "string"}, "externalId": {"type": "string"}, "externalType": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "balance": {"type": "number", "format": "decimal"}, "balanceLocale": {"type": "number", "format": "decimal"}, "subTransactions": {"type": "array", "items": {"$ref": "#/definitions/Transactions"}}, "files": {"type": "array", "items": {"$ref": "#/definitions/FileData"}}}, "type": "object"}, "Transactions": {"properties": {"type": {"type": "string"}, "invoiceId": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountVat": {"type": "number", "format": "decimal"}}, "type": "object"}, "FileData": {"properties": {"data": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "SettlementAccountTransaction": {"properties": {"id": {"type": "string"}, "settlementAccountId": {"type": "string"}, "externalId": {"type": "string"}, "externalType": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "balance": {"type": "number", "format": "decimal"}, "balanceLocale": {"type": "number", "format": "decimal"}, "vouchers": {"type": "array", "items": {"$ref": "#/definitions/SettlementAccountTransactionVoucher"}}, "documents": {"type": "array", "items": {"$ref": "#/definitions/SettlementAccountTransactionDocument"}}}, "type": "object"}, "SettlementAccountTransactionVoucher": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}}, "type": "object"}, "SettlementAccountTransactionDocument": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}}, "type": "object"}, "SettlementAccountSearchTransaction": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "settlementAccountId": {"type": "string"}, "externalId": {"type": "string"}, "externalType": {"type": "string"}, "transactionDate": {"type": "string"}, "bookkeepingDate": {"type": "string"}, "description": {"type": "string"}, "amount": {"type": "number", "format": "decimal"}, "amountLocale": {"type": "number", "format": "decimal"}, "balance": {"type": "number", "format": "decimal"}}, "type": "object"}, "ContactUpdate": {"properties": {"name": {"type": "string"}, "role": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "Contact": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "debtorId": {"type": "string"}, "name": {"type": "string"}, "role": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "ContactCreate": {"properties": {"name": {"type": "string"}, "role": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "debtorId": {"type": "string"}}, "type": "object"}, "PartInvoice": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "businessLoanId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoicePaymentReference": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDebtorCustomerNumber": {"type": "string"}, "invoiceDebtorName": {"type": "string"}, "invoiceMainStatus": {"type": "string"}, "invoiceLedgerStatus": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "status": {"type": "string", "example": "GENERATED", "enum": ["GENERATED", "AUTHORIZED", "PENDING", "ACTIVATED"]}, "generatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "generatedBy": {"type": "string"}, "authorizedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "authorizedBy": {"type": "string"}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedBy": {"type": "string"}}, "type": "object"}, "PartInvoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "businessLoanId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoicePaymentReference": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDebtorCustomerNumber": {"type": "string"}, "invoiceDebtorName": {"type": "string"}, "invoiceMainStatus": {"type": "string"}, "invoiceLedgerStatus": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "status": {"type": "string", "example": "GENERATED", "enum": ["GENERATED", "AUTHORIZED", "PENDING", "ACTIVATED"]}, "generatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "generatedBy": {"type": "string"}, "authorizedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "authorizedBy": {"type": "string"}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "activatedBy": {"type": "string"}}, "type": "object"}, "partInvoiceUpdate": {"properties": {"partInvoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "partInvoiceIds": {"type": "array", "items": {"type": "integer", "format": "int", "example": 0}}}, "type": "object"}, "PartPaymentAccountUpdate": {"properties": {"debtType": {"type": "string"}, "systemDebtorId": {"type": "string"}, "systemDebtorName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "partPaymentAccountDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentReference": {"type": "string"}, "accountInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceDateMethod": {"type": "string"}, "accountInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "accountInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceRemark": {"type": "string"}, "accountInvoicePaymentDistributionCode": {"type": "string"}, "accountInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "paymentCalculationOrder": {"type": "string"}, "finance": {"type": "boolean", "example": false}, "financeServiceProviderCode": {"type": "string"}, "invoices": {"$ref": "#/definitions/partPaymentInvoiceTotals"}, "accountInvoices": {"$ref": "#/definitions/partPaymentAccountInvoiceTotals"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "partPaymentInvoiceTotals": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "partPaymentAccountInvoiceTotals": {"properties": {"countActivated": {"type": "integer", "format": "int", "example": 0}, "countClosed": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentAccount": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "debtType": {"type": "string"}, "systemDebtorId": {"type": "string"}, "systemDebtorName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "partPaymentAccountDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentReference": {"type": "string"}, "accountInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceDateMethod": {"type": "string"}, "accountInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "accountInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceRemark": {"type": "string"}, "accountInvoicePaymentDistributionCode": {"type": "string"}, "accountInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "paymentCalculationOrder": {"type": "string"}, "finance": {"type": "boolean", "example": false}, "financeServiceProviderCode": {"type": "string"}, "invoices": {"$ref": "#/definitions/partPaymentInvoiceTotals"}, "accountInvoices": {"$ref": "#/definitions/partPaymentAccountInvoiceTotals"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentAccountSummary": {"properties": {"totalInstallmentAmount": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "invoiceCount": {"type": "integer", "format": "int", "example": 0}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceCapital": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceBalanceFee": {"type": "number", "format": "decimal"}, "invoiceBalanceInterest": {"type": "number", "format": "decimal"}, "accountInvoiceCountActivated": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceCountClosed": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceTotalToPay": {"type": "number", "format": "decimal"}, "accountInvoiceBalanceCapital": {"type": "number", "format": "decimal"}, "accountInvoiceBalanceTotal": {"type": "number", "format": "decimal"}, "accountInvoiceBalanceFee": {"type": "number", "format": "decimal"}, "accountInvoiceBalanceInterest": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentAccountSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "debtType": {"type": "string"}, "systemDebtorId": {"type": "string"}, "systemDebtorName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "currency": {"type": "string"}, "status": {"type": "string"}, "partPaymentAccountDate": {"type": "string"}, "paymentReference": {"type": "string"}, "accountInvoiceFrequency": {"type": "string"}, "accountInvoiceDateMethod": {"type": "string"}, "accountInvoiceDateMethodDayOfMonth": {"type": "string"}, "accountInvoicePaymentTerms": {"type": "string"}, "accountInvoiceRemark": {"type": "string"}, "accountInvoicePaymentDistributionCode": {"type": "string"}, "accountInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "string"}, "priceAdministrationFee": {"type": "string"}, "priceInterest": {"type": "string"}, "paymentCalculationOrder": {"type": "string"}, "finance": {"type": "string"}, "financeServiceProviderCode": {"type": "string"}, "balanceTotal": {"type": "string"}, "balanceTotalLocale": {"type": "string"}}, "type": "object"}, "PartPaymentAccountEvent": {"required": ["amountCapital", "amountFee", "amountInterest", "amountTotal", "balanceCapital", "balanceFee", "balanceInterest", "balanceTotal", "date", "id", "index", "plannedDate", "topic", "type"], "properties": {"index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "amountCapital": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "invoiceId": {"type": "string"}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "PartPaymentAccountEventSearch": {"required": ["date", "id", "index", "plannedDate", "topic", "type"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "invoiceId": {"type": "string"}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "PartPaymentAccountFinancialEvent": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "partPaymentAccountId": {"type": "string"}, "clientId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "amounts": {"$ref": "#/definitions/partPaymentAccountFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/partPaymentAccountFinancialEventBalances"}}, "type": "object"}, "partPaymentAccountFinancialEventAmounts": {"properties": {"fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "partPaymentAccountFinancialEventBalances": {"properties": {"fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PartPaymentAccountFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "partPaymentAccountId": {"type": "string"}, "clientId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PartPaymentAccountInvoiceUpdate": {"properties": {"priority": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentAccountInvoice": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "partPaymentAccountId": {"type": "string"}, "invoiceId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoicePaymentReference": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentAccountInvoiceCreate": {"properties": {"partPaymentAccountId": {"type": "string"}, "invoiceId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentAccountInvoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "partPaymentAccountId": {"type": "string"}, "invoiceId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoicePaymentReference": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentAccountSettingUpdate": {"properties": {"accountInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceDateMethod": {"type": "string"}, "accountInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "accountInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceRemark": {"type": "string"}, "accountInvoicePaymentReminderProfileCode": {"type": "string"}, "accountInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "integer", "format": "int", "example": 0}, "paymentCalculationOrder": {"type": "string"}, "invoiceOrder": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountSettingInvoiceOrder"}}}, "type": "object"}, "PartPaymentAccountSettingInvoiceOrder": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "index": {"type": "integer", "format": "int", "example": 0}, "property": {"type": "string"}, "order": {"type": "string"}}, "type": "object"}, "PartPaymentAccountSetting": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceDateMethod": {"type": "string"}, "accountInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "accountInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceRemark": {"type": "string"}, "accountInvoicePaymentReminderProfileCode": {"type": "string"}, "accountInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "paymentCalculationOrder": {"type": "string"}, "invoiceOrder": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountSettingInvoiceOrder"}}}, "type": "object"}, "PartPaymentAccountSettingSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceDateMethod": {"type": "string"}, "accountInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "accountInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "accountInvoiceRemark": {"type": "string"}, "accountInvoicePaymentReminderProfileCode": {"type": "string"}, "accountInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "paymentCalculationOrder": {"type": "string"}, "invoiceOrder": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentAccountSettingInvoiceOrder"}}}, "type": "object"}, "PartPaymentPlanUpdate": {"properties": {"partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "integer", "format": "int", "example": 0}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "paymentCalculationOrder": {"type": "string"}}, "type": "object"}, "PartPaymentPlan": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "systemDebtorId": {"type": "string"}, "systemDebtorName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "productCode": {"type": "string"}, "annuity": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "type": {"type": "string"}, "variant": {"type": "string"}, "status": {"type": "string"}, "totalInstallmentAmount": {"type": "number", "format": "decimal"}, "partPaymentPlanDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentReference": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceRetainerPercentage": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "paymentCalculationOrder": {"type": "string"}, "finance": {"type": "boolean", "example": false}, "financeServiceProviderCode": {"type": "string"}, "invoices": {"$ref": "#/definitions/PartPaymentPlanInvoicePart"}, "collectionBatches": {"$ref": "#/definitions/PartPaymentPlanCollectionBatchPart"}, "debtSummary": {"$ref": "#/definitions/PartPaymentPlanInvoiceStatus"}, "planSummary": {"$ref": "#/definitions/PartPaymentPlanInvoicePlan"}, "partInvoices": {"$ref": "#/definitions/partPaymentPlanPartInvoice"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanInvoicePart": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanCollectionBatchPart": {"properties": {"ids": {"type": "array", "items": {"type": "string"}}, "countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanInvoiceStatus": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanInvoicePlan": {"properties": {"balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "partPaymentPlanPartInvoice": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "countActivated": {"type": "integer", "format": "int", "example": 0}, "countClosed": {"type": "integer", "format": "int", "example": 0}, "countRemaining": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "systemDebtorId": {"type": "string"}, "systemDebtorName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "instanceProviderId": {"type": "string"}, "productCode": {"type": "string"}, "annuity": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "type": {"type": "string"}, "variant": {"type": "string"}, "status": {"type": "string"}, "totalInstallmentAmount": {"type": "string"}, "partPaymentPlanDate": {"type": "string"}, "paymentReference": {"type": "string"}, "partInvoiceFrequency": {"type": "string"}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "string"}, "partInvoicePaymentTerms": {"type": "string"}, "partInvoiceFirstExpireDate": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "string"}, "priceAdministrationFee": {"type": "string"}, "priceRetainerPercentage": {"type": "string"}, "priceInterest": {"type": "string"}, "priceInterestFreeDays": {"type": "string"}, "paymentCalculationOrder": {"type": "string"}, "finance": {"type": "string"}, "financeServiceProviderCode": {"type": "string"}, "balanceTotal": {"type": "string"}, "balanceTotalLocale": {"type": "string"}}, "type": "object"}, "WriteOffPartPaymentPlan": {"required": ["feeAmount", "interestAmount"], "properties": {"feeAmount": {"type": "number", "format": "decimal"}, "interestAmount": {"type": "number", "format": "decimal"}}, "type": "object"}, "RecalculateAnnuity": {"required": ["partPaymentPlanId"], "properties": {"partPaymentPlanId": {"type": "string"}}, "type": "object"}, "PartPaymentPlanSummaryResponse": {"properties": {"annuityTotalAmount": {"type": "number", "format": "decimal"}, "annuityInstallmentAmount": {"type": "number", "format": "decimal"}, "annuityInterestAmount": {"type": "number", "format": "decimal"}, "annuityFeeAmount": {"type": "number", "format": "decimal"}, "annuityRetainerFeeAmount": {"type": "number", "format": "decimal"}, "totalInstallment": {"type": "number", "format": "decimal"}, "totalFeeInterest": {"type": "number", "format": "decimal"}, "totalInterest": {"type": "number", "format": "decimal"}, "totalToPay": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanCollectionBatchUpdate": {"properties": {"priority": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentPlanCollectionBatch": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "collectionBatchPaymentReference": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "collectionBatchCurrency": {"type": "string"}, "collectionBatchTotalToPay": {"type": "number", "format": "decimal"}, "collectionBatchBalanceTotal": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanCollectionBatchCreate": {"properties": {"partPaymentPlanId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentPlanCollectionBatchSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "collectionBatchId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "collectionBatchPaymentReference": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "collectionBatchCurrency": {"type": "string"}, "collectionBatchTotalToPay": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanEvent": {"required": ["amountCapital", "amountFee", "amountInterest", "amountTotal", "balanceCapital", "balanceFee", "balanceInterest", "balanceTotal", "date", "id", "index", "plannedDate", "topic", "type"], "properties": {"index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "amountCapital": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "invoiceId": {"type": "string"}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "PartPaymentPlanEventSearch": {"required": ["date", "id", "index", "plannedDate", "topic", "type"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "invoiceId": {"type": "string"}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "PartPaymentPlanFinancialEvent": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "clientId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "amounts": {"$ref": "#/definitions/partPaymentPlanFinancialEventAmounts"}, "balances": {"$ref": "#/definitions/partPaymentPlanFinancialEventBalances"}}, "type": "object"}, "partPaymentPlanFinancialEventAmounts": {"properties": {"fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "partPaymentPlanFinancialEventBalances": {"properties": {"fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "PartPaymentPlanFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "clientId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "integer", "format": "int", "example": 0}, "paymentTransactionId": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "PartPaymentPlanInvoiceUpdate": {"properties": {"priority": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentPlanInvoiceInvoice": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "invoiceId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoicePaymentReference": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceBalanceTotal": {"type": "number", "format": "decimal"}, "invoiceMainStatus": {"type": "string"}}, "type": "object"}, "PaymentMethodConfigurationCreatePartInvoice": {"properties": {"partPaymentPlanId": {"type": "string"}, "invoiceId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentPlanInvoiceSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "partPaymentPlanId": {"type": "string"}, "invoiceId": {"type": "string"}, "priority": {"type": "integer", "format": "int", "example": 0}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "invoicePaymentReference": {"type": "string"}, "invoiceNumber": {"type": "string"}, "invoiceDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "invoiceCurrency": {"type": "string"}, "invoiceTotalToPay": {"type": "number", "format": "decimal"}, "invoiceMainStatus": {"type": "string"}}, "type": "object"}, "PartPaymentPlanLedgerEvent": {"properties": {"id": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partInvoiceId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "type": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "performedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "index": {"type": "integer", "format": "int", "example": 0}, "balanceBefore": {"type": "number", "format": "decimal"}, "annuityAmount": {"type": "number", "format": "decimal"}, "annuityAmountInstallment": {"type": "number", "format": "decimal"}, "annuityAmountInterest": {"type": "number", "format": "decimal"}, "annuityAmountFee": {"type": "number", "format": "decimal"}, "annuityAmountRetainerFee": {"type": "number", "format": "decimal"}, "balanceAfter": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanLedgerEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partInvoiceId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "type": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "performedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "index": {"type": "integer", "format": "int", "example": 0}, "balanceBefore": {"type": "number", "format": "decimal"}, "annuityAmount": {"type": "number", "format": "decimal"}, "annuityAmountInstallment": {"type": "number", "format": "decimal"}, "annuityAmountInterest": {"type": "number", "format": "decimal"}, "annuityAmountFee": {"type": "number", "format": "decimal"}, "annuityAmountRetainerFee": {"type": "number", "format": "decimal"}, "balanceAfter": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanSettingUpdate": {"properties": {"partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceRetainerPercentage": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "calculateInterestOnInvoice": {"type": "boolean", "example": false}, "paymentCalculationOrder": {"type": "string"}, "debtorPortalLegalVisible": {"type": "boolean", "example": false}, "debtorPortalTermsVisible": {"type": "boolean", "example": false}, "paymentTermsPlaceholderText": {"type": "string"}, "addToExisting": {"type": "boolean", "example": false}, "finance": {"type": "boolean", "example": false}, "invoiceOrder": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanSettingInvoiceOrder"}}, "sendConfirmationEmail": {"type": "boolean", "example": false}, "stopPlanDaysAfterFirstExpireDate": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentPlanSettingInvoiceOrder": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "index": {"type": "integer", "format": "int", "example": 0}, "property": {"type": "string"}, "order": {"type": "string"}}, "type": "object"}, "PartPaymentPlanSetting": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceRetainerPercentage": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "calculateInterestOnInvoice": {"type": "boolean", "example": false}, "paymentCalculationOrder": {"type": "string"}, "debtorPortalLegalVisible": {"type": "boolean", "example": false}, "debtorPortalTermsVisible": {"type": "boolean", "example": false}, "paymentTermsPlaceholderText": {"type": "string"}, "addToExisting": {"type": "boolean", "example": false}, "finance": {"type": "boolean", "example": false}, "invoiceOrder": {"type": "array", "items": {"$ref": "#/definitions/PartPaymentPlanSettingInvoiceOrder"}}, "sendConfirmationEmail": {"type": "boolean", "example": false}, "stopPlanDaysAfterFirstExpireDate": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "PartPaymentPlanSettingSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "paymentMethodConfigurationId": {"type": "string"}}, "type": "object"}, "PartPaymentPlanSettingSummary": {"properties": {"collectionBatchIds": {"type": "array", "items": {"type": "string"}}, "invoiceIds": {"type": "array", "items": {"type": "string"}}, "amount": {"type": "number", "format": "decimal"}, "debtType": {"type": "string", "example": "INVOICE", "enum": ["INVOICE", "COLLECTION_BATCH", "BUSINESS_LOAN"]}, "skipStartFee": {"type": "boolean", "default": false, "example": false}, "skipAdministrationFee": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "PaymentMethodUpdate": {"properties": {"enabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentMethod": {"required": ["code", "enabled", "locale"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "locale": {"type": "string"}, "code": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentMethodSearch": {"required": ["code", "enabled", "locale"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "locale": {"type": "string"}, "code": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "PaymentMethodConfigurationUpdate": {"properties": {"name": {"type": "string"}, "enabled": {"type": "boolean", "example": false}, "amountThreshold": {"type": "number", "format": "decimal"}, "clients": {"type": "array", "description": "Deprecated use payment-methods/configurations/client", "items": {"$ref": "#/definitions/configurationServiceProviderClientsCreate"}}, "serviceProviders": {"type": "array", "items": {"$ref": "#/definitions/configurationServiceProvider"}}, "productCode": {"type": "string"}, "debtorType": {"type": "string", "example": "PERSON", "enum": ["PERSON", "COMPANY"]}, "annuity": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "configurationServiceProviderClientsCreate": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "configurationServiceProvider": {"required": ["id"], "properties": {"id": {"type": "string"}, "topic": {"type": "string"}, "code": {"type": "string"}, "type": {"type": "string"}, "locale": {"type": "string"}}, "type": "object"}, "PaymentMethodConfiguration": {"required": ["serviceProviders"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "paymentMethodId": {"type": "integer", "format": "int", "example": 0}, "clients": {"type": "array", "items": {"$ref": "#/definitions/configurationServiceProviderClients"}}, "erpId": {"type": "string"}, "erpName": {"type": "string"}, "clientHandlerId": {"type": "string"}, "clientHandlerName": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}, "annuity": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}, "amountThreshold": {"type": "number", "format": "decimal"}, "serviceProviders": {"type": "array", "items": {"$ref": "#/definitions/configurationServiceProvider"}}}, "type": "object"}, "configurationServiceProviderClients": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}}, "type": "object"}, "PaymentMethodConfigurationCreate": {"required": ["debtorType", "enabled", "paymentMethodId", "productCode"], "properties": {"name": {"type": "string"}, "paymentMethodId": {"type": "integer", "format": "int", "example": 0}, "clients": {"type": "array", "items": {"$ref": "#/definitions/configurationServiceProviderClientsCreate"}}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}, "annuity": {"type": "integer", "format": "int", "example": 0}, "enabled": {"type": "boolean", "example": false}, "amountThreshold": {"type": "number", "format": "decimal"}, "serviceProviders": {"type": "array", "items": {"$ref": "#/definitions/configurationServiceProvider"}}}, "type": "object"}, "PaymentMethodConfigurationSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "name": {"type": "string"}, "paymentMethodId": {"type": "string"}, "clientId": {"type": "string"}, "erpId": {"type": "string"}, "clientHandlerId": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}, "annuity": {"type": "string"}, "enabled": {"type": "string"}}, "type": "object"}, "paymentMethodConfigurationClient": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "paymentMethodConfigurationClientPost": {"properties": {"clientId": {"type": "string"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "paymentMethodConfigurationClientSearch": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}, "payment_method_configuration_id": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "paymentMethodConfigurationServiceProvider": {"properties": {"serviceProviderId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "serviceProviderName": {"type": "string"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "paymentMethodConfigurationServiceProviderPost": {"properties": {"serviceProviderId": {"type": "string"}, "paymentMethodConfigurationId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "BankidAuthOrder": {"properties": {"orderRef": {"type": "string"}, "autoStartToken": {"type": "string"}}, "type": "object"}, "BankidSignOrder": {"properties": {"orderRef": {"type": "string"}, "autoStartToken": {"type": "string"}}, "type": "object"}, "BankidCollectRequest": {"required": ["orderRef", "type"], "properties": {"orderRef": {"type": "string"}, "type": {"type": "string", "description": "QR_CODE or AUTO_START"}}, "type": "object"}, "BankidCancelRequest": {"required": ["orderRef"], "properties": {"orderRef": {"type": "string"}}, "type": "object"}, "EngineRulePost": {"required": ["criteria", "description", "name", "onFail", "onSuccess"], "properties": {"clientId": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "onSuccess": {"type": "string"}, "onFail": {"type": "string"}, "criteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleCriteriaPostRef"}}, "actionOnSuccess": {"type": "string", "example": "ADD_RECOURSE", "enum": ["ADD_RECOURSE", "REMOVE_RECOURSE"]}}, "type": "object"}, "EngineRuleCriteriaPostRef": {"required": ["colorCode", "engineRuleId", "errorMessage", "financeOnFail", "isActive", "leftHandValue", "operator", "passIfNoValue", "rightHandValue", "rightHandValueIsAttr"], "properties": {"engineRuleId": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRulePut": {"properties": {"clientId": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "onSuccess": {"type": "string"}, "onFail": {"type": "string"}, "actionOnSuccess": {"type": "string", "example": "ADD_RECOURSE", "enum": ["ADD_RECOURSE", "REMOVE_RECOURSE"]}}, "type": "object"}, "EngineRuleOverride": {"required": ["sourceEngineRuleId"], "properties": {"sourceEngineRuleId": {"type": "string"}}, "type": "object"}, "EngineRuleSnapshot": {"properties": {"id": {"type": "string"}, "engineRuleId": {"type": "string"}, "reason": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "createdByName": {"type": "string"}, "content": {"$ref": "#/definitions/EngineRuleSnapshotContent"}}, "type": "object"}, "EngineRuleSnapshotContent": {"properties": {"rule": {"$ref": "#/definitions/EngineRuleSnapshotRule"}, "decisionTreeActive": {"type": "boolean", "example": false}, "entryPointGroupId": {"type": "string"}, "validateCreditInvoices": {"type": "boolean", "example": false}, "baseCriteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleSnapshotCriteria"}}, "criteriaGroups": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleSnapshotCriteriaGroup"}}}, "type": "object"}, "EngineRuleSnapshotRule": {"properties": {"name": {"type": "string"}, "description": {"type": "string"}, "onSuccess": {"type": "string"}, "onFail": {"type": "string"}, "actionOnSuccess": {"type": "string"}}, "type": "object"}, "EngineRuleSnapshotCriteria": {"properties": {"description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "operator": {"type": "string"}, "rightHandValue": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "isSystemCheck": {"type": "boolean", "example": false}, "financeOnFail": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleSnapshotCriteriaGroup": {"properties": {"id": {"type": "string"}, "description": {"type": "string"}, "actionOnSuccess": {"type": "string"}, "onSuccessGroupId": {"type": "string"}, "onFailGroupId": {"type": "string"}, "onSuccessCreditDecisionStatus": {"type": "string"}, "onFailCreditDecisionStatus": {"type": "string"}, "criteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleSnapshotCriteria"}}}, "type": "object"}, "EngineRuleSearch": {"properties": {"clientId": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "onSuccess": {"type": "string"}, "onFail": {"type": "string"}, "setting": {"$ref": "#/definitions/engine_rule_setting"}, "actionOnSuccess": {"type": "string", "example": "ADD_RECOURSE", "enum": ["ADD_RECOURSE", "REMOVE_RECOURSE"]}}, "type": "object"}, "EngineRuleValidateInvoice": {"required": ["decision"], "properties": {"decision": {"type": "string", "example": "APPROVED", "enum": ["APPROVED", "DENIED", "DENIED_SERVICE", "REFINANCE"]}, "override": {"type": "boolean", "example": false}, "errandId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "EngineRuleRunValidationRequest": {"properties": {"filters": {"description": "Optional filters narrowing the validation job.", "allOf": [{"$ref": "#/definitions/EngineRuleRunValidationFilters"}]}}, "type": "object"}, "EngineRuleRunValidationFilters": {"properties": {"firstValidation": {"type": "boolean", "example": false}, "product": {"type": "string", "description": "INVOICE_SERVICE or INVOICE_FACTORING_SELL"}, "clients": {"type": "array", "items": {"type": "string"}}, "creditDecisionStatusIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "EngineRuleManualControlThreshold": {"required": ["threshold"], "properties": {"threshold": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "EngineRuleFactoringManualControlThreshold": {"properties": {"threshold": {"type": "integer", "format": "int", "description": "Factoring manual control threshold for the client.", "example": 0}, "counter": {"type": "integer", "format": "int", "description": "Current factoring manual control counter for the client.", "example": 0}}, "type": "object"}, "EngineRuleBulkPerformDecision": {"required": ["decision", "invoices"], "properties": {"decision": {"type": "string", "example": "APPROVED", "enum": ["APPROVED", "DENIED", "DENIED_SERVICE", "REFINANCE"]}, "override": {"type": "boolean", "example": false}, "invoices": {"$ref": "#/definitions/EngineRuleBulkInvoiceIds"}}, "type": "object"}, "EngineRuleBulkInvoiceIds": {"required": ["invoiceIds"], "properties": {"invoiceIds": {"type": "array", "items": {"$ref": "#/definitions/invoiceIdEngineRule"}}}, "type": "object"}, "invoiceIdEngineRule": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "EngineRuleBulkResultRequest": {"required": ["resultIds"], "properties": {"resultIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "EngineRuleBulkFinanceInvoiceResult": {"properties": {"id": {"type": "string"}, "invoiceId": {"type": "string"}, "decision": {"type": "string"}, "result": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "EngineRulePerformDecisionWarningsRequest": {"required": ["invoiceIds"], "properties": {"invoiceIds": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "EngineRulePerformDecisionWarnings": {"properties": {"activeCreditInvoice": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleSchedulerPost": {"properties": {"type": {"type": "string"}, "value": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleSchedulerFilter": {"properties": {"id": {"type": "string"}, "type": {"type": "string"}, "value": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleSchedulerPut": {"properties": {"type": {"type": "string"}, "value": {"type": "string"}, "enabled": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleAdvancedModulePost": {"properties": {"engineRuleId": {"type": "string", "description": "Engine Rule ID"}, "name": {"type": "string", "description": "Name"}, "description": {"type": "string", "description": "Description"}, "isActive": {"type": "boolean", "description": "Is Active", "example": false}, "isInEditMode": {"type": "boolean", "description": "Indicates that the engine rule groups are being edited.", "example": false}, "entryPointGroupId": {"type": "string", "description": "Entry Point Group ID"}}, "type": "object"}, "EngineRuleAdvancedModule": {"properties": {"id": {"type": "string", "description": "Engine Rule Advanced Module ID"}, "engineRuleId": {"type": "string", "description": "Engine Rule ID"}, "name": {"type": "string", "description": "Name"}, "description": {"type": "string", "description": "Description"}, "isActive": {"type": "boolean", "description": "Is Active", "example": false}, "isInEditMode": {"type": "boolean", "description": "Indicates that the engine rule groups are being edited.", "example": false}, "entryPointGroupId": {"type": "string", "description": "Entry Point Group ID"}}, "type": "object"}, "EngineRuleAdvancedModulePut": {"properties": {"name": {"type": "string", "description": "Name"}, "description": {"type": "string", "description": "Description"}, "isActive": {"type": "boolean", "description": "Is Active", "example": false}, "isInEditMode": {"type": "boolean", "description": "Indicates that the engine rule groups are being edited.", "example": false}, "entryPointGroupId": {"type": "string", "description": "Entry Point Group ID"}}, "type": "object"}, "EngineRuleCriteria": {"properties": {"id": {"type": "string"}, "engineRuleId": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "isSystemCheck": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "leftHandValueIsAction": {"type": "boolean", "example": false}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}, "parentId": {"type": "string"}}, "type": "object"}, "EngineRuleAdvancedModuleSearch": {"properties": {"name": {"type": "string", "description": "Name"}, "description": {"type": "string", "description": "Description"}, "isActive": {"type": "boolean", "description": "Is Active", "example": false}, "isInEditMode": {"type": "boolean", "description": "Indicates that the engine rule groups are being edited.", "example": false}, "entryPointGroupId": {"type": "string", "description": "Entry Point Group ID"}}, "type": "object"}, "EngineRuleCriteriaPost": {"required": ["colorCode", "engineRuleId", "errorMessage", "financeOnFail", "isActive", "leftHandValue", "operator", "passIfNoValue", "rightHandValue", "rightHandValueIsAttr"], "properties": {"engineRuleId": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleCriteriaPostDuplicate": {"required": ["colorCode", "description", "errorMessage", "financeOnFail", "isActive", "operator", "parentId", "passIfNoValue", "rightHandValue"], "properties": {"isActive": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "rightHandValue": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}, "parentId": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}}, "type": "object"}, "EngineRuleCriteriaPut": {"properties": {"isActive": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleCriteriaSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}}, "x-mask": "{engineRuleId}", "type": "object"}, "EngineRuleCriteriaValues": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "description": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "EngineRuleCriteriaValuesSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}}, "x-mask": "{id,type}", "type": "object"}, "EngineRuleCriteriaGroupPost": {"required": ["criteria"], "properties": {"engineRuleId": {"type": "string", "description": "Engine Rule ID"}, "description": {"type": "string", "description": "Description"}, "actionOnSuccess": {"type": "string", "description": "Action On Success"}, "onSuccessGroupId": {"type": "string", "description": "On Success Group ID"}, "onFailGroupId": {"type": "string", "description": "On Fail Group ID"}, "onSuccessCreditDecisionStatus": {"type": "string", "description": "On Success Credit Decision Status"}, "onFailCreditDecisionStatus": {"type": "string", "description": "On Fail Credit Decision Status"}, "criteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleCriteriaGroupCriteriaPostRef"}}, "parentGroupId": {"type": "string", "description": "Link the new group into the tree as this group's branch, in the same write."}, "parentBranch": {"type": "string", "description": "Which branch of parentGroupId the new group becomes. Required with parentGroupId.", "example": "ON_SUCCESS", "enum": ["ON_SUCCESS", "ON_FAIL"]}}, "type": "object"}, "EngineRuleCriteriaGroupCriteriaPostRef": {"required": ["colorCode", "engineRuleId", "errorMessage", "financeOnFail", "isActive", "leftHandValue", "operator", "passIfNoValue", "rightHandValue", "rightHandValueIsAttr"], "properties": {"engineRuleId": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}}, "type": "object"}, "EngineRuleCriteriaGroup": {"properties": {"id": {"type": "string", "description": "Engine Rule Criteria Group ID"}, "engineRuleId": {"type": "string", "description": "Engine Rule ID"}, "description": {"type": "string", "description": "Description"}, "actionOnSuccess": {"type": "string", "description": "Action On Success"}, "onSuccessGroupId": {"type": "string", "description": "On Success Group ID"}, "onFailGroupId": {"type": "string", "description": "On Fail Group ID"}, "onSuccessCreditDecisionStatus": {"type": "string", "description": "On Success Credit Decision Status"}, "onFailCreditDecisionStatus": {"type": "string", "description": "On Fail Credit Decision Status"}, "criteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleCriteriaGroupCriteriaRef"}}}, "type": "object"}, "EngineRuleCriteriaGroupCriteriaRef": {"properties": {"id": {"type": "string"}, "engineRuleId": {"type": "string"}, "engineRuleCriteriaGroupId": {"type": "string"}, "isActive": {"type": "boolean", "example": false}, "isSystemCheck": {"type": "boolean", "example": false}, "colorCode": {"type": "string"}, "description": {"type": "string"}, "errorMessage": {"type": "string"}, "leftHandValue": {"type": "string"}, "leftHandValueIsAction": {"type": "boolean", "example": false}, "rightHandValue": {"type": "string"}, "rightHandValueIsAttr": {"type": "boolean", "example": false}, "rightHandValueFallback": {"type": "string"}, "operator": {"type": "string", "example": "<", "enum": ["<", "<=", "==", "!=", ">=", ">", "IN", "NOT_IN"]}, "financeOnFail": {"type": "boolean", "example": false}, "passIfNoValue": {"type": "boolean", "example": false}, "parentId": {"type": "string"}}, "type": "object"}, "EngineRuleCriteriaGroupPut": {"properties": {"engineRuleId": {"type": "string", "description": "Engine Rule ID"}, "description": {"type": "string", "description": "Description"}, "actionOnSuccess": {"type": "string", "description": "Action On Success"}, "onSuccessGroupId": {"type": "string", "description": "On Success Group ID"}, "onFailGroupId": {"type": "string", "description": "On Fail Group ID"}, "onSuccessCreditDecisionStatus": {"type": "string", "description": "On Success Credit Decision Status"}, "onFailCreditDecisionStatus": {"type": "string", "description": "On Fail Credit Decision Status"}, "criteria": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleCriteriaGroupCriteriaPostRef"}}}, "type": "object"}, "EngineRuleCriteriaGroupSearch": {"properties": {"engineRuleId": {"type": "string", "description": "Engine Rule ID"}, "description": {"type": "string", "description": "Description"}, "actionOnSuccess": {"type": "string", "description": "Action On Success"}, "onSuccessGroupId": {"type": "string", "description": "On Success Group ID"}, "onFailGroupId": {"type": "string", "description": "On Fail Group ID"}, "onSuccessCreditDecisionStatus": {"type": "string", "description": "On Success Credit Decision Status"}, "onFailCreditDecisionStatus": {"type": "string", "description": "On Fail Credit Decision Status"}}, "type": "object"}, "EngineRuleProfilePost": {"required": ["name"], "properties": {"name": {"type": "string"}, "sourceEngineRuleId": {"type": "string"}}, "type": "object"}, "EngineRuleProfile": {"properties": {"id": {"type": "string"}, "name": {"type": "string"}, "engineRuleId": {"type": "string"}, "engineRuleVersion": {"type": "integer", "format": "int", "example": 0}, "connectedClientCount": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "EngineRuleProfileSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "name": {"type": "string"}, "engineRuleId": {"type": "string"}}, "type": "object"}, "EngineRuleProfilePut": {"required": ["name"], "properties": {"name": {"type": "string"}}, "type": "object"}, "EngineRuleProfileClientIds": {"required": ["clients"], "properties": {"clients": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleProfileClientId"}}}, "type": "object"}, "EngineRuleProfileClientId": {"required": ["id"], "properties": {"id": {"type": "string"}}, "type": "object"}, "EngineRuleProfileClientsGet": {"properties": {"engineRuleVersion": {"type": "integer", "format": "int", "example": 0}, "clients": {"type": "array", "items": {"$ref": "#/definitions/EngineRuleProfileClient"}}}, "type": "object"}, "EngineRuleProfileClient": {"properties": {"clientId": {"type": "string"}, "clientName": {"type": "string"}, "engineRuleId": {"type": "string"}, "appliedVersion": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "EngineRuleProfileClientHistory": {"properties": {"id": {"type": "string"}, "engineRuleProfileId": {"type": "string"}, "status": {"type": "string"}, "result": {"type": "string"}, "timeStarted": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "timeFinished": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "engine_rule_setting_update": {"properties": {"validateCreditInvoices": {"type": "boolean", "default": true, "example": false}}, "type": "object"}, "system-bank-account-post": {"required": ["currency", "instanceProviderId", "paymentAccountId", "productId", "type"], "properties": {"type": {"type": "string"}, "paymentAccountId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "currency": {"type": "string"}, "productId": {"type": "string", "example": "INVOICE_FACTORING_LOAN", "enum": ["INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL", "BUSINESS_LOAN"]}, "serviceProviderId": {"type": "string"}}, "type": "object"}, "system-bank-account": {"required": ["currency", "instanceProviderId", "paymentAccountId", "productId", "type"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "paymentAccountId": {"type": "string"}, "paymentAccountNumber": {"type": "string"}, "paymentAccountIban": {"type": "string"}, "paymentAccountCurrency": {"type": "string"}, "instanceProviderId": {"type": "string"}, "instanceProviderName": {"type": "string"}, "currency": {"type": "string"}, "productId": {"type": "string"}, "serviceProviderId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "createdBy": {"type": "string"}, "createdDate": {"type": "string"}, "updatedBy": {"type": "string"}, "updatedDate": {"type": "string"}}, "type": "object"}, "system-bank-account-put": {"required": ["currency", "instanceProviderId", "paymentAccountId", "productId", "type"], "properties": {"type": {"type": "string"}, "paymentAccountId": {"type": "string"}, "instanceProviderId": {"type": "string"}, "currency": {"type": "string"}, "productId": {"type": "string", "example": "INVOICE_FACTORING_LOAN", "enum": ["INVOICE_FACTORING_LOAN", "INVOICE_SERVICE", "INVOICE_FACTORING_SELL", "BUSINESS_LOAN"]}, "serviceProviderId": {"type": "string"}}, "type": "object"}, "business-area-post": {"required": ["code", "name"], "properties": {"name": {"type": "string"}, "code": {"type": "string"}}, "type": "object"}, "business-area": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "name": {"type": "string"}, "code": {"type": "string"}, "isSystem": {"type": "boolean", "example": false}}, "type": "object"}, "business-area-put": {"required": ["code", "name"], "properties": {"name": {"type": "string"}, "code": {"type": "string"}}, "type": "object"}, "business-area-search": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "name": {"type": "string"}, "code": {"type": "string"}, "isSystem": {"type": "boolean", "example": false}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "BusinessLoanEvent": {"required": ["amountCapital", "amountFee", "amountInterest", "amountTotal", "balanceCapital", "balanceFee", "balanceInterest", "balanceTotal", "date", "id", "index", "plannedDate", "topic", "type"], "properties": {"index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "amountCapital": {"type": "number", "format": "decimal"}, "amountFee": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "invoiceId": {"type": "string"}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "description": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "BusinessLoanEventSearch": {"required": ["date", "id", "index", "plannedDate", "topic", "type"], "properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "index": {"type": "integer", "format": "int", "example": 0}, "id": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "topic": {"type": "string", "example": "FINANCIAL", "enum": ["FINANCIAL", "LEDGER", "DISTRIBUTION"]}, "type": {"type": "string"}, "invoiceId": {"type": "string"}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "description": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "business-loan-financial-event-post": {"required": ["amount", "typeCode"], "properties": {"amount": {"type": "number", "format": "float", "example": 0.0}, "description": {"type": "string"}, "typeCode": {"type": "string"}, "feeTypeCode": {"type": "string"}}, "type": "object"}, "business-loan-financial-event": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "businessLoanId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "description": {"type": "string"}, "typeCode": {"type": "string"}, "feeTypeCode": {"type": "string"}, "transactionDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "bookkeepingDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "amounts": {"$ref": "#/definitions/business-loan-financial-event-amounts"}, "balances": {"$ref": "#/definitions/business-loan-financial-event-balances"}}, "type": "object"}, "business-loan-financial-event-amounts": {"properties": {"capital": {"type": "number", "format": "float", "example": 0.0}, "capitalLocale": {"type": "number", "format": "float", "example": 0.0}, "fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "business-loan-financial-event-balances": {"properties": {"capital": {"type": "number", "format": "float", "example": 0.0}, "capitalLocale": {"type": "number", "format": "float", "example": 0.0}, "fee": {"type": "number", "format": "float", "example": 0.0}, "feeLocale": {"type": "number", "format": "float", "example": 0.0}, "interest": {"type": "number", "format": "float", "example": 0.0}, "interestLocale": {"type": "number", "format": "float", "example": 0.0}, "total": {"type": "number", "format": "float", "example": 0.0}, "totalLocale": {"type": "number", "format": "float", "example": 0.0}}, "type": "object"}, "BusinessLoanLedgerEvent": {"properties": {"id": {"type": "string"}, "businessLoanId": {"type": "string"}, "partInvoiceId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "performedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodDays": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "index": {"type": "integer", "format": "int", "example": 0}, "balanceBefore": {"type": "number", "format": "decimal"}, "balanceAfter": {"type": "number", "format": "decimal"}, "annuityAmount": {"type": "number", "format": "decimal"}, "annuityAmountInstallment": {"type": "number", "format": "decimal"}, "annuityAmountInterest": {"type": "number", "format": "decimal"}, "annuityAmountFee": {"type": "number", "format": "decimal"}, "datedFeeAmount": {"type": "number", "format": "decimal"}, "annuityAmountStartFee": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountStartFee": {"type": "number", "format": "decimal"}}, "type": "object"}, "BusinessLoanLedgerEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "businessLoanId": {"type": "string"}, "partInvoiceId": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "string"}, "type": {"type": "string"}, "status": {"type": "string"}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "performedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodDays": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "index": {"type": "integer", "format": "int", "example": 0}, "balanceBefore": {"type": "number", "format": "decimal"}, "balanceAfter": {"type": "number", "format": "decimal"}, "annuityAmount": {"type": "number", "format": "decimal"}, "annuityAmountInstallment": {"type": "number", "format": "decimal"}, "annuityAmountInterest": {"type": "number", "format": "decimal"}, "annuityAmountFee": {"type": "number", "format": "decimal"}, "datedFeeAmount": {"type": "number", "format": "decimal"}, "annuityAmountStartFee": {"type": "number", "format": "decimal"}, "amountInterest": {"type": "number", "format": "decimal"}, "amountStartFee": {"type": "number", "format": "decimal"}}, "type": "object"}, "BusinessLoanToDoPost": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "businessLoanId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "type": {"type": "string"}}, "type": "object"}, "BusinessLoanToDo": {"properties": {"id": {"type": "string"}, "businessLoanId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "businessLoanName": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}, "type": {"type": "string"}}, "type": "object"}, "UpdateBusinessLoanToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "type": {"type": "string"}}, "type": "object"}, "BusinessLoanToDoDeleteResponse": {"properties": {"message": {"type": "string"}}, "type": "object"}, "BusinessLoanToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "businessLoanId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "business-loan-post": {"properties": {"clientId": {"type": "string"}, "name": {"type": "string"}, "currency": {"type": "string"}, "type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "loanProfileCode": {"type": "string"}, "loanProfileOverride": {"$ref": "#/definitions/business-loan-profile-post"}, "serviceProviderCode": {"type": "string"}, "fees": {"type": "array", "items": {"$ref": "#/definitions/business-loan-fee-post"}}, "invoiceFrequencySchedule": {"type": "array", "items": {"$ref": "#/definitions/business-loan-invoice-frequency-schedule-item"}}, "guarantors": {"type": "array", "items": {"$ref": "#/definitions/business-loan-guarantors-post"}}}, "type": "object"}, "business-loan-profile-post": {"properties": {"partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "float", "example": 0.0}, "priceAdministrationFee": {"type": "number", "format": "float", "example": 0.0}, "priceInterest": {"type": "number", "format": "float", "example": 0.0}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "paymentCalculationOrder": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "businessAreaId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-fee-post": {"required": ["amount", "chargeMethod", "description", "typeCode"], "properties": {"typeCode": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "description": {"type": "string"}, "chargeMethod": {"type": "string"}, "accrualStartDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "accrualMonths": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-invoice-frequency-schedule-item": {"required": ["frequency", "fromMonth"], "properties": {"fromMonth": {"type": "integer", "format": "int", "example": 0}, "frequency": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-guarantors-post": {"required": ["address", "city", "identificationNumber", "name", "zip"], "properties": {"identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "business-loan": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "mainStatus": {"type": "string"}, "decisionStatusCode": {"type": "string"}, "name": {"type": "string"}, "currency": {"type": "string"}, "loanNumber": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "paymentReference": {"type": "string"}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "loanProfileCode": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "serviceProviderName": {"type": "string"}, "serviceProviderId": {"type": "string"}, "clientAccountId": {"type": "string"}, "isActivated": {"type": "boolean", "example": false}, "isBooked": {"type": "boolean", "example": false}, "isPartPayment": {"type": "boolean", "example": false}, "isClosed": {"type": "boolean", "example": false}, "isPaidOut": {"type": "boolean", "example": false}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "partPaymentDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "closedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "paidOutDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "pendingWithdrawalAmount": {"type": "number", "format": "decimal"}, "pendingWithdrawalDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pendingWithdrawalStatus": {"type": "string"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "totalLoanApproved": {"type": "number", "format": "decimal"}, "totalLoanUsed": {"type": "number", "format": "decimal"}, "totalLoanAvailable": {"type": "number", "format": "decimal"}}, "type": "object"}, "business-loan-copy": {"properties": {"name": {"type": "string"}, "type": {"type": "string"}, "clientId": {"type": "string"}, "currency": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "serviceProviderCode": {"type": "string"}, "total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "business-loan-put": {"properties": {"clientId": {"type": "string"}, "name": {"type": "string"}, "currency": {"type": "string"}, "type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "total": {"type": "number", "format": "decimal"}, "loanProfileCode": {"type": "string"}, "loanProfileOverride": {"$ref": "#/definitions/business-loan-profile-post"}, "serviceProviderCode": {"type": "string"}, "fees": {"type": "array", "items": {"$ref": "#/definitions/business-loan-fee-post"}}}, "type": "object"}, "business-loan-search": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "mainStatus": {"type": "string"}, "decisionStatusCode": {"type": "string"}, "name": {"type": "string"}, "currency": {"type": "string"}, "loanNumber": {"type": "integer", "format": "int", "example": 0}, "type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "paymentReference": {"type": "string"}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "loanProfileCode": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "serviceProviderName": {"type": "string"}, "serviceProviderId": {"type": "string"}, "clientAccountId": {"type": "string"}, "isActivated": {"type": "boolean", "example": false}, "isBooked": {"type": "boolean", "example": false}, "isPartPayment": {"type": "boolean", "example": false}, "isClosed": {"type": "boolean", "example": false}, "isPaidOut": {"type": "boolean", "example": false}, "activatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "bookedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "partPaymentDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "closedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "paidOutDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "pendingWithdrawalAmount": {"type": "number", "format": "decimal"}, "pendingWithdrawalDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "pendingWithdrawalStatus": {"type": "string"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "totalLoanApproved": {"type": "number", "format": "decimal"}, "totalLoanUsed": {"type": "number", "format": "decimal"}, "totalLoanAvailable": {"type": "number", "format": "decimal"}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "business-loan-profile-put": {"properties": {"partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "paymentCalculationOrder": {"type": "string"}, "feeBookkeepingMethod": {"type": "string"}, "interestBookkeepingMethod": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "reason": {"type": "string", "description": "Why a booked loan's terms were edited, stored on its amendment. Ignored before the loan is booked."}}, "type": "object"}, "business-loan-profile": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "businessLoanId": {"type": "string"}, "loanProfileId": {"type": "integer", "format": "int", "example": 0}, "code": {"type": "string"}, "currency": {"type": "string"}, "description": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "referenceRate": {"type": "number", "format": "decimal", "readOnly": true}, "referenceRateSource": {"type": "string", "readOnly": true}, "effectiveInterestRate": {"type": "number", "format": "decimal", "readOnly": true}, "paymentCalculationOrder": {"type": "string"}, "feeBookkeepingMethod": {"type": "string"}, "interestBookkeepingMethod": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "businessAreaId": {"type": "integer", "format": "int", "example": 0}, "businessArea": {"$ref": "#/definitions/business-loan-business-area"}}, "type": "object"}, "business-loan-business-area": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "code": {"type": "string"}}, "type": "object"}, "business-loan-guarantor": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "businessLoanId": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "business-loan-fee-add": {"required": ["amount", "chargeMethod", "description", "typeCode"], "properties": {"typeCode": {"type": "string"}, "amount": {"type": "number", "format": "float", "description": "Greater than 0", "example": 0.0}, "description": {"type": "string"}, "chargeMethod": {"type": "string"}, "startDate": {"type": "string", "format": "date", "description": "Required once the loan is approved (ACTIVATED or PAUSED), not accepted before", "example": "2016-06-06"}, "reason": {"type": "string", "description": "Why the fee was added, stored on its amendment"}}, "type": "object"}, "business-loan-fee": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "typeCode": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "description": {"type": "string"}, "chargeMethod": {"type": "string"}, "startDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "accrualStartDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "accrualMonths": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-fee-accrual-put": {"properties": {"accrualStartDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "accrualMonths": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-credit-decision-move": {"required": ["status"], "properties": {"status": {"type": "string"}}, "type": "object"}, "business-loan-installment-plan-save": {"required": ["duration", "firstOpenIndex", "frequency", "reason", "rows", "type"], "properties": {"type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "frequency": {"type": "integer", "format": "int", "example": 0}, "firstOpenIndex": {"type": "integer", "format": "int", "example": 0}, "rows": {"type": "array", "items": {"$ref": "#/definitions/business-loan-installment-plan-edited-row"}}, "reason": {"type": "string"}}, "type": "object"}, "business-loan-installment-plan-edited-row": {"required": ["fee", "interest", "plannedDate", "principal"], "properties": {"plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "dueDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "principal": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "fee": {"type": "number", "format": "decimal"}, "locks": {"type": "array", "items": {"type": "string"}}}, "type": "object"}, "business-loan-installment-plan": {"properties": {"type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "frequency": {"type": "integer", "format": "int", "example": 0}, "paymentTerms": {"type": "integer", "format": "int", "example": 0}, "amount": {"type": "number", "format": "decimal"}, "yearlyInterestRate": {"type": "number", "format": "float", "example": 0.0}, "interestRates": {"type": "array", "items": {"$ref": "#/definitions/business-loan-installment-plan-interest-rate"}}, "currency": {"type": "string"}, "firstOpenIndex": {"type": "integer", "format": "int", "example": 0}, "outstandingPrincipal": {"type": "number", "format": "decimal"}, "administrationFee": {"type": "number", "format": "decimal"}, "openInstallmentAllFee": {"type": "number", "format": "decimal"}, "rows": {"type": "array", "items": {"$ref": "#/definitions/business-loan-installment-plan-row"}}}, "type": "object"}, "business-loan-installment-plan-interest-rate": {"properties": {"effectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "rate": {"type": "number", "format": "decimal"}}, "type": "object"}, "business-loan-installment-plan-row": {"properties": {"index": {"type": "integer", "format": "int", "example": 0}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "dueDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "dueDateSet": {"type": "boolean", "example": false}, "periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodDays": {"type": "integer", "format": "int", "example": 0}, "principal": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "fee": {"type": "number", "format": "decimal"}, "datedFeeAmount": {"type": "number", "format": "decimal", "default": 0}, "startFee": {"type": "number", "format": "decimal"}, "toPay": {"type": "number", "format": "decimal"}, "balanceBefore": {"type": "number", "format": "decimal"}, "balanceAfter": {"type": "number", "format": "decimal"}, "invoiced": {"type": "boolean", "example": false}, "invoiceId": {"type": "string"}, "locks": {"type": "array", "items": {"type": "string"}}, "interestPeriods": {"type": "array", "items": {"$ref": "#/definitions/business-loan-installment-interest-period"}}}, "type": "object"}, "business-loan-installment-interest-period": {"properties": {"periodStart": {"type": "string"}, "periodEnd": {"type": "string"}, "rate": {"type": "number", "format": "decimal"}, "amount": {"type": "number", "format": "decimal"}}, "type": "object"}, "business-loan-installment-plan-terms": {"required": ["duration", "frequency", "type"], "properties": {"type": {"type": "string"}, "duration": {"type": "integer", "format": "int", "example": 0}, "frequency": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-invoice-frequency-preview": {"required": ["segments"], "properties": {"segments": {"type": "array", "items": {"$ref": "#/definitions/business-loan-invoice-frequency-segment"}}}, "type": "object"}, "business-loan-invoice-frequency-segment": {"required": ["effectiveFrom", "frequency"], "properties": {"effectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "frequency": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "business-loan-invoice-frequency-change": {"required": ["reason", "segments"], "properties": {"segments": {"type": "array", "items": {"$ref": "#/definitions/business-loan-invoice-frequency-segment"}}, "reason": {"type": "string"}}, "type": "object"}, "business-loan-invoice-frequency": {"properties": {"initialFrequency": {"type": "integer", "format": "int", "example": 0}, "schedule": {"type": "array", "items": {"$ref": "#/definitions/business-loan-invoice-frequency-segment"}}, "earliestEffectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "calendarQuarter": {"type": "boolean", "example": false}}, "type": "object"}, "business-loan-interest-margin-preview": {"required": ["effectiveFrom", "margin"], "properties": {"margin": {"type": "number", "format": "decimal"}, "effectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}}, "type": "object"}, "business-loan-interest-margin-change": {"required": ["effectiveFrom", "margin", "reason"], "properties": {"margin": {"type": "number", "format": "decimal"}, "effectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "reason": {"type": "string"}}, "type": "object"}, "business-loan-interest-margin": {"properties": {"interestRateType": {"type": "string"}, "initialMargin": {"type": "number", "format": "decimal"}, "margin": {"type": "number", "format": "decimal"}, "effectiveInterestRate": {"type": "number", "format": "decimal"}, "earliestEffectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "latestEffectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "history": {"type": "array", "items": {"$ref": "#/definitions/business-loan-interest-margin-change-item"}}}, "type": "object"}, "business-loan-interest-margin-change-item": {"properties": {"effectiveFrom": {"type": "string", "format": "date", "example": "2016-06-06"}, "margin": {"type": "number", "format": "decimal"}, "effectiveInterestRate": {"type": "number", "format": "decimal"}, "reason": {"type": "string"}, "businessLoanAmendmentId": {"type": "string"}, "createdBy": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "business-loan-installment-summary": {"properties": {"skipStartFee": {"type": "boolean", "default": false, "example": false}, "skipAdministrationFee": {"type": "boolean", "default": false, "example": false}, "invoiceFrequencySchedule": {"type": "array", "items": {"$ref": "#/definitions/business-loan-invoice-frequency-schedule-item"}}}, "type": "object"}, "business-loan-installment-summary-response": {"properties": {"annuityTotalAmount": {"type": "number", "format": "decimal"}, "annuityInstallmentAmount": {"type": "number", "format": "decimal"}, "annuityInterestAmount": {"type": "number", "format": "decimal"}, "annuityFeeAmount": {"type": "number", "format": "decimal"}, "totalInstallment": {"type": "number", "format": "decimal"}, "totalInterest": {"type": "number", "format": "decimal"}, "totalFee": {"type": "number", "format": "decimal"}, "totalFeeInterest": {"type": "number", "format": "decimal"}, "totalToPay": {"type": "number", "format": "decimal"}, "annuities": {"type": "array", "items": {"$ref": "#/definitions/business-loan-installment-summary-response-annuity"}}}, "type": "object"}, "business-loan-installment-summary-response-annuity": {"properties": {"index": {"type": "integer", "format": "int", "example": 0}, "plannedDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodStart": {"type": "string", "format": "date", "example": "2016-06-06"}, "periodEnd": {"type": "string", "format": "date", "example": "2016-06-06"}, "balanceBefore": {"type": "number", "format": "decimal"}, "annuityAmount": {"type": "number", "format": "decimal"}, "annuityAmountInstallment": {"type": "number", "format": "decimal"}, "annuityAmountInterest": {"type": "number", "format": "decimal"}, "annuityAmountFee": {"type": "number", "format": "decimal"}, "annuityAmountStartFee": {"type": "number", "format": "decimal"}, "datedFeeAmount": {"type": "number", "format": "decimal", "default": 0}, "balanceAfter": {"type": "number", "format": "decimal"}}, "type": "object"}, "business-loan-installment-summary-without-entity": {"required": ["duration", "priceAdministrationFee", "priceInterest", "priceStartFee", "total", "type"], "properties": {"skipStartFee": {"type": "boolean", "default": false, "example": false}, "skipAdministrationFee": {"type": "boolean", "default": false, "example": false}, "priceStartFee": {"type": "number", "format": "float", "example": 0.0}, "priceAdministrationFee": {"type": "number", "format": "float", "example": 0.0}, "priceInterest": {"type": "number", "format": "float", "example": 0.0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "currency": {"type": "string"}, "type": {"type": "string"}, "total": {"type": "number", "format": "float", "example": 0.0}, "duration": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "invoiceFrequencySchedule": {"type": "array", "items": {"$ref": "#/definitions/business-loan-invoice-frequency-schedule-item"}}, "paymentCalculationOrder": {"type": "string"}, "fees": {"type": "array", "items": {"$ref": "#/definitions/business-loan-installment-summary-without-entity-fee"}}}, "type": "object"}, "business-loan-installment-summary-without-entity-fee": {"required": ["amount", "chargeMethod", "description", "typeCode"], "properties": {"typeCode": {"type": "string"}, "amount": {"type": "number", "format": "float", "example": 0.0}, "description": {"type": "string"}, "chargeMethod": {"type": "string"}}, "type": "object"}, "business-loan-withdrawal-request": {"required": ["amount"], "properties": {"amount": {"type": "number", "format": "float", "description": "Withdrawal amount", "example": 0.0}, "requestedDate": {"type": "string", "format": "date", "description": "Requested withdrawal date", "example": "2016-06-06"}, "description": {"type": "string", "description": "Reason for withdrawal"}}, "type": "object"}, "loan-profile-post": {"properties": {"code": {"type": "string"}, "currency": {"type": "string"}, "description": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "paymentCalculationOrder": {"type": "string"}, "feeBookkeepingMethod": {"type": "string"}, "interestBookkeepingMethod": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "businessAreaId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "loan-profile": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "code": {"type": "string"}, "currency": {"type": "string"}, "description": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "paymentCalculationOrder": {"type": "string"}, "feeBookkeepingMethod": {"type": "string"}, "interestBookkeepingMethod": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "businessAreaId": {"type": "integer", "format": "int", "example": 0}, "referenceRate": {"type": "number", "format": "decimal", "readOnly": true}, "referenceRateSource": {"type": "string", "readOnly": true}, "effectiveInterestRate": {"type": "number", "format": "decimal", "readOnly": true}, "businessArea": {"$ref": "#/definitions/loan-profile-business-area"}}, "type": "object"}, "loan-profile-business-area": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "code": {"type": "string"}}, "type": "object"}, "loan-profile-put": {"properties": {"code": {"type": "string"}, "currency": {"type": "string"}, "description": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "paymentCalculationOrder": {"type": "string"}, "feeBookkeepingMethod": {"type": "string"}, "interestBookkeepingMethod": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "businessAreaId": {"type": "integer", "format": "int", "example": 0}}, "type": "object"}, "loan-profile-search": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "code": {"type": "string"}, "currency": {"type": "string"}, "description": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstPeriodMinDays": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTermsPlaceholderText": {"type": "string"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "interestRateType": {"type": "string", "example": "FIXED", "enum": ["FIXED", "REFERENCE_RATE_PLUS_MARGIN"]}, "paymentCalculationOrder": {"type": "string"}, "feeBookkeepingMethod": {"type": "string"}, "interestBookkeepingMethod": {"type": "string"}, "partInvoiceInstallmentThreshold": {"type": "integer", "format": "int", "example": 0}, "serviceInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "factoringInvoiceInstallmentPercentage": {"type": "integer", "format": "int", "example": 0}, "businessAreaId": {"type": "integer", "format": "int", "example": 0}, "referenceRate": {"type": "number", "format": "decimal", "readOnly": true}, "referenceRateSource": {"type": "string", "readOnly": true}, "effectiveInterestRate": {"type": "number", "format": "decimal", "readOnly": true}, "businessArea": {"$ref": "#/definitions/loan-profile-business-area"}, "query": {"type": "string"}, "queryTarget": {"type": "string"}}, "type": "object"}, "PaymentMatchingEngineCreate": {"required": ["name", "type"], "properties": {"name": {"type": "string", "description": "Name of the payment matching engine"}, "description": {"type": "string", "description": "Description of the payment matching engine"}, "type": {"type": "string", "description": "Type of the payment matching engine (Invoice, CB, PPP, etc.)", "example": "INVOICE", "enum": ["INVOICE", "COLLECTION_BATCH", "ENFORCEMENT", "PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN", "CLIENT_ACCOUNT", "REMINDER", "MULTI_INVOICE"]}, "isDefault": {"type": "boolean", "description": "Indicates if this is the default payment matching engine", "default": false, "example": false}, "active": {"type": "boolean", "description": "Indicates if the payment matching engine is active", "default": true, "example": false}, "rulesets": {"type": "array", "description": "Rulesets for the payment matching engine", "default": [], "items": {"$ref": "#/definitions/PaymentMatchingRulesetCreate"}}, "clients": {"type": "array", "description": "Connected clients", "items": {"type": "string"}}}, "type": "object"}, "PaymentMatchingRulesetCreate": {"required": ["name", "position"], "properties": {"position": {"type": "integer", "format": "int", "description": "Order position of the ruleset", "example": 0}, "name": {"type": "string", "description": "Name of the ruleset"}, "description": {"type": "string", "description": "Description of the ruleset"}, "matchFields": {"type": "array", "description": "Fields to match on", "default": [], "items": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "SENDER_NAME", "SENDER_LEGAL_NUMBER", "SENDER_LEGAL_NUMBER_INTERNAL", "ASSIGNED_PAYMENT_ACCOUNT", "CUSTOMER_NUMBER", "REMINDER_ID", "INVOICE_NUMBER", "INVOICE_ID", "INVOICE_CAPITAL_AMOUNT", "INVOICE_TOTAL_AMOUNT", "INVOICE_CAPITAL_AMOUNT_DISCOUNTED", "INVOICE_TOTAL_AMOUNT_DISCOUNTED", "COLLECTION_BATCH_NUMBER", "COLLECTION_BATCH_ID", "COLLECTION_BATCH_CAPITAL", "COLLECTION_BATCH_TOTAL_AMOUNT", "ENFORCEMENT_ID", "ENFORCEMENT_NUMBER", "ENFORCEMENT_CAPITAL_BALANCE", "ENFORCEMENT_TOTAL_AMOUNT", "BUSINESS_LOAN_ID"]}}}, "type": "object"}, "PaymentMatchingEngine": {"properties": {"id": {"type": "string", "description": "Payment matching engine ID"}, "name": {"type": "string", "description": "Name of the payment matching engine"}, "description": {"type": "string", "description": "Description of the payment matching engine"}, "type": {"type": "string", "description": "Type of the payment matching engine (Invoice, CB, PPP, etc.)", "example": "INVOICE", "enum": ["INVOICE", "COLLECTION_BATCH", "ENFORCEMENT", "PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN", "CLIENT_ACCOUNT", "REMINDER", "MULTI_INVOICE"]}, "isDefault": {"type": "boolean", "description": "Indicates if this is the default payment matching engine", "example": false}, "readOnly": {"type": "boolean", "description": "Indicates if the payment matching engine is an internal engine", "example": false}, "active": {"type": "boolean", "description": "Indicates if the payment matching engine is active", "example": false}, "rulesets": {"type": "array", "description": "Rulesets for the payment matching engine", "items": {"$ref": "#/definitions/PaymentMatchingRuleset"}}, "clients": {"type": "array", "description": "Connected clients", "items": {"$ref": "#/definitions/ClientConnection"}}, "createdDate": {"type": "string", "format": "date-time", "description": "Creation timestamp", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "description": "Last update timestamp", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "PaymentMatchingRuleset": {"properties": {"id": {"type": "integer", "format": "int", "description": "Ruleset ID", "example": 0}, "engineId": {"type": "string", "description": "Engine ID this ruleset belongs to"}, "position": {"type": "integer", "format": "int", "description": "Order position of the ruleset", "example": 0}, "name": {"type": "string", "description": "Name of the ruleset"}, "description": {"type": "string", "description": "Description of the ruleset"}, "matchFields": {"type": "array", "description": "Fields to match on", "items": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "SENDER_NAME", "SENDER_LEGAL_NUMBER", "SENDER_LEGAL_NUMBER_INTERNAL", "ASSIGNED_PAYMENT_ACCOUNT", "CUSTOMER_NUMBER", "REMINDER_ID", "INVOICE_NUMBER", "INVOICE_ID", "INVOICE_CAPITAL_AMOUNT", "INVOICE_TOTAL_AMOUNT", "INVOICE_CAPITAL_AMOUNT_DISCOUNTED", "INVOICE_TOTAL_AMOUNT_DISCOUNTED", "COLLECTION_BATCH_NUMBER", "COLLECTION_BATCH_ID", "COLLECTION_BATCH_CAPITAL", "COLLECTION_BATCH_TOTAL_AMOUNT", "ENFORCEMENT_ID", "ENFORCEMENT_NUMBER", "ENFORCEMENT_CAPITAL_BALANCE", "ENFORCEMENT_TOTAL_AMOUNT", "BUSINESS_LOAN_ID"]}}, "createdDate": {"type": "string", "format": "date-time", "description": "Creation timestamp", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "description": "Last update timestamp", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "ClientConnection": {"properties": {"clientId": {"type": "string", "description": "Client ID"}, "clientName": {"type": "string", "description": "Client Name"}, "engineId": {"type": "string", "description": "Engine ID"}, "createdDate": {"type": "string", "format": "date-time", "description": "Connection timestamp", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "PaymentMatchingEngineFieldsList": {"properties": {"fields": {"type": "array", "description": "Available fields for payment matching engines", "items": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "SENDER_NAME", "SENDER_LEGAL_NUMBER", "SENDER_LEGAL_NUMBER_INTERNAL", "ASSIGNED_PAYMENT_ACCOUNT", "CUSTOMER_NUMBER", "REMINDER_ID", "INVOICE_NUMBER", "INVOICE_ID", "INVOICE_CAPITAL_AMOUNT", "INVOICE_TOTAL_AMOUNT", "INVOICE_CAPITAL_AMOUNT_DISCOUNTED", "INVOICE_TOTAL_AMOUNT_DISCOUNTED", "COLLECTION_BATCH_NUMBER", "COLLECTION_BATCH_ID", "COLLECTION_BATCH_CAPITAL", "COLLECTION_BATCH_TOTAL_AMOUNT", "ENFORCEMENT_ID", "ENFORCEMENT_NUMBER", "ENFORCEMENT_CAPITAL_BALANCE", "ENFORCEMENT_TOTAL_AMOUNT", "BUSINESS_LOAN_ID"]}}}, "type": "object"}, "PaymentMatchingEnginePut": {"properties": {"id": {"type": "string", "description": "Payment matching engine ID"}, "name": {"type": "string", "description": "Name of the payment matching engine"}, "description": {"type": "string", "description": "Description of the payment matching engine"}, "type": {"type": "string", "description": "Type of the payment matching engine (Invoice, CB, PPP, etc.)", "example": "INVOICE", "enum": ["INVOICE", "COLLECTION_BATCH", "ENFORCEMENT", "PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN", "CLIENT_ACCOUNT", "REMINDER", "MULTI_INVOICE"]}, "isDefault": {"type": "boolean", "description": "Indicates if this is the default payment matching engine", "example": false}, "active": {"type": "boolean", "description": "Indicates if the payment matching engine is active", "example": false}, "rulesets": {"type": "array", "description": "Rulesets for the payment matching engine", "items": {"$ref": "#/definitions/PaymentMatchingRulesetUpdate"}}, "clients": {"type": "array", "description": "Connected clients", "items": {"type": "string"}}, "createdDate": {"type": "string", "format": "date-time", "description": "Creation timestamp", "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "description": "Last update timestamp", "example": "2016-06-06T11:22:33"}}, "type": "object"}, "PaymentMatchingRulesetUpdate": {"properties": {"position": {"type": "integer", "format": "int", "description": "Order position of the ruleset", "example": 0}, "name": {"type": "string", "description": "Name of the ruleset"}, "description": {"type": "string", "description": "Description of the ruleset"}, "matchFields": {"type": "array", "description": "Fields to match on", "items": {"type": "string", "example": "PAYMENT_REFERENCE", "enum": ["PAYMENT_REFERENCE", "SENDER_NAME", "SENDER_LEGAL_NUMBER", "SENDER_LEGAL_NUMBER_INTERNAL", "ASSIGNED_PAYMENT_ACCOUNT", "CUSTOMER_NUMBER", "REMINDER_ID", "INVOICE_NUMBER", "INVOICE_ID", "INVOICE_CAPITAL_AMOUNT", "INVOICE_TOTAL_AMOUNT", "INVOICE_CAPITAL_AMOUNT_DISCOUNTED", "INVOICE_TOTAL_AMOUNT_DISCOUNTED", "COLLECTION_BATCH_NUMBER", "COLLECTION_BATCH_ID", "COLLECTION_BATCH_CAPITAL", "COLLECTION_BATCH_TOTAL_AMOUNT", "ENFORCEMENT_ID", "ENFORCEMENT_NUMBER", "ENFORCEMENT_CAPITAL_BALANCE", "ENFORCEMENT_TOTAL_AMOUNT", "BUSINESS_LOAN_ID"]}}}, "type": "object"}, "PaymentMatchingEngineSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "name": {"type": "string", "description": "Filter by name"}, "type": {"type": "string", "description": "Filter by type", "example": "INVOICE", "enum": ["INVOICE", "COLLECTION_BATCH", "ENFORCEMENT", "PART_PAYMENT_PLAN", "PART_PAYMENT_ACCOUNT", "BUSINESS_LOAN", "CLIENT_ACCOUNT", "REMINDER", "MULTI_INVOICE"]}, "isDefault": {"type": "boolean", "description": "Filter by default status", "example": false}, "readOnly": {"type": "boolean", "description": "Filter by default status", "example": false}, "active": {"type": "boolean", "description": "Filter by active status", "example": false}}, "type": "object"}, "ClientConnectionDelete": {"required": ["clientIds"], "properties": {"clientIds": {"type": "array", "description": "List of client IDs to disconnect from the engine", "items": {"type": "string"}}}, "type": "object"}, "ClientConnectionCreate": {"required": ["clientIds"], "properties": {"clientIds": {"type": "array", "description": "List of client IDs to connect to the engine", "items": {"type": "string"}}}, "type": "object"}, "ClientConnectionResponse": {"properties": {"connected": {"type": "array", "description": "Successfully connected clients", "items": {"$ref": "#/definitions/ClientConnection"}}, "errors": {"type": "array", "description": "Errors for failed connections", "items": {"type": "object"}}}, "type": "object"}, "PaymentMatchingSimulate": {"required": ["currency", "paymentAccountId", "references"], "properties": {"references": {"type": "array", "description": "List of references to match against", "items": {"$ref": "#/definitions/PaymentMatchingSimulateReference"}}, "currency": {"type": "string", "description": "Currency code, e.g. 'SEK'"}, "clientId": {"type": "string", "description": "Optional client ID to scope the matching, used for references that do not set their own"}, "amount": {"type": "number", "format": "float", "description": "Transaction amount (defaults to 0)", "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "description": "Transaction amount in locale currency (defaults to amount)", "example": 0.0}, "paymentAccountId": {"type": "string", "description": "Payment account ID"}, "sender": {"description": "Optional sender information for matching", "allOf": [{"$ref": "#/definitions/PaymentMatchingSimulateSender"}]}}, "type": "object"}, "PaymentMatchingSimulateReference": {"required": ["value"], "properties": {"value": {"type": "string", "description": "Reference value, e.g. invoice number"}, "amount": {"type": "number", "format": "float", "description": "Amount for this reference (defaults to 0)", "default": 0, "example": 0.0}, "amountLocale": {"type": "number", "format": "float", "description": "Amount in locale currency (defaults to 0)", "default": 0, "example": 0.0}, "clientId": {"type": "string", "description": "Optional client ID for this reference"}}, "type": "object"}, "PaymentMatchingSimulateSender": {"properties": {"identificationNumber": {"type": "string", "description": "Sender identification / legal number"}, "accountNumber": {"type": "string", "description": "Sender account number"}, "address": {"description": "Sender address information", "allOf": [{"$ref": "#/definitions/PaymentMatchingSimulateSenderAddress"}]}}, "type": "object"}, "PaymentMatchingSimulateSenderAddress": {"properties": {"name": {"type": "string", "description": "Sender name"}, "name2": {"type": "string", "description": "Sender name line 2"}, "address": {"type": "string", "description": "Sender address"}, "address2": {"type": "string", "description": "Sender address line 2"}, "zip": {"type": "string", "description": "Sender zip code"}, "city": {"type": "string", "description": "Sender city"}, "countryCode": {"type": "string", "description": "Sender country code"}}, "type": "object"}, "PaymentMatchingEngineSimulateResponse": {"properties": {"matches": {"type": "array", "items": {"type": "object"}}, "matchedRefs": {"type": "array", "items": {"type": "object"}}, "unmatchedRefs": {"type": "array", "items": {"type": "object"}}}, "type": "object"}, "DebtorPut": {"properties": {"customerNumber": {"type": "string"}, "type": {"type": "string"}, "locale": {"type": "string"}, "vatNumber": {"type": "string"}, "name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/DebtorAddress"}, "deliveryAddress": {"$ref": "#/definitions/DebtorAddress"}, "GLN": {"type": "string"}, "distributionChannelOverride": {"type": "boolean", "example": false}, "distributionChannel": {"type": "string"}, "FMI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "allowEinvoice": {"type": "boolean", "example": false}, "cashDiscountRate": {"type": "number", "format": "float", "example": 0.0}, "cashDiscountValidDays": {"type": "integer", "format": "int", "example": 0}, "cashDiscountChargeClient": {"type": "boolean", "example": false}, "feeChargeClient": {"type": "boolean", "example": false}, "interestCreateFeeChargeClient": {"type": "boolean", "example": false}, "segmentId": {"type": "integer", "format": "int", "example": 0}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "sniCode": {"type": "string"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "allowFactoring": {"type": "boolean", "example": false}, "financingServiceProviderCode": {"type": "string"}, "subtypeId": {"type": "string"}, "subtypeName": {"type": "string"}, "isBlocked": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "DebtorAddress": {"required": ["address", "city", "name", "zip"], "properties": {"name": {"type": "string", "description": "invoice address name. Either a person- or a company name"}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}, "name2": {"type": "string"}, "address3": {"type": "string"}}, "type": "object"}, "Debtor": {"properties": {"id": {"type": "string"}, "clientId": {"type": "string"}, "clientName": {"type": "string"}, "clientAgreementCurrency": {"type": "string"}, "customerNumber": {"type": "string"}, "type": {"type": "string"}, "identificationNumber": {"type": "string"}, "identificationNumberInternal": {"type": "string"}, "locale": {"type": "string"}, "vatNumber": {"type": "string"}, "name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/DebtorAddress"}, "deliveryAddress": {"$ref": "#/definitions/DebtorAddress"}, "GLN": {"type": "string"}, "distributionChannelOverride": {"type": "boolean", "example": false}, "distributionChannel": {"type": "string"}, "FMI": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}, "allowEinvoice": {"type": "boolean", "example": false}, "cashDiscountRate": {"type": "number", "format": "float", "example": 0.0}, "cashDiscountValidDays": {"type": "integer", "format": "int", "example": 0}, "cashDiscountChargeClient": {"type": "boolean", "example": false}, "feeChargeClient": {"type": "boolean", "example": false}, "interestCreateFeeChargeClient": {"type": "boolean", "example": false}, "segment": {"$ref": "#/definitions/segment_object"}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "balances": {"$ref": "#/definitions/debtorBalances"}, "sniCode": {"type": "string"}, "insuranceLimitLocale": {"type": "number", "format": "decimal"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "allowFactoring": {"type": "boolean", "example": false}, "financingServiceProviderCode": {"type": "string"}, "subtypeId": {"type": "string"}, "subtypeName": {"type": "string"}, "isBlocked": {"type": "boolean", "default": false, "example": false}, "groupId": {"type": "integer", "format": "int", "example": 0}, "groupName": {"type": "string"}}, "type": "object"}, "segment_object": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "code": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "debtorBalances": {"properties": {"total": {"type": "number", "format": "decimal"}, "totalLocale": {"type": "number", "format": "decimal"}, "capital": {"type": "number", "format": "decimal"}, "capitalLocale": {"type": "number", "format": "decimal"}, "capitalService": {"type": "number", "format": "decimal"}, "capitalServiceLocale": {"type": "number", "format": "decimal"}, "capitalFinanced": {"type": "number", "format": "decimal"}, "capitalFinancedLocale": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "capitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "capitalFinancedSystemDebtorInsuranceLocale": {"type": "number", "format": "decimal"}, "capitalFinancedClientDebtorInsuranceLocale": {"type": "number", "format": "decimal"}, "reminder": {"type": "number", "format": "decimal"}, "reminderLocale": {"type": "number", "format": "decimal"}, "interest": {"type": "number", "format": "decimal"}, "interestLocale": {"type": "number", "format": "decimal"}, "expiredTotal": {"type": "number", "format": "decimal"}, "expiredTotalLocale": {"type": "number", "format": "decimal"}, "expiredCapital": {"type": "number", "format": "decimal"}, "expiredCapitalLocale": {"type": "number", "format": "decimal"}, "expiredCapitalService": {"type": "number", "format": "decimal"}, "expiredCapitalServiceLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinanced": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedNoRecourse": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedNoRecourseLocale": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedWithRecourse": {"type": "number", "format": "decimal"}, "expiredCapitalFinancedWithRecourseLocale": {"type": "number", "format": "decimal"}, "expiredReminder": {"type": "number", "format": "decimal"}, "expiredReminderLocale": {"type": "number", "format": "decimal"}, "expiredInterest": {"type": "number", "format": "decimal"}, "expiredInterestLocale": {"type": "number", "format": "decimal"}, "totalClientAgreementCurrency": {"type": "number", "format": "decimal"}, "expiredTotalClientAgreementCurrency": {"type": "number", "format": "decimal"}}, "type": "object"}, "DebtorIdentificationNumber": {"required": ["identificationNumber"], "properties": {"identificationNumber": {"type": "string", "description": "The new legal identification number. Moves the debtor and all its invoices, drafts included, to it."}, "confirmExistingSystemDebtor": {"type": "boolean", "description": "Set to true to move the debtor to a number that already has a system debtor. Without it the request returns 409 with reason EXISTING_SYSTEM_DEBTOR.", "default": false, "example": false}}, "type": "object"}, "DebtorSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "clientId": {"type": "string"}, "customerNumber": {"type": "string"}, "type": {"type": "string"}, "identificationNumber": {"type": "string"}, "identificationNumberInternal": {"type": "string"}, "locale": {"type": "string"}, "vatNumber": {"type": "string"}, "GLN": {"type": "string"}, "name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "FMI": {"type": "string"}, "peppolId": {"type": "string"}, "subtype": {"type": "string"}, "cashDiscountRate": {"type": "number", "format": "float", "example": 0.0}, "cashDiscountValidDays": {"type": "integer", "format": "int", "example": 0}, "cashDiscountChargeClient": {"type": "boolean", "example": false}, "feeChargeClient": {"type": "boolean", "example": false}, "interestCreateFeeChargeClient": {"type": "boolean", "example": false}, "invoiceAddress.name": {"type": "string"}, "invoiceAddress.address": {"type": "string"}, "invoiceAddress.address2": {"type": "string"}, "invoiceAddress.address3": {"type": "string"}, "invoiceAddress.zip": {"type": "string"}, "invoiceAddress.city": {"type": "string"}, "invoiceAddress.countryCode": {"type": "string"}, "deliveryAddress.name": {"type": "string"}, "deliveryAddress.address": {"type": "string"}, "deliveryAddress.address2": {"type": "string"}, "deliveryAddress.address3": {"type": "string"}, "deliveryAddress.zip": {"type": "string"}, "deliveryAddress.city": {"type": "string"}, "deliveryAddress.countryCode": {"type": "string"}, "insuranceLimitLocale": {"type": "number", "format": "decimal"}, "allowFactoring": {"type": "boolean", "example": false}, "balances.totalLocale": {"type": "number", "format": "decimal"}, "financingRate": {"type": "number", "format": "float", "example": 0.0}, "segmentId": {"type": "integer", "format": "int", "example": 0}, "financingServiceProviderCode": {"type": "string"}}, "type": "object"}, "createCreditCheckModel": {"required": ["amountLocale"], "properties": {"identificationNumber": {"type": "string"}, "vatNumber": {"type": "string"}, "countryCode": {"type": "string"}, "amountLocale": {"type": "number", "format": "decimal"}}, "type": "object"}, "clientDebtorInfo": {"properties": {"name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "vatNumber": {"type": "string"}, "type": {"type": "string"}, "customerNumber": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/DebtorAddress"}, "preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}, "GLN": {"type": "string"}, "peppolId": {"type": "string", "example": "0007:5567321707"}}, "type": "object"}, "CreditDataDebtorWithPdf": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "fileName": {"type": "string"}, "creditCheckDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "serviceProviderName": {"type": "string"}, "latestUpdatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "metadata": {"type": "object", "default": {}}, "monitoringEvents": {"type": "array", "items": {"$ref": "#/definitions/monitoringDataDebtor"}}}, "type": "object"}, "monitoringDataDebtor": {"properties": {"metadata": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "type": {"type": "string"}, "topic": {"type": "string"}}, "type": "object"}, "CreditDataDebtorWithPdfItem": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "fileName": {"type": "string"}, "creditCheckDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "serviceProviderName": {"type": "string"}, "latestUpdatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "metadata": {"type": "object", "default": {}}, "monitoringEvents": {"type": "array", "items": {"$ref": "#/definitions/monitoringDataDebtor"}}, "decisionMessage": {"type": "string"}}, "type": "object"}, "CreditDataDebtorSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "metadata": {"type": "object", "default": {}}, "serviceProviderId": {"type": "string"}, "serviceProviderName": {"type": "string"}, "creditCheckDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "latestUpdatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "identificationNumber": {"type": "string"}, "monitoringEvents": {"type": "array", "items": {"$ref": "#/definitions/monitoringDataDebtor"}}}, "type": "object"}, "CollectionBatchGuarantorDebtor": {"required": ["address", "city", "collectionBatchId", "identificationNumber", "name", "zip"], "properties": {"id": {"type": "integer", "format": "int", "example": 0}, "identificationNumber": {"type": "string"}, "collectionBatchId": {"type": "string"}, "name": {"type": "string"}, "address": {"type": "string"}, "address2": {"type": "string"}, "address3": {"type": "string"}, "zip": {"type": "string"}, "city": {"type": "string"}, "countryCode": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}}, "type": "object"}, "creditHistoryMonitoringDebtor": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "sourceId": {"type": "string"}, "serviceProviderCode": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "metadata": {"type": "object", "default": {}}, "identificationNumber": {"type": "string"}, "source": {"type": "string"}, "fileName": {"type": "string"}}, "type": "object"}, "preferredLanguage": {"required": ["preferredLanguage"], "properties": {"preferredLanguage": {"type": "string", "example": "sv", "enum": ["sv", "nb", "en", "fi", "da", "pl"]}}, "type": "object"}, "clientDebtorDeleteReminderProfile": {"properties": {"productCode": {"type": "string"}, "debtorType": {"type": "string"}}, "type": "object"}, "clientDebtorUpdateReminderProfile": {"properties": {"reminderProfileId": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}}, "type": "object"}, "debtorReminderProfile": {"properties": {"debtorId": {"type": "string"}, "reminderProfileId": {"type": "string"}, "reminderProfileCode": {"type": "string"}, "currency": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}}, "type": "object"}, "clientDebtorEffectiveReminderProfile": {"properties": {"reminderProfileId": {"type": "string"}, "reminderProfileCode": {"type": "string"}, "currency": {"type": "string"}, "productCode": {"type": "string"}, "debtorType": {"type": "string"}, "source": {"type": "string"}}, "type": "object"}, "CreditCheck": {"required": ["id", "serviceProviderId"], "properties": {"id": {"type": "string"}, "serviceProviderId": {"type": "string"}}, "type": "object"}, "DebtorBlocked": {"required": ["identificationNumber"], "properties": {"id": {"type": "integer", "format": "int", "readOnly": true, "example": 0}, "identificationNumber": {"type": "string"}, "debtorName": {"type": "string", "readOnly": true}, "includeFactoringSell": {"type": "boolean", "default": true, "example": false}, "includeService": {"type": "boolean", "default": true, "example": false}, "reason": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string", "readOnly": true}, "updatedDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string", "readOnly": true}}, "type": "object"}, "DebtorBlockedPost": {"required": ["identificationNumber"], "properties": {"identificationNumber": {"type": "string"}, "includeFactoringSell": {"type": "boolean", "default": true, "example": false}, "includeService": {"type": "boolean", "default": true, "example": false}, "reason": {"type": "string"}}, "type": "object"}, "DebtorBlockedSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "identificationNumber": {"type": "string"}, "includeFactoringSell": {"type": "boolean", "example": false}, "includeService": {"type": "boolean", "example": false}, "reason": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "DebtorContact": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "role": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "DebtorContactSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "integer", "format": "int", "example": 0}, "name": {"type": "string"}, "role": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}}, "type": "object"}, "DebtorFinancialEvent": {"properties": {"id": {"type": "string"}, "source": {"type": "string"}, "sourceEventId": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "date": {"type": "string", "format": "date", "example": "2016-06-06"}, "type": {"type": "string"}, "description": {"type": "string"}, "currency": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "metadata": {"$ref": "#/definitions/DebtorFinancialEventMetadata"}, "payment": {"$ref": "#/definitions/DebtorFinancialEventPayment"}, "amounts": {"$ref": "#/definitions/DebtorFinancialEventAmounts"}}, "type": "object"}, "DebtorFinancialEventSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "source": {"type": "string"}, "sourceEventId": {"type": "string"}, "debtorId": {"type": "string"}, "debtorIdentificationNumber": {"type": "string"}, "createdDate": {"type": "string"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string"}, "updatedBy": {"type": "string"}, "date": {"type": "string"}, "type": {"type": "string"}, "description": {"type": "string"}, "currency": {"type": "string"}, "collectionBatchId": {"type": "string"}, "enforcementId": {"type": "string"}, "invoiceId": {"type": "string"}, "invoiceNumber": {"type": "string"}, "partPaymentPlanId": {"type": "string"}, "partPaymentAccountId": {"type": "string"}, "paymentTransactionId": {"type": "string"}, "paymentStatus": {"type": "string"}, "paymentExternalId": {"type": "string"}, "paymentSenderIdentificationNumber": {"type": "string"}, "feeType": {"type": "string"}, "collectionBatchNumber": {"type": "string"}, "enforcementNumber": {"type": "string"}, "amountCapital": {"type": "string"}, "amountFee": {"type": "string"}, "amountInterest": {"type": "string"}, "amountTotal": {"type": "string"}}, "type": "object"}, "createLabeltDebtor": {"required": ["label", "valueJson"], "properties": {"label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "labelDebtor": {"properties": {"id": {"type": "string"}, "label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}}, "type": "object"}, "updateLabelDebtor": {"required": ["valueJson"], "properties": {"label": {"type": "string"}, "valueJson": {"type": "string", "format": "dict", "default": {}}}, "type": "object"}, "DebtorNote": {"properties": {"id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}, "documents": {"type": "array", "items": {"$ref": "#/definitions/DocumentDebtorNote"}}}, "type": "object"}, "DocumentDebtorNote": {"properties": {"id": {"type": "string"}, "fileName": {"type": "string"}, "fileNameRaw": {"type": "string"}}, "type": "object"}, "DebtorNoteSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "id": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdBy": {"type": "string"}, "updatedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "updatedBy": {"type": "string"}, "description": {"type": "string"}}, "type": "object"}, "PartPaymentPlanDebtor": {"properties": {"id": {"type": "integer", "format": "int", "example": 0}, "systemDebtorId": {"type": "string"}, "systemDebtorName": {"type": "string"}, "debtorId": {"type": "string"}, "debtorName": {"type": "string"}, "productCode": {"type": "string"}, "annuity": {"type": "integer", "format": "int", "example": 0}, "currency": {"type": "string"}, "type": {"type": "string"}, "variant": {"type": "string"}, "status": {"type": "string"}, "totalInstallmentAmount": {"type": "number", "format": "decimal"}, "partPaymentPlanDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "paymentReference": {"type": "string"}, "partInvoiceFrequency": {"type": "integer", "format": "int", "example": 0}, "partInvoiceDateMethod": {"type": "string"}, "partInvoiceDateMethodDayOfMonth": {"type": "integer", "format": "int", "example": 0}, "partInvoicePaymentTerms": {"type": "integer", "format": "int", "example": 0}, "partInvoiceFirstExpireDate": {"type": "string", "format": "date", "example": "2016-06-06"}, "partInvoiceRemark": {"type": "string"}, "partInvoicePaymentDistributionCode": {"type": "string"}, "partInvoicePaymentReminderProfileCode": {"type": "string"}, "priceStartFee": {"type": "number", "format": "decimal"}, "priceAdministrationFee": {"type": "number", "format": "decimal"}, "priceRetainerPercentage": {"type": "number", "format": "decimal"}, "priceInterest": {"type": "number", "format": "decimal"}, "priceInterestFreeDays": {"type": "integer", "format": "int", "example": 0}, "paymentCalculationOrder": {"type": "string"}, "finance": {"type": "boolean", "example": false}, "financeServiceProviderCode": {"type": "string"}, "invoices": {"$ref": "#/definitions/PartInvoiceDebtor"}, "collectionBatches": {"$ref": "#/definitions/CollectionBatchPartPaymentPlanDebtor"}, "debtSummary": {"$ref": "#/definitions/PartPaymentPlanDebtorDebt"}, "planSummary": {"$ref": "#/definitions/PlanDebtor"}, "partInvoices": {"$ref": "#/definitions/PartInvoicesDebtor"}, "partInvoiceList": {"type": "array", "items": {"$ref": "#/definitions/PartInvoiceListDebtor"}}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceCapitalLocale": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceFeeLocale": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "balanceInterestLocale": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceTotalLocale": {"type": "number", "format": "decimal"}, "financeServiceProviderId": {"type": "string"}, "partInvoiceDistributionCode": {"type": "string"}, "partPaymentAgreementDistributionCode": {"type": "string"}, "partInvoiceReminderProfileCode": {"type": "string"}, "paymentMethodVariantId": {"type": "integer", "format": "int", "example": 0}, "productId": {"type": "string"}}, "type": "object"}, "PartInvoiceDebtor": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "CollectionBatchPartPaymentPlanDebtor": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartPaymentPlanDebtorDebt": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PlanDebtor": {"properties": {"balanceFee": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartInvoicesDebtor": {"properties": {"countTotal": {"type": "integer", "format": "int", "example": 0}, "countActivated": {"type": "integer", "format": "int", "example": 0}, "countClosed": {"type": "integer", "format": "int", "example": 0}, "countRemaining": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}}, "type": "object"}, "PartInvoiceListDebtor": {"properties": {"status": {"type": "integer", "format": "int", "example": 0}, "invoiceMainStatus": {"type": "integer", "format": "int", "example": 0}, "invoiceId": {"type": "integer", "format": "int", "example": 0}, "totalToPay": {"type": "number", "format": "decimal"}, "totalInterest": {"type": "number", "format": "decimal"}, "totalReminder": {"type": "number", "format": "decimal"}, "balanceTotal": {"type": "number", "format": "decimal"}, "balanceCapital": {"type": "number", "format": "decimal"}, "balanceReminder": {"type": "number", "format": "decimal"}, "balanceInterest": {"type": "number", "format": "decimal"}, "expireDate": {"type": "string"}, "invoiceDate": {"type": "string"}}, "type": "object"}, "debtor_public": {"properties": {"id": {"type": "string"}, "customerNumber": {"type": "string"}, "identificationNumber": {"type": "string"}, "name": {"type": "string"}, "email": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailExpiredDocuments": {"type": "string", "format": "email", "example": "email@domain.com"}, "emailInterestInvoice": {"type": "string", "format": "email", "example": "email@domain.com"}, "phone": {"type": "string"}, "cellPhone": {"type": "string"}, "invoiceAddress": {"$ref": "#/definitions/debtor_public_address"}, "deliveryAddress": {"$ref": "#/definitions/debtor_public_address"}}, "type": "object"}, "debtor_public_address": {"required": ["address", "city", "name", "zip"], "properties": {"name": {"type": "string", "description": "invoice address name. Either a person- or a company name"}, "address": {"type": "string", "description": "The first address line of the container."}, "address2": {"type": "string", "description": "The second address line of the container."}, "zip": {"type": "string", "description": "The zip code of the container"}, "city": {"type": "string", "description": "The city of the container"}, "countryCode": {"type": "string", "description": "The country code of the container. We always use https://en.wikipedia.org/wiki/ISO_3166-1 with 2 characters."}, "address3": {"type": "string"}}, "type": "object"}, "debtor_type_update": {"required": ["category", "name"], "properties": {"name": {"type": "string"}, "description": {"type": "string"}, "category": {"type": "string", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "excludeAutomaticCreditChecks": {"type": "boolean", "default": false, "example": false}}, "type": "object"}, "debtor_type": {"required": ["category", "name"], "properties": {"id": {"type": "string", "readOnly": true}, "name": {"type": "string"}, "description": {"type": "string"}, "category": {"type": "string", "example": "COMPANY", "enum": ["COMPANY", "PERSON"]}, "excludeAutomaticCreditChecks": {"type": "boolean", "default": false, "example": false}, "isDefault": {"type": "boolean", "readOnly": true, "example": false}, "createdDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}, "updatedDate": {"type": "string", "format": "date-time", "readOnly": true, "example": "2016-06-06T11:22:33"}}, "type": "object"}, "DebtorToDoPost": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "description": {"type": "string"}, "debtorId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "type": {"type": "string"}, "isCreditMonitoring": {"type": "boolean", "example": false}}, "type": "object"}, "DebtorToDo": {"properties": {"id": {"type": "string"}, "debtorId": {"type": "string"}, "createdDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "createdById": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "assignedUserGroupName": {"type": "string"}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "resolvedDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolvedBy": {"type": "string"}, "description": {"type": "string"}, "noteId": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}, "systemAlert": {"type": "boolean", "example": false}, "type": {"type": "string"}, "activities": {"type": "object"}}, "type": "object"}, "UpdateDebtorToDo": {"properties": {"assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "integer", "format": "int", "example": 0}, "dueDate": {"type": "string", "format": "date-time", "example": "2016-06-06T11:22:33"}, "resolved": {"type": "boolean", "example": false}, "description": {"type": "string"}, "highPriority": {"type": "boolean", "example": false}}, "type": "object"}, "DebtorToDoSearch": {"properties": {"query": {"type": "string"}, "queryTarget": {"type": "string"}, "debtorId": {"type": "string"}, "assignedUserId": {"type": "string"}, "assignedUserGroupId": {"type": "string"}, "resolved": {"type": "string"}, "dueDate": {"type": "string"}, "highPriority": {"type": "string"}, "systemAlert": {"type": "string"}, "type": {"type": "string"}}, "type": "object"}, "ResolveMultipleDebtorToDo": {"required": ["todoIds"], "properties": {"todoIds": {"type": "array", "description": "List of todo IDs to resolve", "items": {"type": "string"}}}, "type": "object"}}, "responses": {"ParseError": {"description": "When a mask can't be parsed"}, "MaskError": {"description": "When any error occurs on mask"}, "HTTPException": {}, "AmbiguousMatchError": {"description": "CleanseMatch returned a top candidate below threshold"}, "FinqException": {"description": "Return a custom message and 400 status code"}, "OperationalError": {}}}
