刚才我使用 IDS V2 API 创建了一个客户。
请求正文 -
<?xml version="1.0" encoding="utf-8"?>
<Customer xmlns:ns2="http://www.intuit.com/sb/cdm/qbo" xmlns="http://www.intuit.com/sb/cdm/v2">
<TypeOf>Person</TypeOf>
<Name>John Doe</Name>
<Suffix>Sr</Suffix>
</Customer>
响应 ( GetByID ) -
<Customer xmlns="http://www.intuit.com/sb/cdm/v2" xmlns:qbp="http://www.intuit.com/sb/cdm/qbopayroll/v1" xmlns:qbo="http://www.intuit.com/sb/cdm/qbo">
<Id idDomain="QBO">6</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2013-09-19T15:53:47-07:00</CreateTime>
<LastUpdatedTime>2013-09-19T15:53:47-07:00</LastUpdatedTime>
</MetaData>
<Name>John Doe</Name>
<WebSite />
<Email />
<Suffix>Sr</Suffix>
<CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringTypeCustomField">
<DefinitionId>Preferred Delivery Method</DefinitionId>
<Value>DONT</Value>
</CustomField>
<CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringTypeCustomField">
<DefinitionId>Resale Number</DefinitionId>
</CustomField>
<CustomField xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BooleanTypeCustomField">
<DefinitionId>Bill With Parent</DefinitionId>
<Value>false</Value>
</CustomField>
<ShowAs>John Doe</ShowAs>
<OpenBalance>
<Amount>0</Amount>
</OpenBalance>
</Customer>
看来,它适用于 GetByID API 调用。
编辑
但GetAll查询端点不填充后缀属性。这是回应。
<Customer>
<Id idDomain="QBO">6</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2013-09-19T15:53:47-07:00</CreateTime>
<LastUpdatedTime>2013-09-19T15:53:47-07:00</LastUpdatedTime>
</MetaData>
<Name>John Doe</Name>
<WebSite />
<Email />
<CustomField xsi:type="BooleanTypeCustomField">
<DefinitionId>Bill With Parent</DefinitionId>
<Value>false</Value>
</CustomField>
<CustomField xsi:type="StringTypeCustomField">
<DefinitionId>Preferred Delivery Method</DefinitionId>
<Value>DONT</Value>
</CustomField>
<ShowAs>John Doe</ShowAs>
<OpenBalance>
<Amount>0</Amount>
</OpenBalance>
</Customer>
谢谢