{"uid":"cap_taxiKVennshx2IipzjoKL","slug":"business-day-deadline-api-previous-business-day-bcb61078","name":"Business Day & Deadline API – Previous Business Day","description":"Verified, always-current business-day arithmetic for ~200 countries incl. subdivisions (German Bundeslaender, US states) and correct per-country weekend rules (e.g. Fri/Sat in Egypt). Informational only — verify legally binding deadlines with the competent authority. Not legal advice.","url":"https://businessdayapi.com/v1/previous?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["date","country"],"properties":{"date":{"type":"string"},"region":{"type":"string","description":"optional ISO 3166-2 subdivision suffix, e.g. BY (Bavaria), CA (California)"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, e.g. DE, US, JP"},"weekend":{"type":"string","description":"optional override: sat-sun | fri-sat | custom:THU,FRI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"date":"2026-04-06","country":"DE","previousBusinessDay":"2026-04-02"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8ZjCwfqg4PXNyt2CLIhed","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the most recent business day before a given date, accounting for public holidays and country-specific weekend rules for ~200 countries and their subdivisions.","exampleAgentPrompt":"What was the previous business day before April 6, 2026 in Germany (country code DE, Bavaria region BY)?","exampleUseCases":[{"title":"Payment value date calculation","prompt":"Our payment system needs to know the previous business day before March 29, 2026 in Japan — can you look that up using country code JP?"},{"title":"Legal filing deadline in US state","prompt":"What was the last business day before July 4, 2026 in California? Use country code US and region CA."},{"title":"Egyptian payroll cutoff","prompt":"Find the previous working day before January 1, 2026 in Egypt — they use a Friday–Saturday weekend, country code EG."}],"resultDescription":"A JSON object containing the input date, the country code, and the calculated previous business day as an ISO 8601 date string (e.g. {\"date\":\"2026-04-06\",\"country\":\"DE\",\"previousBusinessDay\":\"2026-04-02\"}), correctly accounting for national public holidays, regional holidays if a subdivision is specified, and the country's actual weekend structure.","failureModes":["Missing required 'date' or 'country' parameter returns a 400-level error","Invalid ISO 3166-1 alpha-2 country code returns an error or unrecognized-country response","Invalid or unsupported region subdivision code may return an error or fall back to country-level holidays","Malformed date string (non-ISO format) returns a parsing error","Payment of 0.001 USDC required; unpaid or failed x402 payment returns 402 Payment Required","Very recent or future dates may have incomplete holiday data for some countries"],"whenToPreferThis":"Use this endpoint when you need to step backward by exactly one business day from a reference date, especially when correct holiday and weekend handling across international jurisdictions (including non-standard weekends like Friday–Saturday in Egypt or Fri–Sat in the Gulf) is critical. Prefer it over generic date libraries when up-to-date, country-verified holiday calendars for ~200 countries and their subdivisions are required without maintaining your own holiday database.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:30:47.517Z","isFirstParty":false,"canonicalSlug":"business-day-deadline-api-previous-business-day-bcb61078"}