跳转至

订单

版本:v1

认证方式:Bearer Token

目录

接口列表

获取订单列表

接口说明

根据查询条件获取订单列表

基本信息

  • 接口名称:获取订单列表
  • 请求方式:GET
  • 请求路径:/Order/{appKey}

请求参数

Path 参数
参数名 示例值 参数描述 是否必填
appKey - -
Query 参数
参数名 类型 示例值 参数描述 是否必填
status string - 订单状态
orderNo string - 系统订单号
tradeNo string - 支付平台单号
userId integer - 用户ID
pctType string - 商品类型
pctId string - 商品ID
pctName string - 商品名称
skip integer - 跳过的条数
take integer - 拉取的条数

示例代码

import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Map;


public class ApiClient {
    public static void main(String[] args) {
        HttpClient client = HttpClient.newHttpClient();

        HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
            .uri(URI.create("{server}/Order/{appKey}"))
            .header("Authorization", "Bearer {your_access_token}");


        requestBuilder.method("get", HttpRequest.BodyPublishers.noBody());

        try {
            HttpResponse<String> response = client.send(requestBuilder.build(), HttpResponse.BodyHandlers.ofString());
            System.out.println(response.body());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
import requests

url = "{server}/Order/{appKey}"
headers = {
    "Authorization": "Bearer {your_access_token}"
}

response = requests.get(
    url,
    headers=headers
)

print(response.json())
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
    "bytes"
    "encoding/json"
)

func main() {
    client := &http.Client{}

    var req *http.Request
    var err error

    req, err = http.NewRequest("get", "{server}/Order/{appKey}", nil)
    if err != nil {
        panic(err)
    }

    req.Header.Add("Authorization", "Bearer {your_access_token}")

    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Println(string(body))
}
const axios = require('axios');

const config = {
    method: 'get',
    url: '{server}/Order/{appKey}',
    headers: {
        'Authorization': 'Bearer {your_access_token}'
    }
};

axios(config)
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(error);
    });
<?php

$url = "{server}/Order/{appKey}";
$headers = [
    "Authorization: Bearer {your_access_token}"
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "get");

$response = curl_exec($ch);
curl_close($ch);

echo $response;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Text;
using System.Text.Json;

class Program
{
    static async Task Main()
    {
        using (var client = new HttpClient())
        {
            client.DefaultRequestHeaders.Add("Authorization", "Bearer {your_access_token}");

            HttpResponseMessage response;
            response = await client.getAsync("{server}/Order/{appKey}");

            var content = await response.Content.ReadAsStringAsync();
            Console.WriteLine(content);
        }
    }
}
require 'net/http'
require 'json'

