API Request Format

Basic format

Data is in JSON format, the basic content is:

{
    "Header":
    {
        "Method":"00000",
        "ServiceType":"OLPay",
        "MchId":"Account001",
        "TradeKey":"sha256encodedpassword...",
        "CreateTime":"20180101121100"
    },
    "Data":"...."
}

“Header” contains mandatory fields, describe as follows:

Item

Data Type

Sample

Description

Method

String(5)

00000

Fill in 00000 (indefinite payment method), please refer to Payment Method Code

ServiceType

String(32)

OLPay

Selected Scan2Pay Service Type

MchId

String(32)

Account0001

Merchant ID provided by intella

TradeKey

String(128)

sha256...hash

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

CreateTime

String(14)

20180101120100

Request time, the format is "yyyyMMddHHmmss"

All fields in the Header are mandatory

TradeKey is encoded by SHA256, instead of plain text

Data

The contents of “Data” field varies for each API. The content is a String in JSON format.

Last updated