Incorrect delivery fee in cart response

19 views
Skip to first unread message

Brian

unread,
Nov 17, 2016, 1:33:08 PM11/17/16
to deliverydotcom API V2
When removing an item from the customer cart, the delivery fee returns 0, when the merchant is actually charging a fee.

To recreate (using api.delivery.com):
1. Go to merchant: GET /merchant/59041/menu?client_id=[CLIENT_ID]
2. Add items to the cart: POST /customer/cart/59041?client_id=[CLIENT_ID] (I added multiple items so that the cart would not be empty when removing an item)
3. Remove an item from the cart DELETE /customer/cart/59041?client_id=[CLIENT_ID]

The response returned when removing the item results in the "delivery_fee" property equal to 0, and the "fees" array being empty.

Sixuan Liu

unread,
Nov 17, 2016, 1:41:13 PM11/17/16
to deliverydotcom API V2
Hi,

Are you passing in the address info on your cart call? If not, please add that like this because address is needed to calculate the correct delivery fee.

If you did pass in address, please share with me the exact request you were making so that I can look on my end.

Best,
Sixuan


Brian

unread,
Nov 17, 2016, 1:49:34 PM11/17/16
to deliverydotcom API V2
Hi,

You are right, we are missing the address for the DELETE request (had it in the others). I haven't made the change yet, but I will assume that it will fix it.

Thank you.
Reply all
Reply to author
Forward
0 new messages