{"openapi":"3.1.0","info":{"title":"Formatos ES","version":"0.1.0","description":"Spanish formats for documents and invoices: an amount in euros written in words, Spanish amounts (1.234,56 €) and Spanish dates (21 de noviembre de 2026, 21/11/2026) read into numbers and ISO dates. Ambiguous or English-formatted input is rejected, never guessed. Paid routes need a LicenRoute licence (Authorization: Bearer bgat_…)."},"components":{"securitySchemes":{"licence":{"type":"http","scheme":"bearer","description":"LicenRoute licence key (bgat_…)"}}},"paths":{"/v1/format":{"get":{"summary":"List operations","security":[{"licence":[]}],"responses":{"200":{"description":"Operations"},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/v1/format/amount-in-words/{amount}":{"get":{"summary":"Amount in euros written in words (up to 999.999.999.999,99)","security":[{"licence":[]}],"parameters":[{"name":"amount","in":"path","required":true,"schema":{"type":"string"},"example":"1234.56"}],"responses":{"200":{"description":"Result with valid, the value and a reason when invalid"},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/v1/format/parse-amount/{text}":{"get":{"summary":"Read a Spanish amount into a number","security":[{"licence":[]}],"parameters":[{"name":"text","in":"path","required":true,"schema":{"type":"string"},"example":"1.234,56 €"}],"responses":{"200":{"description":"Result with valid, the value and a reason when invalid"},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/v1/format/parse-date/{text}":{"get":{"summary":"Read a Spanish date into YYYY-MM-DD","security":[{"licence":[]}],"parameters":[{"name":"text","in":"path","required":true,"schema":{"type":"string"},"example":"21 de noviembre de 2026"}],"responses":{"200":{"description":"Result with valid, the value and a reason when invalid"},"402":{"description":"Payment required: no valid licence. The body names the plan and where to buy it."},"403":{"description":"Invented or revoked licence."}}}},"/health":{"get":{"summary":"Health check (free)","responses":{"200":{"description":"OK"}}}}}}