Airgram

Guides
/
/
Output types

Invoice

Product invoice.

This is an alias for the InvoiceUnion type.


NameTypeDescription
_"invoice"
currencystring ISO 4217 currency code
priceParts A list of objects used to calculate the total price of the product
maxTipAmountnumber The maximum allowed amount of tip in the smallest units of the currency
suggestedTipAmountsnumber[] Suggested amounts of tip in the smallest units of the currency
isTestboolean True, if the payment is a test payment
needNameboolean True, if the user's name is needed for payment
needPhoneNumberboolean True, if the user's phone number is needed for payment
needEmailAddressboolean True, if the user's email address is needed for payment
needShippingAddressboolean True, if the user's shipping address is needed for payment
sendPhoneNumberToProviderboolean True, if the user's phone number will be sent to the provider
sendEmailAddressToProviderboolean True, if the user's email address will be sent to the provider
isFlexibleboolean True, if the total price depends on the shipping method