Reply
Highlighted
Member
Posts: 1
Registered: ‎06-22-2017
Accepted Solution

Send multiple lineItems using xml string

I am using xml to send request data. The process works well, however, I cannot send more than one lineItems.  What should the xml format looks like if I have more than one items?

I tried code below, got error, so I have only one <lineItem> inside <lineItems> now.

<lineItems>
      <lineItem1>
        <itemId>1</itemId>
        <name>vase</name>
        <description>Cannes logo </description>
        <quantity>18</quantity>
        <unitPrice>45.00</unitPrice>
      </lineItem>
      <lineItem2>
        <itemId>2</itemId>
        <name>something</name>
        <description>test item </description>
        <quantity>1</quantity>
        <unitPrice>10</unitPrice>
      </lineItem>
</lineItems>

 Any suggestions?


Accepted Solutions
Highlighted
Solution
Accepted by topic author mgxj
‎06-22-2017 02:49 PM
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Send multiple lineItems using xml string

Hello @mgxj

 

Try using just <lineItem> instead of <lineItem1>

 

Richard

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author mgxj
‎06-22-2017 02:49 PM
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Send multiple lineItems using xml string

Hello @mgxj

 

Try using just <lineItem> instead of <lineItem1>

 

Richard