SparkPay OpenAPI Docs
English
  • English
  • 简体中文
English
  • English
  • 简体中文
  1. API List
  • Product Introduction
  • Quick Guide
    • Integration Preparation
    • Interface Signature Description
  • Must-Read for Integration
    • Interface Rules
    • Asynchronous Notification
    • Interface Error Codes
    • Network and Currency
  • Integration Scenarios
    • Payment
    • Close Order
  • API List
    • Payment Order Creation
      POST
    • Payment Order Query
      GET
    • Payment Order Closure
      POST
    • Payment Order Creation(Pro Edition)
      POST
    • Payment Order Query(Pro Edition)
      GET
  • Frequently Asked Questions
    • Notification Related Issues
    • Redirect Failure Issues
    • Interface Error Issues
    • Test Token Acquisition/Test Network Connection
  • Integration Example
    • Interface Signature Example - PHP
    • Interface Signature Example - Postman
  • Version Notes
    • Version Notes
  1. API List

Payment Order Query(Pro Edition)

正式环境
https://api.sparkpay.top
正式环境
https://api.sparkpay.top
GET
https://api.sparkpay.top
/v4/pro/pay/orders/{merchant_no}/{request_no}
openapi

Request

Path Params
merchant_no
string 
required
Merchant customer number
request_no
string 
required
Merchant payment request number, unique identifier for the merchant platform order
Header Params
User-Agent
string 
required
Content cannot be empty.
Sparkpay-App-Id
string 
required
Merchant Application ID
Sparkpay-Signature
string 
required
Request for Signature
Sparkpay-Timestamp
string 
required
Request timestamp, timestamp (accurate to the second)
Sparkpay-Nonce
string 
required
Request random string

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.sparkpay.top/v4/pro/pay/orders//' \
--header 'User-Agent;' \
--header 'Sparkpay-App-Id;' \
--header 'Sparkpay-Signature;' \
--header 'Sparkpay-Timestamp;' \
--header 'Sparkpay-Nonce;'

Responses

🟢200成功
application/json
Body
code
number 
required
message
string 
required
data
object 
required
payment_order_no
string 
Payment platform system order number
required
order_time
number 
Payment order creation time
required
pay_time
number 
Payment time
optional
completed_time
number 
Order completion time
optional
closed_time
number 
Order closing time
optional
pay_status
string 
Order payment status
required
Payment Status UNPAID;COMPLETED; CLOSED
pricing_amount
string 
Order amount
required
For large units, the smallest decimal precision is 6 places.
pricing_currency
string 
Payment Currency Symbol
required
See Network and Currency
merchant_customer_no
string 
Merchant Customer Number
required
merchant_order_no
string 
Merchant original order number
required
merchant_application_user_id
string 
Merchant application user ID
required
request_no
string 
Merchant payment request number
required
Unique identifier for merchant platform orders
merchant_order_time
number 
Merchant platform order time
required
merchant_order_timeout
number 
Merchant platform order payment timeout duration. Unit: Timestamp(s)
required
merchant_order_desc
string 
Order description, which will be displayed on the checkout page when the user makes the payment.
required
goods_info
string 
Product information
required
business_info
string 
Industry-specific special attributes
required
divide_detail
object 
Revenue-sharing information
optional
If it's a revenue-sharing order, then every field in this item must not be empty.
notify_url
string 
Asynchronous notification URL for payment results
required
redirect_url
string 
required
The callback URL for the payment success page.
extension
string 
Used to expand request parameters
required
app_id
string 
merchant app_id
required
available_payment_currency_networks
array [object {2}] 
required
pay_network_info
object 
Payment network information
optional
Example
{
    "code": 0,
    "message": "string",
    "data": {
        "payment_order_no": "string",
        "order_time": 0,
        "pay_time": 0,
        "completed_time": 0,
        "closed_time": 0,
        "pay_status": "string",
        "pricing_amount": "string",
        "pricing_currency": "string",
        "merchant_customer_no": "string",
        "merchant_order_no": "string",
        "merchant_application_user_id": "string",
        "request_no": "string",
        "merchant_order_time": 0,
        "merchant_order_timeout": 0,
        "merchant_order_desc": "string",
        "goods_info": "string",
        "business_info": "string",
        "divide_detail": {
            "seller_amount": "string",
            "seller_addr": "string",
            "merchant_amount": "string",
            "other_details": [
                {
                    "receiver_addr": "string",
                    "amount": "string"
                }
            ]
        },
        "notify_url": "string",
        "redirect_url": "string",
        "extension": "string",
        "app_id": "string",
        "available_payment_currency_networks": [
            {
                "currency": "string",
                "networks": [
                    0
                ]
            }
        ],
        "pay_network_info": {
            "payer_addr": "string",
            "merchant_ca_addr": "string",
            "merchant_recv_account": "string",
            "tx_hash": "string",
            "pay_network": 0,
            "payment_divide_detail": {
                "seller_amount": "string",
                "seller_addr": "string",
                "merchant_amount": "string",
                "other_details": [
                    {
                        "receiver_addr": "string",
                        "amount": "string"
                    }
                ]
            }
        }
    }
}
Modified at 2025-04-14 05:39:27
Previous
Payment Order Creation(Pro Edition)
Next
Notification Related Issues
Built with