Create Communication Custom Order Interface

Create a communication customization order, used for users to submit customization requirements, waiting for merchant confirmation.

Precautions

  • This interface uses the POST method and requires data to be submitted in application/ format
  • Access requires user login
  • The created order needs to be confirmed by the merchant before it can enter the payment process
  • The order status is pending confirmation, waiting for the merchant to accept

Request address

{域名地址}/api/communication/order/create

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/communication/order/create

Request syntax

POST {域名地址}/api/communication/order/create
Content-Type: application/json

Request header

This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).

Request Parameters

Field Name Type Required Description
archive_id integer Yes Product ID
content string Yes Order Content
phone string Yes Phone Number
Title string Yes Order Title
images string array No Order image list
order_extra object No Order Additional Information

order_extra parameter

order_extraIs a key-value pair object, the key name is the field name, and the key value is the field value, used to pass additional information about the order.

Response Headers

This interface only involves public response headers. More information, please refer toCommon Request Headers (Common Request Headers).

Return parameters

Field Name Type Description
code integer Error code
message string Error Description

Example Usage

Request Example

POST /api/communication/order/create HTTP/1.1
Host: www.anqicms.com
Content-Type: application/json

{
  "archive_id": 188,
  "title": "定制网站主题",
  "content": "需要定制一个响应式的外贸网站主题,包含多语言功能",
  "phone": "13888888888",
  "images": [
    "https://en.anqicms.com/uploads/image1.jpg",
    "https://en.anqicms.com/uploads/image2.jpg"
  ],
  "order_extra": {
    "delivery_time": "2023-12-31",
    "requirement": "需要支持中英文切换"
  }
}

Response Example

{
  "code": 0,
  "msg": "定制订单创建成功"
}

Error Code

Error code Description
0 OK
-1 Error, the reason is indicated in msg
1001 Not logged in
1002 Unauthorized
200 API request OK