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 Creation

正式环境
https://api.sparkpay.top
正式环境
https://api.sparkpay.top
POST
https://api.sparkpay.top
/v4/pay/cashier

Request

Header Params

Body Params application/json

Example
{
    "merchant_no": "string",
    "request_no": "string",
    "merchant_order_time": 0,
    "total_amount": "string",
    "merchant_order_currency": "string",
    "merchant_order_timeout": 0,
    "merchant_order_desc": "string",
    "goods_info": "string",
    "merchant_order_no": "string",
    "merchant_application_user_id": "string",
    "notify_url": "string",
    "redirect_url": "string",
    "business_info": "string",
    "divide_detail": {
        "seller_amount": "string",
        "seller_addr": "string",
        "merchant_amount": "string",
        "other_details": [
            {
                "receiver_addr": "string",
                "amount": "string"
            }
        ]
    },
    "extension": "string",
    "receive_network": "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/cashier' \
--header 'User-Agent;' \
--header 'Sparkpay-App-Id;' \
--header 'Sparkpay-Signature;' \
--header 'Sparkpay-Timestamp;' \
--header 'Sparkpay-Nonce;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merchant_no": "string",
    "request_no": "string",
    "merchant_order_time": 0,
    "total_amount": "string",
    "merchant_order_currency": "string",
    "merchant_order_timeout": 0,
    "merchant_order_desc": "string",
    "goods_info": "string",
    "merchant_order_no": "string",
    "merchant_application_user_id": "string",
    "notify_url": "string",
    "redirect_url": "string",
    "business_info": "string",
    "divide_detail": {
        "seller_amount": "string",
        "seller_addr": "string",
        "merchant_amount": "string",
        "other_details": [
            {
                "receiver_addr": "string",
                "amount": "string"
            }
        ]
    },
    "extension": "string",
    "receive_network": "string"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "code": 0,
    "message": "string",
    "data": {
        "cashier_url": "string",
        "request_no": "string"
    }
}
Modified at 2024-10-11 08:59:08
Previous
Close Order
Next
Payment Order Query
Built with