uri = URI("{server}/Order/{appKey}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::undefined.new(uri)
request["Authorization"] = "Bearer {your_access_token}"

response = http.request(request)
puts response.body
1
2
3
4
5
6
7
8
fetch("{server}/Order/{appKey}", {
    method: "get",
    headers: {
        "Authorization": "Bearer {your_access_token}"
    }
})
.then(response => response.json())
.catch(error => console.error(error));
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import org.json.JSONObject;


public class ApiClient {
    private final OkHttpClient client = new OkHttpClient();

    public void makeRequest() {
        Request.Builder requestBuilder = new Request.Builder()
            .url("{server}/Order/{appKey}")
            .addHeader("Authorization", "Bearer {your_access_token}");
        requestBuilder.method("get", null);

        try (Response response = client.newCall(requestBuilder.build()).execute()) {
            System.out.println(response.body().string());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
import Foundation

let url = URL(string: "{server}/Order/{appKey}")!
var request = URLRequest(url: url)
request.httpMethod = "get"
request.setValue("Bearer {your_access_token}", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        if let json = try? JSONSerialization.jsonObject(with: data) {
            print(json)
        }
    }
}
task.resume()

返回结果

{
    "code": 200          // 状态码,
    "data": {
    "total": "0",
    "data": [
      {
          "id": "0"          // 订单的唯一标识符。,
          "userID": "0"          // 创建订单的用户ID。,
          "payType": ""          // 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。,
          "amount": "0"          // 订单的总金额。,
          "orderNo": ""          // 订单的唯一编号,通常由系统生成。,
          "tradeNo": ""          // 与订单关联的交易编号,通常由支付平台提供。,
          "status": ""          // 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。,
          "productType": ""          // 订单中商品的类型分类。,
          "productID": ""          // 订单中商品的唯一标识符。,
          "productName": ""          // 订单中商品的名称。,
          "allowRefund": false          // 指示订单是否允许进行退款操作。,
          "allowRefundUntil": ""          // 订单允许进行退款操作的截止时间。,
          "tags": ""          // 用于分类或标记订单的标签。,
          "remark": ""          // 订单的额外备注信息。,
          "description": ""          // 订单的详细描述信息。,
          "orderPayTime": ""          // 订单完成支付的时间。,
          "expireTime": ""          // 订单的过期时间,超过该时间订单将自动取消。,
          "createDate": ""          // 订单的创建时间,默认为当前时间。,
          "lastUpdate": ""          // 订单的最后更新时间,默认为当前时间。
      }
    ]
},
    "error": ""          // 错误信息
}
字段名 类型 描述 是否必填
code integer 状态码
data OrderListResult -
error string 错误信息

获取订单详情

接口说明

根据订单ID获取订单详情

基本信息

  • 接口名称:获取订单详情
  • 请求方式:GET
  • 请求路径:/Order/{appKey}/{id}

请求参数

Path 参数
参数名 示例值 参数描述 是否必填
id - 订单ID
appKey - -

示例代码

import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Map;


public class ApiClient {
    public static void main(String[] args) {
        HttpClient client = HttpClient.newHttpClient();

        HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
            .uri(URI.create("{server}/Order/{appKey}/{id}"))
            .header("Authorization", "Bearer {your_access_token}");


        requestBuilder.method("get", HttpRequest.BodyPublishers.noBody());

        try {
            HttpResponse<String> response = client.send(requestBuilder.build(), HttpResponse.BodyHandlers.ofString());
            System.out.println(response.body());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
import requests

url = "{server}/Order/{appKey}/{id}"
headers = {
    "Authorization": "Bearer {your_access_token}"
}

response = requests.get(
    url,
    headers=headers
)

print(response.json())
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
    "bytes"
    "encoding/json"
)

func main() {
    client := &http.Client{}

    var req *http.Request
    var err error

    req, err = http.NewRequest("get", "{server}/Order/{appKey}/{id}", nil)
    if err != nil {
        panic(err)
    }

    req.Header.Add("Authorization", "Bearer {your_access_token}")

    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Println(string(body))
}
const axios = require('axios');

const config = {
    method: 'get',
    url: '{server}/Order/{appKey}/{id}',
    headers: {
        'Authorization': 'Bearer {your_access_token}'
    }
};

axios(config)
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(error);
    });
<?php

$url = "{server}/Order/{appKey}/{id}";
$headers = [
    "Authorization: Bearer {your_access_token}"
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "get");

$response = curl_exec($ch);
curl_close($ch);

echo $response;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Text;
using System.Text.Json;

class Program
{
    static async Task Main()
    {
        using (var client = new HttpClient())
        {
            client.DefaultRequestHeaders.Add("Authorization", "Bearer {your_access_token}");

            HttpResponseMessage response;
            response = await client.getAsync("{server}/Order/{appKey}/{id}");

            var content = await response.Content.ReadAsStringAsync();
            Console.WriteLine(content);
        }
    }
}
require 'net/http'
require 'json'

uri = URI("{server}/Order/{appKey}/{id}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::undefined.new(uri)
request["Authorization"] = "Bearer {your_access_token}"

response = http.request(request)
puts response.body
1
2
3
4
5
6
7
8
fetch("{server}/Order/{appKey}/{id}", {
    method: "get",
    headers: {
        "Authorization": "Bearer {your_access_token}"
    }
})
.then(response => response.json())
.catch(error => console.error(error));
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import org.json.JSONObject;


public class ApiClient {
    private final OkHttpClient client = new OkHttpClient();

    public void makeRequest() {
        Request.Builder requestBuilder = new Request.Builder()
            .url("{server}/Order/{appKey}/{id}")
            .addHeader("Authorization", "Bearer {your_access_token}");
        requestBuilder.method("get", null);

        try (Response response = client.newCall(requestBuilder.build()).execute()) {
            System.out.println(response.body().string());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
import Foundation

let url = URL(string: "{server}/Order/{appKey}/{id}")!
var request = URLRequest(url: url)
request.httpMethod = "get"
request.setValue("Bearer {your_access_token}", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        if let json = try? JSONSerialization.jsonObject(with: data) {
            print(json)
        }
    }
}
task.resume()

返回结果

{
    "code": 200          // 状态码,
    "data": {
    "id": "0"          // 订单的唯一标识符。,
    "userID": "0"          // 创建订单的用户ID。,
    "payType": ""          // 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。,
    "amount": "0"          // 订单的总金额。,
    "orderNo": ""          // 订单的唯一编号,通常由系统生成。,
    "tradeNo": ""          // 与订单关联的交易编号,通常由支付平台提供。,
    "status": ""          // 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。,
    "productType": ""          // 订单中商品的类型分类。,
    "productID": ""          // 订单中商品的唯一标识符。,
    "productName": ""          // 订单中商品的名称。,
    "allowRefund": false          // 指示订单是否允许进行退款操作。,
    "allowRefundUntil": ""          // 订单允许进行退款操作的截止时间。,
    "tags": ""          // 用于分类或标记订单的标签。,
    "remark": ""          // 订单的额外备注信息。,
    "description": ""          // 订单的详细描述信息。,
    "orderPayTime": ""          // 订单完成支付的时间。,
    "expireTime": ""          // 订单的过期时间,超过该时间订单将自动取消。,
    "createDate": ""          // 订单的创建时间,默认为当前时间。,
    "lastUpdate": ""          // 订单的最后更新时间,默认为当前时间。
},
    "error": ""          // 错误信息
}
字段名 类型 描述 是否必填
code integer 状态码
data Order -
error string 错误信息

创建订单

接口说明

根据请求参数创建订单

基本信息

  • 接口名称:创建订单
  • 请求方式:POST
  • 请求路径:/Order/{appKey}/Create

请求参数

Path 参数
参数名 示例值 参数描述 是否必填
appKey - -
Body 参数
参数名 类型 示例值 参数描述 是否必填
amount number - -
productName string - -
productType string - -
productID string - -

示例代码

import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Map;


public class ApiClient {
    public static void main(String[] args) {
        HttpClient client = HttpClient.newHttpClient();

        HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
            .uri(URI.create("{server}/Order/{appKey}/Create"))
            .header("Authorization", "Bearer {your_access_token}")
            .header("Content-Type", "application/json");



        // 创建请求体数据
        Map<String, Object> data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
};
        ObjectMapper mapper = new ObjectMapper();
        String jsonBody = mapper.writeValueAsString(data);
        RequestBody body = RequestBody.create(
            MediaType.parse("application/json"), jsonBody);

        requestBuilder.method("post", HttpRequest.BodyPublishers.ofString(jsonBody));

        try {
            HttpResponse<String> response = client.send(requestBuilder.build(), HttpResponse.BodyHandlers.ofString());
            System.out.println(response.body());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
import requests

url = "{server}/Order/{appKey}/Create"
headers = {
    "Authorization": "Bearer {your_access_token}",
    "Content-Type": "application/json"
}


data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
}

response = requests.post(
    url,
    headers=headers,
    json=data
)

print(response.json())
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
    "bytes"
    "encoding/json"
)

func main() {
    client := &http.Client{}

    var req *http.Request
    var err error


    data := {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
}
    jsonBody, err := json.Marshal(data)
    if err != nil {
        panic(err)
    }

    req, err = http.NewRequest("post", "{server}/Order/{appKey}/Create", bytes.NewBuffer(jsonBody))
    if err != nil {
        panic(err)
    }
    req.Header.Set("Content-Type", "application/json")

    req.Header.Add("Authorization", "Bearer {your_access_token}")

    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }

    fmt.Println(string(body))
}
const axios = require('axios');


const data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
};

const config = {
    method: 'post',
    url: '{server}/Order/{appKey}/Create',
    headers: {
        'Authorization': 'Bearer {your_access_token}',
        'Content-Type': 'application/json'
    },
    data: data
};

axios(config)
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(error);
    });
<?php

$url = "{server}/Order/{appKey}/Create";
$headers = [
    "Authorization: Bearer {your_access_token}",
    "Content-Type: application/json"
];


$data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
};

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "post");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

