Skip to content
HALOWERK

Finopswerk

customer payment revenue expense bridge

Reconstructs one seller payment C to its own customer, split between revenue reduction and purchase expense under AASB 15 paragraphs 70-72, for a sale P already earned and collected. The caller qualifies mode 0 = no distinct good/service, mode 1 = distinct service with estimable FV F, mode 2 = distinct service, FV not estimable. Mode 1: expense=min(C,F), revenue reduction=C-expense; modes 0/2: all of C reduces revenue. Recognized revenue=P-reduction, net cash=P-C.

POST https://finops.halowerk.com/v1/customer-payment-revenue-expense-bridge

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
sale_nintegerYes
payment_nintegerYes
service_fv_nintegerYes
modeintegerYes
amount_denominatorintegerYes
reportobjectYes
Show full input schema
{
  "type": "object",
  "required": [
    "sale_n",
    "payment_n",
    "service_fv_n",
    "mode",
    "amount_denominator",
    "report"
  ],
  "properties": {
    "sale_n": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "payment_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "service_fv_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "mode": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2
    },
    "amount_denominator": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "report": {
      "type": "object",
      "minProperties": 20,
      "maxProperties": 20,
      "propertyNames": {
        "enum": [
          "gross_sale",
          "customer_payment",
          "mode",
          "service_fv_input",
          "purchase_expense",
          "revenue_reduction",
          "recognized_revenue",
          "gross_cash_received",
          "cash_paid",
          "net_cash",
          "profit_slice",
          "full_rebate_revenue",
          "full_expense_revenue",
          "full_expense_cost",
          "revenue_over_full_rebate",
          "cost_below_full_expense",
          "closing_customer_payable",
          "payment_split_gap",
          "revenue_gap",
          "PL_cash_gap"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "required": [
          "n",
          "d"
        ],
        "propertyNames": {
          "enum": [
            "n",
            "d"
          ]
        },
        "additionalProperties": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "maxLength": 64
        }
      }
    }
  },
  "additionalProperties": false
}

Open original schema

Published input example

{
  "sale_n": 100,
  "payment_n": 30,
  "service_fv_n": 20,
  "mode": 1,
  "amount_denominator": 1,
  "report": {
    "gross_sale": {
      "n": "100",
      "d": "1"
    },
    "customer_payment": {
      "n": "30",
      "d": "1"
    },
    "mode": {
      "n": "1",
      "d": "1"
    },
    "service_fv_input": {
      "n": "20",
      "d": "1"
    },
    "purchase_expense": {
      "n": "20",
      "d": "1"
    },
    "revenue_reduction": {
      "n": "10",
      "d": "1"
    },
    "recognized_revenue": {
      "n": "90",
      "d": "1"
    },
    "gross_cash_received": {
      "n": "100",
      "d": "1"
    },
    "cash_paid": {
      "n": "30",
      "d": "1"
    },
    "net_cash": {
      "n": "70",
      "d": "1"
    },
    "profit_slice": {
      "n": "70",
      "d": "1"
    },
    "full_rebate_revenue": {
      "n": "70",
      "d": "1"
    },
    "full_expense_revenue": {
      "n": "100",
      "d": "1"
    },
    "full_expense_cost": {
      "n": "30",
      "d": "1"
    },
    "revenue_over_full_rebate": {
      "n": "20",
      "d": "1"
    },
    "cost_below_full_expense": {
      "n": "10",
      "d": "1"
    },
    "closing_customer_payable": {
      "n": "0",
      "d": "1"
    },
    "payment_split_gap": {
      "n": "0",
      "d": "1"
    },
    "revenue_gap": {
      "n": "0",
      "d": "1"
    },
    "PL_cash_gap": {
      "n": "0",
      "d": "1"
    }
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’