Skip to main content

API Response Format

All QFPay APIs return JSON-formatted responses. A standard successful response will follow the structure below:

Field Description

Signature Verification

In critical integrations, developers are encouraged to verify the response signature (if present in headers) to ensure data integrity.
The response may also include the X-QF-SIGN and X-QF-SIGNTYPE headers, which can be validated by:
  1. Extracting the data fields in the same sorted order.
  2. Concatenating them into a string with format: key1=value1&key2=value2&...
  3. Appending the client key.
  4. Generating the MD5 hash and comparing it to the received signature.
For the full logic to generate and verify the signature, refer to Signature Generation.