{"apiVersion":"1","swaggerVersion":"1.1","basePath":"https://portal.srxp.com\/api\/1","resourcePath":"\/assistants","apis":[{"path":"\/assistants\/{assistantId}","operations":[{"httpMethod":"GET","nickname":"assistantView","responseClass":"AssistantResponse","summary":"Retrieve a single assistant with its account and account which assistant belongs to.","notes":"You can retrieve an assistant only if you account which assistant belongs to or a company admins.","errorResponses":[{"code":401,"reason":"You need to be logged in to view this action, but you have not supplied a valid access key."},{"code":403,"reason":"You are not authorized to access this location."},{"code":404,"reason":"The item you referenced could not be found."}],"private":false,"parameters":[{"paramType":"path","required":true,"dataType":"int","description":"ID of the assistant","name":"assistantId"}],"responseCode":200},{"httpMethod":"PUT","nickname":"assistantEdit","summary":"Edit an assistant","errorResponses":[{"code":422,"reason":"Editing the assistant failed with validation errors.","responseClass":"AssistantEditErrors"},{"code":400,"reason":"Malformed JSON"},{"code":401,"reason":"You need to be logged in to view this action, but you have not supplied a valid access key."},{"code":403,"reason":"You are not authorized to access this location."},{"code":404,"reason":"The item you referenced could not be found."},{"code":415,"reason":"Invalid content type (must be 'application\/json')"}],"private":false,"parameters":[{"description":"ID of the assistant you want to edit.","paramType":"path","dataType":"int","required":true,"name":"assistantId"},{"paramType":"body","dataType":"AssistantEdit","description":"Assistant fields.","required":true,"name":"Assistant"}],"responseCode":200},{"httpMethod":"DELETE","nickname":"assistantDelete","summary":"Delete an assistant","description":"Delete the assistant with the given ID.","errorResponses":[{"code":401,"reason":"You need to be logged in to view this action, but you have not supplied a valid access key."},{"code":403,"reason":"You are not authorized to access this location."},{"code":404,"reason":"The item you referenced could not be found."}],"private":false,"parameters":[{"description":"The ID of the assistant to delete.","name":"assistantId","paramType":"path","required":true,"dataType":"int"}],"responseCode":200}]}],"models":{"ListMeta":{"id":"ListMeta","properties":{"count":{"type":"int","description":"The total number of matching items existing at this resource, i.e. the number of items that had been returned had no limit been applied.","required":true}}},"EmptyObject":{"id":"EmptyObject","properties":{}},"Picture":{"id":"Picture","properties":{"name":{"type":"string","description":"The picture's filename","required":true},"contents":{"type":"string","description":"Base64 encoded contents of the image file.","required":true}}},"BulkDeleteErrors":{"id":"BulkDeleteErrors","properties":{"id":{"type":"int","required":true},"success":{"type":"boolean","required":true},"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden"]}}}},"AccessKeyList":{"id":"AccessKeyList","properties":{"id":{"type":"int","required":true},"user_id":{"type":"int","required":true},"last_used":{"type":"Date","required":true},"expires":{"type":"int","required":true},"created":{"type":"Date","required":true},"user_agent":{"type":"string","required":true}}},"UserLogin":{"id":"UserLogin","properties":{"email":{"type":"string","required":false,"description":"An e-mail and password can be passed in the JSON response optionally, if no HTTP Basic Authentication is used. These fields are ignored when Basic Auth is supplied."},"password":{"type":"string","required":false,"description":"See the description at `email`."},"expires":{"type":"int","required":false,"description":"The timestamp at which this access key should expire. You can specify '-1' if you want an access key that doesn't expire. Not specifying this field will result in a default expiration time of 2 hours."}}},"AccessKeyAdd":{"id":"AccessKeyAdd","properties":{"id":{"type":"int","required":true},"access_key":{"type":"string","required":true},"user_id":{"type":"string","required":true},"expires":{"type":"int","required":true}}},"AccessKeyDeleteResponse":{"id":"AccessKeyDeleteResponse","properties":{"redirect_url":{"type":"string","required":true}}},"ApprovePolicy":{"id":"ApprovePolicy","properties":{"type":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["assign_approver","choose_approver"]}},"approver_id":{"type":"int","required":false,"description":"The ID of the assigned approved if 'assign_approver' is used as a policy or the default choice if 'choose_approver' is used. Only required for 'assign_approver'."}}},"ApproveStage":{"id":"ApproveStage","properties":{"approver_id":{"type":"int","required":true},"type":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["assign_approver","choose_approver"]}}}},"TravelAllowanceAccount":{"id":"TravelAllowanceAccount","properties":{"amount":{"type":"float","description":"The travel allowance fee","required":true},"distance_unit":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["km","mi"]}}}},"Account":{"id":"Account","properties":{"id":{"type":"int","required":true},"firstname":{"type":"string","required":true},"surname":{"type":"string","required":true},"active":{"type":"boolean","required":true},"expense_count":{"type":"int","required":true},"creditor_nr":{"type":"string","required":false},"email":{"type":"string","required":true},"customer_id":{"type":"int","required":true},"inherit_travel_allowance":{"type":"bool","required":true},"user_id":{"type":"int","required":true},"job_title_id":{"type":"int","required":true},"establishment_id":{"type":"int","required":true},"free_1":{"type":"string","required":false},"free_2":{"type":"string","required":false},"free_3":{"type":"string","required":false},"created":{"type":"date","required":true},"modified":{"type":"date","required":true},"travel_allowance":{"type":"TravelAllowanceAccount","required":false,"description":"A user's travel allowance, only present on the Account object if inherit_travel_allowance is false"},"approve_stages":{"required":true,"type":"Array","description":"The stages used to decide how this account's reports are approved. There can be several approve stages, each of which consists of multiple approve policies.","items":{"$ref":"ApproveStage"}},"trip_approve_stages":{"required":false,"type":"Array","description":"The stages used to decide how this account's trips are approved. There can be several approve stages, each of which consists of multiple approve policies.","items":{"$ref":"ApproveStage"}},"is_admin":{"type":"boolean","required":true},"is_reporter":{"type":"boolean","required":true},"is_exporter":{"type":"boolean","required":true},"is_approver":{"type":"boolean","required":true},"disallowed_categories":{"type":"Array","description":"Array of category ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":true},"disallowed_projects":{"type":"Array","description":"Array of projects ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"disallowed_payment_methods":{"type":"Array","description":"Array of payment method ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":true},"allowed_categories":{"type":"Array","description":"Array of category ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":true},"allowed_projects":{"type":"Array","description":"Array of projects ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"allowed_payment_methods":{"type":"Array","description":"Array of payment method ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":true},"email_token":{"type":"string","required":false},"deleted":{"type":"bool","required":false,"description":"Whether or not this account has been deleted. Only applicable when accounts are retrieved as associated resource."}}},"AccountResponse":{"id":"AccountResponse","properties":{"accounts":{"type":"Array","items":{"$ref":"Account"}},"customers":{"type":"Array","items":{"$ref":"Customer"}},"job_titles":{"type":"Array","items":{"$ref":"JobTitle"}},"establishments":{"type":"Array","items":{"$ref":"Establishment"}},"users":{"type":"Array","items":{"$ref":"User"}}}},"AccountList":{"id":"AccountList","properties":{"meta":{"type":"ListMeta","required":true},"accounts":{"type":"Array","items":{"$ref":"Account"}},"customers":{"type":"Array","items":{"$ref":"Customer"}},"job_titles":{"type":"Array","items":{"$ref":"JobTitle"}},"establishments":{"type":"Array","items":{"$ref":"Establishment"}},"users":{"type":"Array","items":{"$ref":"User"}}}},"AccountDeleteErrors":{"id":"AccountDeleteErrors","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["is_admin","has_reporters"]}}}},"TransferApproverRole":{"id":"TransferApproverRole","properties":{"new_approver_id":{"type":"int","required":false}}},"AccountAdd":{"id":"AccountAdd","properties":{"firstname":{"type":"string","required":true},"surname":{"type":"string","required":true},"job_title_id":{"type":"int","required":true},"establishment_id":{"type":"int","required":true},"email":{"type":"string","required":true},"inherit_travel_allowance":{"type":"bool","required":true},"is_admin":{"type":"boolean","required":false,"description":"Defaults to false"},"is_reporter":{"type":"boolean","required":false,"description":"Defaults to true"},"is_exporter":{"type":"boolean","required":false,"description":"Defaults to false"},"is_approver":{"type":"boolean","required":false,"description":"Defaults to false"},"active":{"type":"boolean","required":true},"free_1":{"type":"string","required":false},"free_2":{"type":"string","required":false},"free_3":{"type":"string","required":false},"creditor_nr":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceAccount","required":false,"description":"A user's travel allowance, only present on the Account object if inherit_travel_allowance is false"},"approve_stages":{"required":false,"type":"Array","description":"The stages used to decide how this account's reports are approved. There can be several approve stages, each of which consists of multiple approve policies.","items":{"$ref":"ApproveStage"}},"trip_approve_stages":{"required":false,"type":"Array","description":"The stages used to decide how this account's trips are approved. There can be several approve stages, each of which consists of multiple approve policies. If this field is omitted and the trip feature is enabled, the approve_stages are copied to the trip_approve_stages","items":{"$ref":"ApproveStage"}},"disallowed_categories":{"type":"Array","description":"Array of category ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"disallowed_payment_methods":{"type":"Array","description":"Array of payment method ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"allowed_categories":{"type":"Array","description":"Array of category ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"allowed_payment_methods":{"type":"Array","description":"Array of payment method ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false}}},"AccountAddSuccess":{"id":"AccountAddSuccess","properties":{"id":{"type":"int","required":true}}},"ActivationToken":{"id":"ActivationToken","properties":{"token":{"type":"string","required":true,"description":"Token linked to the account"}}},"AccountTokenAddSuccess":{"id":"AccountTokenAddSuccess","properties":{"account_id":{"type":"int","required":true}}},"AccountEdit":{"id":"AccountEdit","properties":{"firstname":{"type":"string","required":false},"surname":{"type":"string","required":false},"job_title_id":{"type":"int","required":false,"description":"The job title id must belong to the customer this account is linked to"},"establishment_id":{"type":"int","required":false,"description":"The establishment id must belong to the customer this account is linked to"},"email":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceAccount","required":false},"inherit_travel_allowance":{"type":"bool","required":false},"is_admin":{"type":"bool","required":false},"is_reporter":{"type":"bool","required":false},"is_approver":{"type":"bool","required":false},"is_exporter":{"type":"bool","required":false},"creditor_nr":{"type":"string","required":false},"allowed_categories":{"type":"Array","description":"Array of category ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"allowed_projects":{"type":"Array","description":"Array of allowed projects ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"allowed_payment_methods":{"type":"Array","description":"Array of payment method ID's this account is allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":true},"disallowed_categories":{"type":"Array","description":"Array of category ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"disallowed_projects":{"type":"Array","description":"Array of projects ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"disallowed_payment_methods":{"type":"Array","description":"Array of payment method ID's this account is not allowed to use despite the setting in the account's job title.","items":{"$ref":"int"},"required":false},"active":{"type":"boolean","required":false},"approve_stages":{"required":true,"type":"Array","description":"The stages used to decide how this account's reports are approved. There can be several approve stages, each of which consists of multiple approve policies.","items":{"$ref":"ApproveStage"}},"trip_approve_stages":{"required":false,"type":"Array","description":"The stages used to decide how this account's trips are approved. There can be several approve stages, each of which consists of multiple approve policies.","items":{"$ref":"ApproveStage"}},"free_1":{"type":"string","required":false},"free_2":{"type":"string","required":false},"free_3":{"type":"string","required":false}}},"AccountBulkDeleteErrors":{"id":"AccountBulkDeleteErrors","properties":{"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","is_admin","has_reporters"]}},"id":{"type":"int","required":true},"success":{"type":"boolean","required":true}}},"AccountTokenResponse":{"id":"AccountTokenResponse","properties":{"account_id":{"type":"int","required":true},"customer_name":{"type":"string","required":true},"firstname":{"type":"string","required":true},"surname":{"type":"string","required":true},"email":{"type":"string","required":true},"email_exists":{"type":"bool","required":true}}},"AliasAdd":{"id":"AliasAdd","properties":{"translation_key":{"type":"string","required":true},"translation_value":{"type":"string","required":false},"types":{"type":"array","required":true},"status":{"type":"boolean","required":false}}},"AliasAddSuccess":{"id":"AliasAddSuccess","properties":{"id":{"type":"int","required":true}}},"AliasList":{"id":"AliasList","properties":{"customer_id":{"type":"int","required":true},"translation_key":{"type":"string","required":true},"translation_value":{"type":"string","required":false},"types":{"type":"array","required":false},"status":{"type":"string","required":false},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"AliasEdit":{"id":"AliasEdit","properties":{"translation_value":{"type":"string","required":false}}},"Assistant":{"id":"Assistant","properties":{"id":{"type":"int","required":true},"account_id":{"type":"int","required":true,"description":"ID of the account that grants another account some of his rights."},"assistant_account_id":{"type":"int","required":true,"description":"ID of the assistant account that is granted some rights of another account."},"activation_date":{"type":"Date","required":true},"expiration_date":{"type":"Date","required":true},"is_reporter":{"type":"boolean","required":true,"description":"Whether or not the assistant inherits reporter rights from the account."},"is_approver":{"type":"boolean","required":true,"description":"Whether or not the assistant inherits approver rights from the account."},"is_exporter":{"type":"boolean","required":true,"description":"Whether or not the assistant inherits exporter rights from the account."}}},"AssistantResponse":{"id":"AssistantResponse","properties":{"assistants":{"type":"Array","description":"List of assistants","items":{"$ref":"Assistant"}},"accounts":{"type":"Array","description":"List of accounts","required":false,"items":{"$ref":"Account"}},"assistant_accounts":{"type":"Array","description":"List of assistant accounts","required":false,"items":{"$ref":"Account"}}}},"AssistantList":{"id":"AssistantList","properties":{"meta":{"type":"ListMeta","required":true},"assistants":{"type":"Array","description":"List of assistants","items":{"$ref":"Assistant"}},"accounts":{"type":"Array","description":"List of accounts","required":false,"items":{"$ref":"Account"}},"assistant_accounts":{"type":"Array","description":"List of assistant accounts","required":false,"items":{"$ref":"Account"}}}},"AssistantAdd":{"id":"AssistantAdd","properties":{"account_id":{"type":"int","required":true,"description":"ID of the account that grants another account some of his rights."},"assistant_account_id":{"type":"int","required":true,"description":"ID of the assistant account that is granted some rights of another account."},"activation_date":{"type":"Date","required":true},"expiration_date":{"type":"Date","required":false},"is_reporter":{"type":"boolean","required":true,"description":"Whether or not the assistant inherits reporter rights from the account."},"is_approver":{"type":"boolean","required":true,"description":"Whether or not the assistant inherits approver rights from the account."},"is_exporter":{"type":"boolean","required":true,"description":"Whether or not the assistant inherits exporter rights from the account."}}},"AssistantAddSuccess":{"id":"AssistantAddSuccess","properties":{"id":{"type":"int","required":true}}},"AssistantEdit":{"id":"AssistantEdit","properties":{"account_id":{"type":"int","required":false,"description":"ID of the account that grants another account some of his rights."},"assistant_account_id":{"type":"int","required":false,"description":"ID of the assistant account that is granted some rights of another account."},"activation_date":{"type":"Date","required":false},"expiration_date":{"type":"Date","required":false},"is_reporter":{"type":"boolean","required":false,"description":"Whether or not the assistant inherits reporter rights from the account."},"is_approver":{"type":"boolean","required":false,"description":"Whether or not the assistant inherits approver rights from the account."},"is_exporter":{"type":"boolean","required":false,"description":"Whether or not the assistant inherits exporter rights from the account."}}},"AttachmentUrls":{"id":"AttachmentUrls","properties":{"original":{"type":"string","required":true,"description":"URL for the original attachment."},"thumbnail":{"type":"string","required":true,"description":"URL for the thumbnail that is generated from the original attachment."},"preview":{"type":"string","required":true,"description":"URL for the preview that is generated from the original attachment."}}},"Attachment":{"id":"Attachment","properties":{"id":{"type":"int","required":true},"filename":{"type":"string","required":true},"rotation":{"type":"int","required":true,"description":"Rotation of the attachment in degrees","allowableValues":{"valueType":"LIST","values":[0,90,180,270]}},"created":{"type":"Date","required":true},"urls":{"type":"Array","required":true,"description":"URLs of the attachment","items":{"$ref":"AttachmentUrls"}},"expense_id":{"type":"int","required":false}}},"AttachmentResponse":{"id":"AttachmentResponse","properties":{"attachments":{"type":"Array","description":"List of attachments","items":{"$ref":"Attachment"}}}},"AttachmentList":{"id":"AttachmentList","properties":{"meta":{"type":"ListMeta","required":true},"attachments":{"type":"Array","description":"List of attachments","items":{"$ref":"Attachment"}}}},"AttachmentAdd":{"id":"AttachmentAdd","properties":{"filename":{"type":"string","description":"The attachment's filename","required":true},"contents":{"type":"string","description":"Base64 encoded contents of the attachment file.","required":true}}},"AttachmentEdit":{"id":"AttachmentEdit","properties":{"rotation":{"type":"int","required":false,"description":"Rotation of the attachment in degrees","allowableValues":{"valueType":"LIST","values":[0,90,180,270]}}}},"AttachmentDeleteError":{"id":"AttachmentDeleteError","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["submitted","has_strict_transaction"]}}}},"attachmentForDownloadError":{"id":"attachmentForDownloadError","properties":{}},"BusinessRuleCondition":{"id":"BusinessRuleCondition","properties":{"id":{"type":"int","required":true},"business_rule_id":{"type":"int","required":true},"resource":{"type":"string","required":true},"resource_id":{"type":"int","required":false},"account_resource":{"type":"string","required":false},"account_resource_id":{"type":"int","required":false},"group_by":{"type":"string","required":true},"operator":{"type":"string","required":true},"operand":{"type":"int","required":true},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"BusinessRuleAction":{"id":"BusinessRuleAction","properties":{"id":{"type":"int","required":true},"business_rule_id":{"type":"int","required":true},"action":{"type":"string","required":true},"type":{"type":"string","required":true},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"BusinessRule":{"id":"BusinessRule","properties":{"id":{"type":"int","required":true},"active":{"type":"boolean","required":true},"customer_id":{"type":"int","required":true},"currency_id":{"type":"int","required":true,"description":"The id of the currency of the business rule"},"created":{"type":"date","required":true},"modified":{"type":"date","required":true},"conditions":{"type":"Array","required":true,"items":{"$ref":"BusinessRuleCondition"}},"actions":{"type":"Array","required":true,"items":{"$ref":"BusinessRuleAction"}}}},"BusinessRuleResponse":{"id":"BusinessRuleResponse","properties":{"business_rules":{"type":"Array","description":"List of business rules","items":{"$ref":"BusinessRule"}},"projects":{"type":"Array","items":{"$ref":"Project"}},"categories":{"type":"Array","items":{"$ref":"Category"}}}},"BusinessRuleList":{"id":"BusinessRuleList","properties":{"meta":{"type":"ListMeta","required":true},"business_rules":{"type":"Array","description":"List of business rules","items":{"$ref":"BusinessRule"}},"projects":{"type":"Array","items":{"$ref":"Project"}},"categories":{"type":"Array","items":{"$ref":"Category"}}}},"BusinessRuleResponseSuccess":{"id":"BusinessRuleResponseSuccess","properties":{"id":{"type":"int","required":true}}},"ApproveStages":{"id":"ApproveStages","properties":{"policies":{"type":"Array","items":{"$ref":"ApproveStage"}}}},"BusinessRuleConditionDetails":{"id":"BusinessRuleConditionDetails","properties":{"resource":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["category","project","total","nr_tags","tag","nr_mileages","day_of_the_week","mc_codes"]},"description":"Based on the selected resource list of operators, groupers and actions can vary"},"resource_id":{"type":"int","required":false},"account_resource":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["account","job_title","establishment","all_account_resources"]}},"account_resource_id":{"type":"int","required":false},"group_by":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["day","week","month","expense","report","receipt","mileage","per_diem","timesheet","duty","cc_transaction"]}},"operator":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":[">","<","< >",">= <=","=","!="]}},"operand":{"type":"int","required":true}}},"BusinessRuleActionDetails":{"id":"BusinessRuleActionDetails","properties":{"action":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["approver","violation","required_field"]}},"field":{"type":"string","required":false},"approve_stages":{"type":"array","requred":false,"items":{"$ref":"ApproveStages"}}}},"BusinessRuleDetails":{"id":"BusinessRuleDetails","properties":{"active":{"type":"boolean","required":true},"currency_id":{"type":"int","required":true,"description":"The id of the currency of the business rule"},"conditions":{"type":"Array","required":true,"items":{"$ref":"BusinessRuleConditionDetails"}},"actions":{"type":"Array","required":true,"items":{"$ref":"BusinessRuleActionDetails"}}}},"CardAdditionalData":{"id":"CardAdditionalData","properties":{"frozen":{"type":"boolean","description":"Status of the card can be frozen meaning that it is not active.","required":false}}},"Card":{"id":"Card","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"account_id":{"type":"int","required":false,"description":"Account that uses this card. Can be empty if currently unknown \/ unassigned."},"created_by_id":{"type":"int","required":true,"description":"ID of the account that created this card."},"name":{"type":"string","required":true,"description":"Name of this card."},"issuer":{"type":"string","required":true,"description":"Issuer of the card."},"type":{"type":"string","required":true,"description":"The type of the card: company or individual.","allowableValues":{"valueType":"LIST","values":["individual","company"]}},"external_id":{"type":"string","required":false,"description":"Optional field that can be used to track a card from its original source. Never store actual credit card numbers!"},"card_number":{"type":"string","required":false,"description":"Visual identification for the card. This is often a substring of the `external_id`, which may need to contain more information to be always unique. Never store actual credit card numbers!"},"holder_id":{"type":"string","required":false,"description":"Employee number."},"holder_name":{"type":"string","required":false,"description":"Cardholder's name."},"additional_data":{"type":"CardAdditionalData","required":false},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true}}},"CardResponse":{"id":"CardResponse","properties":{"transactions":{"type":"Array","items":{"$ref":"Card"}},"accounts":{"type":"Array","items":{"$ref":"Account"}}}},"CardList":{"id":"CardList","properties":{"meta":{"type":"ListMeta","required":true},"transactions":{"type":"Array","items":{"$ref":"Card"}},"accounts":{"type":"Array","items":{"$ref":"Account"}}}},"CardFieldBase":{"id":"CardFieldBase","properties":{"external_id":{"type":"string","required":false},"issuer":{"type":"string","required":true},"name":{"type":"string","required":true},"card_number":{"type":"string","required":false},"holder_id":{"type":"string","required":false},"holder_name":{"type":"string","required":false}}},"CardAddToAccount":{"id":"CardAddToAccount","properties":{"created_by_id":{"type":"int","required":true,"description":"ID of the account on behalf of which the card is created."},"external_id":{"type":"string","required":false},"issuer":{"type":"string","required":true},"name":{"type":"string","required":true},"card_number":{"type":"string","required":false},"holder_id":{"type":"string","required":false},"holder_name":{"type":"string","required":false}}},"CardAddToCustomer":{"id":"CardAddToCustomer","properties":{"account_id":{"type":"int","required":false},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["individual","company"]}},"created_by_id":{"type":"int","required":true,"description":"ID of the account on behalf of which the card is created."},"external_id":{"type":"string","required":false},"issuer":{"type":"string","required":true},"name":{"type":"string","required":true},"card_number":{"type":"string","required":false},"holder_id":{"type":"string","required":false},"holder_name":{"type":"string","required":false}}},"CardEdit":{"id":"CardEdit","properties":{"account_id":{"type":"int","required":false},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["individual","company"]}},"created_by_id":{"type":"int","required":true,"description":"ID of the account on behalf of which the card is created."},"external_id":{"type":"string","required":false},"issuer":{"type":"string","required":true},"name":{"type":"string","required":true},"card_number":{"type":"string","required":false},"holder_id":{"type":"string","required":false},"holder_name":{"type":"string","required":false}}},"CardCreated":{"id":"CardCreated","properties":{"id":{"type":"int","required":true}}},"CategoryResponse":{"id":"CategoryResponse","properties":{"categories":{"type":"Array","description":"List of categories","items":{"$ref":"Category"}},"vat_categories":{"type":"Array","description":"List of VAT categories","required":false,"items":{"$ref":"VatCategory"}}}},"CategoryList":{"id":"CategoryList","properties":{"meta":{"type":"ListMeta","required":true},"categories":{"type":"Array","description":"List of categories","items":{"$ref":"Category"}},"vat_categories":{"type":"Array","description":"List of VAT categories","required":false,"items":{"$ref":"VatCategory"}}}},"TravelAllowanceCategory":{"id":"TravelAllowanceCategory","properties":{"amount":{"type":"float","description":"The amount per distance unit, in the customer currency.","required":true},"taxed_amount":{"type":"float","description":"The taxed amount per distance unit, in the customer currency.","required":true},"distance_unit":{"required":true,"type":"string","allowableValues":{"valueType":"LIST","values":["km","mi"]}}}},"Category":{"id":"Category","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"external_id":{"type":"int","required":false},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"taxed_code":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceCategory","required":true},"type":{"type":"string","description":"Category type","allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty","per_diem"]},"required":true},"description":{"type":"string","required":false},"wkr_group":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["free_space","specific_exemptions","nil_ratings","intermediate_costs","taxed_fees"]}},"free_1":{"type":"string","required":false},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"CategoryAdd":{"id":"CategoryAdd","properties":{"name":{"type":"string","required":true},"type":{"type":"string","allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty","per_diem"]},"required":true},"code":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceCategory","required":true},"description":{"type":"string","required":false},"wkr_group":{"type":"string","allowableValues":{"valueType":"LIST","values":["free_space","specific_exemptions","nil_ratings","intermediate_costs","taxed_fees"]},"required":false},"free_1":{"type":"string","required":false},"vat_category_id":{"type":"int","required":false},"job_title_refuse":{"type":"boolean","required":false},"external_id":{"type":"string","required":false}}},"CategoryAddSuccess":{"id":"CategoryAddSuccess","properties":{"id":{"type":"int","required":true}}},"CategoryEdit":{"id":"CategoryEdit","properties":{"name":{"type":"string","required":false},"type":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty","per_diem"]}},"code":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceCategory","required":true},"description":{"type":"string","required":false},"wkr_group":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["free_space","specific_exemptions","nil_ratings","intermediate_costs","taxed_fees"]}},"free_1":{"type":"string","required":false},"vat_category_id":{"type":"int","required":false}}},"Currency":{"id":"Currency","properties":{"id":{"type":"int","required":true},"name":{"type":"string","description":"Human-readable currency name","required":true},"symbol":{"type":"string","required":true},"short":{"type":"string","description":"Three-character currency code","required":true}}},"CurrencyList":{"id":"CurrencyList","properties":{"meta":{"type":"ListMeta","required":true},"currencies":{"type":"Array","items":{"$ref":"Currency"}}}},"CurrencyResponse":{"id":"CurrencyResponse","properties":{"currencies":{"type":"Array","items":{"$ref":"Currency"}}}},"Customer":{"id":"Customer","properties":{"id":{"type":"int","required":true},"name":{"type":"string","required":true},"logo_url":{"type":"string","required":false},"currency_id":{"type":"int","required":false},"start_date":{"type":"int","required":false},"end_date":{"type":"Date","required":false},"created":{"type":"Date","required":true},"support_email":{"type":"string","required":false},"support_tel":{"type":"string","required":false},"support_contact":{"type":"string","required":false},"subscription_account_count":{"type":"int","required":true},"subscription_id":{"type":"int","required":true},"email":{"type":"string","required":true},"tel":{"type":"string","required":true},"features":{"type":"Array","required":false,"description":"Contains the extra features the company currently has."},"report_title":{"type":"string","required":false},"approvers_can_edit_expense_fields":{"type":"array","required":false},"exporters_can_edit_expense_fields":{"type":"array","required":false},"reminder_approvers":{"type":"ReminderApprovers","required":false},"auto_merge_transactions":{"type":"bool","required":false,"description":"Whether or not automatic merging is enabled. The customer needs to have the feature."},"replace_user_approved_policy":{"type":"bool","required":false,"description":"Whether or not replacing user approval policy by business rule is enabled. The customer needs to have the feature."},"credit_card_report_title":{"type":"string","required":false},"street":{"type":"string","required":false,"description":"Only available for admins"},"nr":{"type":"string","required":false,"description":"Only available for admins"},"addition":{"type":"string","required":false,"description":"Only available for admins"},"zip":{"type":"string","required":false,"description":"Only available for admins"},"city":{"type":"string","required":false,"description":"Only available for admins"},"country":{"type":"string","required":false,"description":"Only available for admins"},"i_name":{"type":"string","required":false,"description":"Invoice company name. Only available for admins."},"i_email":{"type":"string","required":false,"description":"Invoice email. Only available for admins."},"i_street":{"type":"string","required":false,"description":"Invoice company street. Only available for admins."},"i_nr":{"type":"string","required":false,"description":"Invoice company street number. Only available for admins."},"i_addition":{"type":"string","required":false,"description":"Invoice company street number addition. Only available for admins."},"i_zip":{"type":"string","required":false,"description":"Invoice company postal code. Only available for admins."},"i_city":{"type":"string","required":false,"description":"Invoice company city. Only available for admins."},"i_country":{"type":"string","required":false,"description":"Invoice company country. Only available for admins."},"cperson":{"type":"string","required":false,"description":"Company contact person. Only available for admins."},"language":{"type":"string","required":false,"description":"Company language. Only available for admins.","allowableValues":{"valueType":"LIST","values":["en","nl"]}},"timezone":{"type":"string","required":false,"description":"Only available for admins"},"date_format":{"type":"string","required":false,"description":"Company date format. Only available for admins.","allowableValues":{"valueType":"LIST","values":["dd-mm-yyyy","mm\/dd\/yyyy"]}},"number_format":{"type":"string","required":false,"description":"Company number format. Only available for admins.","allowableValues":{"valueType":"LIST","values":[".,",",.",", ",".'","\/,","- ",". "]}},"time_format":{"type":"string","required":false,"description":"Company time format. Only available for admins.","allowableValues":{"valueType":"LIST","values":["HH:mm","hh:mm A"]}},"vat_number":{"type":"string","required":false,"description":"Only available for admins"},"expense_count":{"type":"string","required":false,"description":"Only available for admins"},"report_count":{"type":"string","required":false,"description":"Only available for admins"},"account_manager":{"type":"string","required":false,"description":"Account manager at SRXP for the company. Only available for admins."}}},"ReminderApprovers":{"id":"ReminderApprovers","properties":{"recurring":{"type":"bool","required":true,"description":"Flag that shows if an action should be repeated after a state_day pass"},"active":{"type":"bool","required":true,"description":"Indicates whether it is enabled or not"},"template":{"type":"string","required":true,"description":"Reminder message body"},"subject":{"type":"string","required":true,"description":"Reminder email subject"},"state_day":{"type":"int","required":true,"description":"Indicates period after which a reminder will be sent"}}},"CustomerResponse":{"id":"CustomerResponse","properties":{"customers":{"type":"Array","items":{"$ref":"Customer"}},"currencies":{"type":"Array","items":{"$ref":"Currency"}},"subscriptions":{"type":"Array","items":{"$ref":"Subscription"}}}},"CustomerAdd":{"id":"CustomerAdd","properties":{"firstname":{"type":"string","required":true},"surname":{"type":"string","required":true},"name":{"type":"string","required":true},"tel":{"type":"string","required":true},"language":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["en","nl"]}},"street":{"type":"string","required":false},"nr":{"type":"string","required":false},"addition":{"type":"string","required":false},"zip":{"type":"string","required":false},"city":{"type":"string","required":false},"country":{"type":"string","required":false},"email":{"type":"string","required":true},"support_contact":{"type":"string","required":false},"support_email":{"type":"string","required":false},"support_tel":{"type":"string","required":false},"i_email":{"type":"string","required":true},"i_street":{"type":"string","required":false},"i_nr":{"type":"string","required":false},"i_addition":{"type":"string","required":false},"i_zip":{"type":"string","required":false},"i_city":{"type":"string","required":false},"i_country":{"type":"string","required":false},"currency_id":{"type":"int","required":true},"copy_vats":{"type":"int","required":false,"description":"The ID of the customer you want to copy tax rates from. You must have an account with admin rights at this customer."},"copy_payment_methods":{"type":"int","required":false,"description":"The ID of the customer you want to copy payment methods from. You must have an account with admin rights at this customer."},"copy_categories":{"type":"int","required":false,"description":"The ID of the customer you want to copy categories from. You must have an account with admin rights at this customer."}}},"CustomerRegister":{"id":"CustomerRegister","properties":{"name":{"type":"string","required":true},"firstname":{"type":"string","required":true},"surname":{"type":"string","required":true},"email":{"type":"string","required":true},"password":{"type":"string","required":true},"tel":{"type":"string","required":true},"accept_tc_pp":{"type":"bool","required":true,"description":"If the user accepts the Terms and Conditions and Privacy Policy of SRXP."},"language":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["en","nl"]}}}},"CustomerEdit":{"id":"CustomerEdit","properties":{"name":{"type":"string","required":false},"street":{"type":"string","required":false},"nr":{"type":"string","required":false},"addition":{"type":"string","required":false},"zip":{"type":"string","required":false},"city":{"type":"string","required":false},"country":{"type":"string","required":false},"currency_id":{"type":"int","required":false},"cperson":{"type":"string","required":false},"email":{"type":"string","required":false},"tel":{"type":"string","required":false},"i_email":{"type":"string","required":false},"i_street":{"type":"string","required":false},"i_nr":{"type":"string","required":false},"i_addition":{"type":"string","required":false},"i_zip":{"type":"string","required":false},"i_city":{"type":"string","required":false},"i_country":{"type":"string","required":false},"logo":{"type":"string","required":false},"timezone":{"type":"string","required":false},"language":{"type":"string","required":false},"time_format":{"type":"string","required":false},"date_format":{"type":"string","required":false},"number":{"format":{"type":"string","required":false}},"support_contact":{"type":"string","required":false},"support_email":{"type":"string","required":false},"support_tel":{"type":"string","required":false},"vat_number":{"type":"string","required":false},"report_title":{"type":"string","required":false},"bunq_import_enabled":{"type":"bool","required":false},"exporters_can_edit_expense_fields":{"type":"array","required":false},"approvers_can_edit_expense_fields":{"type":"array","required":false},"credit_card_report_title":{"type":"string","required":false},"auto_merge_transactions":{"type":"bool","required":false},"other_expenses_in_transaction_report":{"type":"bool","required":false},"replace_user_approved_policy":{"type":"bool","required":false},"reminder_approvers":{"type":"ReminderApprovers","required":false}}},"DeviceAdd":{"id":"DeviceAdd","properties":{"name":{"type":"string","required":true},"type":{"type":"string","allowableValues":{"valueType":"LIST","values":["mobile"]},"required":true},"device_identifier":{"type":"string","required":true},"info":{"type":"object","required":true}}},"EstablishmentResponse":{"id":"EstablishmentResponse","properties":{"establishments":{"required":false,"type":"Array","description":"List of establishments","items":{"$ref":"Establishment"}}}},"EstablishmentList":{"id":"EstablishmentList","properties":{"meta":{"type":"ListMeta","required":true},"establishments":{"required":false,"type":"Array","description":"List of establishments","items":{"$ref":"Establishment"}}}},"Establishment":{"id":"Establishment","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"external_id":{"type":"int","required":false},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"cperson":{"type":"string","required":false},"email":{"type":"string","required":false},"tel":{"type":"string","required":false},"account_count":{"type":"int","required":true},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"EstablishmentAdd":{"id":"EstablishmentAdd","properties":{"name":{"type":"string","required":true},"code":{"type":"string","required":false},"cperson":{"type":"string","required":false},"email":{"type":"string","required":false},"tel":{"type":"string","required":false},"external_id":{"type":"string","required":false}}},"EstablishmentAddSuccess":{"id":"EstablishmentAddSuccess","properties":{"id":{"type":"int","required":true}}},"EstablishmentEdit":{"id":"EstablishmentEdit","properties":{"name":{"type":"string","required":false},"code":{"type":"string","required":false},"cperson":{"type":"string","required":false},"email":{"type":"string","required":false},"tel":{"type":"string","required":false}}},"EstablishmentDeleteErrors":{"id":"EstablishmentDeleteErrors","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["is_assigned"]}}}},"EstablishmentBulkDeleteErrors":{"id":"EstablishmentBulkDeleteErrors","properties":{"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","is_assigned"]}},"id":{"type":"int","required":true},"success":{"type":"boolean","required":true}}},"Amount":{"id":"Amount","properties":{"vat_id":{"type":"int","required":false,"description":"ID of this amount's VAT, for 'receipt' expenses only. Required for submitted receipts."},"category_id":{"type":"int","required":false,"description":"ID of this amount's category. Required for submitted expenses."},"amount":{"type":"float","required":false},"vat_amount":{"type":"float","required":false,"description":"The VAT-amount of this amount, for 'receipt' expenses only."},"display_inclusive":{"type":"boolean","required":true,"description":"Indicates whether this amount should be displayed including or excluding VAT."}}},"Waypoint":{"id":"Waypoint","properties":{"location":{"type":"string","required":false},"latitude":{"type":"float","required":false},"longitude":{"type":"float","required":false}}},"Distance":{"id":"Distance","properties":{"amount":{"type":"float","required":true},"estimated_distance":{"type":"float"},"unit":{"type":"string","allowableValues":{"valueType":"LIST","values":["km","mi"]},"required":true}}},"TravelAllowanceExpense":{"id":"TravelAllowanceExpense","properties":{"amount":{"type":"float","description":"The amount per distance unit, in the customer currency.","required":true},"taxed_amount":{"type":"float","description":"The taxed amount per distance unit, in the customer currency.","required":true},"distance_unit":{"required":true,"type":"string","allowableValues":{"valueType":"LIST","values":["km","mi"]}}}},"PictureUrls":{"id":"PictureUrls","properties":{"thumbnail":{"type":"string","required":true,"description":"Thumbnail (max. 100 x 100 pixels) URL of the picture"},"preview":{"type":"string","required":true,"description":"Preview (max. 800 x 800 pixels) URL of the picture"},"original":{"type":"string","required":true,"description":"URL to the original picture file"}}},"ReceiptPicture":{"id":"ReceiptPicture","properties":{"name":{"type":"string","required":true,"description":"Filename of the picture as it was given when uploaded"},"urls":{"type":"PictureUrls","required":true,"description":"URLs to various picture formats."}}},"ExchangeRate":{"id":"ExchangeRate","properties":{"from_currency_id":{"type":"int","required":true},"to_currency_id":{"type":"int","required":true},"date":{"type":"Date","required":true},"conversion_rate":{"type":"float","required":true,"description":"The value you need to divide by in order to get the expense currency converted to this currency. If a `null` value is returned, the exchange rate is not (yet) available. "}}},"Expense":{"id":"Expense","properties":{"id":{"type":"int","required":true},"country":{"type":"string","required":false,"description":"Two-letter country codes defined in ISO 3166-1"},"report_id":{"type":"int","required":false,"description":"The ID of the report this expense is in, if any."},"account_id":{"type":"int","required":true},"currency_id":{"type":"int","required":false,"description":"The ID of this expense's currency, if any. Required for submitted expenses."},"exchange_rates":{"type":"Array","required":false,"items":{"$ref":"ExchangeRate"},"description":"List of exchange rates that were requested through the `exchange_rates` option"},"vendor_project":{"type":"string","required":false},"expense_date":{"type":"Date","required":false,"description":"This expense's date. Required for submitted expenses."},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty"]},"description":"The type of this expense. The type influences the presence of certain fields."},"description":{"type":"string","required":false},"audit_code":{"type":"string","required":true,"description":"Unique 40-character token (generated by the API) that can be used to securely reference this receipt."},"amounts":{"type":"Array","description":"Amounts in this expense. The list can be empty for non-submitted expenses.","required":true,"items":{"$ref":"Amount"}},"total":{"type":"float","description":"This expense's total amount"},"payment_method_id":{"type":"int","required":false,"description":"The ID of this receipt's payment method, if specified. For 'receipt' expenses only; required on submitted receipts."},"project_id":{"type":"int","required":false},"picture":{"type":"ReceiptPicture","required":false,"description":"Filename and reference URLs for the image file belonging to a receipt."},"rotation":{"type":"int","required":false,"allowableValues":{"valueType":"LIST","values":[90,180,270]},"description":"Desired display rotation for the receipt. Note that this is merely an indication, the picture is in no way affected by this field."},"travel_allowance":{"type":"TravelAllowanceExpense","required":true,"description":"This expense account's travel allowance at the time this expense was last modified in a non-submitted state. For 'mileage' expenses only."},"distance":{"type":"Distance","required":false,"description":"For 'mileage' expenses only. Required on submitted mileages."},"waypoints":{"type":"Waypoint","required":true,"description":"The from \/ via \/ to locations of this mileage. For 'mileage' expenses only; submitted mileages must have at least two waypoints ('from' and 'to')."},"automatic":{"type":"boolean","required":true,"description":"Return property only. Specifies whether the expense was created automatically by the system, for instance in conjunction with a transaction."},"attachment_count":{"type":"int","required":true}}},"ExpenseResponse":{"id":"ExpenseResponse","properties":{"expenses":{"type":"Array","items":{"$ref":"Expense"}},"reports":{"type":"Array","items":{"$ref":"Report"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"categories":{"type":"Array","items":{"$ref":"Category"}},"payment_methods":{"type":"Array","items":{"$ref":"PaymentMethod"}},"vats":{"type":"Array","items":{"$ref":"Vat"}},"projects":{"type":"Array","items":{"$ref":"Project"}},"transactions":{"type":"Array","items":{"$ref":"Transaction"}},"tags":{"type":"Array","items":{"$ref":"Tag"}}}},"ExpenseList":{"id":"ExpenseList","properties":{"meta":{"type":"ListMeta","required":true},"expenses":{"type":"Array","items":{"$ref":"Expense"}},"reports":{"type":"Array","items":{"$ref":"Report"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"categories":{"type":"Array","items":{"$ref":"Category"}},"payment_methods":{"type":"Array","items":{"$ref":"PaymentMethod"}},"vats":{"type":"Array","items":{"$ref":"Vat"}},"projects":{"type":"Array","items":{"$ref":"Project"}},"transactions":{"type":"Array","items":{"$ref":"Transaction"}},"tags":{"type":"Array","items":{"$ref":"Tag"}}}},"AmountAdd":{"id":"AmountAdd","properties":{"vat_id":{"type":"int","required":false,"description":"ID of this amount's vat, for 'receipt' expenses only"},"category_id":{"type":"int","required":false,"description":"ID of this amount's category"},"amount":{"type":"float","required":true,"description":"The amount. On 'mileage' expenses, this value is automatically calculated from the distance and the allowance, and thus not required"},"vat_amount":{"type":"float","required":false,"description":"The VAT amount, for 'receipt' expenses only. Defaults to '0' if not specified"},"display_inclusive":{"type":"boolean","required":false,"description":"Indicates whether this amount should be displayed including or excluding VAT."}}},"ExpenseAdd":{"id":"ExpenseAdd","properties":{"country":{"type":"string","required":false,"description":"Two-letter country codes defined in ISO 3166-1"},"report_id":{"type":"int","required":false,"description":"Makes the expense a part of the report with the given ID."},"currency_id":{"type":"int","required":false,"description":"The ID of this expense's currency. This field is automatically set to the user's travel allowance currency for 'mileage' expenses. It is required for 'receipt' expenses."},"vendor_project":{"type":"string","required":false},"project_id":{"type":"int","required":false},"transaction_id":{"type":"int","required":false},"expense_date":{"type":"Date","required":false},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty"]},"description":"The expense type influences which other fields can be saved"},"description":{"type":"string","required":false},"amounts":{"type":"Array","description":"The amounts in this expense. Initialized as an empty array if omitted","required":false,"items":{"$ref":"AmountAdd"}},"payment_method_id":{"type":"int","required":false,"description":"The ID of this receipt's payment method; for 'receipt' expenses only"},"picture":{"type":"Picture","required":false,"description":"The picture belonging to a receipt expense. Allowed file types are JPEG, PNG and PDF."},"rotation":{"type":"int","required":false,"allowableValues":{"valueType":"LIST","values":[90,180,270]},"description":"Desired display rotation for the receipt. Note that this is merely an indication, the picture is in no way affected by this field."},"distance":{"type":"Distance","required":false,"description":"For 'mileage' expenses only"},"waypoints":{"type":"Array","description":"Waypoints for a 'mileage' expense. Initialized as an empty array if omitted.","required":false,"items":{"$ref":"Waypoint"}},"trip_id":{"type":"int","required":false,"description":"The ID of the trip this expense belongs to."},"tags":{"type":"Array","description":"An array of tag IDs for the expense","items":{"$ref":"int"}}}},"ExpenseCreated":{"id":"ExpenseCreated","properties":{"id":{"type":"int","description":"ID of the item that was just created.","required":true},"account_id":{"type":"int","required":true},"audit_code":{"type":"string","required":true,"description":"Unique 40-character token (generated by the API) that can be used to securely reference this expense."},"picture":{"type":"ReceiptPicture","required":false,"description":"If applicable, picture data for the created receipt"},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true},"country":{"type":"string","required":false,"description":"Two-letter country codes defined in ISO 3166-1"},"report_id":{"type":"int","required":false,"description":"Makes the expense a part of the report with the given ID."},"currency_id":{"type":"int","required":false,"description":"The ID of this expense's currency. This field is automatically set to the user's travel allowance currency for 'mileage' expenses. It is required for 'receipt' expenses."},"vendor_project":{"type":"string","required":false},"project_id":{"type":"int","required":false},"transaction_id":{"type":"int","required":false},"expense_date":{"type":"Date","required":false},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty"]},"description":"The expense type influences which other fields can be saved"},"description":{"type":"string","required":false},"amounts":{"type":"Array","description":"The amounts in this expense. Initialized as an empty array if omitted","required":false,"items":{"$ref":"AmountAdd"}},"payment_method_id":{"type":"int","required":false,"description":"The ID of this receipt's payment method; for 'receipt' expenses only"},"rotation":{"type":"int","required":false,"allowableValues":{"valueType":"LIST","values":[90,180,270]},"description":"Desired display rotation for the receipt. Note that this is merely an indication, the picture is in no way affected by this field."},"distance":{"type":"Distance","required":false,"description":"For 'mileage' expenses only"},"waypoints":{"type":"Array","description":"Waypoints for a 'mileage' expense. Initialized as an empty array if omitted.","required":false,"items":{"$ref":"Waypoint"}},"trip_id":{"type":"int","required":false,"description":"The ID of the trip this expense belongs to."},"tags":{"type":"Array","description":"An array of tag IDs for the expense","items":{"$ref":"int"}}}},"ExpenseEdit":{"id":"ExpenseEdit","properties":{"country":{"type":"string","required":false,"description":"Two-letter country codes defined in ISO 3166-1"},"report_id":{"type":"int","required":false,"nullable":true,"description":"Makes the expense a part of the report with the given ID. Cannot be edited for submitted expenses."},"currency_id":{"type":"int","required":false,"nullable":true,"description":"The ID of this expense's currency. This field is automatically set to the user's travel allowance currency for 'mileage' expenses. It is required for 'receipt' expenses."},"vendor_project":{"type":"string","required":false,"nullable":true},"project_id":{"type":"int","required":false,"nullable":true},"expense_date":{"type":"Date","required":false,"nullable":true},"amounts":{"type":"Array","description":"The amounts in this expense. Can be an empty array for non-submitted expenses.","items":{"$ref":"AmountEdit"},"required":false},"payment_method_id":{"type":"int","required":false,"description":"The ID of this receipt's payment method. For 'receipt' expenses only. Has to be present and valid for submitted receipts.","nullable":true},"picture":{"type":"Picture","required":false,"description":"The picture belonging to a receipt expense. Allowed types are JPEG, PNG and PDF. Submitted receipts must have a valid picture."},"rotation":{"type":"int","required":false,"allowableValues":{"valueType":"LIST","values":[90,180,270]},"description":"Desired display rotation for the receipt. Note that this is merely an indication, the picture is in no way affected by this field."},"distance":{"type":"Distance","required":false,"description":"For 'mileage' expenses only. Submitted mileages must have a valid distance."},"waypoints":{"type":"Array","description":"Waypoints for a 'mileage' expense. Submitted mileages must have at least to waypoints: 'from' and 'to'.","required":false},"trip_id":{"type":"int","required":false,"description":"The ID of the trip this expense belongs to."},"tags":{"type":"Array","description":"An array of tag IDs for the expense","items":{"$ref":"int"}}}},"ExpenseEdited":{"id":"ExpenseEdited","properties":{"id":{"type":"int","description":"ID of the item that was just created.","required":true},"account_id":{"type":"int","required":true},"audit_code":{"type":"string","required":true,"description":"Unique 40-character token (generated by the API) that can be used to securely reference this expense."},"picture":{"type":"ReceiptPicture","required":false,"description":"If applicable, picture data for the created receipt"},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true},"country":{"type":"string","required":false,"description":"Two-letter country codes defined in ISO 3166-1"},"report_id":{"type":"int","required":false,"description":"Makes the expense a part of the report with the given ID."},"currency_id":{"type":"int","required":false,"description":"The ID of this expense's currency. This field is automatically set to the user's travel allowance currency for 'mileage' expenses. It is required for 'receipt' expenses."},"vendor_project":{"type":"string","required":false},"project_id":{"type":"int","required":false},"transaction_id":{"type":"int","required":false},"expense_date":{"type":"Date","required":false},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["receipt","mileage","timesheet","duty"]},"description":"The expense type influences which other fields can be saved"},"description":{"type":"string","required":false},"amounts":{"type":"Array","description":"The amounts in this expense. Initialized as an empty array if omitted","required":false,"items":{"$ref":"AmountAdd"}},"payment_method_id":{"type":"int","required":false,"description":"The ID of this receipt's payment method; for 'receipt' expenses only"},"rotation":{"type":"int","required":false,"allowableValues":{"valueType":"LIST","values":[90,180,270]},"description":"Desired display rotation for the receipt. Note that this is merely an indication, the picture is in no way affected by this field."},"distance":{"type":"Distance","required":false,"description":"For 'mileage' expenses only"},"waypoints":{"type":"Array","description":"Waypoints for a 'mileage' expense. Initialized as an empty array if omitted.","required":false,"items":{"$ref":"Waypoint"}},"trip_id":{"type":"int","required":false,"description":"The ID of the trip this expense belongs to."},"tags":{"type":"Array","description":"An array of tag IDs for the expense","items":{"$ref":"int"}}}},"ExpenseBulkList":{"id":"ExpenseBulkList","properties":{"expenses":{"type":"Array","items":{"$ref":"Expense"}}}},"BulkEditResponse":{"id":"BulkEditResponse","properties":{"expenses":{"type":"Array","items":{"$ref":"Expense"}}}},"BulkEditResponseList":{"id":"BulkEditResponseList","properties":{"meta":{"type":"ListMeta","required":true},"expenses":{"type":"Array","items":{"$ref":"Expense"}}}},"ExpenseDeleteError":{"id":"ExpenseDeleteError","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["submitted","has_strict_transaction"]}}}},"ExpenseBulkDeleteErrors":{"id":"ExpenseBulkDeleteErrors","properties":{"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","submitted"]}},"id":{"type":"int","required":true},"success":{"type":"boolean","required":true}}},"ExportFormat":{"id":"ExportFormat","properties":{"id":{"required":true,"type":"int","description":"The id of the export format"},"currency_id":{"required":true,"type":"int","description":"The id of the currency of the export format"},"name":{"required":true,"type":"string","description":"The name of the export format"},"customer_id":{"required":true,"type":"int"},"mark_processed":{"required":true,"type":"boolean","description":"Should the reports be marked as processed when there are exported."},"split_mileage":{"required":true,"type":"boolean","description":"Should the mileages be split into taxed\/untaxed part."},"handler":{"required":true,"type":"string","description":"The type of export format"},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"ExportFormatsResponse":{"id":"ExportFormatsResponse","properties":{"export_formats":{"type":"Array","items":{"$ref":"ExportFormat"}},"currencies":{"type":"Array","items":{"$ref":"Currency"}}}},"ExportFormatsList":{"id":"ExportFormatsList","properties":{"meta":{"type":"ListMeta","required":true},"export_formats":{"type":"Array","items":{"$ref":"ExportFormat"}},"currencies":{"type":"Array","items":{"$ref":"Currency"}}}},"ExportFormatAdd":{"id":"ExportFormatAdd","properties":{"name":{"type":"string","required":true},"handler":{"type":"string","required":true},"currency_id":{"type":"int","required":true},"mark_processed":{"type":"boolean","required":true}}},"ExportFormatAddSuccess":{"id":"ExportFormatAddSuccess","properties":{"id":{"type":"int","required":true}}},"ExportFormatEdit":{"id":"ExportFormatEdit","properties":{"name":{"type":"string","required":true},"currency_id":{"type":"int","required":false},"mark_processed":{"type":"boolean","required":false},"split_mileage":{"type":"boolean","required":false},"expense_types":{"type":"array","required":false}}},"ExportFiles":{"id":"ExportFiles","properties":{"type":{"type":"int","required":true,"allowableValues":{"type":"LIST","values":["file","archive"]},"description":"When multiple files are created, an archive is created containing all the files"},"name":{"type":"string","required":true},"url":{"type":"string","required":true}}},"Export":{"id":"Export","properties":{"id":{"type":"int","required":true},"account_id":{"type":"int","required":true},"export_format_id":{"type":"int","required":true},"name":{"type":"string","required":"false","description":"The name of the export"},"customer_id":{"type":"int","required":true},"created":{"type":"date","required":true},"report_count":{"type":"int","required":true},"filter":{"type":"string","required":true,"description":"This filter will be applied to all the approved and processed reports"},"status":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["errors_pending","errors","not_exported","exported","pending"]},"definition":"Status of this export"},"files":{"type":"Array","required":true,"items":{"$ref":"ExportFiles"}},"export_errors":{"type":"array","items":{"type":"string"}},"export_references":{"type":"array","items":{"type":"string"}}}},"ExportResponse":{"id":"ExportResponse","properties":{"exports":{"type":"Array","items":{"$ref":"Export"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"export_formats":{"type":"Array","items":{"$ref":"ExportFormat"}}}},"ExportList":{"id":"ExportList","properties":{"meta":{"type":"ListMeta","required":true},"exports":{"type":"Array","items":{"$ref":"Export"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"export_formats":{"type":"Array","items":{"$ref":"ExportFormat"}}}},"ExportAdd":{"id":"ExportAdd","properties":{"export_format_id":{"type":"int","required":true},"account_id":{"type":"int","required":true},"filter":{"type":"string","required":true,"description":"This filter will be applied to all the approved and processed reports"},"name":{"type":"string","required":"false","description":"The name of the export"}}},"ExportAddSuccess":{"id":"ExportAddSuccess","properties":{"id":{"type":"int","required":true},"urls":{"type":"array","items":{"type":"string"}}}},"InvoiceResponse":{"id":"InvoiceResponse","properties":{"invoices":{"required":false,"type":"Array","items":{"$ref":"Invoice"}},"currencies":{"required":false,"type":"Array","items":{"$ref":"Currency"}},"customers":{"required":false,"type":"Array","items":{"$ref":"Customer"}}}},"InvoicesList":{"id":"InvoicesList","properties":{"meta":{"type":"ListMeta","required":true},"invoices":{"required":false,"type":"Array","items":{"$ref":"Invoice"}},"currencies":{"required":false,"type":"Array","items":{"$ref":"Currency"}},"customers":{"required":false,"type":"Array","items":{"$ref":"Customer"}}}},"Invoice":{"id":"Invoice","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"invoice_date":{"type":"Date","required":true},"total":{"type":"float","description":"The total amount including VAT for the invoice","required":true},"description":{"type":"string","description":"The textual representation of the invoice","required":true},"due_date":{"type":"Date","required":false},"currency_id":{"type":"int","required":true},"type":{"type":"string","allowableValues":{"values":["invoice","credit_note"]}}}},"JobTitleResponse":{"id":"JobTitleResponse","properties":{"job_titles":{"type":"Array","description":"List of job titles","items":{"$ref":"JobTitle"}}}},"JobTitleList":{"id":"JobTitleList","properties":{"meta":{"type":"ListMeta","required":true},"job_titles":{"type":"Array","description":"List of job titles","items":{"$ref":"JobTitle"}}}},"TravelAllowanceJobTitle":{"id":"TravelAllowanceJobTitle","properties":{"amount":{"type":"float","description":"The travel allowance fee","required":true},"distance_unit":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["km","mi"]}}}},"JobTitle":{"id":"JobTitle","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"external_id":{"type":"int","required":false},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceJobTitle","required":true},"disallowed_categories":{"type":"Array","required":false,"description":"Disallowed category IDs","items":{"type":"int"}},"disallowed_projects":{"type":"Array","required":false,"description":"Disallowed project IDs","items":{"type":"int"}},"disallowed_per_diem_rates":{"type":"Array","required":false,"description":"Disallowed per diem rate IDs","items":{"type":"int"}},"disallowed_payment_methods":{"type":"Array","required":false,"description":"Disallowed payment method IDs","items":{"type":"int"}},"account_count":{"type":"int","required":true},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"JobTitleAdd":{"id":"JobTitleAdd","properties":{"customer_id":{"type":"int","required":true},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceJobTitle","required":true},"external_id":{"type":"string","required":false},"disallowed_categories":{"type":"Array","required":false,"description":"Disallowed category IDs","items":{"type":"int"}},"disallowed_projects":{"type":"Array","required":false,"description":"Disallowed projects IDs","items":{"type":"int"}},"disallowed_payment_methods":{"type":"Array","required":false,"description":"Disallowed payment method IDs","items":{"type":"int"}}}},"JobTitleAddSuccess":{"id":"JobTitleAddSuccess","properties":{"id":{"type":"int","required":true}}},"JobTitleEdit":{"id":"JobTitleEdit","properties":{"name":{"type":"string","required":false},"code":{"type":"string","required":false},"travel_allowance":{"type":"TravelAllowanceJobTitle","required":false},"disallowed_categories":{"type":"Array","required":false,"description":"Disallowed category IDs","items":{"type":"int"}},"disallowed_projects":{"type":"Array","required":false,"description":"Disallowed per diem rates IDs","items":{"type":"int"}},"disallowed_payment_methods":{"type":"Array","required":false,"description":"Disallowed payment method IDs","items":{"type":"int"}}}},"JobTitleDeleteErrors":{"id":"JobTitleDeleteErrors","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["is_assigned"]}}}},"JobTitleBulkDeleteErrors":{"id":"JobTitleBulkDeleteErrors","properties":{"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","is_assigned"]}},"id":{"type":"int","required":true},"success":{"type":"boolean","required":true}}},"LoginTokenAdd":{"id":"LoginTokenAdd","properties":{}},"LoginTokenAddSuccess":{"id":"LoginTokenAddSuccess","properties":{"user_id":{"required":false,"type":"int"},"authenticated":{"required":true,"type":"bool"},"token":{"required":true,"type":"string"},"expires":{"required":true,"type":"int","description":"Expiration timestamp."}}},"PaymentMethodList":{"id":"PaymentMethodList","properties":{"meta":{"type":"ListMeta","required":true},"payment_methods":{"type":"Array","description":"List of payment methods","items":{"$ref":"PaymentMethod"}}}},"PaymentMethod":{"id":"PaymentMethod","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"external_id":{"type":"int","required":false},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"payment_condition":{"type":"string","required":false},"type":{"type":"string","required":true},"free_1":{"type":"string","required":false},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"PaymentMethodAdd":{"id":"PaymentMethodAdd","properties":{"name":{"type":"string","required":true},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["to_receive","to_pay","no_reimbursement"]}},"code":{"type":"string","required":false},"payment_condition":{"type":"string","required":false},"external_id":{"type":"string","required":false}}},"PaymentMethodAddSuccess":{"id":"PaymentMethodAddSuccess","properties":{"id":{"type":"int","required":true}}},"PaymentMethodEdit":{"id":"PaymentMethodEdit","properties":{"name":{"type":"string","required":false},"type":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["to_receive","to_pay","no_reimbursement"]}},"code":{"type":"string","required":false},"payment_condition":{"type":"string","required":false},"free_1":{"type":"string","required":false}}},"PolicyResponse":{"id":"PolicyResponse","properties":{"policies":{"required":false,"type":"Array","items":{"$ref":"Policy"}}}},"PolicyList":{"id":"PolicyList","properties":{"meta":{"type":"ListMeta","required":true},"policies":{"required":false,"type":"Array","items":{"$ref":"Policy"}}}},"AccessLevelPolicy":{"id":"AccessLevelPolicy","properties":{"type":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["none","read","write"]}}}},"Policy":{"id":"Policy","properties":{"name":{"type":"string","required":true},"resource":{"type":"string","required":true},"access_level":{"type":"AccessLevelPolicy","required":true},"policy":{"type":"json","required":false},"policy_group_id":{"type":"int","required":false}}},"PolicyAdd":{"id":"PolicyAdd","properties":{"name":{"type":"string","required":true},"resource":{"type":"string","required":true},"access_level":{"type":"AccessLevelPolicy","required":true},"policy":{"type":"json","required":false},"policy_group_id":{"type":"int","required":false}}},"PolicyAddSuccess":{"id":"PolicyAddSuccess","properties":{"id":{"type":"int","required":true}}},"PolicyEdit":{"id":"PolicyEdit","properties":{"name":{"type":"string","required":true},"resource":{"type":"string","required":true},"access_level":{"type":"AccessLevelPolicy","required":true},"policy":{"type":"json","required":false},"policy_group_id":{"type":"int","required":false}}},"PolicyEditSuccess":{"id":"PolicyEditSuccess","properties":{"id":{"type":"int","required":true}}},"ProjectResponse":{"id":"ProjectResponse","properties":{"projects":{"type":"Array","description":"List of projects","items":{"$ref":"Project"}}}},"ProjectList":{"id":"ProjectList","properties":{"meta":{"type":"ListMeta","required":true},"projects":{"type":"Array","description":"List of projects","items":{"$ref":"Project"}}}},"Project":{"id":"Project","properties":{"external_id":{"type":"string","required":false},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"active":{"type":"boolean","required":true},"job_title_refuse":{"type":"boolean","required":false},"billable":{"type":"boolean","required":true},"free_1":{"type":"string","required":false},"parent_id":{"type":"integer","required":false},"expense_count":{"type":"integer","required":true},"child_count":{"type":"integer","required":true},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"ProjectAdd":{"id":"ProjectAdd","properties":{"name":{"type":"string","required":true},"code":{"type":"string","required":false},"active":{"type":"boolean","required":false},"billable":{"type":"boolean","required":false},"free_1":{"type":"string","required":false},"parent_id":{"type":"integer","required":false},"job_title_refuse":{"type":"boolean","required":false},"external_id":{"type":"string","required":false}}},"ProjectEdit":{"id":"ProjectEdit","properties":{"name":{"type":"string","required":false},"code":{"type":"string","required":false},"active":{"type":"boolean","required":false},"billable":{"type":"boolean","required":false},"free_1":{"type":"string","required":false},"parent_id":{"type":"int","required":false}}},"ReportResponse":{"id":"ReportResponse","properties":{"reports":{"required":false,"type":"Array","items":{"$ref":"Report"}},"accounts":{"required":false,"type":"Array","items":{"$ref":"Account"}}}},"ReportList":{"id":"ReportList","properties":{"meta":{"type":"ListMeta","required":true},"reports":{"required":false,"type":"Array","items":{"$ref":"Report"}},"accounts":{"required":false,"type":"Array","items":{"$ref":"Account"}}}},"ReportApproveStage":{"id":"ReportApproveStage","properties":{"policies":{"type":"Array","required":true,"items":{"$ref":"ReportApprovePolicy"}}}},"ReportApprovePolicy":{"id":"ReportApprovePolicy","properties":{"choice":{"type":"int","required":false,"description":"Chosen approver for policy type 'choose_approver'."},"type":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["assign_approver","choose_approver"]}},"approver_id":{"type":"int","required":false,"description":"The ID of the assigned approved if 'assign_approver' is used as a policy or the default choice if 'choose_approver' is used. Only required for 'assign_approver'."}}},"ReportApprovePolicyModify":{"id":"ReportApprovePolicyModify","properties":{"choice":{"type":"int","required":false,"description":"The ID of the approver choice for the matching approve policy."}}},"ReportApproveStageModify":{"id":"ReportApproveStageModify","properties":{"policies":{"type":"Array","required":true,"items":{"$ref":"ReportApprovePolicyModify"}}}},"Report":{"id":"Report","properties":{"id":{"type":"int","required":true},"account_id":{"type":"int","required":true},"currency_id":{"type":"int","required":true},"title":{"type":"string","required":true},"expense_count":{"type":"int","required":true},"booking_date":{"type":"Date","required":true},"total":{"type":"float","description":"The total amount of the expenses contained in this report, in the report currency. Note that `null` may be returned explicitly if this total cannot currently be calculated due to lack of exchange rates.","required":true},"submit_date":{"type":"Date","required":false,"description":"Time and date of the last time this report was submitted."},"approve_date":{"type":"Date","required":false,"description":"Time and date of the last time this report was approved or rejected."},"process_date":{"type":"Date","required":false,"description":"Time and date this report was marked as 'processed'."},"status":{"type":"string","description":"The current status of the report","allowableValues":{"valueType":"LIST","values":["not_submitted","submitted","rejected","approved","ready_for_export","processed"]},"required":true},"stage":{"type":"int","description":"The approvement stage of this report, corresponds to a stage given in approve_stages.","required":true},"approve_stages":{"required":true,"type":"Array","items":{"$ref":"ReportApproveStage"},"description":"The approve stages for this report. These are similar to account approve stages, but they may include a chosen approver for the 'choose_approver' policy. For non-submitted reports, the policy should always be identical to the account policy, in that if the account policy changes, the report policy for all non-submitted accounts also changes. Submitted are retracted when their account's policy changes. Reports that have been approved retain their account policy."},"violates":{"required":true,"type":"Array","items":{"$ref":"string"},"description":"Indicates that this report violates one or multiple business rules with the type(s) contained in the array","allowableValues":{"allowMultiple":true,"values":["block","highlight"]}}}},"ReportAdd":{"id":"ReportAdd","properties":{"title":{"type":"string","required":true},"currency_id":{"type":"int","required":true},"approve_stages":{"type":"Array","items":{"$ref":"ReportApproveStageModify"},"required":true,"description":"This field allows you to modify the chosen approver of approver policies with a `choose_approver` type. Fields other than the `choice` field on the separate policies will be ignored. The number an arrangement of policies in this field needs to match that of the report's account. Policy choices can only be changed for non-submitted reports."},"booking_date":{"type":"Date","required":false,"description":"Only admins and exporter can edit the booking date"},"created_by_id":{"type":"int","required":false,"description":"When creating a report with a credit card statement as a company admin, this field should contain the ID of the admin that is creating the report."}}},"ReportEdit":{"id":"ReportEdit","properties":{"title":{"type":"string","required":false},"currency_id":{"type":"int","required":true},"approve_stages":{"type":"Array","items":{"$ref":"ReportApproveStageModify"},"required":true,"description":"This field allows you to modify the chosen approver of approver policies with a `choose_approver` type. Fields other than the `choice` field on the separate policies will be ignored. The number an arrangement of policies in this field needs to match that of the report's account. Policy choices can only be changed for non-submitted reports."}}},"ReportDeleteError":{"id":"ReportDeleteError","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"Set","values":["submitted"]}}}},"ReportBulkDeleteErrors":{"id":"ReportBulkDeleteErrors","properties":{"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","submitted"]}},"id":{"type":"int","required":true},"success":{"type":"boolean","required":true}}},"RolePolicy":{"id":"RolePolicy","properties":{"id":{"type":"int","required":true},"role_id":{"type":"int","required":true},"policy_id":{"type":"int","required":true}}},"RolePolicyResponse":{"id":"RolePolicyResponse","properties":{"role_policies":{"required":false,"type":"Array","items":{"$ref":"RolePolicy"}}}},"RolePolicyList":{"id":"RolePolicyList","properties":{"meta":{"type":"ListMeta","required":true},"dataType":"string","role_policies":{"required":false,"type":"Array","items":{"$ref":"RolePolicy"}}}},"RolePolicyAdd":{"id":"RolePolicyAdd","properties":{"role_id":{"type":"int","required":true,"description":"The role_id of the role you want to connect the policy to"},"policy_id":{"type":"int","required":true,"description":"The policy_id to attach to a role."}}},"RolePolicyAddSuccess":{"id":"RolePolicyAddSuccess","properties":{"id":{"type":"int","required":true}}},"Role":{"id":"Role","properties":{"id":{"type":"int","required":true},"name":{"type":"string","required":true}}},"RoleResponse":{"id":"RoleResponse","properties":{"roles":{"required":false,"type":"Array","items":{"$ref":"Role"}}}},"RoleList":{"id":"RoleList","properties":{"meta":{"type":"ListMeta","required":true},"roles":{"required":false,"type":"Array","items":{"$ref":"Role"}}}},"RoleAdd":{"id":"RoleAdd","properties":{"name":{"type":"string","required":true},"score":{"type":"int","required":true}}},"RoleAddSuccess":{"id":"RoleAddSuccess","properties":{"id":{"type":"int","required":true}}},"RoleEdit":{"id":"RoleEdit","properties":{"name":{"type":"string","required":true},"score":{"type":"int","required":true}}},"SubscriptionResponse":{"id":"SubscriptionResponse","properties":{"subscriptions":{"type":"Array","items":{"$ref":"Subscription"}},"customers":{"type":"Array","items":{"$ref":"Customer"}}}},"SubscriptionList":{"id":"SubscriptionList","properties":{"meta":{"type":"ListMeta","required":true},"subscriptions":{"type":"Array","items":{"$ref":"Subscription"}},"customers":{"type":"Array","items":{"$ref":"Customer"}}}},"Addon":{"id":"Addon","properties":{"id":{"type":"string","description":"The ID of the addon","required":true},"description":{"type":"string","description":"The textual representation of the addon","required":true},"unit_price":{"type":"float","description":"Price of the addon. Only available for billing admins.","required":false},"quantity":{"type":"int","description":"How many units of the addon are available","required":true}}},"NextSubscription":{"id":"NextSubscription","properties":{"description":{"type":"string","description":"The textual representation of the subscription plan","required":true},"unit_price":{"type":"float","description":"Price of the subscription per billing term. Only available for billing admins.","required":false},"quantity":{"type":"int","description":"The quantity associated with the subscription","required":true},"addons":{"type":"Array","items":{"$ref":"Addon"},"description":"List of addons for the subscription","required":false}}},"Subscription":{"id":"Subscription","properties":{"id":{"type":"int","required":true},"start_date":{"type":"Date","required":true},"term_end_date":{"type":"Date","required":true,"description":"The date at which the current billing term ends and a new billing term begins"},"status":{"type":"string","description":"The current status of the subscription","allowableValues":{"valueType":"LIST","values":["active","cancelled","future","in_trial","non_renewing"]},"required":true},"customer_id":{"type":"int","required":true},"product":{"type":"string","description":"The ID of the subscription plan","required":true},"description":{"type":"string","description":"The textual representation of the subscription plan","required":true},"unit_price":{"type":"float","description":"Price of the subscription per billing term. Only available for billing admins.","required":false},"quantity":{"type":"int","description":"The quantity associated with the subscription","required":true},"addons":{"type":"Array","items":{"$ref":"Addon"},"description":"List of addons for the subscription","required":false},"next":{"type":"NextSubscription","description":"Contains information for the subscription that starts at the next billing term","required":false}}},"SubscriptionEdit":{"id":"SubscriptionEdit","properties":{"product":{"type":"string","required":false},"quantity":{"type":"int","required":false},"cancel":{"type":"string","description":"This field can be used to cancel the subscription either now or at the end of the current billing term","allowableValues":{"valueType":"LIST","values":["now","end_of_term"]},"required":false},"po_number":{"type":"string","required":false}}},"Tag":{"id":"Tag","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true},"valid_for_category":{"type":"Array","required":false,"items":{"$ref":"int"}}}},"TagResponse":{"id":"TagResponse","properties":{"tags":{"required":false,"type":"Array","items":{"$ref":"Tag"}}}},"TagList":{"id":"TagList","properties":{"meta":{"type":"ListMeta","required":true},"tags":{"required":false,"type":"Array","items":{"$ref":"Tag"}}}},"TagAdd":{"id":"TagAdd","properties":{"name":{"type":"string","required":true},"code":{"type":"string","required":false},"external_id":{"type":"string","required":false},"valid_for_category":{"type":"array","required":false,"items":{"$ref":"int"}}}},"TagAddSuccess":{"id":"TagAddSuccess","properties":{"id":{"type":"int","required":true}}},"TagEdit":{"id":"TagEdit","properties":{"name":{"type":"string","required":false},"code":{"type":"string","required":false},"valid_for_category":{"type":"Array","required":false,"items":{"$ref":"int"}}}},"TransactionDeleteError":{"id":"TransactionDeleteError","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["attached"]}}}},"Transaction":{"id":"Transaction","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"account_id":{"type":"int","required":false,"description":"Account that has made this transaction. Can be empty if currently unknown."},"created_by_id":{"type":"int","required":true,"description":"ID of the account that created this transaction."},"card_id":{"type":"int","required":false,"description":"Card from which the transaction originates."},"expense_id":{"type":"int","required":false},"external_id":{"type":"string","required":false,"description":"Optional field that can be used to track expenses from their original source."},"date":{"type":"Date","required":false,"description":"Date of the transaction, if known."},"total_amount":{"type":"float","required":false,"description":"Total amount of the transaction, if known."},"description":{"type":"string","required":false,"description":"Description of the transaction"},"vendor_project":{"type":"string","required":false,"description":"Vendor\/project of the transaction"},"currency_id":{"type":"int","required":false,"description":"Original currency of the transaction, using an SRXP currency ID."},"target_currency_id":{"type":"int","required":false,"description":"Currency the transaction was payed in, if known, using an SRXP currency ID."},"exchange_rate":{"type":"float","required":false,"description":"Used exchange rate between the original currency and the target currency, if known. Defined as the amount of the original currency it takes to get the target currency, i.e. target = original \/ exchange_rate. For strict transactions, this overrides the SRXP exchange rate where possible."},"country":{"type":"string","required":false},"strict":{"type":"boolean","required":true,"description":"When true, the data in this transaction is validated against the linked expense on report submission - validation will fail if it does not match. Strict transactions can only be created and edited by company admins."},"payment_method_id":{"type":"int","required":false},"vat_id":{"type":"int","required":false},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true},"se_name":{"type":"string","required":false,"description":"Legal name of the supplier"},"se_address":{"type":"string","required":false,"description":"Address of the supplier"},"se_zip":{"type":"string","required":false,"description":"Postal code of the supplier"},"se_city":{"type":"string","required":false,"description":"City of the supplier"},"se_vat_number":{"type":"string","required":false,"description":"VAT number of the supplier"}}},"TransactionResponse":{"id":"TransactionResponse","properties":{"transactions":{"type":"Array","items":{"$ref":"Transaction"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"cards":{"type":"Array","items":{"$ref":"Card"}}}},"TransactionList":{"id":"TransactionList","properties":{"meta":{"type":"ListMeta","required":true},"transactions":{"type":"Array","items":{"$ref":"Transaction"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"cards":{"type":"Array","items":{"$ref":"Card"}}}},"TransactionFieldBase":{"id":"TransactionFieldBase","properties":{"external_id":{"type":"string","required":false},"date":{"type":"Date","required":false},"total_amount":{"type":"float","required":false},"description":{"type":"string","required":false},"country":{"type":"string","required":false},"currency_id":{"type":"int","required":false},"target_currency_id":{"type":"int","required":false},"exchange_rate":{"type":"int","required":false},"card_id":{"type":"int","required":false},"payment_method_id":{"type":"int","required":false},"vat_id":{"type":"int","required":false},"se_name":{"type":"string","required":false},"se_address":{"type":"string","required":false},"se_zip":{"type":"string","required":false},"se_city":{"type":"string","required":false},"se_vat_number":{"type":"string","required":false},"vendor_project":{"type":"string","required":false,"description":"Vendor\/project of the transaction"},"create_placeholder":{"type":"boolean","required":false,"description":"By default, setting the account of a transaction from an empty value to some other value will create a placeholder expense for the transaction. This happens on both add and update. Setting this field to false disables this behavior for the current request. Note that updating a card's `account_id` may also trigger this behavior, in which case it cannot be disabled."}}},"TransactionAddToAccount":{"id":"TransactionAddToAccount","properties":{"strict":{"type":"boolean","required":false,"defaultValue":false,"description":"Defaults to `false`. Can only be set to `true` if the creating account is admin in the account's company."},"created_by_id":{"type":"int","required":true,"description":"ID of the account on behalf of which the transaction is created."},"external_id":{"type":"string","required":false},"date":{"type":"Date","required":false},"total_amount":{"type":"float","required":false},"description":{"type":"string","required":false},"country":{"type":"string","required":false},"currency_id":{"type":"int","required":false},"target_currency_id":{"type":"int","required":false},"exchange_rate":{"type":"int","required":false},"card_id":{"type":"int","required":false},"payment_method_id":{"type":"int","required":false},"vat_id":{"type":"int","required":false},"se_name":{"type":"string","required":false},"se_address":{"type":"string","required":false},"se_zip":{"type":"string","required":false},"se_city":{"type":"string","required":false},"se_vat_number":{"type":"string","required":false},"vendor_project":{"type":"string","required":false,"description":"Vendor\/project of the transaction"},"create_placeholder":{"type":"boolean","required":false,"description":"By default, setting the account of a transaction from an empty value to some other value will create a placeholder expense for the transaction. This happens on both add and update. Setting this field to false disables this behavior for the current request. Note that updating a card's `account_id` may also trigger this behavior, in which case it cannot be disabled."}}},"TransactionAddToCustomer":{"id":"TransactionAddToCustomer","properties":{"strict":{"type":"boolean","required":true},"account_id":{"type":"int","required":false},"created_by_id":{"type":"int","required":true,"description":"ID of the account on behalf of which the transaction is created."},"external_id":{"type":"string","required":false},"date":{"type":"Date","required":false},"total_amount":{"type":"float","required":false},"description":{"type":"string","required":false},"country":{"type":"string","required":false},"currency_id":{"type":"int","required":false},"target_currency_id":{"type":"int","required":false},"exchange_rate":{"type":"int","required":false},"card_id":{"type":"int","required":false},"payment_method_id":{"type":"int","required":false},"vat_id":{"type":"int","required":false},"se_name":{"type":"string","required":false},"se_address":{"type":"string","required":false},"se_zip":{"type":"string","required":false},"se_city":{"type":"string","required":false},"se_vat_number":{"type":"string","required":false},"vendor_project":{"type":"string","required":false,"description":"Vendor\/project of the transaction"},"create_placeholder":{"type":"boolean","required":false,"description":"By default, setting the account of a transaction from an empty value to some other value will create a placeholder expense for the transaction. This happens on both add and update. Setting this field to false disables this behavior for the current request. Note that updating a card's `account_id` may also trigger this behavior, in which case it cannot be disabled."}}},"TransactionEdit":{"id":"TransactionEdit","properties":{"strict":{"type":"boolean","required":false},"account_id":{"type":"int","required":false},"external_id":{"type":"string","required":false},"date":{"type":"Date","required":false},"total_amount":{"type":"float","required":false},"description":{"type":"string","required":false},"country":{"type":"string","required":false},"currency_id":{"type":"int","required":false},"target_currency_id":{"type":"int","required":false},"exchange_rate":{"type":"int","required":false},"card_id":{"type":"int","required":false},"payment_method_id":{"type":"int","required":false},"vat_id":{"type":"int","required":false},"se_name":{"type":"string","required":false},"se_address":{"type":"string","required":false},"se_zip":{"type":"string","required":false},"se_city":{"type":"string","required":false},"se_vat_number":{"type":"string","required":false},"vendor_project":{"type":"string","required":false,"description":"Vendor\/project of the transaction"},"create_placeholder":{"type":"boolean","required":false,"description":"By default, setting the account of a transaction from an empty value to some other value will create a placeholder expense for the transaction. This happens on both add and update. Setting this field to false disables this behavior for the current request. Note that updating a card's `account_id` may also trigger this behavior, in which case it cannot be disabled."}}},"TransactionCreated":{"id":"TransactionCreated","properties":{"id":{"type":"int","required":true},"expense_id":{"type":"int","required":false,"description":"By default, a placeholder expense is created for new transactions. If that is the case, the expense ID of this placeholder is returned in this field."}}},"ExpenseId":{"id":"ExpenseId","properties":{"expense_id":{"type":"int","required":true}}},"TransactionMergeErrorsMap":{"id":"TransactionMergeErrorsMap","properties":{"expense_id":{"type":"Array","description":"List of error codes that concern the expense you want to merge with the transaction.","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","in_submitted_report"]}}}},"TransactionMergeErrors":{"id":"TransactionMergeErrors","properties":{"error":{"type":"string","required":true,"description":"Either \" validation_errors\" or \"in_submitted_report\" when the expense already linked to the transaction is in a submitted report","allowableValues":{"type":"LIST","values":["validation_errors","in_submitted_report"]}},"errors":{"description":"Map op field names to error codes","type":"TransactionMergeErrorsMap","required":true}}},"ExpenseResourceTransition":{"id":"ExpenseResourceTransition","properties":{"account_id":{"type":"int","required":true,"description":"The account responsible for performing the transition."},"type":{"type":"string","required":true,"description":"The type of transition. Depending on the resource, some of these might not be available.","allowableValues":{"valueType":"LIST","values":["check","not_check","flag"]}},"motivation":{"type":"string","required":true,"description":"Only applies if the transition type is 'flagged'; specifies the reason for flagging an expense."}}},"ResourceTransition":{"id":"ResourceTransition","properties":{"account_id":{"type":"int","required":true,"description":"The account responsible for performing the transition."},"type":{"type":"string","required":true,"description":"The type of transition. Depending on the resource and its current status, some of these might not be available.","allowableValues":{"valueType":"LIST","values":["submit","retract","approve","reject","process","prepare","unprepare","revise"]}},"motivation":{"type":"string","required":true,"description":"Only applies if the transition type is 'reject'; specifies the reason for rejection."},"reset_stage":{"type":"boolean","required":false,"description":"Whether or not to reset the stage when rejecting the report."}}},"ResourceTransitionResponse":{"id":"ResourceTransitionResponse","properties":{"transitions":{"type":"Array","items":{"$ref":"ResourceTransition"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"reports":{"type":"Array","items":{"$ref":"Report"}}}},"ResourceTransitionList":{"id":"ResourceTransitionList","properties":{"meta":{"type":"ListMeta","required":true},"transitions":{"type":"Array","items":{"$ref":"ResourceTransition"}},"accounts":{"type":"Array","items":{"$ref":"Account"}},"reports":{"type":"Array","items":{"$ref":"Report"}}}},"TripType":{"id":"TripType","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"name":{"type":"string","required":true},"code":{"type":"string","required":false},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true}}},"TripTypeResponse":{"id":"TripTypeResponse","properties":{"trip_types":{"required":false,"type":"Array","items":{"$ref":"TripType"}}}},"TripTypeList":{"id":"TripTypeList","properties":{"meta":{"type":"ListMeta","required":true},"trip_types":{"required":false,"type":"Array","items":{"$ref":"TripType"}}}},"TripTypeAdd":{"id":"TripTypeAdd","properties":{"name":{"type":"string","required":true},"code":{"type":"string","required":false},"external_id":{"type":"string","required":false}}},"TripTypeAddSuccess":{"id":"TripTypeAddSuccess","properties":{"id":{"type":"int","required":true}}},"TripTypeEdit":{"id":"TripTypeEdit","properties":{"name":{"type":"string","required":false},"code":{"type":"string","required":false}}},"TripApproveStage":{"id":"TripApproveStage","properties":{"policies":{"type":"Array","required":true,"items":{"$ref":"TripApprovePolicy"}}}},"TripApprovePolicy":{"id":"TripApprovePolicy","properties":{"choice":{"type":"int","required":false,"description":"Chosen approver for policy type 'choose_approver'."},"type":{"type":"string","required":true,"allowableValues":{"type":"LIST","values":["assign_approver","choose_approver"]}},"approver_id":{"type":"int","required":false,"description":"The ID of the assigned approved if 'assign_approver' is used as a policy or the default choice if 'choose_approver' is used. Only required for 'assign_approver'."}}},"TripApprovePolicyModify":{"id":"TripApprovePolicyModify","properties":{"choice":{"type":"int","required":false,"description":"The ID of the approver choice for the matching approve policy."}}},"TripApproveStageModify":{"id":"TripApproveStageModify","properties":{"policies":{"type":"Array","required":true,"items":{"$ref":"TripApprovePolicyModify"}}}},"TripLeg":{"id":"TripLeg","properties":{"start_location":{"type":"string","required":true},"start_date":{"type":"Date","required":true},"start_latitude":{"type":"float","required":false},"start_longitude":{"type":"float","required":false},"end_location":{"type":"string","required":true},"end_latitude":{"type":"float","required":false},"end_longitude":{"type":"float","required":false}}},"Trip":{"id":"Trip","properties":{"id":{"type":"int","required":true},"account_id":{"type":"int","required":true},"name":{"type":"string","required":true},"description":{"type":"string","required":false},"budget":{"type":"float","required":true},"currency_id":{"type":"int","required":true},"advanced_payment":{"type":"bool","required":true},"status":{"type":"string","description":"The current status of the trip","allowableValues":{"valueType":"LIST","values":["not_requested","requested","rejected","accepted"]},"required":true},"stage":{"type":"int","description":"The approvement stage of this trip, corresponds to a stage given in approve_stages.","required":true},"approve_stages":{"required":true,"type":"Array","items":{"$ref":"TripApproveStage"},"description":"The approve stages for this trip. These are similar to account approve stages, but they may include a chosen approver for the 'choose_approver' policy. For not-requested trips, the policy should always be identical to the account policy, in that if the account policy changes, the trip policy for all not-requested accounts also changes. Requested trips are retracted when their account's policy changes. Trips that have been accepted retain their account policy."},"created_by_id":{"type":"int","required":true},"motivation":{"type":"string","required":false},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true},"total":{"type":"float","required":true},"expense_count":{"type":"float","required":true},"trip_type_id":{"type":"int","required":false},"needs_flights":{"type":"bool","required":true},"needs_hotels":{"type":"bool","required":true},"needs_rental_cars":{"type":"bool","required":true},"start_date":{"type":"Date","required":true},"end_date":{"type":"Date","required":true},"close_date":{"type":"Date","required":false},"legs":{"required":true,"type":"Array","items":{"$ref":"TripLeg"}}}},"TripResponse":{"id":"TripResponse","properties":{"trips":{"required":false,"type":"Array","items":{"$ref":"Trip"}},"accounts":{"required":false,"type":"Array","items":{"$ref":"Account"}},"currencies":{"required":false,"type":"Array","items":{"$ref":"Currency"}},"trip_types":{"required":false,"type":"Array","items":{"$ref":"TripType"}}}},"TripList":{"id":"TripList","properties":{"meta":{"type":"ListMeta","required":true},"trips":{"required":false,"type":"Array","items":{"$ref":"Trip"}},"accounts":{"required":false,"type":"Array","items":{"$ref":"Account"}},"currencies":{"required":false,"type":"Array","items":{"$ref":"Currency"}},"trip_types":{"required":false,"type":"Array","items":{"$ref":"TripType"}}}},"TripAdd":{"id":"TripAdd","properties":{"name":{"type":"string","required":true},"description":{"type":"string","required":false},"budget":{"type":"float","required":false},"currency_id":{"type":"int","required":false},"advanced_payment":{"type":"bool","required":false,"approve_stages":{"type":"Array","items":{"$ref":"TripApproveStageModify"},"required":true,"description":"This field allows you to modify the chosen approver of approver policies with a `choose_approver` type. Fields other than the `choice` field on the separate policies will be ignored. The number an arrangement of policies in this field needs to match that of the trips's account. Policy choices can only be changed for not-requested trips."}},"trip_type_id":{"type":"int","required":false},"needs_flights":{"type":"bool","required":false},"needs_hotels":{"type":"bool","required":false},"needs_rental_cars":{"type":"bool","required":false},"legs":{"required":false,"type":"Array","items":{"$ref":"TripLeg"}}}},"TripEdit":{"id":"TripEdit","properties":{"name":{"type":"string","required":false},"description":{"type":"string","required":false},"budget":{"type":"float","required":false},"currency_id":{"type":"int","required":false},"advanced_payment":{"type":"bool","required":false,"approve_stages":{"type":"Array","items":{"$ref":"TripApproveStageModify"},"required":true,"description":"This field allows you to modify the chosen approver of approver policies with a `choose_approver` type. Fields other than the `choice` field on the separate policies will be ignored. The number an arrangement of policies in this field needs to match that of the trips's account. Policy choices can only be changed for not-requested trips."}},"trip_type_id":{"type":"int","required":false},"needs_flights":{"type":"bool","required":false},"needs_hotels":{"type":"bool","required":false},"needs_rental_cars":{"type":"bool","required":false},"legs":{"required":false,"type":"Array","items":{"$ref":"TripLeg"}}}},"TripDeleteError":{"id":"TripDeleteError","properties":{"error":{"type":"string","required":true,"allowableValues":{"type":"Set","values":["requested"]}}}},"TripBulkDeleteErrors":{"id":"TripBulkDeleteErrors","properties":{"error":{"type":"string","required":false,"allowableValues":{"type":"LIST","values":["not_found","forbidden","requested"]}},"id":{"type":"int","required":true},"success":{"type":"boolean","required":true}}},"UserIdp":{"id":"UserIdp","properties":{"id":{"type":"int","required":true},"user_id":{"type":"int","required":true},"protected":{"type":"bool","required":true},"created":{"type":"Date","required":true}}},"IdpSimple":{"id":"IdpSimple","properties":{"id":{"type":"int","required":true},"adapter":{"type":"string","required":true},"slug":{"type":"string","required":true}}},"UserIdpResponse":{"id":"UserIdpResponse","properties":{"user_idps":{"type":"Array","items":{"$ref":"UserIdp"}},"idps":{"type":"Array","items":{"$ref":"IdpSimple"}}}},"UserIdpList":{"id":"UserIdpList","properties":{"meta":{"type":"ListMeta","required":true},"user_idps":{"type":"Array","items":{"$ref":"UserIdp"}},"idps":{"type":"Array","items":{"$ref":"IdpSimple"}}}},"UserIdpAdd":{"id":"UserIdpAdd","properties":{"idp_slug":{"type":"string","required":true,"description":"Slug of the IDP"}}},"UserIdpProtectedError":{"id":"UserIdpProtectedError","properties":{"error":{"type":"string","required":true,"description":"Contains the string `idp_protected_add`"}}},"UserIdpAddSuccess":{"id":"UserIdpAddSuccess","properties":{"id":{"type":"int","required":true},"token":{"type":"string","required":true},"idp_slug":{"type":"string","required":true},"user_id":{"type":"int","required":true},"idp_id":{"type":"int","required":true}}},"UserIdpDeleteErrors":{"id":"UserIdpDeleteErrors","properties":{"error":{"type":"string","required":true,"description":"The value `idp_protected_delete`"}}},"Bookmark":{"id":"Bookmark","properties":{"name":{"type":"string","required":true},"location":{"type":"string","required":true},"type":{"type":"string","required":true},"icon":{"type":"string","required":true},"latitude":{"type":"float","required":false},"longitude":{"type":"float","required":false},"place_id":{"type":"string","required":false}}},"User":{"id":"User","properties":{"id":{"type":"int","required":true},"email":{"type":"string","required":true},"currency_id":{"type":"int","required":true},"timezone":{"type":"string","required":true},"date_format":{"type":"string","required":true},"number_format":{"type":"string","required":true},"time_format":{"type":"string","required":true},"language_format":{"type":"string","required":true},"confirmed_at":{"type":"Date","required":true},"last_online":{"type":"Date","required":true},"default_account_id":{"type":"int","required":true},"created":{"type":"date","required":true},"modified":{"type":"date","required":true},"reserved_1":{"type":"array","required":false,"description":"System reserved information, do not edit"},"notify_status":{"type":"boolean","required":false},"notify_approve":{"type":"boolean","required":false},"notify_process":{"type":"boolean","required":false},"notify_submit":{"type":"boolean","required":false},"notify_approve_process":{"type":"boolean","required":false},"notify_cards_created":{"type":"boolean","required":false},"bookmarks":{"type":"Array","items":{"$ref":"Bookmark"},"required":false}}},"UserResponse":{"id":"UserResponse","properties":{"users":{"type":"Array","items":{"$ref":"User"},"required":false}}},"UserList":{"id":"UserList","properties":{"meta":{"type":"ListMeta","required":true},"users":{"type":"Array","items":{"$ref":"User"},"required":false}}},"Confirm":{"id":"Confirm","properties":{"confirmation_token":{"type":"string","required":true,"description":"Confirmation token for this user"}}},"UserConfirmSuccess":{"id":"UserConfirmSuccess","properties":{"confirmed_at":{"type":"date","required":true}}},"UserEdit":{"id":"UserEdit","properties":{"email":{"type":"string","required":false,"description":"The email can only be changed if the 'current_password' property is also included and valid. When editing as an admin,the `current_password` property is not needed if 'is_admin_edit: true'is passed in combination with the 'customer_id' of the user that will be edited."},"currency_id":{"type":"int","required":false},"timezone":{"type":"string","required":false,"description":"A valid timezone identifier, e.g. 'Europe\/Amsterdam'"},"number_format":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":[".,",",.",", ",".'","\/,","- ",". "]}},"date_format":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["dd-mm-yyyy","mm\/dd\/yyyy"]}},"time_format":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["HH:mm","hh:mm A"]}},"language":{"type":"string","required":false,"allowableValues":{"valueType":"LIST","values":["en","nl"]}},"password":{"type":"string","required":true,"description":"The password for the new user. Must be at least 8 characters and contain at least one lowercase letter, one uppercase letter and one digit. The password can only be changed if the 'current_password' property is also included and valid"},"current_password":{"type":"string","required":false,"description":"Should be included if the 'password' and\/or the 'email' property is also set."},"default_account_id":{"type":"int","required":false,"description":"The account must belong to the user"},"notify_status":{"type":"bool","required":false,"description":"A flag that indicates if the user will receive an e-mail when his or her report is rejected or declared incomplete. Applicable for accounts with reporter rights."},"notify_approve":{"type":"bool","required":false,"description":"A flag that indicates if the user will receive an e-mail when his or her report is approved. Applicable for accounts with reporter rights."},"notify_process":{"type":"bool","required":false,"description":"A flag that indicates if the user will receive an e-mail when his or her report is processed. Applicable for accounts with reporter rights."},"notify_submit":{"type":"bool","required":false,"description":"A flag that indicates if the user will receive an e-mail when a report is submitted. Applicable for accounts with approver rights."},"notify_approve_process":{"type":"bool","required":false,"description":"A flag that indicates if the user will receive an e-mail when a report is approved. Applicable for accounts with exporter rights."},"bookmarks":{"type":"array","items":{"$ref":"Bookmark"},"required":false,"description":"An array of user saved addresses for mileages."}}},"UserAdd":{"id":"UserAdd","properties":{"activation_token":{"type":"string","required":true,"description":"The token that belongs to the account that will be tied to the new user."},"accept_tc_pp":{"type":"bool","required":true,"description":"If the user accepts the Terms and Conditions and Privacy Policy of SRXP."},"password":{"type":"string","required":true,"description":"The password for the new user. Must be at least 8 characters and contain at least one lowercase letter, one uppercase letter and one digit. The password can only be changed if the 'current_password' property is also included and valid"}}},"UserAddSuccess":{"id":"UserAddSuccess","properties":{"id":{"type":"int","required":true}}},"UserResetPassword":{"id":"UserResetPassword","properties":{"email":{"type":"string","required":true}}},"UserPasswordResetErrors":{"id":"UserPasswordResetErrors","properties":{"error":{"type":"string","required":false,"description":"'not_confirmed'"}}},"UserSetPassword":{"id":"UserSetPassword","properties":{"email":{"type":"string","required":true},"reset_password_token":{"type":"string","required":true},"password":{"type":"string","required":true,"description":"The password for the new user. Must be at least 8 characters and contain at least one lowercase letter, one uppercase letter and one digit."}}},"UserMerge":{"id":"UserMerge","properties":{"email":{"type":"string","required":true},"password":{"type":"string","required":true}}},"UserMergeError":{"id":"UserMergeError","properties":{"error":{"type":"string","required":true,"description":"'unknown_user' error code"}}},"UserConfirmationEmailError":{"id":"UserConfirmationEmailError","properties":{"error":{"type":"string","required":true,"description":"'already_confirmed' error code"}}},"VatCategory":{"id":"VatCategory","properties":{"id":{"type":"int","required":true},"name":{"type":"string","required":true}}},"VatCategoryResponse":{"id":"VatCategoryResponse","properties":{"vat_categories":{"type":"Array","items":{"$ref":"VatCategory"},"required":false}}},"VatCategoryList":{"id":"VatCategoryList","properties":{"meta":{"type":"ListMeta","required":true},"vat_categories":{"type":"Array","items":{"$ref":"VatCategory"},"required":false}}},"VatList":{"id":"VatList","properties":{"meta":{"type":"ListMeta","required":true},"vats":{"required":false,"type":"Array","description":"List of tax rates","items":{"$ref":"Vat"}}}},"Vat":{"id":"Vat","properties":{"id":{"type":"int","required":true},"customer_id":{"type":"int","required":true},"external_id":{"type":"int","required":false},"percentage":{"type":"float","required":true},"code":{"type":"string","required":false},"description":{"type":"string","required":false},"free_1":{"type":"string","required":false},"created":{"type":"date","required":true},"modified":{"type":"date","required":true}}},"VatAdd":{"id":"VatAdd","properties":{"customer_id":{"type":"int","required":true},"percentage":{"type":"float","required":true},"code":{"type":"string","required":false},"description":{"type":"string","required":false},"free_1":{"type":"string","required":false},"external_id":{"type":"string","required":false}}},"VatAddSuccess":{"id":"VatAddSuccess","properties":{"id":{"type":"int","required":true}}},"VatEdit":{"id":"VatEdit","properties":{"percentage":{"type":"float","required":false},"code":{"type":"string","required":false},"free_1":{"type":"string","required":false},"description":{"type":"string","required":false}}},"Violation":{"id":"Violation","properties":{"id":{"type":"int","required":true},"report_id":{"type":"int","required":true},"business_rule_id":{"type":"int","required":true},"expense_id":{"type":"int","required":false},"type":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["block","highlight"]}},"field":{"type":"string","required":true},"data":{"type":"ViolationData","required":true},"created":{"type":"Date","required":true},"modified":{"type":"Date","required":true}}},"ViolationData":{"id":"ViolationData","properties":{"amount_index":{"type":"int","required":true},"currency_id":{"type":"int","required":true},"group_by":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["day","month","expense","report"]}},"operand":{"type":"float","required":true},"operator":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":[">","<",">=","<="]}},"resource":{"type":"string","required":true,"allowableValues":{"valueType":"LIST","values":["category","project","total"]}},"resource_id":{"type":"int","required":true},"total":{"type":"int","required":true},"required_field":{"type":"bool","required":false}}},"ViolationResponse":{"id":"ViolationResponse","properties":{"violations":{"type":"Array","items":{"$ref":"Violation"}}}},"ViolationList":{"id":"ViolationList","properties":{"meta":{"type":"ListMeta","required":true},"violations":{"type":"Array","items":{"$ref":"Violation"}}}},"AccessKeyAddErrorsMap":{"id":"AccessKeyAddErrorsMap","properties":{"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","unknown_email_or_password"]}},"password":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","unknown_email_or_password"]}},"expires":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","already_expired"]}}}},"AccessKeyAddErrors":{"id":"AccessKeyAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AccessKeyAddErrorsMap"}}},"TransferApproverRoleErrorsMap":{"id":"TransferApproverRoleErrorsMap","properties":{"new_approver_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["is_not_approver"]}}}},"TransferApproverRoleErrors":{"id":"TransferApproverRoleErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TransferApproverRoleErrorsMap"}}},"AccountAddApproveStagesMapPoliciesMap":{"id":"AccountAddApproveStagesMapPoliciesMap","properties":{"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}},"approver_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid_for_policy","required"]}}}},"AccountAddApproveStagesMapPolicies":{"id":"AccountAddApproveStagesMapPolicies","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"AccountAddApproveStagesMapPoliciesMap"}}},"AccountAddApproveStagesMap":{"id":"AccountAddApproveStagesMap","properties":{"policies":{"type":"Array","items":{"$ref":"AccountAddApproveStagesMapPolicies"},"required":false,"description":"A list of nested objects with errors"}}},"AccountAddApproveStages":{"id":"AccountAddApproveStages","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"AccountAddApproveStagesMap"}}},"AccountAddTripApproveStagesMapPoliciesMap":{"id":"AccountAddTripApproveStagesMapPoliciesMap","properties":{"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}},"approver_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid_for_policy","required"]}}}},"AccountAddTripApproveStagesMapPolicies":{"id":"AccountAddTripApproveStagesMapPolicies","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"AccountAddTripApproveStagesMapPoliciesMap"}}},"AccountAddTripApproveStagesMap":{"id":"AccountAddTripApproveStagesMap","properties":{"policies":{"type":"Array","items":{"$ref":"AccountAddTripApproveStagesMapPolicies"},"required":false,"description":"A list of nested objects with errors"}}},"AccountAddTripApproveStages":{"id":"AccountAddTripApproveStages","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"AccountAddTripApproveStagesMap"}}},"AccountAddErrorsMap":{"id":"AccountAddErrorsMap","properties":{"firstname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"surname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"job_title_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"establishment_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate_email","too_long_max_255"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_amount","invalid_distance_unit"]}},"inherit_travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"is_admin":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","no_admins","last_rights"]}},"is_reporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}},"is_approver":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_report_approver","last_rights"]}},"is_exporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}},"creditor_nr":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_50"]}},"allowed_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"allowed_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"active":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_admin","subscription_limit"]}},"approve_stages":{"type":"Array","items":{"$ref":"AccountAddApproveStages"},"required":false,"description":"A list of nested objects with errors"},"trip_approve_stages":{"type":"Array","items":{"$ref":"AccountAddTripApproveStages"},"required":false,"description":"A list of nested objects with errors"},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"free_2":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"free_3":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}}}},"AccountAddErrors":{"id":"AccountAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AccountAddErrorsMap"}}},"AccountEditApproveStagesMapPoliciesMap":{"id":"AccountEditApproveStagesMapPoliciesMap","properties":{"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}},"approver_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid_for_policy","required"]}}}},"AccountEditApproveStagesMapPolicies":{"id":"AccountEditApproveStagesMapPolicies","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"AccountEditApproveStagesMapPoliciesMap"}}},"AccountEditApproveStagesMap":{"id":"AccountEditApproveStagesMap","properties":{"policies":{"type":"Array","items":{"$ref":"AccountEditApproveStagesMapPolicies"},"required":false,"description":"A list of nested objects with errors"}}},"AccountEditApproveStages":{"id":"AccountEditApproveStages","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"AccountEditApproveStagesMap"}}},"AccountEditErrorsMap":{"id":"AccountEditErrorsMap","properties":{"firstname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"surname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"job_title_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"establishment_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate_email","too_long_max_255"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_amount","invalid_distance_unit"]}},"inherit_travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"is_admin":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","no_admins","last_rights"]}},"is_reporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}},"is_approver":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_report_approver","last_rights","has_reporters"]}},"is_exporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}},"creditor_nr":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_50"]}},"allowed_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"allowed_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_projects":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"active":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_admin","subscription_limit","has_reporters"]}},"approve_stages":{"type":"Array","items":{"$ref":"AccountEditApproveStages"},"required":false,"description":"A list of nested objects with errors"},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"free_2":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"free_3":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}}}},"AccountEditErrors":{"id":"AccountEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AccountEditErrorsMap"}}},"AliasAddErrorsMap":{"id":"AliasAddErrorsMap","properties":{"customer_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","not_found"]}},"translation_key":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}},"translation_value":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_35"]}},"types":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"status":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"AliasAddErrors":{"id":"AliasAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AliasAddErrorsMap"}}},"AssistantAddErrorsMap":{"id":"AssistantAddErrorsMap","properties":{"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required"]}},"assistant_account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","exists"]}},"activation_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","already_activated","not_allowed"]}},"expiration_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","already_expired","not_allowed"]}},"is_reporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","last_rights"]}},"is_approver":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","last_rights"]}},"is_exporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","last_rights"]}}}},"AssistantAddErrors":{"id":"AssistantAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AssistantAddErrorsMap"}}},"AssistantEditErrorsMap":{"id":"AssistantEditErrorsMap","properties":{"assistant_account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","exists"]}},"activation_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","already_activated","not_allowed"]}},"expiration_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","already_expired","not_allowed"]}},"is_reporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}},"is_approver":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}},"is_exporter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","last_rights"]}}}},"AssistantEditErrors":{"id":"AssistantEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AssistantEditErrorsMap"}}},"AttachmentEditErrorsMap":{"id":"AttachmentEditErrorsMap","properties":{"rotation":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_allowed"]}}}},"AttachmentEditErrors":{"id":"AttachmentEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AttachmentEditErrorsMap"}}},"AttachmentAddErrorsMap":{"id":"AttachmentAddErrorsMap","properties":{"contents":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_contents","extension_not_allowed","file_too_large"]}},"filename":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["too_long_max_255"]}}}},"AttachmentAddErrors":{"id":"AttachmentAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"AttachmentAddErrorsMap"}}},"BusinessRuleErrorsMap":{"id":"BusinessRuleErrorsMap","properties":{"active":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_allowed"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"actions":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","no_actions"]}},"conditions":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","no_conditions"]}}}},"BusinessRuleErrors":{"id":"BusinessRuleErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"BusinessRuleErrorsMap"}}},"CardAccountAddErrorsMap":{"id":"CardAccountAddErrorsMap","properties":{"created_by_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","forbidden"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","is_credit_card","too_long_max_100"]}},"card_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_credit_card","too_long_max_100"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty","too_long_max_100"]}},"issuer":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty","too_long_max_100"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","forbidden"]}},"holder_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}},"holder_name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"CardAccountAddErrors":{"id":"CardAccountAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CardAccountAddErrorsMap"}}},"CardCustomerAddErrorsMap":{"id":"CardCustomerAddErrorsMap","properties":{"created_by_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","forbidden"]}},"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","not_found","customer_mismatch"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","is_credit_card","too_long_max_100"]}},"card_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_credit_card","too_long_max_100"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty","too_long_max_100"]}},"issuer":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty","too_long_max_100"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}},"holder_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}},"holder_name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"CardCustomerAddErrors":{"id":"CardCustomerAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CardCustomerAddErrorsMap"}}},"CardEditErrorsMap":{"id":"CardEditErrorsMap","properties":{"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","forbidden","customer_mismatch"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","is_credit_card","too_long_max_100"]}},"card_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","is_credit_card","too_long_max_100"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","empty","too_long_max_100"]}},"issuer":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","empty","too_long_max_100"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}},"holder_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}},"holder_name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"CardEditErrors":{"id":"CardEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CardEditErrorsMap"}}},"CategoryAddErrorsMap":{"id":"CategoryAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"taxed_code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"wkr_group":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","invalid_amount","invalid_distance_unit","invalid_taxed_amount"]}},"vat_category_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_allowed"]}},"job_title_refuse":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_20"]}}}},"CategoryAddErrors":{"id":"CategoryAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CategoryAddErrorsMap"}}},"CategoryEditErrorsMap":{"id":"CategoryEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"taxed_code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"wkr_group":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_amount","invalid_distance_unit","invalid_taxed_amount"]}},"vat_category_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_allowed"]}}}},"CategoryEditErrors":{"id":"CategoryEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CategoryEditErrorsMap"}}},"CustomerAddErrorsMap":{"id":"CustomerAddErrorsMap","properties":{"firstname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"surname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_80"]}},"tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_30"]}},"language":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"street":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"nr":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"addition":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"support_contact":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"support_email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"support_tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"i_email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"i_street":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_nr":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_addition":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"i_city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"copy_vats":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"copy_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"copy_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"CustomerAddErrors":{"id":"CustomerAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CustomerAddErrorsMap"}}},"CustomerRegisterErrorsMap":{"id":"CustomerRegisterErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_80"]}},"firstname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"surname":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","exists","too_long_max_255"]}},"password":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","policy_mismatch"]}},"tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_30"]}},"language":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"accept_tc_pp":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","must_accept"]}}}},"CustomerRegisterErrors":{"id":"CustomerRegisterErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CustomerRegisterErrorsMap"}}},"CustomerEditErrorsMap":{"id":"CustomerEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_80"]}},"street":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"nr":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"cperson":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"i_email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_street":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_nr":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_addition":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"i_city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"i_country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"logo":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","extension_not_allowed","invalid_contents","file_too_large"]}},"timezone":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"language":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"time_format":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"date_format":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"number_format":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"support_contact":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"support_email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"support_tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"vat_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}},"report_title":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"approvers_can_edit_expense_fields":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"exporters_can_edit_expense_fields":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"credit_card_report_title":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"replace_user_approved_policy":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"other_expenses_in_transaction_report":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"bunq_import_enabled":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"CustomerEditErrors":{"id":"CustomerEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"CustomerEditErrorsMap"}}},"EstablishmentAddErrorsMap":{"id":"EstablishmentAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"cperson":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_20"]}}}},"EstablishmentAddErrors":{"id":"EstablishmentAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"EstablishmentAddErrorsMap"}}},"EstablishmentEditErrorsMap":{"id":"EstablishmentEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"cperson":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"tel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}}}},"EstablishmentEditErrors":{"id":"EstablishmentEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"EstablishmentEditErrorsMap"}}},"ExpenseSubmitAmountErrorsMap":{"id":"ExpenseSubmitAmountErrorsMap","properties":{"amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty_amount"]}},"vat_amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","sign_mismatch"]}},"vat_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_found"]}},"category_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_found"]}},"minutes":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_positive"]}},"display_inclusive":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"ExpenseSubmitAmountErrors":{"id":"ExpenseSubmitAmountErrors","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseSubmitAmountErrorsMap"}}},"ExpenseSubmitWaypointErrorsMap":{"id":"ExpenseSubmitWaypointErrorsMap","properties":{"location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}}}},"ExpenseSubmitWaypointErrors":{"id":"ExpenseSubmitWaypointErrors","properties":{"index":{"type":"int","required":true,"description":"Index of the waypoint in the supplied array."},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseSubmitWaypointErrorsMap"}}},"ExpenseSubmitErrorsMap":{"id":"ExpenseSubmitErrorsMap","properties":{"expense_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","future_date","required","transaction_date_mismatch"]}},"picture":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required"]}},"payment_method_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","not_found"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","not_found","transaction_currency_mismatch"]}},"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"amounts":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_nr_amounts","no_amounts","transaction_amount_mismatch"]}},"amount_errors":{"type":"Array","items":{"$ref":"ExpenseSubmitAmountErrors"},"required":false,"description":"A list of nested objects with errors"},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"waypoints":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","needs_from_to"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["no_travel_allowance"]}},"waypoint_errors":{"type":"Array","items":{"$ref":"ExpenseSubmitWaypointErrors"},"required":false,"description":"A list of nested objects with errors"},"vendor_project":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"total":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["missing_exchange_rate"]}}}},"ExpenseSubmitErrors":{"id":"ExpenseSubmitErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExpenseSubmitErrorsMap"}}},"ExpenseAddAmountErrorsMap":{"id":"ExpenseAddAmountErrorsMap","properties":{"amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty_amount"]}},"vat_amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","sign_mismatch"]}},"vat_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_found"]}},"category_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_found"]}},"minutes":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_positive"]}},"display_inclusive":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"ExpenseAddAmountErrors":{"id":"ExpenseAddAmountErrors","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseAddAmountErrorsMap"}}},"ExpenseAddWaypointErrorsMap":{"id":"ExpenseAddWaypointErrorsMap","properties":{"location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}}}},"ExpenseAddWaypointErrors":{"id":"ExpenseAddWaypointErrors","properties":{"index":{"type":"int","required":true,"description":"Index of the waypoint in the supplied array."},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseAddWaypointErrorsMap"}}},"ExpenseAddErrorsMap":{"id":"ExpenseAddErrorsMap","properties":{"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","unknown_type","required"]}},"expense_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","future_date"]}},"report_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","report_submitted","not_found"]}},"picture":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_contents","extension_not_allowed","file_too_large"]}},"payment_method_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"rotation":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["not_allowed"]}},"amounts":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"amount_errors":{"type":"Array","items":{"$ref":"ExpenseAddAmountErrors"},"required":false,"description":"A list of nested objects with errors"},"waypoints":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"waypoint_errors":{"type":"Array","items":{"$ref":"ExpenseAddWaypointErrors"},"required":false,"description":"A list of nested objects with errors"},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"vendor_project":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"project_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","disabled","has_sub_projects"]}},"transaction_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","already_assigned","not_found","account_mismatch"]}},"trip_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","forbidden"]}},"tags":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","forbidden"]}}}},"ExpenseAddErrors":{"id":"ExpenseAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExpenseAddErrorsMap"}}},"ExpenseEditAmountErrorsMap":{"id":"ExpenseEditAmountErrorsMap","properties":{"amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","required","empty_amount"]}},"vat_amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","required","sign_mismatch"]}},"vat_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","required","not_found"]}},"category_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","required","not_found"]}},"minutes":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","required","not_positive"]}},"display_inclusive":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"ExpenseEditAmountErrors":{"id":"ExpenseEditAmountErrors","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseEditAmountErrorsMap"}}},"ExpenseEditWaypointErrorsMap":{"id":"ExpenseEditWaypointErrorsMap","properties":{"location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required"]}}}},"ExpenseEditWaypointErrors":{"id":"ExpenseEditWaypointErrors","properties":{"index":{"type":"int","required":true,"description":"Index of the waypoint in the supplied array."},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseEditWaypointErrorsMap"}}},"ExpenseEditErrorsMap":{"id":"ExpenseEditErrorsMap","properties":{"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid"]}},"expense_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","future_date","required"]}},"report_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","expense_submitted","report_submitted","not_found"]}},"picture":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_contents","extension_not_allowed","file_too_large","required"]}},"payment_method_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","not_found","required"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","not_found","required"]}},"amounts":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","invalid_nr_amounts","no_amounts"]}},"amount_errors":{"type":"Array","items":{"$ref":"ExpenseEditAmountErrors"},"required":false,"description":"A list of nested objects with errors"},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid"]}},"waypoints":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","needs_from_to"]}},"waypoint_errors":{"type":"Array","items":{"$ref":"ExpenseEditWaypointErrors"},"required":false,"description":"A list of nested objects with errors"},"vendor_project":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid"]}},"project_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","not_found","disabled","has_sub_projects"]}},"transaction_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","already_assigned","not_found","account_mismatch"]}},"trip_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid","not_found"]}},"tags":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden","invalid"]}}}},"ExpenseEditErrors":{"id":"ExpenseEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExpenseEditErrorsMap"}}},"ExpenseBulkEditErrors:ExpenseEditErrorsMap":{"id":"ExpenseBulkEditErrors:ExpenseEditErrorsMap","properties":{}},"ExpenseBulkEditErrors:ExpenseEditErrors":{"id":"ExpenseBulkEditErrors:ExpenseEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExpenseBulkEditErrors:ExpenseEditErrorsMap"}}},"ExportFormatAddErrorsMap":{"id":"ExportFormatAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"handler":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid_currency"]}},"mark_processed":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}}}},"ExportFormatAddErrors":{"id":"ExportFormatAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExportFormatAddErrorsMap"}}},"ExportFormatEditErrorsMap":{"id":"ExportFormatEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid_currency"]}},"mark_processed":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"split_mileage":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"expense_types":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"ExportFormatEditErrors":{"id":"ExportFormatEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExportFormatEditErrorsMap"}}},"ExportAddErrorsMap":{"id":"ExportAddErrorsMap","properties":{"export_format_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","not_found"]}},"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","not_found"]}},"filter":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","empty","no_reports_in_filter"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}}}},"ExportAddErrors":{"id":"ExportAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExportAddErrorsMap"}}},"JobTitleAddErrorsMap":{"id":"JobTitleAddErrorsMap","properties":{"customer_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","not_found"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_20"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","invalid_amount","invalid_distance_unit"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_20"]}},"disallowed_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_projects":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"JobTitleAddErrors":{"id":"JobTitleAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"JobTitleAddErrorsMap"}}},"JobTitleEditErrorsMap":{"id":"JobTitleEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"travel_allowance":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_amount","invalid_distance_unit"]}},"disallowed_categories":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_projects":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"disallowed_payment_methods":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"JobTitleEditErrors":{"id":"JobTitleEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"JobTitleEditErrorsMap"}}},"PaymentMethodAddErrorsMap":{"id":"PaymentMethodAddErrorsMap","properties":{"customer_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","not_found"]}},"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"payment_condition":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_20"]}}}},"PaymentMethodAddErrors":{"id":"PaymentMethodAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"PaymentMethodAddErrorsMap"}}},"PaymentMethodEditErrorsMap":{"id":"PaymentMethodEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"payment_condition":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}}}},"PaymentMethodEditErrors":{"id":"PaymentMethodEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"PaymentMethodEditErrorsMap"}}},"PolicyAddErrorsMap":{"id":"PolicyAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255","duplicate"]}},"resource":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"access_level":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"policy":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_2048"]}},"policy_group_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"PolicyAddErrors":{"id":"PolicyAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"PolicyAddErrorsMap"}}},"PolicyEditErrorsMap":{"id":"PolicyEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255","duplicate"]}},"resource":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"access_level":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"policy":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_2048"]}},"policy_group_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"PolicyEditErrors":{"id":"PolicyEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"PolicyEditErrorsMap"}}},"ProjectAddErrorsMap":{"id":"ProjectAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"active":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","parent_project_inactive"]}},"billable":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"parent_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","forbidden","has_children","has_parent","has_expenses"]}},"job_title_refuse":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_255"]}}}},"ProjectAddErrors":{"id":"ProjectAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ProjectAddErrorsMap"}}},"ProjectEditErrorsMap":{"id":"ProjectEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"active":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","parent_project_inactive"]}},"billable":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"parent_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","forbidden","has_children","has_parent","has_expenses"]}}}},"ProjectEditErrors":{"id":"ProjectEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ProjectEditErrorsMap"}}},"ReportApproveStagePolicyErrorsMap":{"id":"ReportApproveStagePolicyErrorsMap","properties":{"choice":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["not_found","required","invalid_option"]}}}},"ReportApproveStagePolicyErrors":{"id":"ReportApproveStagePolicyErrors","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ReportApproveStagePolicyErrorsMap"}}},"ReportApproveStageErrorsMap":{"id":"ReportApproveStageErrorsMap","properties":{"policy_errors":{"type":"Array","items":{"$ref":"ReportApproveStagePolicyErrors"},"required":false,"description":"A list of nested objects with errors"}}},"ReportApproveStageErrors":{"id":"ReportApproveStageErrors","properties":{"stage":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ReportApproveStageErrorsMap"}}},"ReportErrorsMap":{"id":"ReportErrorsMap","properties":{"title":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","too_long_max_255"]}},"created_by_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","forbidden"]}},"statement":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","invalid_content_type","invalid_contents","file_too_large","forbidden"]}},"approve_stages":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","stage_mismatch","choice_mismatch","report_submitted"]}},"approve_stage_errors":{"type":"Array","items":{"$ref":"ReportApproveStageErrors"},"required":false,"description":"A list of nested objects with errors"}}},"ReportErrors":{"id":"ReportErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ReportErrorsMap"}}},"RolePolicyAddErrorsMap":{"id":"RolePolicyAddErrorsMap","properties":{"role_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"policy_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"RolePolicyAddErrors":{"id":"RolePolicyAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"RolePolicyAddErrorsMap"}}},"RoleAddErrorsMap":{"id":"RoleAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255","duplicate"]}},"score":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"RoleAddErrors":{"id":"RoleAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"RoleAddErrorsMap"}}},"RoleEditErrorsMap":{"id":"RoleEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255","duplicate"]}},"score":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"RoleEditErrors":{"id":"RoleEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"RoleEditErrorsMap"}}},"SubscriptionEditErrorsMap":{"id":"SubscriptionEditErrorsMap","properties":{"product":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","exists","needs_billing_information"]}},"quantity":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_allowed"]}},"cancel":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"po_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"SubscriptionEditErrors":{"id":"SubscriptionEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"SubscriptionEditErrorsMap"}}},"TagAddErrorsMap":{"id":"TagAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_36"]}}}},"TagAddErrors":{"id":"TagAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TagAddErrorsMap"}}},"TagEditErrorsMap":{"id":"TagEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"valid_for_category":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"TagEditErrors":{"id":"TagEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TagEditErrorsMap"}}},"TransactionAccountAddErrorsMap":{"id":"TransactionAccountAddErrorsMap","properties":{"created_by_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","forbidden"]}},"expense_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["update_through_expense"]}},"card_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","customer_mismatch"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_100"]}},"date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","future_date"]}},"total_amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"vendor_project":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"target_currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"exchange_rate":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"strict":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["forbidden"]}},"payment_method_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"vat_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"se_name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_address":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"se_city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_vat_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"TransactionAccountAddErrors":{"id":"TransactionAccountAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TransactionAccountAddErrorsMap"}}},"TransactionCustomerAddErrorsMap":{"id":"TransactionCustomerAddErrorsMap","properties":{"created_by_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","forbidden"]}},"expense_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["update_through_expense"]}},"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","expense_account_mismatch","customer_mismatch"]}},"card_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","customer_mismatch"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_100"]}},"vendor_project":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","future_date"]}},"total_amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"target_currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"exchange_rate":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"strict":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"payment_method_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"vat_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"transaction_report_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","customer_mismatch","account_mismatch","expense_report_mismatch"]}},"se_name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_address":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"se_city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_vat_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"TransactionCustomerAddErrors":{"id":"TransactionCustomerAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TransactionCustomerAddErrorsMap"}}},"TransactionEditErrorsMap":{"id":"TransactionEditErrorsMap","properties":{"expense_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["update_through_expense"]}},"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","forbidden","expense_mismatch","customer_mismatch"]}},"card_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found","customer_mismatch"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_100"]}},"vendor_project":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","future_date"]}},"total_amount":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"target_currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"exchange_rate":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"country":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"strict":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","forbidden"]}},"payment_method_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"vat_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"se_name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_address":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_zip":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_30"]}},"se_city":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"se_vat_number":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_100"]}}}},"TransactionEditErrors":{"id":"TransactionEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TransactionEditErrorsMap"}}},"ReportTransitionExpenseErrors":{"id":"ReportTransitionExpenseErrors","properties":{"id":{"type":"int"},"errors":{"description":"Map of field names to error codes.","required":true,"type":"ExpenseSubmitErrorsMap"}}},"ReportTransitionErrorsMap":{"id":"ReportTransitionErrorsMap","properties":{"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["not_found"]}},"motivation":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required"]}},"expense_errors":{"type":"Array","items":{"$ref":"ReportTransitionExpenseErrors"},"required":false,"description":"A list of nested objects with errors"}}},"ReportTransitionErrors":{"id":"ReportTransitionErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ReportTransitionErrorsMap"}}},"ExpenseTransitionErrorsMap":{"id":"ExpenseTransitionErrorsMap","properties":{"type":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["not_found"]}},"motivation":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required"]}}}},"ExpenseTransitionErrors":{"id":"ExpenseTransitionErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"ExpenseTransitionErrorsMap"}}},"TripTypeAddErrorsMap":{"id":"TripTypeAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_36"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_20"]}}}},"TripTypeAddErrors":{"id":"TripTypeAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TripTypeAddErrorsMap"}}},"TripTypeEditErrorsMap":{"id":"TripTypeEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_20"]}}}},"TripTypeEditErrors":{"id":"TripTypeEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TripTypeEditErrorsMap"}}},"TripAddApproveStagePolicyErrorsMap":{"id":"TripAddApproveStagePolicyErrorsMap","properties":{"choice":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["not_found","required","invalid_option"]}}}},"TripAddApproveStagePolicyErrors":{"id":"TripAddApproveStagePolicyErrors","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"TripAddApproveStagePolicyErrorsMap"}}},"TripAddApproveStageErrorsMap":{"id":"TripAddApproveStageErrorsMap","properties":{"policy_errors":{"type":"Array","items":{"$ref":"TripAddApproveStagePolicyErrors"},"required":false,"description":"A list of nested objects with errors"}}},"TripAddApproveStageErrors":{"id":"TripAddApproveStageErrors","properties":{"stage":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"TripAddApproveStageErrorsMap"}}},"TripAddLegErrorsMap":{"id":"TripAddLegErrorsMap","properties":{"start_location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty"]}},"start_latitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"start_longitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"start_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_allowed"]}},"end_location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty"]}},"end_latitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"end_longitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"TripAddLegErrors":{"id":"TripAddLegErrors","properties":{"index":{"type":"int","required":true,"description":"Index of the leg in the supplied array."},"errors":{"description":"Map of field names to error codes.","required":true,"type":"TripAddLegErrorsMap"}}},"TripAddErrorsMap":{"id":"TripAddErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","too_long_max_255"]}},"created_by_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","forbidden"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"budget":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"advanced_payment":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"trip_type_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"needs_flights":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"needs_hotels":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"needs_rental_cars":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"approve_stages":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","stage_mismatch","choice_mismatch","trip_requested"]}},"approve_stage_errors":{"type":"Array","items":{"$ref":"TripAddApproveStageErrors"},"required":false,"description":"A list of nested objects with errors"},"legs":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","overlap","needs_from_to"]}},"leg_errors":{"type":"Array","items":{"$ref":"TripAddLegErrors"},"required":false,"description":"A list of nested objects with errors"}}},"TripAddErrors":{"id":"TripAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TripAddErrorsMap"}}},"TripEditApproveStagePolicyErrorsMap":{"id":"TripEditApproveStagePolicyErrorsMap","properties":{"choice":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["not_found","required","invalid_option"]}}}},"TripEditApproveStagePolicyErrors":{"id":"TripEditApproveStagePolicyErrors","properties":{"index":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"TripEditApproveStagePolicyErrorsMap"}}},"TripEditApproveStageErrorsMap":{"id":"TripEditApproveStageErrorsMap","properties":{"policy_errors":{"type":"Array","items":{"$ref":"TripEditApproveStagePolicyErrors"},"required":false,"description":"A list of nested objects with errors"}}},"TripEditApproveStageErrors":{"id":"TripEditApproveStageErrors","properties":{"stage":{"type":"int","required":true},"errors":{"description":"Map of field names to error codes.","required":true,"type":"TripEditApproveStageErrorsMap"}}},"TripEditLegErrorsMap":{"id":"TripEditLegErrorsMap","properties":{"start_location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty"]}},"start_latitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"start_longitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"start_date":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","not_allowed"]}},"end_location":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","required","empty"]}},"end_latitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"end_longitude":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"TripEditLegErrors":{"id":"TripEditLegErrors","properties":{"index":{"type":"int","required":true,"description":"Index of the leg in the supplied array."},"errors":{"description":"Map of field names to error codes.","required":true,"type":"TripEditLegErrorsMap"}}},"TripEditErrorsMap":{"id":"TripEditErrorsMap","properties":{"name":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"budget":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"advanced_payment":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"trip_type_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","not_found"]}},"needs_flights":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"needs_hotels":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"needs_rental_cars":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"approve_stages":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","stage_mismatch","choice_mismatch","trip_requested"]}},"approve_stage_errors":{"type":"Array","items":{"$ref":"TripEditApproveStageErrors"},"required":false,"description":"A list of nested objects with errors"},"legs":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","overlap","needs_from_to"]}},"leg_errors":{"type":"Array","items":{"$ref":"TripEditLegErrors"},"required":false,"description":"A list of nested objects with errors"}}},"TripEditErrors":{"id":"TripEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"TripEditErrorsMap"}}},"UserIdpAddErrorsMap":{"id":"UserIdpAddErrorsMap","properties":{"idp_slug":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","not_found"]}}}},"UserIdpAddErrors":{"id":"UserIdpAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"UserIdpAddErrorsMap"}}},"UserConfirmErrorsMap":{"id":"UserConfirmErrorsMap","properties":{"confirmation_token":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","unknown"]}}}},"UserConfirmErrors":{"id":"UserConfirmErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"UserConfirmErrorsMap"}}},"UserEditErrorsMap":{"id":"UserEditErrorsMap","properties":{"email":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","exists","too_long_max_255"]}},"currency_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"timezone":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"number_format":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"date_format":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"time_format":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"language":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"password":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","policy_mismatch"]}},"current_password":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"default_account_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"notify_status":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"notify_approve":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"notify_process":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"notify_submit":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"notify_approve_process":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"bookmarks":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}}}},"UserEditErrors":{"id":"UserEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"UserEditErrorsMap"}}},"UserAddErrorsMap":{"id":"UserAddErrorsMap","properties":{"token":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"password":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","policy_mismatch"]}},"accept_tc_pp":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","must_accept"]}}}},"UserAddErrors":{"id":"UserAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"UserAddErrorsMap"}}},"UserSetPasswordErrorsMap":{"id":"UserSetPasswordErrorsMap","properties":{"password":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid","policy_mismatch"]}}}},"UserSetPasswordErrors":{"id":"UserSetPasswordErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"UserSetPasswordErrorsMap"}}},"VatAddErrorsMap":{"id":"VatAddErrorsMap","properties":{"customer_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","not_found"]}},"percentage":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["required","invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_50"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}},"external_id":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","duplicate","too_long_max_20"]}}}},"VatAddErrors":{"id":"VatAddErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"VatAddErrorsMap"}}},"VatEditErrorsMap":{"id":"VatEditErrorsMap","properties":{"percentage":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"code":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"description":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid"]}},"free_1":{"type":"Array","description":"List of error codes","items":{"$ref":"string"},"required":false,"allowableValues":{"valueType":"LIST","values":["invalid","too_long_max_255"]}}}},"VatEditErrors":{"id":"VatEditErrors","properties":{"error":{"type":"string","description":"General \"validation_errors\" error code.","required":true},"errors":{"description":"Map of field names to error codes. Note that the last part of the error code \"too_long_max_\" indicates the maximum number of allowed characters and might change in the future.","required":true,"type":"VatEditErrorsMap"}}}}}