Zum Inhalt
HALOWERK

Finopswerk

discounted tax basis transcript

From original amounts, discounts, invoice defaults or line overrides, reconstruct exact rational net/included/exclusive tax and total; supplied exempt/reverse backs out included tax. No tax applicability, legal validity, actual rates, currency conversion or Stripe-cent rounding claim. A schema-valid unknown is a successful result at the same fixed price. Invalid input raises native HTTP400 before settlement. Serialized input limit 16384 bytes; actual data response limit 32768 bytes.

POST https://finops.halowerk.com/v1/discounted-tax-basis-transcript

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
default_ratesobjectJa
exemptionSiehe SchemaJa
linesarrayJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "default_rates": {
      "type": "object",
      "properties": {
        "inclusive_bp": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            {
              "type": "null"
            }
          ]
        },
        "exclusive_bp": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "inclusive_bp",
        "exclusive_bp"
      ],
      "additionalProperties": false
    },
    "exemption": {
      "enum": [
        "none",
        "exempt",
        "reverse"
      ]
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "amount_minor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "discount_bp": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "rates": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "inclusive_bp": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "exclusive_bp": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "inclusive_bp",
                  "exclusive_bp"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amount_minor",
          "discount_bp",
          "rates"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 4
    },
    "report": {
      "type": "object",
      "properties": {
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "net": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "n": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]{0,63})$",
                        "maxLength": 65
                      },
                      "d": {
                        "type": "string",
                        "pattern": "^[1-9][0-9]{0,63}$",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "n",
                      "d"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "included_tax": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "n": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]{0,63})$",
                        "maxLength": 65
                      },
                      "d": {
                        "type": "string",
                        "pattern": "^[1-9][0-9]{0,63}$",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "n",
                      "d"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "exclusive_tax": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "n": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]{0,63})$",
                        "maxLength": 65
                      },
                      "d": {
                        "type": "string",
                        "pattern": "^[1-9][0-9]{0,63}$",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "n",
                      "d"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "n": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]{0,63})$",
                        "maxLength": 65
                      },
                      "d": {
                        "type": "string",
                        "pattern": "^[1-9][0-9]{0,63}$",
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "n",
                      "d"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "net",
              "included_tax",
              "exclusive_tax",
              "total"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 4
        },
        "total": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "n": {
                  "type": "string",
                  "pattern": "^-?(0|[1-9][0-9]{0,63})$",
                  "maxLength": 65
                },
                "d": {
                  "type": "string",
                  "pattern": "^[1-9][0-9]{0,63}$",
                  "maxLength": 64
                }
              },
              "required": [
                "n",
                "d"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "lines",
        "total"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "default_rates",
    "exemption",
    "lines",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "default_rates": {
    "inclusive_bp": 500,
    "exclusive_bp": 700
  },
  "exemption": "exempt",
  "lines": [
    {
      "amount_minor": 500,
      "discount_bp": 1000,
      "rates": {
        "inclusive_bp": 0,
        "exclusive_bp": 1900
      }
    },
    {
      "amount_minor": 1000,
      "discount_bp": 2500,
      "rates": {
        "inclusive_bp": 1000,
        "exclusive_bp": 500
      }
    }
  ],
  "report": {
    "lines": [
      {
        "net": {
          "n": "450",
          "d": "1"
        },
        "included_tax": {
          "n": "0",
          "d": "1"
        },
        "exclusive_tax": {
          "n": "0",
          "d": "1"
        },
        "total": {
          "n": "450",
          "d": "1"
        }
      },
      {
        "net": {
          "n": "7500",
          "d": "11"
        },
        "included_tax": {
          "n": "0",
          "d": "1"
        },
        "exclusive_tax": {
          "n": "0",
          "d": "1"
        },
        "total": {
          "n": "7500",
          "d": "11"
        }
      }
    ],
    "total": {
      "n": "12450",
      "d": "11"
    }
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →