Line Items

https://api.payload.co/line_items

Nested Objects

https://api.payload.co/line_items/{id}/invoice

https://api.payload.co/line_items/{id}/transaction

Example

{
  "id": "item_1eFsU0r2ColQcCMvyrQ9Q5ADw",
  "object": "line_item",
  "amount": 636.64,
  "attrs": {},
  "created_at": "2021-07-07 23:19:31",
  "description": "string",
  "entry_type": "charge",
  "incurred_date": "2021-07-07",
  "invoice_id": "inv_Oy6Y1n6rjfpJ7amoBR60JDRt",
  "modified_at": "2021-07-07 23:19:31",
  "qty": 135,
  "total": 381,
  "transaction_id": "txn_1GiW3B3qRiOGICRbjsIiJ60yY",
  "type": "string"
}
Attributes Description
id
string readonly
Object ID
object
string readonly
Value: line_item
amount
number required
Amount of line item
attrs
json
Custom object attributes
created_at
datetime readonly
Timestamp object was created
description
string
Description of invoice item
entry_type
string required
Values: charge payment
incurred_date
date
Date the item was incurred
invoice_id
id required
ID of the associated Invoice object
modified_at
datetime readonly
Timestamp object was last updated
qty
int
Quantity of item
total
int readonly
Total amount of line item
transaction_id
id
ID of the associated Transaction
type
string
Arbitrary type classification