The "Line" element under CreditMemo:Apply List does not correspond to line number as how the Invoice appears in the UI. When applying a credit memo via Web Services the "Line" element should not be passed through or populated as "0". If you do a "Get" operation on the credit memo before applying you will notice that Line Element for each Invoice listed under Apply tab comes back as zero. Please refer to the sample request :
soapenv:Body>
platformMsgs:update>
platformMsgs:record xsi:type="s0:CreditMemo" internalId="1996">
s0:applyList>
s0:apply>
s0:apply true /s0:apply
s0:doc 849 /s0:doc // internal id of the transaction
s0:total -1.0 /s0:total
s0:line 0 /s0:line // populate it as either 0 or do not populate it
/s0:apply
/s0:applyList
/platformMsgs:record
/platformMsgs:update
/soapenv:Body
No comments:
Post a Comment