我正在尝试从销售订单创建退货授权,但无法确定所需的参数。
我不断收到以下错误:
您必须为此交易输入至少一个行项目。
如果我尝试在销售订单中包含其中一个行项目的 ID,则会收到以下错误:
Savon::SOAPFault ((soapenv:Server.userException) com.netledger.util.schemabean.NLSchemaBeanException: id not found on {urn:customers_2016_2.transactions.webservices.netsuite.com} ReturnAuthorizationItem
这是我目前的要求
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:platformMsgs="urn:messages_2016_2.platform.webservices.netsuite.com" xmlns:platformCore="urn:core_2016_2.platform.webservices.netsuite.com"
xmlns:platformCommon="urn:common_2016_2.platform.webservices.netsuite.com" xmlns:tranSales="urn:sales_2016_2.transactions.webservices.netsuite.com" xmlns:tranCust="urn:customers_2016_2.transactions.webservices.netsuite.com">
<env:Header>
<platformMsgs:tokenPassport>
<platformCore:account>1234_SB1</platformCore:account>
<platformCore:consumerKey>***FILTERED***</platformCore:consumerKey>
<platformCore:token>***FILTERED***</platformCore:token>
<platformCore:nonce>s975gqhodufgodiueroh</platformCore:nonce>
<platformCore:timestamp>1531918396</platformCore:timestamp>
<platformCore:signature algorithm="HMAC-SHA256">p0z56JDUsN+ksjhfe8HEhdEU(WJff7u+0Yee7Axk=
</platformCore:signature>
</platformMsgs:tokenPassport>
<platformMsgs:preferences>
<platformMsgs:ignoreReadOnlyFields>true</platformMsgs:ignoreReadOnlyFields>
</platformMsgs:preferences>
</env:Header>
<env:Body>
<platformMsgs:add>
<platformMsgs:record xsi:type="tranCust:ReturnAuthorization">
<tranCust:entity internalId="173436">
<platformCore:name>C030420 John Thomas</platformCore:name>
</tranCust:entity>
<tranCust:itemList>
<tranCust:item>
<tranCust:id>21354</tranCust:id>
</tranCust:item>
</tranCust:itemList>
</platformMsgs:record>
</platformMsgs:add>
</env:Body>
</env:Envelope>
如果有人可以提供任何指导,将不胜感激。