QuickBooks IPP Rest API 3.0 CustomerRef in Invoice -


when use ipp rest api 3.0 create invoice, example this:

<invoice xmlns="http://schema.intuit.com/finance/v3">        <line>             <description>installation labor</description>             <amount>420.00</amount>             <detailtype>salesitemlinedetail</detailtype>             <salesitemlinedetail>                 <itemref>33</itemref>             </salesitemlinedetail>         </line>       <customerref>20</customerref> </invoice> 

in example, 20 id of customer.

now, third party program, might not know id of customer, might know name of customer, , understand can query customer id first, use id in invoice creating format.

but question is, can use name without specify id of customer create invoice?

will following works?

<invoice xmlns="http://schema.intuit.com/finance/v3">        <line>             <description>installation labor</description>             <amount>420.00</amount>             <detailtype>salesitemlinedetail</detailtype>             <salesitemlinedetail>                 <itemref>33</itemref>             </salesitemlinedetail>         </line>       <customerref name="acb company"></customerref> </invoice> 

further more, if work, logic apply referencetype in api?

no. in api payload, can't refer objects name ( behavior partially supported in old v2 api deprecated ).

you can verify behavior using apiexplorer.

in case, should query customer name , extract id refer in invoice create payload.

thanks


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -