Transaction Details

transaction.Id

Transaction IDs are made up of alpha-numeric characters and are at least 6 characters in length. Example: “gy46fg”

transaction.AvsErrorResponseCode

The AVS error response code will be populated if there was an error when checking AVS. If this is not set then you will have an AvsPostalCodeResponseCode and an AvsStreetAddressResponseCode.

transaction.AvsPostalCodeResponseCode

If there was an error processing AVS this will not be set and instead you will have an AvsErrorResponseCode. Otherwise this will populated as one of the following values.

transaction.AvsStreetAddressResponseCode

If there was an error processing AVS this will not be set and instead you will have an AvsErrorResponseCode. Otherwise this will populated as one of the following values.

transaction.Amount

A BigDecimal object for the transaction amount. If you settle a different amount than what was authorized, this will return the amount settled.

transaction.CreatedAt

Date/time the transaction was created.

transaction.CreditCard

The credit card details used to process this transaction. If the transaction was created using vault tokens, then the CreditCardDetails is a snapshot of the credit card in the vault at the time the transaction was created. So if the credit card in the vault is updated after the transaction is created, transaction.CreditCard.MaskedNumber will return the number that was used to process the transaction, while transaction.VaultCreditCard.MaskedNumber will return the current masked number for the token that was used to create the transaction.

transaction.CreditCard.Bin

The first 6 digits of the credit card number.

transaction.CreditCard.CardType

The type of the credit card.

transaction.CreditCard.CardholderName

transaction.CreditCard.CustomerLocation

“US” if the billing address is in the US or not specified. “International” if the billing country is not in the US.

transaction.CreditCard.ExpirationMonth

Formatted as MM.

transaction.CreditCard.ExpirationYear

Formatted as YYYY.

transaction.CreditCard.ExpirationDate

Formatted as MM/YYYY.

transaction.CreditCard.LastFour

The last four digits of the credit card number.

transaction.CreditCard.Token

The vault token for the credit card. This is the only attribute that is not a snapshot. If you update your vault tokens after creating a transaction, this attribute will return the new token rather than what the token was at the time the transaction was created.

transaction.CreditCard.MaskedNumber

The credit card number with middle digits masked, e.g. 510510******5100. Currently we always return six asterisks in the middle, even if the actual credit card number isn’t 16-digits long.

transaction.Customer

The customer details used to process this transaction. If the transaction was created using vault tokens, then the CustomerDetails is a snapshot of the customer in the vault at the time the transaction was created. So if the customer in the vault is updated after the transaction is created, transaction.Customer.FirstName will return the first name that was used to process the transaction, while transaction.VaultCustomer.FirstName will return the current first name for the customer that was used to create the transaction.

transaction.CurrencyIsoCode

The currency for the transaction. “USD” for US dollars. See the ISO 4217 codes.

transaction.CustomFields

A hash of custom fields stored on the transaction.

transaction.CvvResponseCode

transaction.GatewayRejectionReason

Indicates why the transaction was rejected. Only set if the status is gateway rejected.

Note: This was added in version 2.5.0

transaction.MerchantAccountId

transaction.OrderId

transaction.Billing

The billing address details used to process this transaction. If billing address was stored in the vault, then the BillingAddressDetails is a snapshot of the address in the vault at the time the transaction was created. So if the address in the vault is updated after the transaction is created, transaction.BillingAddress.PostalCode will return the postal code, while transaction.VaultBillingAddress.PostalCode will return the current postal code for the address in the vault.

The address details are similar to those found on the address details page.

transaction.Shipping

Same as transaction.Billing above.

transaction.ProcessorAuthorizationCode

The authorization code from the processor.

transaction.ProcessorResponseCode

See the list of possible processor responses.

transaction.ProcessorResponseText

See the list of possible processor responses.

transaction.RefundIds

If this transaction was refunded, this will return a list of the ids for any transactions that refunded this transaction.

transaction.RefundedTransactionId

If this transaction is a refund, this will return the ID of the sale transaction that was refunded by this one.

transaction.Status

See the transaction overview. Possible values:

transaction.StatusHistory

transaction.SubscriptionId

transaction.SubscriptionDetails.billingPeriodStartDate

transaction.SubscriptionDetails.billingPeriodEndDate

transaction.Type

Indicates if the transaction is a sale or a credit. Possible values:

transaction.UpdatedAt

The timestamp of the latest time the transaction was updated.

transaction.VaultBillingAddress

transaction.VaultCreditCard

transaction.VaultCustomer

transaction.VaultShippingAddress