Intuit Partner Platform CustomerQuery Example

Example HTTP Request

POST https://services.intuit.com/sb/customer/v2/173642438 HTTP/1.1
Content-Type: text/xml
Authorization: INTUITAUTH intuit-app-token="tex3r7hwifx6cci3zk43ibmnd",intuit-token="5_bfrt94c4w_bxae7r_b_5ecpkrcn99mv7bp82byhqukyz3_agnuwyvjq4gu7z4zji5gukaj6kdsrzp36ihbc2knx8k7grbvrieb"
Cookie: scache=Oct 19 2010 07:29:08_3; ptest=1287977033044; stest=1287977033044; luid=55579567; TICKET=5_bfrt94c4w_bxae7r_b_5ecpkrcn99mv7bp82byhqukyz3_agnuwyvjq4gu7z4zji5gukaj6kdsrzp36ihbc2knx8k7grbvrieb; qbn.ticket=V1-47-BED8uVX44xtkoH3cMMu9ag; qbn.tkt=V1-47-BED8uVX44xtkoH3cMMu9ag; qbn.authid=134488367; qbn.gauthid=134488367; qbn.agentid=134488367; iamValidationTime=1287977033044
Content-Length: 269

<?xml version="1.0" encoding="UTF-16"?>
<CustomerQuery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.intuit.com/sb/cdm/v2">
	<FirstLastInside>Test Example Customer</FirstLastInside>
</CustomerQuery>

Example HTTP Response

HTTP/1.1 200 OK
Date: Mon, 25 Oct 2010 03:23:52 GMT
Server: Apache
Set-Cookie: JSESSIONIDSSO=8E534EAF3CBFE8D0DBB88EE3535982AB; Path=/
Set-Cookie: JSESSIONID=4ECB6518246D60540163D73A7518A097.node1; Path=/
Response-Id: 105a342d-9555-40db-a484-4c08585ba978
Response-Fetching-time: 394
Content-Length: 3258
Cache-Control: no-store
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8"?><!--XML GENERATED by IntuitDataSyncEngine (IDS) using \\SBDomainServices\CDM\branches\3.4.0-rel-1-->
<RestResponse xmlns="http://www.intuit.com/sb/cdm/v2"
xmlns:xdb          ="http://xmlns.oracle.com/xdb"
xmlns:xsi          ="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation ="http://www.intuit.com/sb/cdm/v2 ../common/RestDataFilter.xsd"><Customers>
<Customer>
<Id idDomain="QB">2</Id>
<SyncToken>1</SyncToken>
<MetaData>
<CreatedBy>app</CreatedBy>
<CreateTime>2010-07-23T17:56:49.0Z</CreateTime>
<LastModifiedBy>app</LastModifiedBy>
<LastUpdatedTime>2010-07-23T17:56:49.0Z</LastUpdatedTime>
</MetaData>
<ExternalKey idDomain="QB">2</ExternalKey>
<Synchronized>true</Synchronized>
<PartyReferenceId idDomain="QB">2</PartyReferenceId>
<TypeOf>Person</TypeOf>
<Name>Test Example Customer</Name>
<Address>
<Id idDomain="QB">00000000000000s3</Id>
<Line1>Test Example, LLC</Line1>
<Line2>Keith R Palmer</Line2>
<Line3>56 Cowles Road</Line3>
<City>Willington</City>
<Country>USA</Country>
<CountrySubDivisionCode>CT</CountrySubDivisionCode>
<PostalCode>06279</PostalCode>
<Default>1</Default>
<Tag>Billing</Tag>
</Address>
<Address>
<Id idDomain="QB">00000000000000s1</Id>
<Line1>Test Example, LLC</Line1>
<Line2>Keith R Palmer</Line2>
<Line3>134 Stonemill Road</Line3>
<Line4>Storrs, CT 06268</Line4>
<Line5>USA</Line5>
<City>Storrs</City>
<Country>USA</Country>
<CountrySubDivisionCode>CT</CountrySubDivisionCode>
<PostalCode>06268</PostalCode>
<Default>1</Default>
<Tag>Shipping</Tag>
</Address>
<Phone>
<Id idDomain="QB">00000000000000s3</Id>
<DeviceType>LandLine</DeviceType>
<FreeFormNumber>860-634-1602</FreeFormNumber>
<Default>1</Default>
<Tag>Business</Tag>
</Phone>
<Phone>
<Id idDomain="QB">00000000000000s3</Id>
<DeviceType>LandLine</DeviceType>
<FreeFormNumber>203-623-1236</FreeFormNumber>
<Default>0</Default>
<Tag>Home</Tag>
</Phone>
<Phone>
<Id idDomain="QB">00000000000000s3</Id>
<DeviceType>Fax</DeviceType>
<FreeFormNumber>413-123-6123</FreeFormNumber>
<Default>0</Default>
<Tag>Fax</Tag>
</Phone>
<Email>
<Id idDomain="QB">00000000000000s3</Id>
<Address>keith@consolibyte.com</Address>
<Default>1</Default>
<Tag>Business</Tag>
</Email>
<Email>
<Id idDomain="QB">00000000000000s3</Id>
<Address>shannon@gmail.com</Address>
<Default>0</Default>
<Tag>Home</Tag>
</Email>
<Title>Mr.</Title>
<GivenName>Keith</GivenName>
<MiddleName>R</MiddleName>
<FamilyName>Palmer</FamilyName>
<DBAName>Test Example, LLC</DBAName>
<Active>true</Active>
<ShowAs>Test Example Customer</ShowAs>
<CustomerTypeId idDomain="QB">5</CustomerTypeId>
<CustomerTypeName>Test Customer Type</CustomerTypeName>
<SalesTermId idDomain="QB">5</SalesTermId>
<SalesTermName>Net 15</SalesTermName>
<SalesRepId idDomain="QB">1</SalesRepId>
<SalesRepName>KRP</SalesRepName>
<PaymentMethodId idDomain="QB">2</PaymentMethodId>
<PaymentMethodName>Check</PaymentMethodName>
<PriceLevelId idDomain="QB">1</PriceLevelId>
<PriceLevelName>Web User</PriceLevelName>
<OpenBalance>
<CurrencyCode>USD</CurrencyCode>
<Amount>0</Amount>
</OpenBalance>
<CreditLimit>
<CurrencyCode>USD</CurrencyCode>
<Amount>500</Amount>
</CreditLimit>
<AcctNum>ACCT#1234</AcctNum>
<JobInfo>
<Status>None</Status>
</JobInfo>
</Customer>
</Customers></RestResponse>
quickbooks_ipp_http_customerquery.txt · Last modified: 2013/01/21 12:44 (external edit)