NetSuite Development Notes
Friday, June 21, 2019
Execute getCurrencyRate in PHP Toolkit
This provides a sample code to make a getCurrencyRate request using PHPToolkit 2013.1. The article requires a basic understanding of PHP and Web Services to get this working.
internalId = '4';$currFilter->fromCurrency = $currRef;$request = new GetCurrencyRateRequest();$request->currencyRateFilter = $currFilter;$getResponse = $service->getCurrencyRate($request);$currencyRate = $getResponse->getCurrencyRateResult->currencyRateList->currencyRate[0];echo 'baseCurrency: ' . $currencyRate->baseCurrency->internalId . '
';echo 'exchangeRate: ' . $currencyRate->exchangeRate . '
';echo 'effectiveDate: ' . $currencyRate->effectiveDate . '
';print_r($currencyRate);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment