POST api/SaleShareRecord/CreateShare
分享(创建)销售单 ,如果有生成过分享就返回原来的分享码
Request Information
URI Parameters
None.
Body Parameters
SaleDayRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerId |
客户id |
integer |
None. |
| SaleDate |
销售日期 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerId": 1,
"SaleDate": "2025-12-26T20:13:08.8799931+08:00"
}
application/xml, text/xml
Sample:
<SaleDayRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response"> <CustomerId>1</CustomerId> <SaleDate>2025-12-26T20:13:08.8799931+08:00</SaleDate> </SaleDayRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| data | string |
None. |
|
| errcode |
错误码,默认为成功:SUCCESS |
string |
None. |
| errmsg |
错误信息,默认为:成功 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": "sample string 1",
"errcode": "sample string 2",
"errmsg": "sample string 3"
}
application/xml, text/xml
Sample:
<ResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi"> <errcode>sample string 2</errcode> <errmsg>sample string 3</errmsg> <data>sample string 1</data> </ResponseOfstring>