Query Transaction API

API Request Parameters(HTTP-Request-Body )

Params Name

Description

Required

Notes

action

Action name (Constant Value)

Y

"CC_QUERYPAY"

version

Version number

Y

"2.0"

merchant_id

Merchant ID

Y

Provided by OTT Pay

data

Encrypted Transaction Data

Y

See "Data" table below

md5

Message Digest

Y

☑️ Request Example(JSON Data):

{
    "action":"CC_QUERYPAY",
    "version":"2.0",
    "merchant_id":"QC00005496",
    "data": "zTadPG0YM4gD1WOFqxg7wn3vmU20NjCnCUOOnE9mTTkxYraQDflljA8W3azYG9MuOvOyl3cZhafH+io6PiWdZCwRmi3HGa19BvT215IIxRy2HvYe0Sqs2lxshm9E4y5F1gJ7HHMTqpY0wIA4DsuWA97UC55adB2G86VbanI7B5a3kErApr5mbAoE7wcNbDJfGh4CBbSoRxQyiGZ48SvYuIW/sclT4yu6okjo6CY3xL4=",
    "md5":"6AFB2E94A70D9A208F101723700EB287"
}

☑️ Data(JSON Data, to be encrypted):

Params Name

Description

Required

Notes

orderId

Order ID

Y

The order Id in purchase

merchant_id

Merchant ID

N

shopId

Store ID

N

termId

Device ID

Y

String, “CNP_ECOM”

channelType

Payment Channel identity

Y

String, “PORTICOECOM”

bizType

Payment type

Y

String “portico_card”

cc_channelType

Payment platform

N

String “GLBPAYMNTS”

API Response Parameters(HTTP-Response-Body)

Params Name

Description

Required

Notes

rsp_code

Response code

Y

refer to Appendix B

rsp_msg

Response message

Y

data

Encrypted Data

Y

See "Data" table below

md5

Message Digest

Y

☑️ Response Example(JSON Data):

☑️ Transaction Data(JSON format, After decrypted)

Params Name

Description

Required

Notes

rspCode

Inquiry Response code

Y

rspMsg

Inquiry Response message

Y

order_status

Order status

Y

trade_time

Transaction time

N

orderId

Order ID

N

bizpay_order_id

Order Id from payment gateway

N

The transaction Id from payment gateway

amount

Order total amount

N

Payment amount

receipt_amount

Amount on receipt

N

Payment amount for receipt

buyer_pay_amount

Users pay amount

N

tip

Tip Amount

N

refund_amount

Refund amount

N

Only exist for a refunded order

Last updated

Was this helpful?