$response = curl_exec($ch);
curl_close($ch);

echo $response;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Text;
using System.Text.Json;

class Program
{
    static async Task Main()
    {
        using (var client = new HttpClient())
        {
            client.DefaultRequestHeaders.Add("Authorization", "Bearer {your_access_token}");

            HttpResponseMessage response;


            var data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
};
            var content = new StringContent(
                JsonSerializer.Serialize(data),
                Encoding.UTF8,
                "application/json");
            response = await client.postAsync("{server}/Order/{appKey}/Create", content);

            var content = await response.Content.ReadAsStringAsync();
            Console.WriteLine(content);
        }
    }
}
require 'net/http'
require 'json'

uri = URI("{server}/Order/{appKey}/Create")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::undefined.new(uri)
request["Authorization"] = "Bearer {your_access_token}"
request["Content-Type"] = "application/json"


data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
}
request.set_form_data(data)

response = http.request(request)
puts response.body
const data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
};

fetch("{server}/Order/{appKey}/Create", {
    method: "post",
    headers: {
        "Authorization": "Bearer {your_access_token}",
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)
})
.then(response => response.json())
.catch(error => console.error(error));
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import org.json.JSONObject;


public class ApiClient {
    private final OkHttpClient client = new OkHttpClient();

    public void makeRequest() {
        Request.Builder requestBuilder = new Request.Builder()
            .url("{server}/Order/{appKey}/Create")
            .addHeader("Authorization", "Bearer {your_access_token}")
            .addHeader("Content-Type", "application/json");


        JSONObject data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
};
        RequestBody body = RequestBody.create(
            MediaType.parse("application/json"), data.toString());

