rest - Why can't I remove the Shipping address from this IPP QBO v3 API Customer object -


i'm using intuit partner platform v3 qbo api try update a customer object. sole objective purpose of post remove shipping address.

here's original object, queried before change:

{     "domain": "qbo",      "familyname": "last",      "displayname": "my display name",      "title": "mr.",      "preferreddeliverymethod": "print",      "givenname": "first",      "fullyqualifiedname": "my display name",      "billwithparent": false,      "job": false,      "balancewithjobs": 0,      "taxable": true,      "metadata": {         "createtime": "2014-09-22t18:49:43-07:00",          "lastupdatedtime": "2014-09-22t18:49:44-07:00"     },      "billaddr": {         "city": "city 1",          "country": "usa",          "line1": "billing address line 1\nbilling address line 2",          "postalcode": "98765",          "countrysubdivisioncode": "st",          "id": "130"     },      "middlename": "mid",      "active": true,      "balance": 0,      "synctoken": "0",      "suffix": "suf",      "companyname": "my company name",      "shipaddr": {         "city": "city 2",          "country": "usa",          "line1": "shipping address line 1\nshipping address line 2",          "postalcode": "54321",          "countrysubdivisioncode": "ts",          "id": "131"     },      "printoncheckname": "my display name",      "sparse": false,      "id": "212" } 

here's request body when update (synctoken matches, sparse false...):

{     "domain": "qbo",      "displayname": "my display name",      "title": "mr.",      "preferreddeliverymethod": "print",      "givenname": "first",      "fullyqualifiedname": "my display name",      "billwithparent": false,      "job": false,      "balancewithjobs": 0.0,      "taxable": true,      "metadata": {         "createtime": "2014-09-22t18:49:43-07:00",          "lastupdatedtime": "2014-09-22t18:49:43-07:00"     },      "sparse": false,      "middlename": "mid",      "active": true,      "balance": 0.0,      "synctoken": 0,      "suffix": "suf",      "companyname": "my company name",      "familyname": "last",      "printoncheckname": "my display name",      "billaddr": {         "countrysubdivisioncode": "st",          "city": "city 1",          "postalcode": "98765",          "line1": "billing address line 1\nbilling address line 2",          "country": "usa"     },      "id": "212" } 

