5.2 Query Order

1. Overview

Use this API to inquire about the transaction status and other information about a previously submitted payment request.

2. Request Info

  • Method: post

  • Path: https://prod-openapi-v2.newpay.la/beta/pay/uniQueryPay

2.1 Request Header

Key
Value

Content-Type

application/json

2.2 Request Data

Name
Description
Type
Required

appId

Unique identifier assigned to a third-party application platform

string

true

mchId

Unique identifier assigned to a third-party merchant

string

true

newpayOrderNo

Order number generated in NewPay

string

false

mchOrderNo

Order number in third-party merchant

string

false

sign

string

true

circle-info

Although both newpayOrderNo and mchOrderNo are optional, at least one of them must be provided.

2.3 Response Data

Name
Description
Type

success

Success flag: true/false

boolean

message

Response message

string

code

string

timestamp

Response timestamp

long

data

Result

object

> appId

Unique identifier assigned to a third-party application platform

string

> payStatus

SUCCESS/EXPIRED/PROCESSING/FAIL

string

> payMethod

Payment method: 1.Wechat; 11.Alipay+;

int

> orderType

STATIC_CODE: 静态收款码

DYNAMIC_CODE:动态收款码

MICRO_CODE:扫码收款(反扫)

MINI_APP:微信小程序

APP:线上APP

ONLINE:线上支付

AUTO_DEBIT:线上自动扣款

string

> orderAmt

Payment amount

json

>> value

amount

string

>> currency

CNY: 人民币 USD: 美元 LAK: 老挝币

string

> mchOrderNo

Order number in third party mechant.

string

> newpayOrderNo

NewPay order number

string

> subject

Commodity title

string

> settlementStatus

Settlement status: 0: No settlement; 1: In settlement;

2: Have already settled

int

> paytime

payment timestamp

long

> attach

Third party order supplementary fields

string

> sign

Data signature

string

Last updated