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 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

“Header” contains mandatory fields, describe as follows:

Item

Data Type

Sample

Description

StatusCode

String(4)

0000

StatusDesc

String

Success

Description of transaction status

Method

String(5)

10100

ServiceType

String

OLPay

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.

PreviousAPI Request FormatNextSDK

Last updated 5 years ago

Was this helpful?

Please refer to

Selected Scan2Pay

Transaction Status Code
Payment Method Code
Service Type