Placeholders for the Payment and Guaranteed payment entities

The following placeholders are used for the Payment and Guaranteed payment entities.

EntityPlaceholderDescription

Payment


 
payment.idThe payment ID

payment.payment_method

The payment method name
payment.document_numberThe payment number
payment_document_numberThe number of a payment for a sales order, renewal order, or change order linked to a manual operation
payment.totalThe total amount of the payment
payment.total_in_wordsThe total amount of the payment in words
payment.created_atThe date and time of the payment creation
payment.expiration_dateThe date when a payment, if not completed, gets the Expired status (DD.MM.YYYY)
payment.due_dateThe latest date for completing a payment (DD.MM.YYYY). Calculated as payment.expiration_date minus 1 day
payment.days_leftThe number of days prior to the end of the payment expiration period
payment.statusThe current status of the payment
payment.status.wasThe previous status of the payment
payment.commentAdditional information about the payment
payment.subscriptions

An iterator that allows displaying an array of subscriptions that are related to the payment

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

subscription.idThe ID of the subscription from the array of the subscriptions related to the payment
subscription.nameThe name of the subscription from the array of the subscriptions related to the payment
subscription.statusThe status of the subscription from the array of the subscriptions related to the payment
payment.orders

The list of the orders linked to the payment

{% for order in payment.orders %}
  order
{% endfor %}
payment.order_charges

The list of the charges linked to the payment

{% for order_charge in payment.order_charges %}
  order_charge
{% endfor %}

Charge attributes: description, quantity, unit_price, unit_price_in_original_currency, unit_price_without_tax, discount_amount, discount_amount_in_original_currency, discounted_unit_price_without_tax, amount_in_original_currency, amount_without_tax, period, tax_percent, amount, discount_ids, operate_from, operate_to, resource_name

payment.order_charges.sizeThe number of charges in a PDF receipt
payment.grouped_order_charges

The list of the grouped charges linked to the payment (parameters are set for the first charge in a group if not specified otherwise): id; name; description; unit_price (price); amount (specified as the total amount for a group); duration (period); discount_ids; discount_amount (specified as the total amount for a group); quantity (specified as the total amount for a group); operate_from; operate_to; type; plan_id; plan_resource_id; unit_price_without_tax; discounted_unit_price_without_tax; amount_without_tax (specified as the total amount for a group); unit_price_with_discount; tax_percent.

Charges are grouped if have the following identical parameters:

  • reseller_id
  • account_id
  • subscription_id
  • resource_id
  • operate_from
  • operate_to
  • duration
  • unit_price
  • status
  • type
  • taxes_amount
  • discount_id
  • original_amount_currency
  • currency_rate
  • currency_unit
payment.grouped_order_charges.sizeThe number of grouped charges in a PDF receipt
payment.linkThe link to the Payments section of the Customer Control Panel filtered by the payment number (for example, https://{{domain}}/accounts/{{account_id}}/payments?document_id=AP000000834)
payment.panel_link

The link to the payment in the Customer Control Panel

payment.downloadableBoolean; whether the link to the payment is available
payment.receipt_urlThe link to the receipt
payment.plan_custom_attributes.item

The set of the custom attributes of the payment (see Managing attributes, where item is the key of the attribute

payment.plan_resources_custom_attributes.item

The value of the attributes of the plan resource where item is the key of the attribute

payment.invoice_from_date

The start date of the period of the postpaid Invoice linked to the payment (DD.MM.YYYY)

payment.invoice_to_dateThe end date of the period of the postpaid Invoice linked to the payment (DD.MM.YYYY)
payment.invoice_document_numberThe invoice number linked to the payment
payment.external_invoices_data

An iterator that allows displaying an array of third-party invoices linked to the payment (see Managing invoices for the Postpay model by a third-party ERP system)

{% for external_invoice in payment.external_invoices_data %} <tr>
  <td>{{external_invoice.link.name}}</td>
  <td>{{external_invoice.link.data}}</td>
  <td>{{external_invoice.file.name}}</td>
  <td>{{external_invoice.file.data}}</td>
</tr> {% endfor %} 

A third-party invoice can be represented as a link or a file:

external_invoice.link.name

Third-party invoice file name from the link

external_invoice.link.data

Link to a third-party invoice

external_invoice.file.name

Third-party invoice file name

external_invoice.file.data

Third-party invoice file in the base64 encoding
payment.invoices_totalThe total of all invoices linked to a payment (taxes included)
payment.invoices_external_totalThe total of all external totals of invoices issued by a third-party ERP system and linked to a payment (see Managing invoices for the Postpay model by a third-party ERP system)
payment.invoices_currency_external_totalThe currency code of the first among all invoices issued by a third-party ERP system and linked to a payment (see Managing invoices for the Postpay model by a third-party ERP system)

Guaranteed payment

guaranteed_payment.idThe guaranteed payment ID
guaranteed_payment.statusThe status of the guaranteed payment
guaranteed_payment.totalThe total amount of the guaranteed payment
guaranteed_payment.expiration_dateThe date and time of the guaranteed payment
guaranteed_payment.days_leftThe number of days before the expiration date of the guaranteed payment