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

Request

Header Params

Body Params application/json

Example
{
    "request_no": "string",
    "merchant_no": "string"
}

Request Code 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

Example
{
    "code": "string",
    "message": "string",
    "data": {
        "request_no": "string",
        "merchant_no": "string",
        "merchant_order_no": "string"
    }
}
Modified at 2025-07-04 09:58:20
Previous
Payment Order Query
Next
Payment Order Creation(Pro Edition)
Built with