Frequently Asked Questions

How is the total of a transaction sent in an API request?

The total of a transaction must be sent in the amount object. This has several attributes and the parameters to send vary depending on whether or not taxes or tips are applied to the transaction:

ParameterTypeDescriptionValues /Default
currencystringRequired. The currency of the transactionCLP MXN
ivanumberRequired. Value added Tax (VAT). Send it in 0 in case the transaction does not include this tax
subtotal_ivanumberRequired. Net amount of a transaction where iva or any other tax applies. (iva, ica, etc.) but not including the amount of the tip (if applicable). In case the transaction does not have any tax, set this parameter to 0 and send the subtotal in the subtotal_iva0 field
subtotal_iva0numberRequired. Send in this field the subtotal of the transaction if the transaction does not have any tax included. Don’t include the amount of the tip (if applicable). In case the transaction does have taxes, set this parameter to 0 and send the subtotal in the subtotal_iva field
tipnumberOptional. The amount of the tip. Skip this field in case you don’t want to include a tip.
extra_taxesobjectOptional. Additional taxes
airport_taxnumberOptional. Airport tax
travel_agencynumberOptional. Used in airlines
iacnumberOptional. Industry and Trade Tax
icenumberOptional. Special Consumption Tax

Examples

Transaction where IVA (VAT) applies

Net amount = 100000 CLP
iva = 19000 CLP
Total with iva= 119000 CLP

"amount": {
"currency": "CLP",
"iva": 19000,
"subtotal_iva": 100000,
"subtotal_iva0": 0
},

IVA (VAT) exempt transaction

Net amount = 100000 CLP
iva = 0 CLP
Total with iva= 100000 CLP

"amount": {
"currency": "CLP",
"iva": 0,
"subtotal_iva": 0,
"subtotal_iva0": 100000
},

Transaction where IVA (VAT) and tip applies

Net amount = 100000 CLP
iva = 19000 CLP
tip = 10000
Total with iva= 119000 CLP
Total amount of the transaction (with iva and tip included)= 129000 CLP

"amount": {
"iva": 19000,
"tip": 10000,
"currency": "CLP",
"subtotal_iva": 119000,
"subtotal_iva0": 0
},