Skip to content

Payin Query API ​

Overview ​

Payin Query API queries payin order status and details. Merchants can get real-time order status and processing results.

API Info ​

  • Endpoint: POST /api/ar/payin-query
  • Method: POST
  • Content-Type: application/json

Request Headers ​

All API requests require the following headers, see API Signature:

HeaderTypeRequiredDescription
Content-TypestringYapplication/json, fixed
MerchantIdstringYMerchant ID provided by Veloraya
TimestampstringYCurrent timestamp (ms), anti-replay
NoncestringYRandom string, unique per request, anti-replay
SignaturestringYRequest signature (RSA), Base64 encoded

Request Parameters ​

ParameterTypeRequiredDescription
merchantOrderIdstringNMerchant order ID (one of orderId/merchantOrderId required)
orderIdstringNPlatform order ID (one of orderId/merchantOrderId required)

Request Example ​

By platform order ID ​

json
{
  "orderId": "PAYIN48973464"
}

By merchant order ID ​

json
{
  "merchantOrderId": "ORDER46791673"
}

Response Format ​

FieldTypeDescription
codeint200 success, 500 failure
msgstringResponse message
dataobjectResponse data, order info on success

Response Parameters (data) ​

FieldTypeDescription
orderIdstringPlatform order ID
merchantOrderIdstringMerchant order ID
amountBigDecimalOrder amount
feeBigDecimalFee
currencystringCurrency code
completeDatetimestringCompletion time (yyyy-MM-dd HH:mm:ss), empty if not complete
orderStatusstringOrder status, see enum
resultCodestringError code (on failure)
resultDescstringError description (on failure)

Order status enum ​

ValueDescription
PENDINGPending
SUCCESSSuccess
FAILEDFailed

Notes ​

  • Headers: all required headers must be passed, see API Signature
  • Signature: all requests must include a valid signature
  • Query scope: only this merchant's orders can be queried; merchantId is checked
  • Logging: log queries for audit

Released under the MIT License.