Invoice API Generator Template Fields
This section provides an explanation of each field in the Invoice API Generator template, detailing their requirements, types, and usage.
To facilitate your understanding of the template, the explanation for each field in the template is provided in the following table:
| Field | Required? | Type | Value | Character Limit | Description |
|---|---|---|---|---|---|
| Invoice.AccountId | Conditional | zns:ID | 32 | The account ID of the invoice owner. This field is required if | |
| Invoice.AccountNumber | Conditional | zns:ID | 32 | Unique account number assigned to the account. This field is required if | |
| Invoice.IncludesOneTime | No | boolean | TRUE, FALSE | 5 | Specifies whether the invoice includes one-time charges. You can use this field only with the generate() call for the Invoice object. |
| Invoice.IncludesRecurring | No | boolean | TRUE, FALSE | 5 | Specifies whether the invoice includes recurring charges. You can use this field only with the generate() call for the Invoice object. |
| Invoice.IncludesUsage | No | boolean | TRUE, FALSE | 5 | Specifies whether the invoice includes usage charges. You can use this field only with the generate() call for the Invoice object. |
| Invoice.Date | No | date | 29 | The format should align with the value for the Date Format field in the Invoice API Generator. If not specified, the value for | |
| Invoice.TargetDate | Yes | date | 29 | This date is used to determine which charges are to be billed. All charges that are to be billed on this date or prior will be included in this bill run. The format should align with the value for the Date Format field in the Invoice API Generator. | |
| Invoice.Post | Yes | boolean | TRUE, FALSE | 5 | Specifies whether to post this invoice. The default value is FALSE. |