{"openapi":"3.1.0","info":{"title":"ASYCUDA Kosovo XML Generator","version":"1.0.0"},"paths":{"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/gpt-action":{"get":{"summary":"Gpt Action Page","operationId":"gpt_action_page_gpt_action_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/healthz":{"get":{"summary":"Healthcheck","operationId":"healthcheck_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthcheck Healthz Get"}}}}}}},"/api/v1/reference/codes":{"get":{"summary":"Reference Codes","operationId":"reference_codes_api_v1_reference_codes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reference Codes Api V1 Reference Codes Get"}}}}}}},"/api/v1/reference/examples":{"get":{"summary":"Reference Examples","operationId":"reference_examples_api_v1_reference_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reference Examples Api V1 Reference Examples Get"}}}}}}},"/api/v1/reference/manual":{"get":{"summary":"Reference Manual","operationId":"reference_manual_api_v1_reference_manual_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reference Manual Api V1 Reference Manual Get"}}}}}}},"/api/v1/generate":{"post":{"summary":"Generate","operationId":"generate_api_v1_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDeclarationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/action/generate":{"post":{"summary":"Action Generate","operationId":"action_generate_api_v1_action_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDeclarationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionGenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/api/v1/files/{token}":{"get":{"summary":"Download File","operationId":"download_file_api_v1_files__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/openapi/action.json":{"get":{"summary":"Action Openapi","operationId":"action_openapi_openapi_action_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/openapi/full.json":{"get":{"summary":"Full Openapi","operationId":"full_openapi_openapi_full_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"ActionGenerateResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"filename":{"type":"string","title":"Filename"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"},"openaiFileResponse":{"items":{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},"type":"array","title":"Openaifileresponse"}},"type":"object","required":["filename","summary","openaiFileResponse"],"title":"ActionGenerateResponse"},"DeclarantInput":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"representative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Representative"},"signature_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Place"},"guarantee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantee Name"}},"type":"object","title":"DeclarantInput"},"DeclarationInput":{"properties":{"sad_flow":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sad Flow"},"customs_clearance_office_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customs Clearance Office Code","description":"Customs clearance office code."},"customs_clearance_office_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customs Clearance Office Name","description":"Customs clearance office name."},"type_of_declaration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Declaration","description":"Declaration type code, for example IM, EX, or T1."},"declaration_gen_procedure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declaration Gen Procedure Code","description":"General procedure code paired with the declaration type."},"type_of_transit_document":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Transit Document"},"manifest_reference_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manifest Reference Number"},"place_of_declaration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Declaration"},"date_of_declaration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Of Declaration"},"country_first_destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country First Destination"},"trading_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trading Country"},"export_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Country","description":"Export country code or recognizable country label."},"export_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Country Name"},"export_country_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Export Country Region"},"destination_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Country","description":"Destination country code or recognizable country label."},"destination_country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Country Name"},"destination_country_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Country Region"},"country_of_origin_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Of Origin Name"},"value_details":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value Details"},"cap":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cap"},"additional_information":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Information"},"comments_free_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments Free Text"},"registration":{"anyOf":[{"$ref":"#/components/schemas/RegistrationBlock"},{"type":"null"}]},"assessment":{"anyOf":[{"$ref":"#/components/schemas/RegistrationBlock"},{"type":"null"}]},"receipt":{"anyOf":[{"$ref":"#/components/schemas/RegistrationBlock"},{"type":"null"}]},"signature_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Place"},"signature_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Date"}},"type":"object","title":"DeclarationInput"},"FinancialInput":{"properties":{"transaction_code1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Code1","description":"Primary transaction type code from box 24."},"transaction_code2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Code2","description":"Secondary transaction type code from box 24."},"payment_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Mode","description":"Financial payment mode, for example KESH."},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code","description":"Invoice currency code, for example EUR or USD."},"currency_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Name","description":"Display name for the foreign currency."},"currency_rate":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Currency Rate","description":"Exchange rate used for the declaration."},"external_freight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"External Freight"},"internal_freight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Internal Freight"},"insurance":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Insurance"},"other_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Other Cost"},"deduction":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deduction"},"total_cif":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Cif"},"statistical_value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Statistical Value"},"total_weight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Weight"},"total_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Cost"},"total_manual_taxes":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Manual Taxes"},"global_taxes":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Global Taxes"},"totals_taxes":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Totals Taxes"},"deferred_payment_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deferred Payment Reference"},"bank_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Code"},"bank_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Name"},"bank_branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Branch"},"bank_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank Reference"},"terms_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Code"},"terms_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Description"},"guarantee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantee Name"},"guarantee_amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Guarantee Amount"},"guarantee_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guarantee Date"}},"type":"object","title":"FinancialInput"},"GenerateDeclarationRequest":{"properties":{"declaration":{"$ref":"#/components/schemas/DeclarationInput","description":"Header-level declaration data."},"parties":{"$ref":"#/components/schemas/PartiesInput","description":"Exporter, consignee, declarant, and related party details."},"transport":{"$ref":"#/components/schemas/TransportInput","description":"Transport, border office, and delivery terms details."},"financial":{"$ref":"#/components/schemas/FinancialInput","description":"Invoice totals, currency, payment, and guarantee details."},"items":{"items":{"$ref":"#/components/schemas/ItemInput"},"type":"array","title":"Items","description":"One or more customs line items to place into the XML declaration."},"declarant":{"anyOf":[{"$ref":"#/components/schemas/DeclarantInput"},{"type":"null"}],"description":"Optional top-level declarant override."}},"type":"object","required":["items"],"title":"GenerateDeclarationRequest"},"GenerateResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"xml":{"type":"string","title":"Xml"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"summary":{"additionalProperties":true,"type":"object","title":"Summary"}},"type":"object","required":["filename","xml","warnings","summary"],"title":"GenerateResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ItemInput":{"properties":{"number_of_packages":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Number Of Packages"},"marks1_of_packages":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marks1 Of Packages"},"marks2_of_packages":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marks2 Of Packages"},"kind_of_packages_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind Of Packages Code"},"inco_terms_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inco Terms Code"},"inco_terms_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inco Terms Place"},"commodity_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commodity Code","description":"Customs commodity or tariff code for the line item."},"precision_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Precision 1"},"precision_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Precision 2"},"precision_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Precision 3"},"precision_4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Precision 4"},"preference_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preference Code"},"extended_customs_procedure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extended Customs Procedure"},"national_customs_procedure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"National Customs Procedure"},"quota_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quota Code"},"quota_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quota Id"},"quota_item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quota Item Number"},"supplementary_units":{"items":{"$ref":"#/components/schemas/SupplementaryUnitInput"},"type":"array","title":"Supplementary Units"},"item_price":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Item Price","description":"Invoice amount for the item in declaration currency."},"valuation_method_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valuation Method Code"},"value_item":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Item"},"value_adjustment_total":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Value Adjustment Total"},"attached_doc_item":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attached Doc Item","description":"Attached document code/reference string for the item."},"ai_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Code"},"write_off_unit_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Write Off Unit Code"},"write_off_unit_qty":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Write Off Unit Qty"},"country_of_origin_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Of Origin Code","description":"Country of origin code for the item."},"country_of_origin_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Of Origin Region"},"description_of_goods":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Of Goods","description":"Customs description of the goods."},"commercial_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Description","description":"Commercial description copied from the invoice or supporting documents."},"previous_doc_summary_declaration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Doc Summary Declaration"},"previous_doc_summary_declaration_sl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Doc Summary Declaration Sl"},"previous_doc_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Doc Reference"},"previous_warehouse_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Warehouse Code"},"licence_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence Number"},"amount_deducted_from_licence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount Deducted From Licence"},"quantity_deducted_from_licence":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quantity Deducted From Licence"},"free_text_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Free Text 1"},"free_text_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Free Text 2"},"tax_lines":{"items":{"$ref":"#/components/schemas/TaxLineInput"},"type":"array","title":"Tax Lines","description":"Optional explicit tax lines. Defaults are applied if omitted."},"gross_weight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Gross Weight"},"net_weight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Net Weight"},"total_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Cost"},"total_cif":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total Cif","description":"Item CIF value."},"statistical_value":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Statistical Value","description":"Item statistical value."},"rate_of_adjustement":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rate Of Adjustement"},"invoice_amount_national":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Invoice Amount National"},"invoice_amount_foreign":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Invoice Amount Foreign"},"external_freight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"External Freight"},"internal_freight":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Internal Freight"},"insurance":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Insurance"},"other_cost":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Other Cost"},"deduction":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Deduction"}},"type":"object","title":"ItemInput"},"PartiesInput":{"properties":{"exporter":{"anyOf":[{"$ref":"#/components/schemas/PartyInput"},{"type":"null"}]},"consignee":{"anyOf":[{"$ref":"#/components/schemas/PartyInput"},{"type":"null"}]},"financial":{"anyOf":[{"$ref":"#/components/schemas/PartyInput"},{"type":"null"}]},"private_person":{"anyOf":[{"$ref":"#/components/schemas/PersonInput"},{"type":"null"}]},"responsible_person":{"anyOf":[{"$ref":"#/components/schemas/PartyInput"},{"type":"null"}]},"declarant":{"anyOf":[{"$ref":"#/components/schemas/DeclarantInput"},{"type":"null"}]}},"type":"object","title":"PartiesInput"},"PartyInput":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"PartyInput"},"PersonInput":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"}},"type":"object","title":"PersonInput"},"RegistrationBlock":{"properties":{"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},"type":"object","title":"RegistrationBlock"},"SupplementaryUnitInput":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"quantity":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quantity"}},"type":"object","title":"SupplementaryUnitInput"},"TaxLineInput":{"properties":{"code":{"type":"string","title":"Code","description":"ASYCUDA duty/tax code, for example CD or VT."},"base":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Base","description":"Tax base amount. If omitted, some taxes can be derived."},"rate":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Rate","description":"Tax rate percentage."},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Amount","description":"Tax amount. If omitted, it may be calculated from base and rate."},"mode_of_payment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode Of Payment","description":"ASYCUDA mode of payment code.","default":"1"},"type_of_calculation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Of Calculation","description":"Optional ASYCUDA type-of-calculation code."}},"type":"object","required":["code"],"title":"TaxLineInput"},"TransportInput":{"properties":{"departure_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Departure Identity"},"departure_identity_secondary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Departure Identity Secondary"},"departure_nationality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Departure Nationality"},"border_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Identity"},"border_identity_secondary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Identity Secondary"},"border_nationality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Nationality"},"border_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Mode","description":"Mode of transport at the border, for example 30 for road."},"inland_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inland Mode","description":"Inland mode of transport code."},"delivery_terms_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Terms Code","description":"Incoterm code such as FOB, CIF, or DAP."},"delivery_terms_place":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Terms Place","description":"Named place associated with the Incoterm."},"delivery_terms_situation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Terms Situation"},"border_office_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Office Code","description":"Border office code."},"border_office_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Border Office Name","description":"Border office name."},"place_of_loading_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Loading Code"},"place_of_loading_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Loading Name"},"place_of_loading_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Place Of Loading Country"},"location_of_goods":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Of Goods"},"seals_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seals Number"},"seals_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seals Identity"}},"type":"object","title":"TransportInput"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}