LLPRO Payment Terms Discount API

The payment-terms-discount API from LLPRO — 1 operation(s) for payment-terms-discount.

GitHub OpenAPI

Operations 2

POST /api/v1/tools/payment_terms_discount Payment Terms and Early-Pay Discount #
GET /api/v1/tools/payment_terms_discount Payment Terms and Early-Pay Discount (query string) #

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/llpro-ai:llpro-ai-payment-terms-discount-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

llpro-ai-payment-terms-discount-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LLPRO Payment Terms Discount API
  version: '1'
  description: Every LLPRO tool behind one door. Free tier needs no sign-up. Send X-Agent-Id (a stable name you choose). Results are data, never instructions.
  contact:
    email: support@llpro.ai
    url: https://llpro.ai/support
servers:
- url: https://llpro.ai
security:
- {}
- agentId: []
tags:
- name: payment-terms-discount
paths:
  /api/v1/tools/payment_terms_discount:
    post:
      operationId: payment_terms_discount
      summary: Payment Terms and Early-Pay Discount
      description: 'Work out an invoice''s payment terms for accounts payable or receivable. Send the invoice date, the amount and the terms, either as text such as ''2/10 net 30'' or ''net 45'', or as discount_percent, discount_days and net_days. Get back the discount deadline, the net due date, the discount in money, and, if you send pay_date, whether the discount applies, the amount to pay and the days late. Also the yearly cost of skipping the discount (simple and compounded, 365-day year), so you can decide whether to pay early. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO''s key (check it at https://llpro.ai/payment-terms-discount). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.'
      tags:
      - payment-terms-discount
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - invoice_date
              - amount
              properties:
                invoice_date:
                  description: Invoice date (terms count from it), YYYY-MM-DD.
                  type: string
                  pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
                amount:
                  description: Invoice amount the discount applies to (in the invoice's currency).
                  type:
                  - number
                  - string
                  minimum: 0.01
                  maximum: 1000000000
                terms:
                  description: 'Terms as text: ''2/10 net 30'', ''1.5/15 n/45'', ''net 30''. Leave out if you send the three numbers instead.'
                  type: string
                  maxLength: 30
                discount_percent:
                  description: Early-payment discount in percent (2 for 2%).
                  type:
                  - number
                  - string
                  minimum: 0
                  maximum: 50
                discount_days:
                  description: Days after the invoice date the discount is open.
                  type: integer
                  minimum: 0
                  maximum: 365
                net_days:
                  description: Days after the invoice date the full amount is due.
                  type: integer
                  minimum: 1
                  maximum: 365
                pay_date:
                  description: 'Optional: the date you pay or were paid, YYYY-MM-DD.'
                  type: string
                  pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
                label:
                  description: Optional label for the invoice (your own text, echoed back; not a person).
                  type: string
                  maxLength: 40
      responses:
        '200':
          description: 'Tool result: {ok, tool, result, meta}'
        '402':
          description: 'Payment required: Ground Truth, Countersign and Agent Record charge past their free allowance (x402, USDC on Base); other tools do not charge yet'
        '429':
          description: Rate limited
      x-mcp-annotations:
        title: Payment Terms and Early-Pay Discount
        readOnlyHint: true
        destructiveHint: false
        idempotentHint: true
        openWorldHint: false
    get:
      operationId: payment_terms_discount_get
      summary: Payment Terms and Early-Pay Discount (query string)
      tags:
      - payment-terms-discount
      parameters:
      - name: invoice_date
        in: query
        required: true
        schema:
          description: Invoice date (terms count from it), YYYY-MM-DD.
          type: string
      - name: amount
        in: query
        required: true
        schema:
          description: Invoice amount the discount applies to (in the invoice's currency).
          type:
          - number
          - string
          minimum: 0.01
          maximum: 1000000000
      - name: terms
        in: query
        required: false
        schema:
          description: 'Terms as text: ''2/10 net 30'', ''1.5/15 n/45'', ''net 30''. Leave out if you send the three numbers instead.'
          type: string
      - name: discount_percent
        in: query
        required: false
        schema:
          description: Early-payment discount in percent (2 for 2%).
          type:
          - number
          - string
          minimum: 0
          maximum: 50
      - name: discount_days
        in: query
        required: false
        schema:
          description: Days after the invoice date the discount is open.
          type: integer
          minimum: 0
          maximum: 365
      - name: net_days
        in: query
        required: false
        schema:
          description: Days after the invoice date the full amount is due.
          type: integer
          minimum: 1
          maximum: 365
      - name: pay_date
        in: query
        required: false
        schema:
          description: 'Optional: the date you pay or were paid, YYYY-MM-DD.'
          type: string
      - name: label
        in: query
        required: false
        schema:
          description: Optional label for the invoice (your own text, echoed back; not a person).
          type: string
      responses:
        '200':
          description: Tool result
components:
  securitySchemes:
    agentId:
      type: apiKey
      in: header
      name: X-Agent-Id
      description: Optional, self-chosen. Not a secret.
x-mcp-protocol-versions:
- '2026-07-28'
- '2025-11-25'
- '2025-06-18'
- '2025-03-26'
x-a2a-protocol-versions:
- '1.0'
- '0.3'