Refund Object Fields

If the sale is partially or fully refunded and it qualifies for a tax refund from the tax authority, relevant information needs to be sent back to the API. You can use the Refund object and the Refund Transactions request to do so.

This object contains the following fields:

FieldDescription
refund_tax_amountRefund tax amount.
refund_total_amountThe total amount that is to be refunded for a full refund.
refund_note_urlRefund note URL.
refund_amountThe amount for a partial refund. Used if no value is specified in the refund_total_amount field.
refund_note_numberSequential refund note number.
refund_keyRefund identifier.
refund_note_subnumberSequential refund note subnumber.
line_keyIf you are modeling a line key refund, you can specify the line key that you want to refund in this field in requests. In responses, this value is returned by the service if you do not include it.
refund_timestampThe time that the refund is issued. The format is yyyy-MM-dd'T'HH:mm:ssZZZ. The default value is the merchant's timezone. The value is used in the invoice and to apply currency conversions.
refund_unique_referenceRefund unique reference per line.
refund_feesList of fees calculated for this refund. See Refund Fees section below.
refund_amount_trimmedIndicates whether the refund amount has been trimmed or not. The value can be true or false.
refund_reasonFree text used to specify a reason for the refund.

Refund Fees

Field

Description

currency_code

3-letter ISO currency code.

amount

Amount in designated currency.

fx_rate

Foreign exchange rate used in calculation

fx_date

The date that is used to generate the rate when the currency is converted for the refund.

This defaults to the transaction's order date.

fx_source

The institution that supplied the rate used for the currency conversion.

seller_code

The seller code for which the fee applies.

type

Choose of the following types:

  • amount-fee: Use this if you want the fee to be calculated based on the amounts.
  • tax-fee: Use this value if you want to denote a tax amount that needs to be treated as a fee, (where the tax liability is the seller's).
ruleThe tax rule that was applied. This decides what type of fee is applied in the type field.
free_keyA unique key that you can use to identify the transaction.
correlated_fee_keyThe key used to identify the keys of related fees.