Mart402 Jp Business Days API

The Jp Business Days API from Mart402 — 1 operation(s) for jp business days.

GitHub OpenAPI

Operations 2

POST /v1/jp-business-days Jp Jp Business Days Endpoint #
GET /v1/jp-business-days Payment terms for discovery (use POST with a JSON body to call) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mart402-com:mart402-com-jp-business-days-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mart402-com-jp-business-days-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mart402 Jp Business Days API
  description: 'Pay-per-call APIs for AI agents with verifiable results, in three lines: documents & web (extract, PDF parsing with hallucination-guarded OCR, invoice verification, company enrichment), Japan statutory calculations (deterministic, primary-source cited) and calibrated vision. Payment via x402 (USDC on Base) - no account, no API key. Docs: /agents.md'
  version: 0.1.0
tags:
- name: Jp Business Days
paths:
  /v1/jp-business-days:
    post:
      summary: Jp Jp Business Days Endpoint
      operationId: jp_jp_business_days_endpoint_v1_jp_business_days_post
      requestBody:
        content:
          application/json:
            schema:
              allOf:
              - if:
                  properties:
                    mode:
                      const: add
                then:
                  required:
                  - from
                  - days
              - if:
                  properties:
                    mode:
                      const: between
                  required:
                  - mode
                then:
                  required:
                  - from
                  - to
              - if:
                  properties:
                    mode:
                      const: holidays
                  required:
                  - mode
                then:
                  required:
                  - year
              - if:
                  properties:
                    mode:
                      const: deadline
                  required:
                  - mode
                then:
                  required:
                  - kind
                  - base_date
              - if:
                  properties:
                    mode:
                      const: wareki
                  required:
                  - mode
                then:
                  required:
                  - date
              properties:
                mode:
                  type: string
                  enum:
                  - add
                  - between
                  - holidays
                  - deadline
                  - wareki
                  default: add
                from:
                  type: string
                  format: date
                  description: Start date YYYY-MM-DD
                to:
                  type: string
                  format: date
                  description: End date YYYY-MM-DD
                days:
                  type: integer
                  description: Number of business days to add
                year:
                  type: integer
                  description: Calendar year
                date:
                  type: string
                  format: date
                  description: Date YYYY-MM-DD
                kind:
                  type: string
                  enum:
                  - withholding_tax_monthly
                  - social_insurance_monthly
                  - corporate_tax
                  - consumption_tax_corporate
                  - income_tax_final
                  - consumption_tax_individual
                  - depreciable_assets
                  - legal_records
                  description: Statutory deadline kind (see enum)
                base_date:
                  type: string
                  format: date
                  description: Base date YYYY-MM-DD for deadline calculation
                saturday_off:
                  type: boolean
                  description: Treat Saturdays as non-business days (default true)
                  default: true
              additionalProperties: true
              type: object
              required: []
              title: Payload
              x-mode-default: add
              x-required-by-mode:
                add:
                - from
                - days
                between:
                - from
                - to
                holidays:
                - year
                deadline:
                - kind
                - base_date
                wareki:
                - date
            example:
              mode: deadline
              kind: corporate_tax
              base_date: '2026-03-31'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
        '422':
          description: Input error (action fix_input). Not charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '402':
          description: Payment required (x402). No charge until a valid payment is attached; work failures after payment are not settled.
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: base64 JSON of the challenge
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequired'
        '409':
          description: The same payment is already being processed (payment_in_flight). Retry shortly; you are not charged twice.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: Temporarily unavailable (Retry-After header). Not charged.
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Jp Business Days
    get:
      summary: Payment terms for discovery (use POST with a JSON body to call)
      operationId: discover_v1_jp_business_days
      responses:
        '402':
          description: x402 payment terms (same as an unpaid POST).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequired'
        '405':
          description: 'Sent with a payment header: use_post_with_json_body.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Jp Business Days
components:
  schemas:
    PaymentRequired:
      type: object
      description: x402 payment challenge. The same JSON is base64-encoded in the PAYMENT-REQUIRED header. Pay with the PAYMENT-SIGNATURE header (x402 v2) or X-PAYMENT (v1) and retry the same request.
      required:
      - x402Version
      - accepts
      properties:
        x402Version:
          type: integer
        error:
          type: string
        resource:
          type: object
        accepts:
          type: array
          items:
            type: object
            properties:
              scheme:
                type: string
              network:
                type: string
              amount:
                type: string
                description: Atomic units of the asset (USDC has 6 decimals).
              maxAmountRequired:
                type: string
              asset:
                type: string
              payTo:
                type: string
              maxTimeoutSeconds:
                type: integer
              description:
                type: string
              extra:
                type: object
              outputSchema:
                type: object
        docs:
          type: object
        extensions:
          type: object
      additionalProperties: true
    ErrorEnvelope:
      type: object
      required:
      - ok
      - code
      - retryable
      - action
      - billed_usd
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: Machine-readable error code; see GET /catalog errors and error_http.
        retryable:
          type: boolean
        action:
          type: string
          enum:
          - fix_input
          - retry
          - requote
          - retry_payment
          - wait
          - slow_down
          - contact
        billed_usd:
          type: number
          const: 0
          description: 'Always 0: errors are never charged.'
        detail:
          description: 'Human-readable string, or an object with field-level info (jp line: {missing:[...]} or {field, got, ...}).'
          oneOf:
          - type: string
          - type: object
        hint:
          type: string
          description: Legacy alias of detail on some endpoints.
        error:
          type: object
          description: 'jp line only: nested copy {code, retryable, action}.'
      additionalProperties: true