quickbooks - How to set Vendor Tax ID and 1099 Eligibility in API? -


i'm using consolibyte's php qb classes interface qb api.

i've been creating , updating vendor's in qb while. however, have new requirement use api store vendor's tax information.

i've tried lookup correct syntax set these, have been unsuccessful far.

my recent attempt was:

$vendor->setvendortaxident($provider->taxid); $vendor->setisvendoreligiblefor1099(true);

the rest of information set gets updated properly, , return

$result = $vendorservice->update($this->context, $this->realm, $provider->vendorid, $vendor);

seems indicate success.

please let me know if need anymore context. thanks!

have referred documentation?

the documentation indicates:

  • taxidentifier: string, max 20 characters
  • vendor1099: boolean

the geters , seters mirror documented fields. unsurprisingly, you'll have these methods:

$vendor->settaxidentifier($string); $string = $vendor->gettaxidentifier();

and:

$vendor->setvendor1099($boolean); $boolean = $vendor->getvendor1099();

if continue have trouble, make sure post xml request you're sending quickbooks. can doing:

print($vendorservice->lastrequest()); print($vendorservice->lastresponse());


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -