latestOpenAPI 3.0.12026-08-192092911.2 MB

916e669fc527

JobGroups

Create a job group line item

Create a new job group line item (required scope jobs:write)

post/v1/jobGroups/{jobGroupId}/lineItems

Path parameters

jobGroupIdinteger required

Headers

Customer-Idinteger required

The customer identifier

Request body

contactIdinteger nullable

Contact id that the costs are charged to

quantitynumber double required

Quantity of the line item

descriptionstring

Description of the line item

taxIdinteger nullable

Tax identifier (must exist and not be deleted for customer). Nullable

unitCostnumber double nullable

Unit cost (nullable, non-negative)

unitSellingPricenumber double

Unit selling price (non-negative)

nominalCodeIdinteger nullable

Id of the associated nominal code

departmentCodeIdinteger nullable

Id of the associated department code

Example request

{
  "contactId": 6547,
  "quantity": 5,
  "description": "Copper pipe - 1m",
  "taxId": 1,
  "unitCost": 2.5,
  "unitSellingPrice": 5.99,
  "nominalCodeId": 45,
  "departmentCodeId": 59
}

Response

Created

idinteger

Identifier of the newly created record