Field | Type | Required | Description | Example |
---|---|---|---|---|
Type |
*string | ➖ | The type of the invoice | Sales |
Number |
*string | ➖ | The invoice number | INV-001 |
IssueDate |
*time.Time | ➖ | The date the invoice was issued | 2024-06-15T12:00:00Z |
DueDate |
*time.Time | ➖ | The due date of the invoice | 2024-07-15T12:00:00Z |
PaidOnDate |
*time.Time | ➖ | The date the invoice was paid | 2024-07-10T12:00:00Z |
Memo |
*string | ➖ | A memo or note on the invoice | Payment for services rendered |
Currency |
*string | ➖ | The currency of the invoice | USD |
ExchangeRate |
*string | ➖ | The exchange rate applied to the invoice | 1.2 |
TotalDiscount |
*float64 | ➖ | The total discount applied to the invoice | 1000 |
SubTotal |
*float64 | ➖ | The subtotal of the invoice | 10000 |
Status |
*string | ➖ | The status of the invoice | Paid |
TotalTaxAmount |
*float64 | ➖ | The total tax amount on the invoice | 1000 |
TotalAmount |
*float64 | ➖ | The total amount of the invoice | 11000 |
Balance |
*float64 | ➖ | The remaining balance on the invoice | 0 |
ContactID |
*string | ➖ | The UUID of the associated contact | 801f9ede-c698-4e66-a7fc-48d19eebaa4f |
AccountingPeriodID |
*string | ➖ | The UUID of the associated accounting period | 801f9ede-c698-4e66-a7fc-48d19eebaa4f |
TrackingCategories |
[]string | ➖ | The UUIDs of the tracking categories associated with the invoice | [ "801f9ede-c698-4e66-a7fc-48d19eebaa4f", "801f9ede-c698-4e66-a7fc-48d19eebaa4f" ] |
LineItems |
[]components.LineItem | ➖ | The line items associated with this invoice | |
FieldMappings |
*components.UnifiedAccountingInvoiceInputFieldMappings | ➖ | The custom field mappings of the object between the remote 3rd party & Panora | { "custom_field_1": "value1", "custom_field_2": "value2" } |