bagisto / rest-api

Bagisto REST API provides powerful and flexible endpoints to manage e-commerce operations, including products, orders, customers, and more.
21 stars 25 forks source link

Getting "Internal Server Error" in cart page apis. #284

Closed nishant-webkul closed 3 months ago

nishant-webkul commented 4 months ago

Rest API - v2.1.2

Bagisto Core - v2.1.2

API-

Store -> Cart -> /api/v1/customer/cart Get customer/guest's cart

Reference Screenshot-

Bagisto-Rest-Shop-API-Documentation

Store -> Cart -> /api/v1/customer/cart/add/{productId} Add product to customer's cart

Reference Screenshot-

Bagisto-Rest-Shop-API-Documentation

Store -> Cart -> /api/v1/customer/cart/update Update cart item

Reference Screenshot-

Bagisto-Rest-Shop-API-Documentation

Store -> Cart -> /api/v1/customer/cart/remove/{cartItemId} Delete item from cart using cart item id

Reference Screenshot-

Bagisto-Rest-Shop-API-Documentation

Store -> Cart -> /api/v1/customer/cart/coupon Apply coupon to cart

Reference Screenshot-

Bagisto-Rest-Shop-API-Documentation (1)

Store -> Cart -> /api/v1/customer/cart/coupon Remove cart coupon

Reference Screenshot-

Bagisto-Rest-Shop-API-Documentation (1)

amit-webkul commented 3 months ago

I have checked all the APi's one by one and found that all APi's are working fine. I have added a screenshot for all APi's as a reference:

Cart page: Rest-APi-cart-page

Cart Move to Wishlist: Rest-APi-Cart-page-move-to-wishlist

Remove from cart: REST-API-cart-remove

Update cart quantity: REST-API-Cart-update-qty

Apply the coupon code in the cart: REST-API-Coupon

Remove the coupon from the cart. REST-API-Coupon-remove