WorkItems

Add a line item to a work item

Adds one money line (client charge + performer payout) to the work item. Rejected with 409 when the work item is in a terminal state — amounts are frozen once the item's lifecycle ends — and with 422 when the item already has 100 lines.

post/v2/work-items/{workItemId}/line-items

Request

  • Base URL: https://api-docs.proofserve.com
  • URL: https://api-docs.proofserve.com/v2/work-items/{workItemId}/line-items
  • Auth: none declared

Request body

descriptionstring required

Human-readable label for the line.

quantityinteger nullable

Unit count when the line is quantity-based; omit or null otherwise.

amountCentsinteger required

What the client is charged, in integer cents.

payoutAmountCentsinteger required

What the performer is paid, in integer cents.

Response

The created line item.

Example response

{
  "data": {
    "description": "Court pickup fee"
  },
  "meta": {
    "requestId": "req_8xKp2mN4"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.