{"uid":"cap_TDeblY_JmYSk0JDkR9lQq","slug":"spanish-business-day-calculator-d-as-h-biles-a7559e82","name":"Spanish Business-Day Calculator (Días Hábiles)","description":"Spanish business-day calculator: count business days between dates or add N business days, using Spain's national public holidays.","url":"https://api.vextorium.com/dias-habiles-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["desde"],"properties":{"desde":{"type":"string","description":"Start date YYYY-MM-DD"},"hasta":{"type":"string","description":"End date YYYY-MM-DD (to count days)"},"sumar_dias":{"type":"integer","description":"Business days to add (instead of 'hasta')"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"nota":{"type":["string","null"]},"desde":{"type":["string","null"]},"hasta":{"type":["string","null"]},"dias_habiles":{"type":["number","null"]},"festivos_en_el_rango":{"type":["array","null"],"items":{"type":["object","null"],"properties":{"fecha":{"type":["string","null"]},"nombre":{"type":["string","null"]}}}}}}}}}},"responseSchema":{"type":"json","example":{"nota":"Solo festivos nacionales comunes (incluye Viernes Santo). No incluye festivos autonomic...","desde":"2026-04-01","hasta":"2026-04-30","dias_habiles":21,"festivos_en_el_rango":[{"fecha":"2026-04-03","nombre":"Viernes Santo"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DHuoXr7V9jmXHo3ovGK8g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts working days between two dates or adds N business days to a start date, using Spain's national public holiday calendar.","exampleAgentPrompt":"How many business days are there between March 1, 2025 and April 30, 2025 in Spain, taking into account Spanish national public holidays?","exampleUseCases":[{"title":"Invoice payment deadline calculation","prompt":"I need to know what date falls exactly 30 business days after January 10, 2025 in Spain — factoring in all Spanish national holidays — so I can set the correct payment due date on a contract."},{"title":"Project milestone scheduling","prompt":"How many working days are there between April 7, 2025 and June 30, 2025 in Spain? I need to plan a project timeline and exclude all Spanish public holidays."},{"title":"Legal notice countdown","prompt":"We need to send a legal notice that requires a 15 business-day response window under Spanish law. If we send it on February 3, 2025, what is the deadline date, counting only Spanish working days?"}],"resultDescription":"Returns a JSON object with: the computed number of business days (dias_habiles), the start date (desde), the resolved end date (hasta), and an array of Spanish national public holidays that fall within the date range (festivos_en_el_rango), each with its date and name. May also include a note (nota) for edge cases.","failureModes":["Missing required 'desde' field returns a validation error","Providing both 'hasta' and 'sumar_dias' simultaneously may cause ambiguous or erroneous results","Invalid date format (non-YYYY-MM-DD) causes a parse error","End date earlier than start date may return zero or negative business day count","Requesting very large date ranges may produce unexpected results or timeouts","Regional Spanish holidays (autonomous community level) are not included, only national ones"],"whenToPreferThis":"Choose this endpoint when you need business-day calculations specifically governed by Spain's national public holiday calendar — for example, computing payment deadlines, legal notice periods, or project milestones under Spanish commercial law. Prefer it over generic date-diff utilities when Spanish holiday exclusion is required and over region-specific tools when national-level holidays suffice.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:50:49.458Z","isFirstParty":false,"canonicalSlug":"spanish-business-day-calculator-d-as-h-biles-a7559e82"}