Placeholders for the Invoice entity

The following placeholders are used for the Invoice entity.

PlaceholderDescription
invoice.idThe invoice ID

invoice.document_number

The invoice number assigned by the platform or modified by a third-party ERP system for a postpaid invoice with external management in accordance with the third-party invoice name (see Approve postpaid invoice)
invoice.totalThe total amount of the invoice payment. With the number_in_words filter and the localization key, it returns the localized total amount of the invoice payment in words
invoice.total_in_wordsThe total amount of the invoice payment in words
invoice.created_atThe date of the invoice creation
invoice.from_dateThe period of an invoice: from (in the following format: Sun, 01 May 2016)
invoice.to_dateThe period of an invoice: to (in the following format: Sun, 01 May 2016)
invoice.to_date_humanThe period of an invoice: to (in the following format: "01.01.2016")
invoice.statusThe status of an invoice
invoice.date_todayThe current date (in the following format: "01.01.2016")
invoice.plan_custom_attributes.item

The value of an attribute of a plan where item is the key of an attribute

invoice.plan_resources_custom_attributes.item

The value of an attribute of a plan resource where item is the key of an attribute

invoice.has_attachedIndicates whether a file of a third-party invoice is attached to a payment for a postpaid invoice
invoice.attached.name

The placeholder is deprecated. It is recommended to use invoice.link.name and invoice.file.name instead.

The file name of a third-party invoice attached to a payment for a postpaid invoice with external management (see Managing invoices for the Postpay model by a third-party ERP system)

invoice.attached.url

The placeholder is deprecated. It is recommended to use invoice.link.data and invoice.file.data instead.

A link to a file of a third-party invoice attached to a payment for a postpaid invoice with external management

invoice.due_dateThe due date set for a payment after approving the linked postpaid invoice with external management

invoice.link.name

The third-party invoice file name from the link — if a third-party ERP system attached to a payment a link to the third-party invoice rather than the file itself (see Managing invoices for the Postpay model by a third-party ERP system)

invoice.link.data

A link to a third-party invoice — if a third-party ERP system attached to a payment a link to the third-party invoice rather than the file itself
invoice.file.nameThe third-party invoice file name — if a third-party ERP system attached to a payment a file of the third-party invoice rather than a link to the file (see Managing invoices for the Postpay model by a third-party ERP system)
invoice.file.dataThe third-party invoice file in the base64 encoding — if a third-party ERP system attached to a payment a file of the third-party invoice rather than a link to the file
invoice.subscriptions

An iterator to display an array of subscriptions related to the invoice

{% for subscription in invoice.subscriptions %} <tr>
  <td>{{ subscription.id }}</td>
  <td>{{ subscription.name }}</td>
  <td>{{ subscription.status }}</td>
</tr> {% endfor %} 

PlaceholderDescription
subscription.idThe ID of the subscription from the array of the subscriptions related to the invoice
subscription.nameThe name of the subscription from the array of the subscriptions related to the invoice
subscription.statusThe status of the subscription from the array of the subscriptions related to the invoice