RE: SOAP SalesOrder add request in secondary currency

I have multi-currency set up and my default currency is USD.

Can I send a sales order add request with a sales order in CAD (Canadian Dollars) and have it auto convert to USD for a USD-default customer?

I am trying with Postman but am getting the response…

<platformCore:statusDetail type=”ERROR”>
<platformCore:code>INSUFFICIENT_PERMISSION</platformCore:code>
<platformCore:message>You do not have permissions to set a value for element currencyname due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.</platformCore:message>
</platformCore:statusDetail>
Scot Beginner Asked on November 12, 2019 in SuiteTalk.
Add Comment
9 Answers

Hi Scot,

currencyName isn’t supported:
The 2011.2 and later endpoints include a change from previous endpoints to the currency field in the body of transactions. Endpoints prior to 2011.2 included the currencyName string type field. As of the 2011.2 endpoint, this field has been replaced by the currency RecordRef type field. If you upgrade to the 2011.2 endpoint or later, you must update any code that references currencyName.

So I think you’ll need something like:
<ns1:currency internalId=”10″ xsi:type=”ns2:RecordRef”/>

I’m just trying to find a previous sample but hope that helps for now.

Thanks,

Chris

Advanced Answered on November 12, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.