在不更改名称的情况下更新客户时遇到此错误。到目前为止完全没有看到任何解释。派对参考 ID 可能是问题所在?名字没问题,因为记录已经创建,只是发布更新。有人有想法吗?
请求正文:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Mod Draft="false" FullResponse="true" RequestId="2b32f09b926d47209aceffdc3d20eb9f" xmlns:ns2="http://www.intuit.com/sb/cdm/junk" xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:ns3="http://platform.intuit.com/api/v1">
<Customer>
<Id idDomain="QB">11</Id>
<SyncToken>1</SyncToken>
<MetaData>
<CreatedBy>app</CreatedBy>
<CreateTime>2013-04-10T16:28:19Z</CreateTime>
<LastModifiedBy>app</LastModifiedBy>
<LastUpdatedTime>2013-04-10T17:57:50Z</LastUpdatedTime>
</MetaData>
<ExternalKey idDomain="QB">11</ExternalKey>
<Synchronized>true</Synchronized>
<PartyReferenceId idDomain="QB">11</PartyReferenceId>
<TypeOf>Organization</TypeOf>
<Name>Demo 001</Name>
<Address>
<Line1>123 Street</Line1>
<Line2>Demo Bond</Line2>
<City>San Francisco</City>
<CountrySubDivisionCode>CA</CountrySubDivisionCode>
<PostalCode>94108</PostalCode>
<Tag>Billing</Tag>
</Address>
<Phone>
<Id idDomain="QB">00000000000001Vj</Id>
<DeviceType>LandLine</DeviceType>
<FreeFormNumber>222-222-2222</FreeFormNumber>
<Default>true</Default>
<Tag>Business</Tag>
</Phone>
<Email>
<Address>demo@test.test</Address>
<Default>true</Default>
<Tag>Business</Tag>
</Email>
<GivenName>Demo</GivenName>
<FamilyName>Bond</FamilyName>
<DBAName>Demo 001</DBAName>
<Active>true</Active>
<ShowAs>Demo 001</ShowAs>
<SalesTermId idDomain="QB">6</SalesTermId>
<SalesTermName>Net 30</SalesTermName>
<OpenBalance>
<CurrencyCode>USD</CurrencyCode>
<Amount>43</Amount>
</OpenBalance>
<OpenBalanceDate>2013-04-10</OpenBalanceDate>
<JobInfo>
<Status>None</Status>
</JobInfo>
</Customer>
</Mod>
回复:
HTTP/1.1 200 OK
Date: Wed, 24 Apr 2013 17:24:48 GMT
Server: Apache/2.2.22 (Unix)
Response-Routing-Time: 564
Content-Length: 367
Connection: close
Content-Type: text/xml
<?xml version="1.0"?>
<RestResponse xmlns="http://www.intuit.com/sb/cdm/v2">
<Error RequestId="2b32f09b926d47209aceffdc3d20eb9f">
<RequestName>ErrorRequest</RequestName>
<ProcessedTime>2013-04-24T17:24:49.092Z</ProcessedTime>
<ErrorCode>-3002</ErrorCode>
<ErrorDesc>PARTY name must be unique ERI=629577300</ErrorDesc>
<DBErrorCode>20377</DBErrorCode>
</Error>
</RestResponse>