Settlement

Calling for daily settlement before closing the account

Please contact intella if auto-settlement on 00:00 is required

Request

Item

Mandatory

Data Type

Sample

Description

Method

YES

String(5)

31800

Fill in 31800 (EasyCard transaction)

ServiceType

YES

String

Settlement

Selected Scan2Pay Service type

MchId

YES

String

Account0001

Merchant ID provided by intella

TradeKey

YES

String

sha256...hash

Marchant password provided by intella, this password must be encoded by SHA256

CreateTime

YES

String

20180101120000

Request time, the format is "yyyyMMddHHmmss"

Data

Item

Mandatory

Data Type

Sample

Description

DeviceId

YES

String

01301234

Terminal (reader) numbe

Retry

YES

String

0

Retry time, fill in 0

Response

Header

Item

Data Type

Sample

Description

StatusCode

String(4)

0000

StatusDesc

String

Success

Description of transaction status

Method

String(5)

31800

Payment method code (EasyCard payment is 31800)

ServiceType

String

Settlement

Selected Scan2Pay Service type

MchId

String

Account0001

Merchant ID

ResponseTime

String

20180101120000

Transaction response time, the format is “yyyyMMddHHmmss”

Data

Item

Data Type

Sample

Description

TerminalTXNNumber

String

233856

HostSerialNumber

String

233856

TerminalID

String

08100DE0A57E

SettlementStatus

String

0

TxReserveAmount

String

0

Total top-up amount

TxTradeAmount

String

20000

Total payment amount

TxRefundAmount

String

200

Total refund amount

TxCancelAmount

String

0

Total amount of top-up cancellation

TxReserveCount

String

0

Numbers of top-up

TxTradeCount

String

200

Numbers of payment

TxRefundCount

String

2

Numbers of refund

TxCancelCount

String

0

Numbers of top-up cancellation

TXNResult

String

Success

Transaction result

Retry

String

0

ErrorCode

String

000000

NewAESKey

String

API Example

Request

{
  "Header": {
    "Method": "31800",
    "ServiceType": "Settlement",
    "MchId": "myMchId",
    "TradeKey": "9af15b336e6a9619928537df30b2e6a2376569fcf9d7e773eccede65606529a0",
    "CreateTime": "20180715105152"
  },
  "Data": "{\"DeviceId\":\"01304187\",\"Retry\":\"0\"}"
}

Response

{
  "Header": {
    "StatusCode": "0000",
    "StatusDesc": "STATUS_SUCCESS",
    "Method": "31800",
    "ServiceType": "Settlement",
    "MchId": "myMchId",
    "ResponseTime": "20180715105156"
  },
  "Data": {
    "TerminalTXNNumber": "105153",
    "HostSerialNumber": "105153",
    "TerminalID": "5B100DE00F97",
    "SettlementStatus": "0",
    "TxReserveAmount": 0,
    "TxTradeAmount": 20,
    "TxRefundAmount": 10,
    "TxCancelAmount": 0,
    "TxReserveCount": 0,
    "TxTradeCount": 2,
    "TxRefundCount": 1,
    "TxCancelCount": 0,
    "TXNResult": "Success",
    "Retry": "0",
    "ErrorCode": "000000",
    "NewAESKey": ""
  }
}

Last updated

Was this helpful?