Skip to main content

API Description

API Reference

API Description

Merchants integrating with PayCools services must follow the communication protocols, message structures, and signature specifications outlined below to ensure secure and reliable transactions.

1

Communication Protocol

TypeDescription
TransportHTTPS is required for all transactions with TLS version 1.2 or higher. See TLS upgrade notes for details
MethodPOST
Data FormatBoth request and response data use application/json format
Character EncodingUTF-8
Signature AlgorithmSHA256WithRSA
Signature RequirementBoth requests and responses must be verified by signature. For details, see Configuration & Signature
Evaluation LogicCheck protocol fields first, then business response, and finally transaction status
2

Message Structure

Unified API Request Parameters

ParameterRequiredTypeDescription
appIdYesstringMerchant APP ID provided by the platform
signYesstringRSA signature of param
paramYesstringRequest parameters as a string
Request Example
{
"appId": "123456",
"sign": "abcdef",
"param": "{}"
}
HTTP Response
{
"code": 10000,
"message": "Success",
"data": "<business_data_json>"
}

Request Instructions

  1. appId is a fixed value provided by the platform
  2. Construct the request parameters according to the specific API documentation, format them as JSON, and use the result as the value of param
  3. Sign the param with your RSA private key and use the resulting value as sign
3

API Endpoints