and when read again afterwards, still has shipping address (though note synctoken has incremented, api 'got message':

{     "domain": "qbo",      "familyname": "last",      "displayname": "my display name",      "title": "mr.",      "preferreddeliverymethod": "print",      "givenname": "first",      "fullyqualifiedname": "my display name",      "billwithparent": false,      "job": false,      "balancewithjobs": 0,      "taxable": true,      "metadata": {         "createtime": "2014-09-22t18:49:43-07:00",          "lastupdatedtime": "2014-09-22t18:51:20-07:00"     },      "billaddr": {         "city": "city 1",          "country": "usa",          "line1": "billing address line 1\nbilling address line 2",          "postalcode": "98765",          "countrysubdivisioncode": "st",          "id": "130"     },      "middlename": "mid",      "active": true,      "balance": 0,      "synctoken": "1",      "suffix": "suf",      "companyname": "my company name",      "shipaddr": {         "city": "city 1",          "country": "usa",          "line1": "billing address line 1\nbilling address line 2",          "postalcode": "98765",          "countrysubdivisioncode": "st",          "id": "130"     },      "printoncheckname": "my display name",      "sparse": false,      "id": "212" } 

i've found if set single line of shipping address (to 'x', example, change goes through, i'm trying above (which want—to delete shipping address), has failed. don't see on known issues list, know when friend of mine migrated quickbooks desktop quickbooks online, shipping addresses populated there billing address.

anyone know how achieve this?

thanks!

update adding working json example.

{   "customer": {     "taxable": false,     "billaddr": {       "id": "9",       "line1": "100 street",       "city": "bangalore",       "country": "india",       "countrysubdivisioncode": "karnataka",       "postalcode": "560103"     },     "shipaddr": {       "id": "9",       "line1": "100 street",       "city": "bangalore",       "country": "india",       "countrysubdivisioncode": "karnataka",       "postalcode": "560103"     },     "job": false,     "billwithparent": false,     "balance": 0,     "balancewithjobs": 0,     "preferreddeliverymethod": "email",     "domain": "qbo",     "sparse": false,     "id": "16",     "synctoken": "0",     "metadata": {       "createtime": "2014-09-22t21:54:13-07:00",       "lastupdatedtime": "2014-09-22t21:54:13-07:00"     },     "givenname": "aa",     "fullyqualifiedname": "aa",     "displayname": "aa",     "printoncheckname": "aa",     "active": true   },   "time": "2014-09-22t21:55:17.28-07:00" } 

update request

{     "taxable": false,     "billaddr": {       "id": "9",       "line1": "100 street",       "city": "bangalore",       "country": "india",       "countrysubdivisioncode": "karnataka",       "postalcode": "560103"     },     "job": false,     "billwithparent": false,     "balance": 0,     "balancewithjobs": 0,     "preferreddeliverymethod": "email",     "domain": "qbo",     "sparse": false,     "id": "16",     "synctoken": "0",     "metadata": {       "createtime": "2014-09-22t21:54:13-07:00",       "lastupdatedtime": "2014-09-22t21:54:13-07:00"     },     "givenname": "aa",     "fullyqualifiedname": "aa",     "displayname": "aa",     "printoncheckname": "aa",     "active": true } 

get id

{   "customer": {     "taxable": false,     "billaddr": {       "id": "9",       "line1": "100 street",       "city": "bangalore",       "country": "india",       "countrysubdivisioncode": "karnataka",       "postalcode": "560103"     },     "job": false,     "billwithparent": false,     "balance": 0,     "balancewithjobs": 0,     "preferreddeliverymethod": "email",     "domain": "qbo",     "sparse": false,     "id": "16",     "synctoken": "1",     "metadata": {       "createtime": "2014-09-22t21:54:13-07:00",       "lastupdatedtime": "2014-09-22t21:56:21-07:00"     },     "givenname": "aa",     "fullyqualifiedname": "aa",     "displayname": "aa",     "printoncheckname": "aa",     "active": true   },   "time": "2014-09-22t21:56:49.814-07:00" } 

did try xml payload. worked fine me. pfb below request/response. i'll verify json way , update post.

<customer xmlns="http://schema.intuit.com/finance/v3" domain="qbo" sparse="false">             <id>14</id>             <synctoken>0</synctoken>             <metadata>                 <createtime>2014-09-22t21:04:02-07:00</createtime>                 <lastupdatedtime>2014-09-22t21:04:02-07:00</lastupdatedtime>             </metadata>             <givenname>neo</givenname>             <familyname>light</familyname>             <fullyqualifiedname>neo light</fullyqualifiedname>             <companyname>abc</companyname>             <displayname>neo light</displayname>             <printoncheckname>neo light</printoncheckname>             <active>true</active>             <primaryemailaddr>                 <address>abc@abc.co.in</address>             </primaryemailaddr>             <taxable>false</taxable>             <billaddr>                 <id>7</id>                 <line1>abc street</line1>                 <city>bangalore</city>                 <country>india</country>                 <countrysubdivisioncode>karnataka</countrysubdivisioncode>                 <postalcode>560103</postalcode>             </billaddr>             <shipaddr>                 <id>7</id>                 <line1>abc street</line1>                 <city>bangalore</city>                 <country>india</country>                 <countrysubdivisioncode>karnataka</countrysubdivisioncode>                 <postalcode>560103</postalcode>             </shipaddr>             <job>false</job>             <billwithparent>false</billwithparent>             <balance>0</balance>             <balancewithjobs>0</balancewithjobs>             <preferreddeliverymethod>email</preferreddeliverymethod>         </customer> 

update request

<customer xmlns="http://schema.intuit.com/finance/v3" domain="qbo" sparse="false">     <id>14</id>     <synctoken>0</synctoken>     <metadata>         <createtime>2014-09-22t21:04:02-07:00</createtime>         <lastupdatedtime>2014-09-22t21:04:02-07:00</lastupdatedtime>     </metadata>     <givenname>neo</givenname>     <familyname>light</familyname>     <fullyqualifiedname>neo light</fullyqualifiedname>     <companyname>abc</companyname>     <displayname>neo light</displayname>     <printoncheckname>neo light1</printoncheckname>     <active>true</active>     <primaryemailaddr>         <address>abc@abc.co.in</address>     </primaryemailaddr>     <taxable>false</taxable>     <billaddr>         <id>7</id>         <line1>abc street</line1>         <city>bangalore</city>         <country>india</country>         <countrysubdivisioncode>karnataka</countrysubdivisioncode>         <postalcode>560103</postalcode>     </billaddr>     <job>false</job>     <billwithparent>false</billwithparent>     <balance>0</balance>     <balancewithjobs>0</balancewithjobs>     <preferreddeliverymethod>email</preferreddeliverymethod> </customer> 

verified 'shipaddr' not present anymore

<intuitresponse xmlns="http://schema.intuit.com/finance/v3" time="2014-09-22t21:07:31.919-07:00">   <customer domain="qbo" sparse="false">     <id>14</id>     <synctoken>1</synctoken>     <metadata>       <createtime>2014-09-22t21:04:02-07:00</createtime>       <lastupdatedtime>2014-09-22t21:06:58-07:00</lastupdatedtime>     </metadata>     <givenname>neo</givenname>     <familyname>light</familyname>     <fullyqualifiedname>neo light</fullyqualifiedname>     <companyname>abc</companyname>     <displayname>neo light</displayname>     <printoncheckname>neo light1</printoncheckname>     <active>true</active>     <primaryemailaddr>       <address>abc@abc.co.in</address>     </primaryemailaddr>     <taxable>false</taxable>     <billaddr>       <id>7</id>       <line1>abc street</line1>       <city>bangalore</city>       <country>india</country>       <countrysubdivisioncode>karnataka</countrysubdivisioncode>       <postalcode>560103</postalcode>     </billaddr>     <job>false</job>     <billwithparent>false</billwithparent>     <balance>0</balance>     <balancewithjobs>0</balancewithjobs>     <preferreddeliverymethod>email</preferreddeliverymethod>   </customer> </intuitresponse> 

thanks


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -