{"openapi":"3.1.0","info":{"title":"AXITAM Public API","description":"Reference data (ISO, CLDR), Belgian enterprises, annual accounts and addresses, Peppol participants - built on community-maintained and official sources. See the data-sources API for each source's version and license. Beta.","version":"0.45.1"},"servers":[{"url":"/","description":"This server"}],"tags":[{"name":"Postal address formats (Source : UPU)","description":"How each country lays out a postal address: the order of the lines, which are required, how the postcode is written and where, and the line limits its postal administration sets. Source : UPU - the rules are written by Axitam from the « Postal addressing systems » sheets of the Universal Postal Union (upu.int), each country citing its sheet and edition; the sheets themselves are not reproduced. The table covers the 27 EU member states, Iceland, Liechtenstein, Norway, Switzerland and the United Kingdom; any other country answers 404 and the caller keeps its own rule. The API serves rules, not addresses: composing, abbreviating and validating an address, and the language of the country line (the rule of the country of origin), stay with the caller."}],"paths":{"/api/v1/address-formats":{"get":{"tags":["Postal address formats (Source : UPU)"],"summary":"Every country of the table","description":"The formats of the table, by country code.","operationId":"findAll","parameters":[{"name":"X-Axitam-Component","in":"header","description":"Optional label for Axitam's own components (tap-portal, tap-worker, tap-app), counted in the usage log of the API key. Ignored for limits and access; any other value counts as none.","required":false,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$"}},{"name":"X-Axitam-Workspace","in":"header","description":"Optional opaque workspace identifier of Axitam's ERP, a lowercase UUID, counted in the usage log of the API key. Never an enterprise or VAT number. Ignored for limits and access; any other format counts as none.","required":false,"schema":{"type":"string","format":"uuid","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"The formats","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddressFormatResponse"}}}}},"429":{"description":"Too many requests from this client. RATE_LIMITED: the per-second limit, Retry-After says in how many seconds a request will pass again. DAILY_QUOTA_EXCEEDED: the calls of the day are used up, Retry-After reaches the next midnight in Brussels.","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Sustained requests per second allowed on this path","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Requests left in the current burst","schema":{"type":"string"}},"X-Quota-Limit":{"description":"Calls allowed per day (Brussels calendar day)","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"Calls left today","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key's account has not accepted the terms of use in force and their grace period is over (code TERMS_ACCEPTANCE_REQUIRED): accept them in the developer portal (/account/); the key works again within a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The X-API-Key header carries an unknown, revoked or malformed key (code INVALID_API_KEY). Leave the header out to call anonymously.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{},{"apiKey":[]}]}},"/api/v1/address-formats/{countryCode}":{"get":{"tags":["Postal address formats (Source : UPU)"],"summary":"The address format of one country","description":"The lines in order, the postcode rule, the limits and the UPU sheet they were read from.","operationId":"find","parameters":[{"name":"countryCode","in":"path","description":"ISO 3166-1 alpha-2 code, any case","required":true,"schema":{"type":"string"},"example":"BE"},{"name":"X-Axitam-Component","in":"header","description":"Optional label for Axitam's own components (tap-portal, tap-worker, tap-app), counted in the usage log of the API key. Ignored for limits and access; any other value counts as none.","required":false,"schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$"}},{"name":"X-Axitam-Workspace","in":"header","description":"Optional opaque workspace identifier of Axitam's ERP, a lowercase UUID, counted in the usage log of the API key. Never an enterprise or VAT number. Ignored for limits and access; any other format counts as none.","required":false,"schema":{"type":"string","format":"uuid","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"The format","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AddressFormatResponse"}}}},"400":{"description":"Not two letters (code INVALID_COUNTRY_CODE)","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"A country the table does not hold (code ADDRESS_FORMAT_NOT_FOUND)","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests from this client. RATE_LIMITED: the per-second limit, Retry-After says in how many seconds a request will pass again. DAILY_QUOTA_EXCEEDED: the calls of the day are used up, Retry-After reaches the next midnight in Brussels.","headers":{"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Sustained requests per second allowed on this path","schema":{"type":"string"}},"X-RateLimit-Remaining":{"description":"Requests left in the current burst","schema":{"type":"string"}},"X-Quota-Limit":{"description":"Calls allowed per day (Brussels calendar day)","schema":{"type":"string"}},"X-Quota-Remaining":{"description":"Calls left today","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key's account has not accepted the terms of use in force and their grace period is over (code TERMS_ACCEPTANCE_REQUIRED): accept them in the developer portal (/account/); the key works again within a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The X-API-Key header carries an unknown, revoked or malformed key (code INVALID_API_KEY). Leave the header out to call anonymously.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{},{"apiKey":[]}]}}},"components":{"schemas":{"AddressFormatResponse":{"type":"object","description":"How a country lays out a postal address, as Axitam reads its UPU sheet (Source : UPU)","properties":{"countryCode":{"type":"string","description":"ISO 3166-1 alpha-2 code","example":"BE"},"lines":{"type":"array","description":"The lines in the order the country prints them","items":{"$ref":"#/components/schemas/AddressLineResponse"}},"postCode":{"$ref":"#/components/schemas/PostCodeRuleResponse","description":"How the postcode is written"},"postCodeLocalityTemplate":{"type":["string","null"],"description":"Layout of the POSTCODE_LOCALITY line, with {postCode}, {locality} and {region}; absent when the postcode has a line of its own","example":"{postCode} {locality}"},"minLinesDomestic":{"type":["integer","null"],"format":"int32","description":"Fewest lines of a domestic item, absent when the sheet sets none","example":3},"minLinesCrossBorder":{"type":["integer","null"],"format":"int32","description":"Fewest lines of a cross-border item, absent when the sheet sets none","example":4},"maxLinesDomestic":{"type":["integer","null"],"format":"int32","description":"Most lines of a domestic item, absent when the sheet sets none","example":6},"maxLinesCrossBorder":{"type":["integer","null"],"format":"int32","description":"Most lines of a cross-border item, absent when the sheet sets none","example":7},"maxLineLength":{"type":["integer","null"],"format":"int32","description":"Most characters on a line, absent when the sheet sets none","example":50},"isSpaceCountedInLength":{"type":["boolean","null"],"description":"Whether spaces count in maxLineLength, absent with it","example":true},"source":{"$ref":"#/components/schemas/AddressFormatSourceResponse","description":"The UPU sheet the rules were written from"}}},"AddressFormatSourceResponse":{"type":"object","description":"The UPU country sheet the rules were written from (Source : UPU)","properties":{"publisher":{"type":"string","description":"Always UPU","example":"UPU"},"sheetName":{"type":"string","description":"Title of the sheet","example":"Belgium - Postal addressing systems"},"sheetUrl":{"type":"string","description":"Where the sheet is published","example":"https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/belEn.pdf"},"edition":{"type":"string","description":"The edition the sheet prints (year-month), or the date of its file when it prints none","example":"2012-09"},"listingUrl":{"type":"string","description":"The UPU page listing the addressing documents","example":"https://www.upu.int/en/postal-solutions/programmes-services/addressing-solutions"},"consultedOn":{"type":"string","format":"date","description":"When Axitam read the sheet","example":"2026-10-16"}}},"AddressLineResponse":{"type":"object","description":"One line of the address, in the order the country prints them","properties":{"element":{"type":"string","description":"What the line holds: ADDRESSEE, ORGANIZATION, DELIVERY_DETAILS (building, floor, apartment), DELIVERY_POINT (street and number), POST_BOX (P.O. box or poste restante: a line of its own beside the street, or an alternative of DELIVERY_POINT), DEPENDENT_LOCALITY, POSTCODE_LOCALITY (laid out by postCodeLocalityTemplate), LOCALITY, REGION, POSTCODE or COUNTRY (on cross-border mail only)","enum":["ADDRESSEE","ORGANIZATION","DELIVERY_DETAILS","DELIVERY_POINT","POST_BOX","DEPENDENT_LOCALITY","POSTCODE_LOCALITY","LOCALITY","REGION","POSTCODE","COUNTRY"],"example":"DELIVERY_POINT"},"isRequired":{"type":"boolean","description":"Whether an address of that country always has this line, or one of its alternatives"},"isCrossBorderOnly":{"type":"boolean","description":"Whether the line is printed on cross-border mail only, never on domestic mail: true for COUNTRY (the destination country in capitals, in a language of the country of origin - plus English if useful - which the caller prints), false for every other line"},"alternatives":{"type":"array","description":"What may stand on the line instead of the element, never with it: POST_BOX instead of DELIVERY_POINT where a P.O. box replaces the street; empty when nothing may","example":["POST_BOX"],"items":{"type":"string","enum":["ADDRESSEE","ORGANIZATION","DELIVERY_DETAILS","DELIVERY_POINT","POST_BOX","DEPENDENT_LOCALITY","POSTCODE_LOCALITY","LOCALITY","REGION","POSTCODE","COUNTRY"]}}}},"PostCodeRuleResponse":{"type":"object","description":"How the country writes its postcode","properties":{"format":{"type":"string","description":"Shape of the postcode: N a digit, A a letter, X a letter or a digit, other characters as printed; several shapes are separated by | (the United Kingdom)","example":"NNNN"},"pattern":{"type":"string","description":"Regular expression of a well-formed postcode, without any prefix","example":"[0-9]{4}"},"sample":{"type":"string","description":"A postcode of that shape","example":"1000"},"position":{"type":"string","description":"BEFORE_LOCALITY or AFTER_LOCALITY on the locality line, or OWN_LINE","enum":["BEFORE_LOCALITY","AFTER_LOCALITY","OWN_LINE"],"example":"BEFORE_LOCALITY"},"prefix":{"type":["string","null"],"description":"What is printed in front of the postcode, absent when nothing is","example":"L-"}}},"ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"correlationId":{"type":"string"}}}},"securitySchemes":{"apiKey":{"type":"apiKey","description":"Optional on most operations, required on those that say so (401 API_KEY_REQUIRED without it). A key of a registered developer (portal: /account/) raises the request rate of the client from the anonymous per-IP limit to the plan's. Without it the request is anonymous; an unknown or revoked key is refused (401 INVALID_API_KEY).","name":"X-API-Key","in":"header"}}}}