Line Items
Create line items
Changed onThe generate method provides a way to automatically create line items for an invoice based on the provided invoicing method.
This help article explains the supported invoicing methods.
post/api/v2/line_items/generate
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/generate
- Authnone declared
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
- 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