如何在quickbook供应商中添加phone号?
How to add phone number in quickbook vendor?
我无法在供应商中添加 primaryPhone、AlternativePhone、PrimaryEmailAddr、WebAddr 和 BillAddr。将价值传递给供应商 api 有什么不对吗?请帮助我如何传递这个值。
$dataService = QuickbookConnection::createQBConnection();
$serviceType = IntuitServicesType::QBO;
$vendObj = new IPPVendor();
$vendObj->SyncToken = $vendData['contactID'];
$vendObj->GivenName = $vendData['fName'];
$vendObj->FamilyName = $vendData['lName'];
$vendObj->DisplayName = $vendData['cName'];
$vendObj->CompanyName = $vendData['cName'];
$vendObj->PrimaryPhone = $vendData['phone'];
$vendObj->AlternatePhone = $vendData['altPhone'];
$vendObj->PrimaryEmailAddr = $vendData['email'];
$vendObj->WebAddr = $vendData['web'];
$vendObj->BillAddr = $vendData['address'] ." ". $vendData['citystate'];
$vendObj->Active = true;
$resultingObj = $dataService->Add($vendObj);
$QbVendorID = $resultingObj->Id;
上面提到的所有属性都是复杂类型。
见- https://developer.intuit.com/docs/api/accounting/Vendor
PrimaryEmailAddr 有一个 Child 属性 'Address'
同样,上述所有其他字段都具有需要设置的子属性,而不是顶部 属性 名称。
我无法在供应商中添加 primaryPhone、AlternativePhone、PrimaryEmailAddr、WebAddr 和 BillAddr。将价值传递给供应商 api 有什么不对吗?请帮助我如何传递这个值。
$dataService = QuickbookConnection::createQBConnection();
$serviceType = IntuitServicesType::QBO;
$vendObj = new IPPVendor();
$vendObj->SyncToken = $vendData['contactID'];
$vendObj->GivenName = $vendData['fName'];
$vendObj->FamilyName = $vendData['lName'];
$vendObj->DisplayName = $vendData['cName'];
$vendObj->CompanyName = $vendData['cName'];
$vendObj->PrimaryPhone = $vendData['phone'];
$vendObj->AlternatePhone = $vendData['altPhone'];
$vendObj->PrimaryEmailAddr = $vendData['email'];
$vendObj->WebAddr = $vendData['web'];
$vendObj->BillAddr = $vendData['address'] ." ". $vendData['citystate'];
$vendObj->Active = true;
$resultingObj = $dataService->Add($vendObj);
$QbVendorID = $resultingObj->Id;
上面提到的所有属性都是复杂类型。 见- https://developer.intuit.com/docs/api/accounting/Vendor
PrimaryEmailAddr 有一个 Child 属性 'Address' 同样,上述所有其他字段都具有需要设置的子属性,而不是顶部 属性 名称。