Create communication customization order interface

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

Points to note

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

Request address

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

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

Request Syntax

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

Request Headers

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

Request parameters

Field name Type Required Description
archive_id int Is Product ID
content string Is Order Content
phone string Is Contact phone number
Title string Is Order Title
Images string array No Order image list
order_extra object No additional_order_information

order_extra parameter

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

Response header

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

Return parameters

Field name Type Description
code int Error code
msg string Error description

Usage Example

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 Not authorized
200 API request OK