{"openapi":"3.0.1","info":{"title":"TIMOLOGIC-API","description":"This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach.\n\nEvery API call is established on which specific request type (GET, POST, PUT, DELETE) will be used.\n\nThe API has a limit of 40 concurrent connections and a hard timeout of 600 seconds per request.\n\nTo start using this API, you will need your Access Token (available <a target='_blank' href='https://app.timologic.gr/profile'>here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description.","termsOfService":"https://timologic.gr/privacy-policy.html","license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0"},"version":"1.0","x-logo":"https://timologic.gr/logo-timologic-3.png"},"servers":[{"url":"/","description":"Server URL"}],"tags":[{"name":"Company Sales","description":"Manage company sales "},{"name":"Company MyData","description":"Main operations on myDATA platform"},{"name":"Company Products","description":"Manage products of company"},{"name":"Companies","description":"Manage user company"},{"name":"Company Customers","description":"Manage company customers"},{"name":"Company InvoiceTypes","description":"Manage company invoiceTypes"},{"name":"TaxOffices","description":"Manage Greek taxOffices"}],"paths":{"/rest/company":{"put":{"tags":["Companies"],"summary":"Update company","description":"Updates company","operationId":"updateCompany","requestBody":{"description":"Example of company json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyDTO"},"example":{"name":"Test Company","taxpayerId":"0001580327","taxOffice":{"id":1101},"branches":[{"name":"Test Company","subjectField":"Printing stuff","address":"Makedonias 1"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CompanyDTO"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/product":{"get":{"tags":["Company Products"],"summary":"Retrieve all company products","description":"Retrieve all products of company with company.taxpayerId={taxpayerId}","operationId":"getCompanyProducts","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductDTO"}}}}}},"security":[{"X-API-KEY":[]}],"x-codeSamples":{"source":"console.log('Hello World');","label":"JS","lang":"JavaScript"}},"post":{"tags":["Company Products"],"summary":"Save company product","description":"Save the product of company with company.taxpayerId={taxpayerId}","operationId":"saveCompanyProduct","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Example of product json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDTO"},"example":{"measurementUnit":"PIECES","vat":"VAT_24","name":"test product","price":"7.24","priceWithVat":"8.98","productClassifications":[],"productMoreTaxes":[]}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/mydata/{mark}/cancel":{"post":{"tags":["Company MyData"],"summary":"Cancel company invoice on myDATA","description":"Cancel invoice on myDATA of company with taxpayerId={taxpayerId} and mark={mark}","operationId":"cancelInvoice","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"mark","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseDoc"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/mydata/send":{"post":{"tags":["Company MyData"],"summary":"Send invoice to myDATA","description":"Send invoice for issuer company with company.taxpayerId={taxpayerId}","operationId":"sendInvoice","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Example of invoice json.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaleDTO"},"example":{"invoiceDate":"2022-11-03T18:41:19.507Z","series":{"id":14,"name":"A"},"invoiceType":{"id":17,"name":"Timologio Pwlhshs","myDataInvoiceType":"invoice1_1"},"branch":{"id":1,"name":"CENTRAL BRANCH","address":"ISSUER ADDRESS","subjectField":"ISSUER SUBJECT FIELD"},"customer":{"id":1,"name":"PAUL DIRAC","taxpayerId":"149729439","country":"GR","number":"51","address":"CUSTOMER ADDRESS","postalCode":11861,"city":"CUSTOMER CITY","taxOffice":{"id":1106},"subjectField":"CUSTOMER SUBJECT FIELD"},"movePurpose":null,"dispatchDate":"","paymentType":"CASH","invoiceNumber":69,"saveCustomerForFuture":false,"vehicleNumber":"","exchangeRate":"","selfPricing":false,"notes":"","balance":"","saleEntries":[{"product":{"id":50,"name":"clean product"},"measurementUnit":"PIECES","quantity":1,"vat":"VAT_24","discount":"0.00","unitPrice":"10.00","priceWithVat":"12.40","priceWithoutVat":"10.00","moreTaxes":[],"saleEntryClassifications":[{"classificationCategory":"CATEGORY_1_1","classificationValue":"E_3_561_007","amount":"10.00"}],"vatExceptionCategory":null}],"issuerPhone":"2104020252","issuerEmail":"printestore@email.com","company":{"id":1,"taxpayerId":"126235377"},"totalWithVat":"12.40","totalWithoutVat":"10.00","totalWithDiscount":"10.00","totalWithoutDiscount":"10.00","totalPayment":"12.40","totalDiscount":"0.00","totalOtherTaxes":"0.00","totalFeesTaxes":"0.00","totalStumpOfDutyTaxes":"0.00","totalWithHoldTaxes":"0.00","moreTaxes":[],"mydata":true}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseDoc"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{companyTaxpayerId}/customer":{"get":{"tags":["Company Customers"],"summary":"Get company customers","description":"Retrieves company customers of company with company.taxpayerId={companyTaxpayerId}","operationId":"getCompanyCustomers","parameters":[{"name":"companyTaxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"customerTaxpayerId","in":"query","required":false,"schema":{"type":"string"}},{"name":"myDataInvoiceType","in":"query","required":false,"schema":{"type":"string","enum":["invoice1_1","invoice1_01","invoice1_2","invoice1_3","invoice2_3","invoice2_4","invoice3_1","invoice3_2","invoice5_1","invoice5_2","invoice6_1","invoice6_2","invoice7_1","invoice8_1","invoice1_4","invoice1_5","invoice1_6","invoice2_1","invoice2_01","invoice2_2","invoice8_2","invoice8_4","invoice9_1","invoice9_2","invoice9_3","invoice11_1","invoice11_2","invoice11_02","invoice11_3","invoice11_4","invoice11_5","invoice13_1","invoice13_2","invoice13_3","invoice13_4","invoice13_30","invoice13_31","invoice14_1","invoice14_2","invoice14_3","invoice14_4","invoice14_5","invoice14_30","invoice14_31","invoice15_1","invoice16_1","invoice17_1","invoice17_2","invoice17_3","invoice17_4","invoice17_5","invoice17_6","invoice00_1"]}},{"name":"customerName","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerDTO"}}}}}},"security":[{"X-API-KEY":[]}]},"post":{"tags":["Company Customers"],"summary":"Save company customer","description":"Saves the customer of company with company.taxpayerId={companyTaxpayerId}","operationId":"saveCompanyCustomer","parameters":[{"name":"companyTaxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDTO"}}},"required":true},"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerDTO"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/taxoffice":{"get":{"tags":["TaxOffices"],"summary":"Get All TaxOffices","description":"Retrieves all TaxOffices of Greece from database","operationId":"getAllTxOffice","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TaxOfficeDTO"}}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}":{"get":{"tags":["Companies"],"summary":"Get company by taxpayerId","description":"Retrieves company information","operationId":"getCompany","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CompanyDTO"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/series":{"get":{"tags":["Companies"],"summary":"Get company series","description":"Retrieves company series of company with id={companyId}","operationId":"getCompanySeries","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SeriesDTO"}}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/sale/page":{"get":{"tags":["Company Sales"],"summary":"Get company sales pageable","description":"Get company sales page of company with taxpayerId={taxpayerId}","operationId":"getCompanySales","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"params","in":"query","required":true,"schema":{"type":"string"}},{"name":"myDataInvoiceType","in":"query","required":false,"schema":{"type":"string","enum":["invoice1_1","invoice1_01","invoice1_2","invoice1_3","invoice2_3","invoice2_4","invoice3_1","invoice3_2","invoice5_1","invoice5_2","invoice6_1","invoice6_2","invoice7_1","invoice8_1","invoice1_4","invoice1_5","invoice1_6","invoice2_1","invoice2_01","invoice2_2","invoice8_2","invoice8_4","invoice9_1","invoice9_2","invoice9_3","invoice11_1","invoice11_2","invoice11_02","invoice11_3","invoice11_4","invoice11_5","invoice13_1","invoice13_2","invoice13_3","invoice13_4","invoice13_30","invoice13_31","invoice14_1","invoice14_2","invoice14_3","invoice14_4","invoice14_5","invoice14_30","invoice14_31","invoice15_1","invoice16_1","invoice17_1","invoice17_2","invoice17_3","invoice17_4","invoice17_5","invoice17_6","invoice00_1"]}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPage"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/sale/byMark/{mark}":{"get":{"tags":["Company Sales"],"summary":"Get company sale","description":"Get company sale with mark={mark} of company with taxpayerId={taxpayerId}","operationId":"getCompanySale","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"mark","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SaleDTO"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/product/{id}":{"get":{"tags":["Company Products"],"summary":"Get company product","description":"Get product with productId={id} of company with taxpayerId={taxpayerId}","operationId":"getCompanyProduct","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"default response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDTO"}}}}},"security":[{"X-API-KEY":[]}]},"delete":{"tags":["Company Products"],"summary":"Delete company product","description":"Delete product with productId={id} of company with taxpayerId={taxpayerId}","operationId":"deleteCompanyProduct","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/product/page":{"get":{"tags":["Company Products"],"summary":"Get company product with pagination","description":"Get product with productId={id} of company with taxpayerId={taxpayerId} with pagination info on param value","operationId":"getCompanyProductPage","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"params","in":"query","description":"The pagination request parameter","required":true,"schema":{"type":"string"},"example":{"quickSearch":"","pageNo":0,"sortBy":null,"order":"asc","pageSize":20,"simpleColumnFilters":[]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ObjectPage"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/invoicetype":{"get":{"tags":["Company InvoiceTypes"],"summary":"Get company invoiceTypes","description":"Retrieves invoiceTypes of company with company.taxpayerId={taxpayerId}  from database","operationId":"getCompanyInvoiceTypes","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceTypeDTO"}}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{taxpayerId}/invoicetype/{id}":{"get":{"tags":["Company InvoiceTypes"],"summary":"Get company invoiceType","description":"Retrieves invoiceType of company with taxpayerId={taxpayerId} and id={id} from database","operationId":"getCompanyInvoiceType","parameters":[{"name":"taxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/InvoiceTypeDTO"}}}}},"security":[{"X-API-KEY":[]}]}},"/rest/company/{companyTaxpayerId}/customer/{id}":{"get":{"tags":["Company Customers"],"summary":"Get company customer","description":"Retrieves the customer of company with company.taxpayerId={companyTaxpayerId} and id={id}","operationId":"getCompanyCustomer","parameters":[{"name":"companyTaxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerDTO"}}}}},"security":[{"X-API-KEY":[]}]},"delete":{"tags":["Company Customers"],"summary":"Deletes company customer","description":"Deletes the customer of company with company.taxpayerId={companyTaxpayerId} and id={id}","operationId":"deleteCompanyCustomer","parameters":[{"name":"companyTaxpayerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}},"security":[{"X-API-KEY":[]}]}}},"components":{"schemas":{"BranchDTO":{"required":["address","name"],"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"address":{"type":"string"},"subjectField":{"type":"string"},"branchNumber":{"type":"integer","format":"int32"}}},"CompanyDTO":{"required":["name","taxpayerId"],"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string","description":"Company Name"},"gemh":{"maxLength":12,"minLength":11,"type":"string","description":"GEMH"},"taxpayerId":{"type":"string","description":"Company taxpayerId"},"taxOffice":{"$ref":"#/components/schemas/TaxOfficeDTO"},"logoPath":{"type":"string"},"branches":{"type":"array","items":{"$ref":"#/components/schemas/BranchDTO"}},"myDataUserId":{"type":"string"},"myDataToken":{"type":"string"},"vivaQuickPay":{"type":"string"},"webhook":{"type":"string"},"accountantEmail":{"type":"string"},"stripeAccountID":{"type":"string"},"parochosSubscriptionKey":{"type":"string"},"parochosEmail":{"type":"string"},"parochosPassword":{"type":"string"},"sendWithParochos":{"type":"boolean"},"hasCompleteParochosForm":{"type":"boolean"},"userEmails":{"type":"string"}}},"TaxOfficeDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"address":{"type":"string"},"postalCode":{"type":"string"},"prefecture":{"type":"string"},"taxOfficeId":{"type":"string"}}},"DeductionDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"amountValue":{"type":"string"},"isPercent":{"type":"boolean"},"isSubtracted":{"type":"boolean"},"type":{"type":"string","enum":["WITHHOLD_TAXES","FEES","OTHER_TAXES","STUMP_DUTY","DEDUCTION"]}}},"InvoiceTypeClassificationDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"classificationCategory":{"type":"string"},"classificationValue":{"type":"string"},"amount":{"type":"number","format":"double"},"isPercent":{"type":"boolean"},"selfPricing":{"type":"boolean"},"classificationValues":{"type":"array","items":{"type":"string"}}}},"InvoiceTypeDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"myDataInvoiceType":{"type":"string","enum":["invoice1_1","invoice1_01","invoice1_2","invoice1_3","invoice2_3","invoice2_4","invoice3_1","invoice3_2","invoice5_1","invoice5_2","invoice6_1","invoice6_2","invoice7_1","invoice8_1","invoice1_4","invoice1_5","invoice1_6","invoice2_1","invoice2_01","invoice2_2","invoice8_2","invoice8_4","invoice9_1","invoice9_2","invoice9_3","invoice11_1","invoice11_2","invoice11_02","invoice11_3","invoice11_4","invoice11_5","invoice13_1","invoice13_2","invoice13_3","invoice13_4","invoice13_30","invoice13_31","invoice14_1","invoice14_2","invoice14_3","invoice14_4","invoice14_5","invoice14_30","invoice14_31","invoice15_1","invoice16_1","invoice17_1","invoice17_2","invoice17_3","invoice17_4","invoice17_5","invoice17_6","invoice00_1"]},"series":{"type":"array","items":{"$ref":"#/components/schemas/SeriesDTO"}},"seriesNamesConcat":{"type":"string"},"invoiceTypeClassifications":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceTypeClassificationDTO"}},"myDataInvoiceTypeKey":{"type":"string"}}},"ProductClassificationDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"invoiceType":{"$ref":"#/components/schemas/InvoiceTypeDTO"},"classificationCategory":{"type":"string"},"classificationValue":{"type":"string"},"amount":{"type":"number","format":"double"},"suggestedInvoiceCategories":{"type":"array","items":{"$ref":"#/components/schemas/SuggestedInvoiceCategory"}},"classificationValues":{"type":"array","items":{"type":"string"}},"selfPricing":{"type":"boolean"},"isPercent":{"type":"boolean"}}},"ProductDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"price":{"type":"number","format":"double"},"priceWithVat":{"type":"number","format":"double"},"measurementUnit":{"type":"string","enum":["PIECES","KILO","LITERS","METER","METER2","METER3","PALLET","BOX","DAYS","PIECES_OTHER"]},"description":{"type":"string"},"vat":{"type":"string","enum":["VAT_24","VAT_13","VAT_6","VAT_17","VAT_9","VAT_4","VAT_0","VAT_EMPTY"]},"productMoreTaxes":{"type":"array","items":{"$ref":"#/components/schemas/ProductMoreTaxDTO"}},"vatCategoryException":{"type":"string","enum":["VAT_CATEGORY_EXCEPTION_1","VAT_CATEGORY_EXCEPTION_2","VAT_CATEGORY_EXCEPTION_3","VAT_CATEGORY_EXCEPTION_4","VAT_CATEGORY_EXCEPTION_5","VAT_CATEGORY_EXCEPTION_6","VAT_CATEGORY_EXCEPTION_7","VAT_CATEGORY_EXCEPTION_8","VAT_CATEGORY_EXCEPTION_9","VAT_CATEGORY_EXCEPTION_10","VAT_CATEGORY_EXCEPTION_11","VAT_CATEGORY_EXCEPTION_12","VAT_CATEGORY_EXCEPTION_13","VAT_CATEGORY_EXCEPTION_14","VAT_CATEGORY_EXCEPTION_15","VAT_CATEGORY_EXCEPTION_16","VAT_CATEGORY_EXCEPTION_17","VAT_CATEGORY_EXCEPTION_18","VAT_CATEGORY_EXCEPTION_19","VAT_CATEGORY_EXCEPTION_20","VAT_CATEGORY_EXCEPTION_21","VAT_CATEGORY_EXCEPTION_22","VAT_CATEGORY_EXCEPTION_23","VAT_CATEGORY_EXCEPTION_24","VAT_CATEGORY_EXCEPTION_25","VAT_CATEGORY_EXCEPTION_26","VAT_CATEGORY_EXCEPTION_27","VAT_CATEGORY_EXCEPTION_28","VAT_CATEGORY_EXCEPTION_29","VAT_CATEGORY_EXCEPTION_30","VAT_CATEGORY_EXCEPTION_31"]},"productClassifications":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/ProductClassificationDTO"}}}},"ProductMoreTaxDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"myDataMoreTax":{"type":"string","enum":["TAX_3","TAX_4","TAX_5","TAX_6","TAX_7","TAX_8","TAX_9","TAX_10","TAX_11","TAX_12","TAX_13","TAX_14","TAX_42","TAX_43","TAX_44","TAX_45","TAX_52","TAX_64","TAX_65","TAX_66","TAX_67","TAX_68","TAX_69","TAX_70","TAX_71","TAX_72","TAX_73","TAX_74","TAX_15","TAX_16","TAX_17","TAX_18","TAX_19","TAX_20","TAX_21","TAX_22","TAX_23","TAX_24","TAX_25","TAX_26","TAX_27","TAX_28","TAX_29","TAX_46","TAX_47","TAX_51","TAX_30","TAX_31","TAX_32","TAX_63","TAX_33","TAX_34","TAX_35","TAX_36","TAX_37","TAX_38","TAX_39","TAX_40","TAX_41","TAX_48","TAX_49","TAX_50","TAX_53","TAX_54","TAX_55","TAX_56","TAX_57","TAX_58","TAX_59","TAX_60","TAX_61","TAX_62"]},"deduction":{"$ref":"#/components/schemas/DeductionDTO"},"amount":{"type":"number","format":"double"}}},"SeriesDTO":{"required":["branch","name"],"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"startNumber":{"type":"integer","format":"int32"},"branch":{"$ref":"#/components/schemas/BranchDTO"}}},"SuggestedInvoiceCategory":{"type":"object","properties":{"classificationCategory":{"type":"string"},"classificationValue":{"type":"string"},"classificationValues":{"type":"array","items":{"type":"string"}}}},"ErrorType":{"required":["code","message"],"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}}},"Errors":{"required":["error"],"type":"object","properties":{"error":{"type":"array","items":{"$ref":"#/components/schemas/ErrorType"}}}},"ProviderInfoType":{"type":"object","properties":{"vatnumber":{"type":"array","items":{"type":"string"}}}},"ReceptionEmailsType":{"type":"object","properties":{"email":{"type":"array","items":{"type":"string"}}}},"ReceptionProvidersType":{"type":"object","properties":{"providerInfo":{"type":"array","xml":{"name":"ProviderInfo"},"items":{"$ref":"#/components/schemas/ProviderInfoType"}}}},"ResponseDoc":{"required":["response"],"type":"object","properties":{"response":{"type":"array","items":{"$ref":"#/components/schemas/ResponseType"}}},"xml":{"name":"ResponseDoc"}},"ResponseType":{"required":["statusCode"],"type":"object","properties":{"index":{"type":"integer","format":"int32"},"invoiceUid":{"type":"string"},"invoiceMark":{"type":"integer","format":"int64"},"qrUrl":{"type":"string"},"classificationMark":{"type":"integer","format":"int64"},"cancellationMark":{"type":"integer","format":"int64"},"paymentMethodMark":{"type":"integer","format":"int64"},"authenticationCode":{"type":"string"},"receptionProviders":{"$ref":"#/components/schemas/ReceptionProvidersType"},"receptionEmails":{"$ref":"#/components/schemas/ReceptionEmailsType"},"errors":{"$ref":"#/components/schemas/Errors"},"statusCode":{"type":"string"}}},"ContactEmailDTO":{"type":"object","properties":{"email":{"type":"string"},"company":{"type":"integer","format":"int32"},"invoiceUid":{"type":"string"}}},"CustomerContactDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}},"CustomerDTO":{"required":["name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"code":{"type":"string"},"taxpayerId":{"type":"string"},"taxOffice":{"$ref":"#/components/schemas/TaxOfficeDTO"},"address":{"type":"string"},"country":{"type":"string","enum":["AF","AL","AQ","DZ","AS","AD","AO","AG","AZ","AR","AU","AT","BS","BH","BD","AM","BB","BE","BM","BT","BO","BA","BW","BV","BR","BZ","IO","SB","VG","BN","BG","MM","BI","BY","KH","CM","CA","CV","KY","CF","LK","TD","CL","CN","TW","CX","CC","CO","KM","YT","CG","CD","CK","CR","HR","CU","CY","CZ","BJ","DK","DM","DO","EC","SV","GQ","ET","ER","EE","FO","FK","GS","FJ","FI","AX","FR","GF","PF","TF","DJ","GA","GE","GM","PS","DE","GH","GI","KI","GR","GL","GD","GP","GU","GT","GN","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IL","IT","CI","JM","JP","KZ","JO","KE","KP","KR","KW","KG","LA","LB","LS","LV","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MQ","MR","MU","MX","MC","MN","MD","ME","MS","MA","MZ","OM","NA","NR","NP","NL","AN","CW","AW","SX","BQ","NC","VU","NZ","NI","NE","NG","NU","NF","NO","MP","UM","FM","MH","PW","PK","PA","PG","PY","PE","PH","PN","PL","PT","GW","TL","PR","QA","RE","RO","RU","RW","BL","SH","KN","AI","LC","MF","PM","VC","SM","ST","SA","SN","RS","SC","SL","SG","SK","VN","SI","SO","ZA","ZW","ES","SS","EH","SD","SR","SJ","SZ","SE","CH","SY","TJ","TH","TG","TK","TO","TT","AE","TN","TR","TM","TC","TV","UG","UA","MK","EG","GB","GG","JE","IM","TZ","US","VI","BF","UY","UZ","VE","WF","WS","YE","ZM"]},"postalCode":{"type":"string"},"city":{"type":"string"},"number":{"type":"string"},"balance":{"type":"number","format":"double"},"subjectField":{"type":"string"},"contacts":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/CustomerContactDTO"}}}},"InvoiceEmailRequestObject":{"type":"object","properties":{"store":{"type":"boolean"},"taxpayerId":{"type":"string"},"companyId":{"type":"integer","format":"int32"},"fromEmail":{"type":"string"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContactEmailDTO"}},"captcha":{"type":"string"},"invoiceUid":{"type":"string"}}},"SaleDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"branch":{"$ref":"#/components/schemas/BranchDTO"},"customer":{"$ref":"#/components/schemas/CustomerDTO"},"invoiceType":{"$ref":"#/components/schemas/InvoiceTypeDTO"},"series":{"$ref":"#/components/schemas/SeriesDTO"},"saleEntries":{"type":"array","items":{"$ref":"#/components/schemas/SaleEntryInstanceDTO"}},"invoiceNumber":{"type":"integer","format":"int32"},"totalWithVat":{"type":"number","format":"double"},"totalWithoutVat":{"type":"number","format":"double"},"totalWithDiscount":{"type":"number","format":"double"},"totalWithoutDiscount":{"type":"number","format":"double"},"totalPayment":{"type":"number","format":"double"},"totalDiscount":{"type":"number","format":"double"},"totalOtherTaxes":{"type":"number","format":"double"},"totalFeesTaxes":{"type":"number","format":"double"},"totalStumpOfDutyTaxes":{"type":"number","format":"double"},"totalWithHoldTaxes":{"type":"number","format":"double"},"totalDeductionsTaxes":{"type":"number","format":"double"},"paymentType":{"type":"string","enum":["CASH","WEB_BANKING","POS","ON_CREDIT","DOMESTIC_PAYMENTS_ACCOUNT_NUMBER","FOREIGN_PAYMENTS_ACCOUNT_NUMBER","CHECK"]},"notes":{"type":"string"},"company":{"$ref":"#/components/schemas/CompanyDTO"},"invoiceDate":{"type":"string","format":"date-time"},"dispatchDate":{"type":"string","format":"date-time"},"correlativeSale":{"type":"integer","format":"int64"},"mark":{"type":"string"},"invoiceUid":{"type":"string"},"cancellationMark":{"type":"string"},"revisitedMark":{"type":"string"},"mydata":{"type":"boolean"},"canceled":{"type":"boolean"},"selfPricing":{"type":"boolean"},"movePurpose":{"type":"string","enum":["PURPOSE_1","PURPOSE_2","PURPOSE_3","PURPOSE_4","PURPOSE_5","PURPOSE_6","PURPOSE_7","PURPOSE_8","PURPOSE_9","PURPOSE_10","PURPOSE_11","PURPOSE_12","PURPOSE_13","PURPOSE_14","PURPOSE_15","PURPOSE_16","PURPOSE_17","PURPOSE_18","PURPOSE_19","PURPOSE_20"]},"otherMovePurposeTitle":{"type":"string"},"saveCustomerForFuture":{"type":"boolean"},"moreTaxes":{"type":"array","items":{"type":"object"}},"balance":{"type":"number","format":"double"},"vehicleNumber":{"type":"string"},"loadingAddressStreet":{"type":"string"},"loadingAddressNumber":{"type":"string"},"loadingAddressCity":{"type":"string"},"loadingAddressPostalCode":{"type":"string"},"deliveryAddressStreet":{"type":"string"},"deliveryAddressNumber":{"type":"string"},"deliveryAddressCity":{"type":"string"},"deliveryAddressPostalCode":{"type":"string"},"sendPlace":{"type":"string"},"issuerEmail":{"type":"string"},"issuerPhone":{"type":"string"},"currency":{"type":"string","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GWP","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XCD","XOF","XPD","XPF","YER","ZAR","ZMK","ZWL"]},"exchangeRate":{"type":"number","format":"double"},"senderTaxPayerId":{"type":"string"},"senderName":{"type":"string"},"recipientTaxPayerId":{"type":"string"},"recipientName":{"type":"string"},"isPreSale":{"type":"boolean"},"templateLang":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OC","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]},"contactEmails":{"$ref":"#/components/schemas/InvoiceEmailRequestObject"},"isDeliveryNote":{"type":"boolean"}}},"SaleEntryClassificationDTO":{"type":"object","properties":{"classificationCategory":{"type":"string"},"classificationValue":{"type":"string"},"amount":{"type":"number","format":"double"},"isExpense":{"type":"boolean"}}},"SaleEntryInstanceDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"product":{"$ref":"#/components/schemas/ProductDTO"},"unitPrice":{"type":"number","format":"double"},"vat":{"type":"string","enum":["VAT_24","VAT_13","VAT_6","VAT_17","VAT_9","VAT_4","VAT_0","VAT_EMPTY"]},"measurementUnit":{"type":"string","enum":["PIECES","KILO","LITERS","METER","METER2","METER3","PALLET","BOX","DAYS","PIECES_OTHER"]},"quantity":{"type":"number","format":"double"},"discount":{"type":"number","format":"double"},"priceWithVat":{"type":"number","format":"double"},"priceWithoutVat":{"type":"number","format":"double"},"priceWithDiscount":{"type":"number","format":"double"},"priceWithoutDiscount":{"type":"number","format":"double"},"productMoreTaxes":{"type":"array","items":{"$ref":"#/components/schemas/ProductMoreTaxDTO"}},"saleEntryClassifications":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/SaleEntryClassificationDTO"}},"moreTaxes":{"type":"array","items":{"type":"object"}},"vatCategoryException":{"type":"string","enum":["VAT_CATEGORY_EXCEPTION_1","VAT_CATEGORY_EXCEPTION_2","VAT_CATEGORY_EXCEPTION_3","VAT_CATEGORY_EXCEPTION_4","VAT_CATEGORY_EXCEPTION_5","VAT_CATEGORY_EXCEPTION_6","VAT_CATEGORY_EXCEPTION_7","VAT_CATEGORY_EXCEPTION_8","VAT_CATEGORY_EXCEPTION_9","VAT_CATEGORY_EXCEPTION_10","VAT_CATEGORY_EXCEPTION_11","VAT_CATEGORY_EXCEPTION_12","VAT_CATEGORY_EXCEPTION_13","VAT_CATEGORY_EXCEPTION_14","VAT_CATEGORY_EXCEPTION_15","VAT_CATEGORY_EXCEPTION_16","VAT_CATEGORY_EXCEPTION_17","VAT_CATEGORY_EXCEPTION_18","VAT_CATEGORY_EXCEPTION_19","VAT_CATEGORY_EXCEPTION_20","VAT_CATEGORY_EXCEPTION_21","VAT_CATEGORY_EXCEPTION_22","VAT_CATEGORY_EXCEPTION_23","VAT_CATEGORY_EXCEPTION_24","VAT_CATEGORY_EXCEPTION_25","VAT_CATEGORY_EXCEPTION_26","VAT_CATEGORY_EXCEPTION_27","VAT_CATEGORY_EXCEPTION_28","VAT_CATEGORY_EXCEPTION_29","VAT_CATEGORY_EXCEPTION_30","VAT_CATEGORY_EXCEPTION_31"]}}},"ObjectPage":{"type":"object","properties":{"totalElements":{"type":"integer","format":"int64"},"objectList":{"type":"array","items":{"type":"object"}}}}},"securitySchemes":{"X-API-KEY":{"type":"apiKey","name":"X-API-KEY","in":"header"}}}}