Scan2Pay
  • Scan2Pay API
  • API Introduction
    • API Environment
    • API Security
    • API Request Format
    • API Response Format
    • SDK
  • API Specification
    • Merchant-Presented QR Code
    • Customer-Presented QR Code
    • Credit Card Payment
    • EasyCard Manipulation
      • Obtain the device list
      • Sign on
      • Query the card number
      • Query the balance
      • Payment
      • Refund
      • Settlement
      • Payment Retry (EasyCard)
    • Refund
    • Single Transaction Query
    • Multiple Transactions Query
    • New Multiple Transactions Query
    • Invoice Query
  • Payment Notification
  • Appendix
    • Payment Method Code
    • Transaction Status Code
    • EasyCard Transaction Status Code
    • Printing Information for EasyCard Transaction
    • Card Reader Setup
Powered by GitBook
On this page
  • Basic format
  • Header
  • Data

Was this helpful?

  1. API Introduction

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

“Header” contains mandatory fields, describe as follows:

Item

Data Type

Sample

Description

Method

String(5)

00000

ServiceType

String(32)

OLPay

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.

PreviousAPI SecurityNextAPI Response Format

Last updated 6 years ago

Was this helpful?

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

Selected Scan2Pay

Payment Method Code
Service Type