POST api/XTRF/SYS/WorkType/addXTRFClient?fromModule={fromModule}&ip={ip}
新增 客户 信息
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| fromModule | string |
Required |
|
| ip | string |
Required |
Body Parameters
XTRF_Client| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| clientCode |
客户代号 |
string |
None. |
| legalName | string |
None. |
|
| clientEmail | string |
None. |
|
| clientaddress | string |
None. |
|
| postalCode |
邮政编码 |
string |
None. |
| belongCountry |
所属国家 |
integer |
None. |
| belongArea |
所属地区 |
integer |
None. |
| clientfax |
传真 |
string |
None. |
| contractDate |
联系时间 |
date |
None. |
| clientLevel |
用户级别 五星评定 |
integer |
None. |
| clientWeb |
客户网站 |
string |
None. |
| clientBANK |
开户行 |
string |
None. |
| clientAccounts |
客户帐号 |
string |
None. |
| clientPayee |
客户收款人 |
string |
None. |
| clientPayeePhoto |
收款人电话 |
string |
None. |
| notes |
备注 |
string |
None. |
| state | integer |
None. |
|
| inputDate | date |
None. |
|
| inputUser | string |
None. |
|
| clue | string |
None. |
|
| clueProperty | string |
None. |
|
| clueSource | string |
None. |
|
| clueRemark | string |
None. |
|
| SpecializationId | integer |
None. |
|
| firstContactTime | date |
None. |
|
| lastContactTime | date |
None. |
|
| ourContactId | integer |
None. |
|
| winLostState | integer |
None. |
|
| winLostTime | date |
None. |
|
| winLostReason | string |
None. |
|
| directDemander | string |
None. |
|
| demandContent | string |
None. |
|
| communicated | string |
None. |
|
| clientProperty | string |
None. |
|
| ClientTaxNo | string |
None. |
|
| ClientTaxName | string |
None. |
|
| DefaultPaymentMethod | integer |
None. |
|
| ContractStartingDate | date |
None. |
|
| ContractEndingDate | date |
None. |
|
| ContractNumber | string |
None. |
|
| QuoteMailTemplateId | integer |
None. |
|
| InvoiceMailTemplateId | integer |
None. |
|
| AM | integer |
None. |
|
| PM | integer |
None. |
|
| BusinessManager | integer |
None. |
|
| ClientStatus | integer |
None. |
|
| ClientRevenueLevel | integer |
None. |
|
| ClientSLevel | integer |
None. |
|
| ContractDuration | string |
None. |
|
| ClientPOC | string |
None. |
|
| ClientPOCRole | string |
None. |
|
| DemandRecipients | integer |
None. |
|
| DemandFrequency | integer |
None. |
|
| ClientGroupEmailName | string |
None. |
|
| WordCountType | integer |
None. |
|
| QuotationMethod | integer |
None. |
|
| ClientSettlementFrequency | integer |
None. |
|
| ClientSettlementConfirmer | integer |
None. |
|
| InvoicingPrincipal | integer |
None. |
|
| PostPurchaseBehaviorResults | string |
None. |
|
| ClientPositiveFeedback | string |
None. |
|
| ClientNegativeFeedback | string |
None. |
|
| QuoteWordTemplateId | integer |
None. |
|
| InvoiceWordTemplateId | integer |
None. |
|
| PaymentMethod | integer |
None. |
|
| Industries | integer |
None. |
|
| Branch | integer |
None. |
|
| ClientFirstQuoteDate | date |
None. |
|
| ClientLastQuoteDate | date |
None. |
|
| ClientFirstProjectDate | date |
None. |
|
| ClientLastProjectDate | date |
None. |
|
| PotentialAnnualRevenueLastUpdated | string |
None. |
|
| ProjectCoordinatorResponsible | string |
None. |
|
| AdditionalPersonResponsible | string |
None. |
|
| SalesNotes | string |
None. |
|
| LeadSource | integer |
None. |
|
| TimeZone | integer |
None. |
|
| Phone | string |
None. |
|
| Phone2 | string |
None. |
|
| Phone3 | string |
None. |
|
| CellPhone | string |
None. |
|
| Website2 | string |
None. |
|
| CCEmailstoContactPersons | string |
None. |
|
| DisallowCRMEmails | string |
None. |
|
| EmailAddress2 | string |
None. |
|
| UseforCC2 | string |
None. |
|
| EmailAddress3 | string |
None. |
|
| UseforCC3 | string |
None. |
|
| XTRF_Client_Categories | Collection of XTRF_Client_Categories |
None. |
Request Formats
application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
resultSuccess| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
0 =SUCCESS,1=ERROR,401TIMEOUT |
integer |
None. |
| result | Object |
None. |
|
| message | string |
None. |
|
| type | string |
None. |
|
| page | string |
None. |
|
| pageSize | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"result": {},
"message": "sample string 3",
"type": "sample string 4",
"page": "sample string 5",
"pageSize": "sample string 6"
}
application/xml, text/xml
Sample:
<resultSuccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Base.Entities"> <code>1</code> <message>sample string 3</message> <page>sample string 5</page> <pageSize>sample string 6</pageSize> <result /> <type>sample string 4</type> </resultSuccess>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="code" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="result" System.Object --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="message" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="type" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="page" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="pageSize" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e--