        requestBuilder.method("post", body);

        try (Response response = client.newCall(requestBuilder.build()).execute()) {
            System.out.println(response.body().string());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
import Foundation

let url = URL(string: "{server}/Order/{appKey}/Create")!
var request = URLRequest(url: url)
request.httpMethod = "post"
request.setValue("Bearer {your_access_token}", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")


let data = {
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
}
let jsonData = try? JSONSerialization.data(withJSONObject: data)
request.httpBody = jsonData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        if let json = try? JSONSerialization.jsonObject(with: data) {
            print(json)
        }
    }
}
task.resume()

返回结果

1
2
3
4
5
6
7
8
{
    "code": 200          // 状态码,
    "data": {
    "id": "0",
    "orderNo": ""
},
    "error": ""          // 错误信息
}
字段名 类型 描述 是否必填
code integer 状态码
data CreateOrderResult -
error string 错误信息

数据结构

CreateOrderRequest

1
2
3
4
5
6
{
    "amount": "0",
    "productName": "",
    "productType": "",
    "productID": ""
}
字段名 类型 描述 是否必填
amount number -
productName string -
productType string -
productID string -

CreateOrderResult

1
2
3
4
{
    "id": "0",
    "orderNo": ""
}
字段名 类型 描述 是否必填
id integer -
orderNo string -

CreateOrderResultApiResponse

1
2
3
4
5
6
7
8
{
    "code": 200          // 状态码,
    "data": {
    "id": "0",
    "orderNo": ""
},
    "error": ""          // 错误信息
}
字段名 类型 描述 是否必填
code integer 状态码
data - -
error string 错误信息

Order

{
    "id": "0"          // 订单的唯一标识符。,
    "userID": "0"          // 创建订单的用户ID。,
    "payType": ""          // 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。,
    "amount": "0"          // 订单的总金额。,
    "orderNo": ""          // 订单的唯一编号,通常由系统生成。,
    "tradeNo": ""          // 与订单关联的交易编号,通常由支付平台提供。,
    "status": ""          // 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。,
    "productType": ""          // 订单中商品的类型分类。,
    "productID": ""          // 订单中商品的唯一标识符。,
    "productName": ""          // 订单中商品的名称。,
    "allowRefund": false          // 指示订单是否允许进行退款操作。,
    "allowRefundUntil": ""          // 订单允许进行退款操作的截止时间。,
    "tags": ""          // 用于分类或标记订单的标签。,
    "remark": ""          // 订单的额外备注信息。,
    "description": ""          // 订单的详细描述信息。,
    "orderPayTime": ""          // 订单完成支付的时间。,
    "expireTime": ""          // 订单的过期时间,超过该时间订单将自动取消。,
    "createDate": ""          // 订单的创建时间,默认为当前时间。,
    "lastUpdate": ""          // 订单的最后更新时间,默认为当前时间。
}
字段名 类型 描述 是否必填
id integer 订单的唯一标识符。
userID integer 创建订单的用户ID。
payType string 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。
amount number 订单的总金额。
orderNo string 订单的唯一编号,通常由系统生成。
tradeNo string 与订单关联的交易编号,通常由支付平台提供。
status string 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。
productType string 订单中商品的类型分类。
productID string 订单中商品的唯一标识符。
productName string 订单中商品的名称。
allowRefund boolean 指示订单是否允许进行退款操作。
allowRefundUntil string 订单允许进行退款操作的截止时间。
tags string 用于分类或标记订单的标签。
remark string 订单的额外备注信息。
description string 订单的详细描述信息。
orderPayTime string 订单完成支付的时间。
expireTime string 订单的过期时间,超过该时间订单将自动取消。
createDate string 订单的创建时间,默认为当前时间。
lastUpdate string 订单的最后更新时间,默认为当前时间。

OrderApiResponse

{
    "code": 200          // 状态码,
    "data": {
    "id": "0"          // 订单的唯一标识符。,
    "userID": "0"          // 创建订单的用户ID。,
    "payType": ""          // 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。,
    "amount": "0"          // 订单的总金额。,
    "orderNo": ""          // 订单的唯一编号,通常由系统生成。,
    "tradeNo": ""          // 与订单关联的交易编号,通常由支付平台提供。,
    "status": ""          // 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。,
    "productType": ""          // 订单中商品的类型分类。,
    "productID": ""          // 订单中商品的唯一标识符。,
    "productName": ""          // 订单中商品的名称。,
    "allowRefund": false          // 指示订单是否允许进行退款操作。,
    "allowRefundUntil": ""          // 订单允许进行退款操作的截止时间。,
    "tags": ""          // 用于分类或标记订单的标签。,
    "remark": ""          // 订单的额外备注信息。,
    "description": ""          // 订单的详细描述信息。,
    "orderPayTime": ""          // 订单完成支付的时间。,
    "expireTime": ""          // 订单的过期时间,超过该时间订单将自动取消。,
    "createDate": ""          // 订单的创建时间,默认为当前时间。,
    "lastUpdate": ""          // 订单的最后更新时间,默认为当前时间。
},
    "error": ""          // 错误信息
}
字段名 类型 描述 是否必填
code integer 状态码
data - -
error string 错误信息

OrderListResult

{
    "total": "0",
    "data": [
      {
          "id": "0"          // 订单的唯一标识符。,
          "userID": "0"          // 创建订单的用户ID。,
          "payType": ""          // 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。,
          "amount": "0"          // 订单的总金额。,
          "orderNo": ""          // 订单的唯一编号,通常由系统生成。,
          "tradeNo": ""          // 与订单关联的交易编号,通常由支付平台提供。,
          "status": ""          // 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。,
          "productType": ""          // 订单中商品的类型分类。,
          "productID": ""          // 订单中商品的唯一标识符。,
          "productName": ""          // 订单中商品的名称。,
          "allowRefund": false          // 指示订单是否允许进行退款操作。,
          "allowRefundUntil": ""          // 订单允许进行退款操作的截止时间。,
          "tags": ""          // 用于分类或标记订单的标签。,
          "remark": ""          // 订单的额外备注信息。,
          "description": ""          // 订单的详细描述信息。,
          "orderPayTime": ""          // 订单完成支付的时间。,
          "expireTime": ""          // 订单的过期时间,超过该时间订单将自动取消。,
          "createDate": ""          // 订单的创建时间,默认为当前时间。,
          "lastUpdate": ""          // 订单的最后更新时间,默认为当前时间。
      }
    ]
}
字段名 类型 描述 是否必填
total integer -
data array -

OrderListResultApiResponse

{
    "code": 200          // 状态码,
    "data": {
    "total": "0",
    "data": [
      {
          "id": "0"          // 订单的唯一标识符。,
          "userID": "0"          // 创建订单的用户ID。,
          "payType": ""          // 订单的支付类型,例如 '信用卡', '支付宝', '微信支付' 等。,
          "amount": "0"          // 订单的总金额。,
          "orderNo": ""          // 订单的唯一编号,通常由系统生成。,
          "tradeNo": ""          // 与订单关联的交易编号,通常由支付平台提供。,
          "status": ""          // 订单的当前状态,例如 '待支付', '已完成', '已取消' 等。,
          "productType": ""          // 订单中商品的类型分类。,
          "productID": ""          // 订单中商品的唯一标识符。,
          "productName": ""          // 订单中商品的名称。,
          "allowRefund": false          // 指示订单是否允许进行退款操作。,
          "allowRefundUntil": ""          // 订单允许进行退款操作的截止时间。,
          "tags": ""          // 用于分类或标记订单的标签。,
          "remark": ""          // 订单的额外备注信息。,
          "description": ""          // 订单的详细描述信息。,
          "orderPayTime": ""          // 订单完成支付的时间。,
          "expireTime": ""          // 订单的过期时间,超过该时间订单将自动取消。,
          "createDate": ""          // 订单的创建时间,默认为当前时间。,
          "lastUpdate": ""          // 订单的最后更新时间,默认为当前时间。
      }
    ]
},
    "error": ""          // 错误信息
}
字段名 类型 描述 是否必填
code integer 状态码
data - -
error string 错误信息

通用错误码

错误码 说明
200 成功