Skip to content

List WIP entries

Request

🔐 Required role: API_ADMIN

📖 Data dictionary: Work in progress (WIP)

Work in Progress tracking with comprehensive financial lifecycle management

Uses standard limit/offset pagination via pageSize and page — see Pagination. Use <tenant>_vw_wip_unified_aggregate.aggregate.count to detect the end.

Response keys are tenant-specific. Unlike the other list endpoints, this response is not aliased: the records are under <tenant>_vw_wip_unified and the totals under <tenant>_vw_wip_unified_aggregate, where <tenant> is your tenant's schema name (for example acme_vw_wip_unified). Read the two keys by suffix rather than by a fixed name. POST /gql/v1/wips/search returns fixed keys.

This advanced endpoint provides complete WIP management including:

  • WIP value tracking from creation through billing completion
  • Outstanding balance calculations for unbilled work
  • Multi-dimensional analysis (client, job, date-based)
  • Financial aggregations for WIP reporting and analysis
  • Integration with client data for complete context

Financial Tracking Features:

  • WIP value recording and outstanding balance calculation
  • Billed amount tracking for revenue recognition
  • Write-off amount management for uncollectible WIP
  • Job and client correlation for project profitability

WIP Lifecycle Management:

  • Creation date logging for aging analysis
  • WIP type categorization (TIME, EXPENSE, FIXED_FEE, etc.)
  • Outstanding value calculation for billing preparation
  • Billed amount reconciliation for revenue tracking

Business Intelligence & Reporting:

  • Client-specific WIP analysis and aging
  • Job-based profitability and WIP tracking
  • WIP aging reports for collections management
  • Revenue recognition and billing pipeline analysis

Financial Aggregations:

  • Total WIP value across filtered records
  • Outstanding WIP calculations for billing preparation
  • Billed amount summaries for revenue analysis
  • Write-off tracking for financial reporting

Filtering: this endpoint accepts only pageSize and page; any other body property is rejected with 400 (Unexpected variable …). To filter (by client, job, WIP type, logged date, …) or sort, use POST /gql/v1/wips/search.

Active Record Filtering:

  • Only active WIP records are returned (inactive records represent deletions), newest loggedDate first
  • Each record includes isActive so clients can distinguish active from inactive when querying by ID
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Bodyapplication/json
pageSizeinteger, [ 1 .. 1000 ]

Limit — number of records to return (not a page count). Hasura maps this to limit.

Default:50
Example:25
pageinteger, >= 0

Offset — number of records to skip. This is not a page index. To fetch the next N rows after the first N, send pageSize: N and page: N. An offset at or beyond total.aggregate.count returns an empty result array.

Default:0
Example:0
curl -i -X POST \
  https://api.sandbox.aiwyn.app/gql/v1/wip \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "pageSize": 25,
    "page": 0
  }'

Responses

Successfully retrieved WIP records with financial aggregations

Bodyapplication/json
^[a-z0-9_]+_vw_wip_unified$Array of objectspattern property
^[a-z0-9_]+_vw_wip_unified_aggregate$objectpattern property
Response
{ "acme_vw_wip_unified": [ { … }, { … }, { … } ], "acme_vw_wip_unified_aggregate": { "aggregate": { … } } }