What is "uid", "i", & "b" in get cart details API

Please help with the understanding of following parameters in the below API for app.
How do we get the values of “uid”, “i”, & “b”.

SdkClient.getApplicationClient()?.cart?.getCart(
id = uid,
i = i,
b = b,
areaCode = areaCode
)?.wrapperSafeAwait()

Hello @Abhishek_Singh

The “getCart” SDK method which you are reffering to is used to fetch all items added to the cart.

response = await applicationClient.cart.getCart(
		id = "value",
		i = False,
		b = False,
		c = False,
		assign_card_id = 0,
		area_code = "value",
		buy_now = False
)

The input parameters which you are referring to are as follows:

  • id (string) >> The unique identifier of the cart
  • i(boolean) >> This is a boolean value. Select true to retrieve all the items added in the cart.
  • b(boolean) >> This is a boolean value. Select true to retrieve the price breakup of cart items.
  • c(boolean) >> This is a boolean value. Select true to retrieve the cod charges in breakup of cart items.
  • area_code(string)>> Customer servicable area_code

For more details, please refer this: Cart | Fynd Partners Help Center

Hi Afroz, thanks

Could you please help me understand the 2nd part of the question, how do i get the cart id?

When you call the getCart SDK, you will receive the cart ID in response. So, when the SDK is triggered, it calls an internal cart service that provides the unique cart ID.