Contractors

contractorOps.history.allocations.get

What one contractor's payments and imported timesheets look like for sharing a payment across timesheets (contractorId; transactionId or payoutId to include that payment even when it isn't linked to them yet). payments lists each outgoing bank payment linked to them and each payment recorded in Oatmilk with no pay period, newest first, with its date, amount, kind (wise, bank or recorded), what it already gave which timesheets (allocations), and the timesheets an earlier Mark paid tied to it without amounts (legacyHistoryIds). timesheets lists their imported timesheets with the period, hours, amount (null for a fixed fee with no amount), what payments gave each, and whether it's unpaid, partly paid or paid and how. Nothing changes.

GETPOST/api/v1/accounting/contractorOps.history.allocations.get

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_contractor_ops_history_allocations_get

Fields

  • contractorIdstring (ID)Required

    The ID of a contractor, from contractors.list.

  • transactionIdstring (ID)

    The ID of a bank or card transaction, from transactions.list.

  • payoutIdstring (ID)

    The ID of the related record.

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/contractorOps.history.allocations.get \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'contractorId=4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

GET/api/v1/accounting/contractorOps.history.allocations.get
curl -G https://app.getoatmilk.com/api/v1/accounting/contractorOps.history.allocations.get \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'contractorId=4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a'

More in Contractors.