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 Closure

正式环境
https://api.sparkpay.top
正式环境
https://api.sparkpay.top
POST
https://api.sparkpay.top
/v4/pay/orders/close
openapi

Request

Header Params
Content-Type
string 
required
Only supports application/json.
Default:
application/json
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
Body Params application/json
request_no
string 
Payment request number
required
Merchant Order Unique Identifier
merchant_no
string 
Merchant customer number
required
Example
{
    "request_no": "string",
    "merchant_no": "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 POST 'https://api.sparkpay.top/v4/pay/orders/close' \
--header 'User-Agent;' \
--header 'Sparkpay-App-Id;' \
--header 'Sparkpay-Signature;' \
--header 'Sparkpay-Timestamp;' \
--header 'Sparkpay-Nonce;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "request_no": "string",
    "merchant_no": "string"
}'

Responses

🟢200成功
application/json
Body
request_no
string 
Payment request number
required
Merchant Order Unique Identifier
merchant_no
string 
Merchant customer number
required
merchant_order_no
string 
Merchant original order number
required
Example
{
    "request_no": "string",
    "merchant_no": "string",
    "merchant_order_no": "string"
}
Modified at 2024-10-11 08:42:09
Previous
Payment Order Query
Next
Payment Order Creation(Pro Edition)
Built with