question

dhanaraj avatar image
dhanaraj asked Raymond Lee Deactivated answered

Exchange lineItem using API or Intent

Can any one suggest me for exchanging line item. If it would be intent, it will more helpful for me.
REST APIIntents
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Raymond Lee avatar image
Raymond Lee Deactivated answered
Hi @Dhanaraj,

To exchange a line item through Android SDK, you can use the OrderConnector's exchangeItem() method.

You need to provide the orderId, oldLineItemId, and the itemId of the new item you are exchanging for. You can leave the binName and userData fields empty.

Here is an example:

mOrderConnector.exchangeItem("1YBTR04P1WJHG", "3PXGEPFS5RPVW", "R6CM686K3HFVC", "", "");

Hope that helps,

Raymond
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community