POST api/ProductOrder/CreateOrderByH5

生成订单并发起H5支付

Request Information

URI Parameters

None.

Body Parameters

ProductOrderInputDto
NameDescriptionTypeAdditional information
ItemsJsonStr

前端传回的商品分录JSON字符串

string

None.

Items

订单分录

Collection of ProductOrderItemDto

None.

OrderNo

订单编码,前端不用传

string

None.

Description

订单留言

string

None.

ShippingAddressId

收货地址ID

integer

None.

PayMethod

支付方式

Enum_PayMethod

None.

Trade_Type

Enum_Trade_Type

None.

OrganizationId

前端不用传

integer

None.

StudentId

前端不用传

integer

None.

UserToken

当前登录用户的UserToken,由服务端在用户登录成功之后生成,并在整个访问过程中回传

string

None.

DomainName

来访域名(用户访问该站点时输入的域名)

string

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ItemsJsonStr": "sample string 1",
  "Items": [
    {
      "OrderId": 1,
      "ProductId": 2,
      "Price": 3.0,
      "Count": 4,
      "ProductType": 1
    },
    {
      "OrderId": 1,
      "ProductId": 2,
      "Price": 3.0,
      "Count": 4,
      "ProductType": 1
    }
  ],
  "OrderNo": "sample string 2",
  "Description": "sample string 3",
  "ShippingAddressId": 4,
  "PayMethod": 1,
  "Trade_Type": 1,
  "OrganizationId": 5,
  "StudentId": 6,
  "UserToken": "sample string 7",
  "DomainName": "sample string 8",
  "Id": 9
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIServiceResultOfObject
NameDescriptionTypeAdditional information
Data

Object

None.

State

执行结果反馈:1表示成功、0表示失败, -1用户Token验证失败, 其它出错类型(值将小于-1)与具体业务关联紧密,详情可见Msg描述内容

integer

None.

Msg

返回的错误或描述信息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "State": 2,
  "Msg": "sample string 3"
}