SME Refund Settlement

Refund Settlement is a system introduced in September 2022 through which new merchants can receive a retroactive settlement of the fee differential they were unable to benefit from—before being designated as a small or medium-sized merchant—after they are eventually selected for SME preferential fee rates.

Unlike the differential settlement that occurs on a regular basis, this settlement is conducted semi-annually (twice a year). New merchants initially receive the "general (4)" fee rate until their sales basis is confirmed. Once the Credit Finance Association selects the eligible merchants for refund on a semi-annual basis, Hecto Financial requests fee refunds from each card issuer based on previously transmitted sales records.

Based on the final refund results confirmed by the card issuers, Hecto Financial then pays the corresponding differential amount to the merchant. For example, if a business opened in February is confirmed as a "micro" tier merchant in August, the fee differential from February to August approved by the card issuer is refunded retroactively.

This document explains the file integration method and important notes for integration.


Notes

NOTE

SFTP File Transfer Method

This specification uses SFTP file transmission, not HTTP API. The file format is a fixed-length (500 bytes) format. SFTP connection information will be provided separately after the merchant ID is issued.

Communication Specification

ItemDescription
Data transmission methodSFTP file transmission
Access accountSFTP account created and provided separately upon firewall allowance request after merchant ID issuance
MAIN SFTP Server61.252.169.33 (port: 5210)
DR SFTP Server14.34.14.26 (port: 5210)
TEST/REAL distinctionDistinguished by access account or folder
Character encodingUTF-8

File Structure

HEADER RECORD
  DATA RECORD
  ...
  DATA RECORD
TRAILER RECORD

Field Types

TypeDescriptionAlignmentPadding
NNumeric fieldRight'0'
ACharacter fieldLeftSPACE

Refund Settlement Policy

Refund Settlement

  • First implemented in September 2022
  • New merchants initially classified as general (4) merchants receive fee refund settlement for sales that did not benefit from SME preferential fee rates during the half-year period
    • List of eligible merchants for refund is received from the Credit Finance Association
  • Example: For a business opened in February, if SME preferential fee is applied in August, the fee differential (general - micro) from February to August is refunded

Refund Settlement Method

  • Merchants (2nd-tier PG) do not transmit a separate refund settlement request file to Hecto Financial
  • Refund settlement is requested from card companies based on previously transmitted general-tier differential settlement sales data
  • Refund settlement is not possible for returned differential settlement records, so management of returned differential settlement records is essential

Process Flow

  1. Proceed with differential settlement
  2. Semi-annually, request refund settlement from card companies for sales of general-tier merchants among the differential settlement submissions from the previous half-year period that are eligible for refund (Hecto Financial → Card Companies)
  3. Pay refund settlement and upload refund settlement result file for merchants

Refund Settlement Result File Transmission Schedule

FileSchedule
Refund settlement result fileUploaded at 09:00 on April 3 and October 3 each year

Refund Settlement Result (PG Company → Merchant (2nd-tier PG))

File Spec

ItemDescription
File nameREF_RST_AccessAccountID_FileCreationDate (FileCreationDate: YYYYMMDD)
1 Record500 bytes
Production file path/ref_rsp
Test file path/ref_rsp/test

HEADER RECORD

FieldPositionLengthTypeDescription
Record type12AN"01"
File creation date38NYYYYMMDD
Business number1110AN2nd-tier PG business number
PG company identifier2110AN"HECTO"
FILLER31470ANSpace

DATA RECORD

FieldPositionLengthTypeDescription
Record type12AN"11"
Approval/cancellation flag31AN0: Approval / 1: Cancellation
Merchant ID410ANMerchant ID issued by Hecto Financial
Transaction date (approval/cancellation)148NTransaction date (YYYYMMDD). Approval or cancellation date
Intermediate sub-merchant number2210AN2nd-tier PG business number (10 digits)
Final sub-merchant number3210ANSub-merchant business registration number (10 digits)
PG transaction number4240ANPG transaction number (approval or cancellation PG transaction number)
Partial cancellation sequence822NApproval: 0, 1st partial or full cancellation: 1, Nth cancellation: N
Merchant order number84100ANUnique order number generated by the merchant
Sub-merchant sales amount18415NOmit [-] sign for cancellations
Total transaction amount19915NOmit [-] sign for cancellations
Original PG transaction number21440ANOriginal approval PG transaction number
Original transaction date (approval)2548ANOriginal approval transaction date (YYYYMMDD)
Sub-merchant tier2621AN0: Micro / 1: Small1 / 2: Small2 / 3: Small3 / 4: General. Card company response sub-merchant tier; if null value received, responds as 4 (General)
Refund supply value26315NOmit [-] sign for cancellations
Refund VAT27815NOmit [-] sign for cancellations
Refund settlement amount29315NOmit [-] sign for cancellations
Refund settlement date3088NYYYYMMDD
Card company result code3162ANCard issuer response code (refer to card issuer code table)
FILLER318183ANSpace

TRAILER RECORD

FieldPositionLengthTypeDescription
Record type12AN"12"
Total record count37NNumber of records in DATA (approval + cancellation count)
Total sales amount1018ANSub-merchant sales amount in DATA (approval - cancellation amount). [-] sign can be shown
Supply value total2815AN[-] sign can be shown
VAT total4315AN[-] sign can be shown
Settlement amount total5815AN[-] sign can be shown
FILLER73428ANSpace

Code Tables

Card Issuer Result Codes

Error CodeError Message
00Normal
01Card issuer classification value error (does not exist or mismatch)
02Sales amount error (mismatch between original sales amount and sum of sub-merchant sales amounts)
03Duplicate submission (transmitting already processed records)
04Original acquiring returned (original sales does not exist or sales amount error, etc.)
05Acquiring cancellation type error (normal/cancellation mismatch between original and sub-merchant sales)
06Acquiring transmission date error
07Approval date error
08Approval number error (no sales corresponding to original approval number)
09Merchant number error 1 (merchant number is SPACE or unregistered merchant)
10Merchant number error 2 (not a differential settlement merchant number)
11Card number error
12Intermediate sub-merchant error (non-qualifying electronic financial business, etc.)
13Differential settlement delayed submission
14Card issuer classification value normal record returned. In a cart transaction consisting of A, B, C, if C's classification value is in error, C is returned with code 01. However, since A and B have correct classification values but are returned due to C, they are distinguished with code 14
15Returned when differential settlement is submitted after full sales cancellation. Additional return condition reason: to prevent delayed submission of differential settlement cancellation
16Transaction type error
17Not a target date for refund settlement
182nd-tier sub-merchant new merchant not eligible for refund settlement
19Original sales not processed normally
99Other
💬

Need technical support?