https://api.payload.com/line_items
Nested Objects
https://api.payload.com/line_items/{id}/invoice
https://api.payload.com/line_items/{id}/transaction
Example
{
"id": "item_1wOqeH7ccXXVoLnPJ6uh5ZT4C",
"object": "line_item",
"amount": 8.63,
"amount_type": "percentage",
"attrs": {},
"created_at": "2024-08-21 13:35:03",
"description": "string",
"entry_type": "charge",
"incurred_date": "2024-08-21",
"invoice_id": "inv_15dZjgUMbEWMIfw4ECxPKlEck",
"line_number": 609,
"modified_at": "2024-08-21 13:35:03",
"qty": 468.95,
"total": 509.0,
"transaction_id": "txn_t9LEG1A8syOjBYR7TjYMc7TV",
"type": "string"
}
| Attributes | Description |
|---|---|
idstring readonly |
Object ID |
objectstring readonly |
Value: line_item |
amountnumber required |
Amount of line item |
amount_typestring |
Values: percentage number |
attrsjson |
Custom object attributes |
created_atdatetime readonly |
None |
descriptionstring |
Description of invoice item |
entry_typestring required |
Values: charge payment |
incurred_datedate |
Date the item was incurred |
invoice_idid required |
ID of the associated Invoice object |
line_numberint |
Determines the order the line item shows on the invoice |
modified_atdatetime readonly |
None |
qtynumber |
Quantity of item |
totalnumber readonly |
Total amount of line item |
transaction_idid |
ID of the associated Transaction |
typestring |
Arbitrary type classification |