Update a line item
Changed onUpdate a line item.
Request
- Base URLhttps://developer.productive.io (the document declares no server; this is the origin it was published from)
- URLhttps://developer.productive.io/api/v2/line_items/{id}
- Authnone declared
Path parameters
ID
Request body
Example request
{
"data": {
"type": "line_items",
"attributes": {
"name": "Frontend Development",
"quantity": 10,
"unit": "hours",
"unit_price": "150.00",
"position": 1,
"tax_rate": "0.1"
},
"relationships": {
"invoice": {
"data": {
"type": "invoices",
"id": "234"
}
}
}
}
}Response
Single line item
Example response
{
"data": {
"id": "890",
"type": "line_items",
"attributes": {
"name": "Frontend Development",
"quantity": 10,
"unit": "hours",
"unit_price": "150.00",
"total_price": "1500.00",
"currency": "USD",
"position": 1,
"tax_rate": "0.1"
},
"relationships": {
"invoice": {
"data": {
"type": "invoices",
"id": "234"
}
},
"service": {
"data": {
"type": "services",
"id": "1856422"
}
}
}
},
"included": []
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- warning
removed the request property
// - warning
removed the request property
// - warning
removed the request property
// - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status
- warning