https://api.payload.com/invoices
Nested Objects
https://api.payload.com/invoices/{id}/attachments
https://api.payload.com/invoices/{id}/billing_schedule
https://api.payload.com/invoices/{id}/customer
https://api.payload.com/invoices/{id}/items
https://api.payload.com/invoices/{id}/payment_links
https://api.payload.com/invoices/{id}/processing
https://api.payload.com/invoices/{id}/processing_settings
Example
{
"id": "inv_1wpwi8r6mQNOzNicatRxv40Vc",
"object": "invoice",
"amount_due": 157.83,
"attachments": [],
"attrs": {},
"autopay_allowed": true,
"billing_schedule_id": "bscd_WP8HqmJqxhYqQ4MHmy8lWGMp",
"created_at": "2024-08-21 13:35:03",
"customer_id": "acct_8vshIS6CIPiZD5tfHM7ahgK0",
"description": "string",
"due_date": "2024-08-21",
"external_uid": "string",
"items": [],
"modified_at": "2024-08-21 13:35:03",
"number": "string",
"paid_timestamp": "2024-08-21",
"processing_id": "acct_1uVz9uQtt7OU3gTTCYrpuvKvM",
"processing_settings_id": "ps_1c7pmfUsvWFyemlBPw6jRdkOg",
"status": "draft",
"total_due": 612.1,
"total_paid": 659.21,
"type": "string",
"billing_contact": {
"city": "string",
"email": "string",
"name": "string",
"phone": "string",
"postal_code": "postal_code",
"state_province": "string",
"street_address1": "string",
"street_address2": "string",
"website": "string"
}
}
| Attributes | Description |
|---|---|
idstring readonly |
Object ID |
objectstring readonly |
Value: invoice |
amount_duenumber readonly |
Remaining amount due |
attachmentslist |
Array of associated Invoice Attachment objects |
attrsjson |
Custom object attributes |
autopay_allowedbool |
Allow or disable automatic payments |
billing_schedule_idid |
ID of the associated Billing Schedule object |
created_atdatetime readonly |
None |
customer_idid required |
ID of the associated Customer Account object |
descriptionstring |
Description of the invoice |
due_datedate required |
Date the invoice is due |
external_uidstring |
Optional unique external id used for lookup and upsert |
itemslist |
Array of associated Line Item objects |
modified_atdatetime readonly |
None |
numberstring |
Incrementing invoice number |
paid_timestampdate readonly |
Timestamp invoice was fully paid |
processing_idid |
ID of the associated Processing Account object |
processing_settings_idid readonly |
ID of the processing settings object |
statusstring |
Values: draft open unpaid partially_paid paid closed sync |
total_duenumber readonly |
Total amount due |
total_paidnumber readonly |
Total amount paid |
typestring |
Arbitrary type classification |
| billing_contact: | |
|---|---|
citystring readonly |
City of the billing contact |
emailstring readonly |
Email of the billing contact |
namestring readonly |
Name of the billing contact |
phonestring readonly |
Phone number of the billing contact |
postal_codepostal_code readonly |
Zipcode of the billing contact |
state_provincestring readonly |
State of the billing contact |
street_address1string readonly |
Street address of the billing contact |
street_address2string readonly |
Street address 2 of the billing contact |
websitestring readonly |
Website of the billing contact |