Payment Types
This page lists supported HeroJSON payment types with their structure and key attributes for integration.
Card Payment
Represents a payment made using a physical payment card via a payment terminal.
Card Payment Example
Card Payment Fields
type
String
Payment type (CARD)
amount
Integer
Paid amount in fractional unit
(POINT ECR API Amount, field 14)
attributes
Object
Card Payment attributes
String
Card type description if available. (e.g. Debit Mastercard)
String
Payment Card Masked PAN. At least 4 last digits.
(POINT ECR API Card Number field 6)
String
Payment ISO 8601 datetime with offset
(POINT ECR API Date and time of transaction field 13)
String
Terminal ID
(POINT ECR API Reader serial number, field 16)
String
Retrieval Reference Number, RRN
(POINT ECR API Filing code, field 12)
String
Payment Authorization code (6 characters, alphanumeric)
String
Payment authorization method free text
String
Transaction ID
(POINT ECR API TransactionID, field 11)
String
Type of Transaction
String
Card holder transaction receipt copy as raw text including newlines.
(POINT ECR API Payer’s receipt texts, field 19)
Cash Payment
Represents a payment made in cash, including the amount handed over by the customer for calculating change.
Cash Payment Example
Cash Payment Fields
type
String
CASH
amount
Integer
Paid amount in fractional unit
attributes
Object
Cash payment attributes
Integer
Amount that is handed in cash in fractional unit
Online Payment
Represents a payment processed through an online payment service provider (PSP), such as Paytrail, Stripe, or Klarna.
Online Payment Example
Online Payment Fields
type
String
ONLINE_PAYMENT
amount
Integer
Paid amount in fractional unit
attributes
Object
Online Payment details
String
String
String
Type of Transaction
String
String
Bank Transfer filing code (relevant mostly for bank transfers in Finland)
String
Reference number of online order / purchase
String
Transaction timestamp as ISO 8601 datetime with offset
String
Payment Authorization code (6 characters, alphanumeric)
String
Payment Retrieval Reference Number
String
Settlement Reference Number
String
Transaction identifier
Online Payment Providers
Online Payment Methods
Online Payment Card Details Object
cardDetails
Object
Payment Card details in case of an underlying Card Payment
String
String
Payment Card last four digits
String
Payment Card Bank Identification Number
String
ISO 3166-1 alpha-2 country code
String
Payment Card type
Known Card Brands
Gift Card Payment
Represents a payment made using a prepaid or store-issued gift card, optionally including issuer, balance, and reference details.
Gift Card Payment Example
Gift Card Payment Fields
type
String
GIFT_CARD
amount
Integer
Paid amount in fractional unit
attributes
Object
Gift Card details
String
Gift Card ID
String
Gift Card issuer name
String
Gift Card title or name
String
Purchase or Order reference number
String
Gift Card expiration date as ISO 8601 datetime with offset
Number
Gift Card balance before purchase in fractional unit
Number
Gift Card balance after purchase in fractional unit
Voucher Payment
Represents a payment made using a voucher or coupon, identified by a reference number or id.
Voucher Payment Example
Voucher Payment Fields
type
String
VOUCHER
amount
Integer
Paid amount in fractional unit
attributes
Object
Payment details
String
Voucher reference number or id
Loyalty Payment
Represents a payment or partial payment made using a loyalty or bonus program, such as a store-issued loyalty card.
Loyalty Payment Example
Loyalty Payment Fields
type
String
LOYALTY
amount
Integer
Paid amount in fractional unit
attributes
Object
Loyalty card details
String
Free text card type / name
String
Masked Loyalty Card number
Other Payment
Represents a non-standard payment method not covered by predefined types, including an external type identifier for classification.
Other Payment Example
Other Payment Fields
type
String
OTHERPAYMENT
amount
Integer
Paid amount in fractional unit
attributes
Object
Payment details
String
Payment type free text
Payment Custom Attributes
All payment objects support custom attributes to allow including data that is not covered by the core specification.
customAttributes
Array
Key value pair list
String
Free text key
String
Free text value
Last updated