Shopify Native Actions - Ecommerce Actions
In this section, we will talk about the “Ecommerce” related actions. UChat support below customer related actions:
Add to Cart
Remove from Cart
Empty Cart
Get Cart Items
Create draft order From Cart
Now, let’s go over these actions one by one.
- 1 Add To Cart
- 1.1 Input
- 1.2 Response Payload
- 2 Remove From Cart
- 2.1 Input
- 2.2 Response Payload
- 3 Empty Cart
- 3.1 Input
- 3.2 Response Payload
- 4 Get Cart Items
- 4.1 Input
- 4.2 Response Payload
- 5 Create Draft Order From Cart
- 5.1 Input
- 5.2 Response Payload
Add To Cart
This action is used to add a product to a user’s cart using bot user’s NS and variant id of the product.
Input
Response Payload
{ |
Remove From Cart
This action is used to remove an item from the cart using user NS and variant Id.
Input
Response Payload
{ |
Empty Cart
This action is used to completely empty a cart for a user using their user NS
Input
Response Payload
{ |
Get Cart Items
This action is used to fetch cart information of a bot user , using their user NS
Input
Response Payload
{ |
Create Draft Order From Cart
This action is used to create a draft order using line items available in the cart.
Input
Response Payload
{ |