API Response Format

Basic Format

Data is in JSON format as follow:

{
    "Header":
    {
        "StatusCode":"0000",
        "StatusDesc":"Trade Success",
        "Method":"10100",
        "ServiceType":"OLPay",
        "MchId":"Account0001",
        "ResponseTime":"20180101120100"
    },
    "Data":
    {
        "xxx":"xxx"
    }
}

“Header” contains mandatory fields, describe as follows:

Item

Data Type

Sample

Description

StatusCode

String(4)

0000

Please refer to Transaction Status Code

StatusDesc

String

Success

Description of transaction status

Method

String(5)

10100

ServiceType

String

OLPay

Selected Scan2Pay Service Type

MchId

String

Account0001

Merchant ID

ResponseTime

String

20180101120200

Response time, the format is "yyyyMMddHHmmss"

Data

The contents of “Data” field are different depending on each API definition. The content is String type in JSON format.

Last updated