API v2.0.0

Mandal variety E-Commerce API

Professional API router + live browser docs + Flutter integration examples.

https://api.mandal-variety.com/
43
Total endpoints

How to use this API

Step 1

Open the docs page and choose any endpoint group.

Step 2

Click an endpoint card to see URL, body, cURL, and Flutter code.

Step 3

Use GET API button to test live browser-accessible endpoints instantly.

Step 4

Use the shown Dio code in Flutter and replace sample values with real data.

System

2 endpoint(s)

Shows browser documentation for all APIs.

https://api.mandal-variety.com/
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "status": "PRODUCTION READY" }
cURL Example
curl -X GET "https://api.mandal-variety.com/" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Returns API uptime/basic health information.

https://api.mandal-variety.com/health
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "message": "API is running" }
cURL Example
curl -X GET "https://api.mandal-variety.com/health" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/health', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Categories

1 endpoint(s)

Get all active categories.

https://api.mandal-variety.com/categories/list.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [ { "id": 1, "name": "Category Name" } ] }
cURL Example
curl -X GET "https://api.mandal-variety.com/categories/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/categories/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Products

3 endpoint(s)

Get all products.

https://api.mandal-variety.com/products/list.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [ { "id": 1, "name": "Product Name", "price": 999 } ] }
cURL Example
curl -X GET "https://api.mandal-variety.com/products/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/products/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Get one product by id.

https://api.mandal-variety.com/products/detail.php/1
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": { "id": 1, "name": "Product Name", "price": 999 } }
cURL Example
curl -X GET "https://api.mandal-variety.com/products/detail.php/1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/products/detail.php/1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Create or update a product.

https://api.mandal-variety.com/products/manage.php/1
Query Parameters
[]
Request Body
{ "name": "Demo Product", "price": 999, "stock_quantity": 10 }
Sample Response
{ "success": true, "message": "Product saved successfully" }
cURL Example
curl -X POST|PUT "https://api.mandal-variety.com/products/manage.php/1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); final data = { "name": "Demo Product", "price": 999, "stock_quantity": 10 }; try { final response = await dio.post( 'https://api.mandal-variety.com/products/manage.php/1', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Cart

5 endpoint(s)

Get cart items of a user.

https://api.mandal-variety.com/cart/cart.php?user_id=1
GET API
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "data": { "user_id": 1, "items": [] } }
cURL Example
curl -X GET "https://api.mandal-variety.com/cart/cart.php?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/cart/cart.php?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Add product to cart.

https://api.mandal-variety.com/cart/add.php?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
{ "product_id": 1, "quantity": 2 }
Sample Response
{ "success": true, "message": "Added to cart!" }
cURL Example
curl -X POST "https://api.mandal-variety.com/cart/add.php?user_id=1" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "product_id": 1, "quantity": 2 }'
Flutter Dio Example
final dio = Dio(); final data = { "product_id": 1, "quantity": 2 }; try { final response = await dio.post( 'https://api.mandal-variety.com/cart/add.php?user_id=1', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Update cart quantity.

https://api.mandal-variety.com/cart/update.php?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
{ "cart_item_id": 1, "quantity": 3 }
Sample Response
{ "success": true, "message": "Cart updated" }
cURL Example
curl -X PUT "https://api.mandal-variety.com/cart/update.php?user_id=1" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "cart_item_id": 1, "quantity": 3 }'
Flutter Dio Example
final dio = Dio(); final data = { "cart_item_id": 1, "quantity": 3 }; try { final response = await dio.put( 'https://api.mandal-variety.com/cart/update.php?user_id=1', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Remove one item from cart.

https://api.mandal-variety.com/cart/remove.php/1?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "message": "Item removed" }
cURL Example
curl -X DELETE "https://api.mandal-variety.com/cart/remove.php/1?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.delete( 'https://api.mandal-variety.com/cart/remove.php/1?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Remove all cart items.

https://api.mandal-variety.com/cart/clear.php?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "message": "Cart cleared" }
cURL Example
curl -X DELETE "https://api.mandal-variety.com/cart/clear.php?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.delete( 'https://api.mandal-variety.com/cart/clear.php?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Wishlist

3 endpoint(s)

Get wishlist data.

https://api.mandal-variety.com/wishlist/list.php?user_id=1
GET API
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/wishlist/list.php?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/wishlist/list.php?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Add product to wishlist.

https://api.mandal-variety.com/wishlist/add.php?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
{ "product_id": 1 }
Sample Response
{ "success": true, "message": "Added to wishlist" }
cURL Example
curl -X POST "https://api.mandal-variety.com/wishlist/add.php?user_id=1" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "product_id": 1 }'
Flutter Dio Example
final dio = Dio(); final data = { "product_id": 1 }; try { final response = await dio.post( 'https://api.mandal-variety.com/wishlist/add.php?user_id=1', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Remove product from wishlist.

https://api.mandal-variety.com/wishlist/remove.php/1?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "message": "Removed from wishlist" }
cURL Example
curl -X DELETE "https://api.mandal-variety.com/wishlist/remove.php/1?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.delete( 'https://api.mandal-variety.com/wishlist/remove.php/1?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Orders

4 endpoint(s)

Get all orders for one user.

https://api.mandal-variety.com/orders/list.php?user_id=1
GET API
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/orders/list.php?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/orders/list.php?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Get one order detail.

https://api.mandal-variety.com/orders/detail.php/1?user_id=1
GET API
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "data": { "id": 1 } }
cURL Example
curl -X GET "https://api.mandal-variety.com/orders/detail.php/1?user_id=1" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/orders/detail.php/1?user_id=1', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Create order from cart.

https://api.mandal-variety.com/orders/create.php?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
{ "address": "Siliguri", "payment_method": "cod" }
Sample Response
{ "success": true, "message": "Order created" }
cURL Example
curl -X POST "https://api.mandal-variety.com/orders/create.php?user_id=1" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "address": "Siliguri", "payment_method": "cod" }'
Flutter Dio Example
final dio = Dio(); final data = { "address": "Siliguri", "payment_method": "cod" }; try { final response = await dio.post( 'https://api.mandal-variety.com/orders/create.php?user_id=1', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Cancel pending order.

https://api.mandal-variety.com/orders/cancel.php/1?user_id=1
Query Parameters
{ "user_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "message": "Order cancelled" }
cURL Example
curl -X POST "https://api.mandal-variety.com/orders/cancel.php/1?user_id=1" \ -H "Accept: application/json" \ -H "Content-Type: application/json"
Flutter Dio Example
final dio = Dio(); final data = null; try { final response = await dio.post( 'https://api.mandal-variety.com/orders/cancel.php/1?user_id=1', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Auth

5 endpoint(s)

Register customer account.

https://api.mandal-variety.com/auth/register.php
Query Parameters
[]
Request Body
{ "name": "Sribash", "email": "Sribash@example.com", "phone": "9876543210", "password": "123456" }
Sample Response
{ "success": true, "message": "OTP sent successfully" }
cURL Example
curl -X POST "https://api.mandal-variety.com/auth/register.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "name": "Sribash", "email": "Sribash@example.com", "phone": "9876543210", "password": "123456" }'
Flutter Dio Example
final dio = Dio(); final data = { "name": "Sribash", "email": "Sribash@example.com", "phone": "9876543210", "password": "123456" }; try { final response = await dio.post( 'https://api.mandal-variety.com/auth/register.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Verify OTP and complete registration.

https://api.mandal-variety.com/auth/verify.php
Query Parameters
[]
Request Body
{ "otp": "123456" }
Sample Response
{ "success": true, "message": "Registration successful" }
cURL Example
curl -X POST "https://api.mandal-variety.com/auth/verify.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "otp": "123456" }'
Flutter Dio Example
final dio = Dio(); final data = { "otp": "123456" }; try { final response = await dio.post( 'https://api.mandal-variety.com/auth/verify.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Login with email and password.

https://api.mandal-variety.com/auth/login.php
Query Parameters
[]
Request Body
{ "email": "Sribash@example.com", "password": "123456" }
Sample Response
{ "success": true, "data": { "id": 1, "name": "Sribash" } }
cURL Example
curl -X POST "https://api.mandal-variety.com/auth/login.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "email": "Sribash@example.com", "password": "123456" }'
Flutter Dio Example
final dio = Dio(); final data = { "email": "Sribash@example.com", "password": "123456" }; try { final response = await dio.post( 'https://api.mandal-variety.com/auth/login.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Logout current user.

https://api.mandal-variety.com/auth/logout.php
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "message": "Logged out successfully" }
cURL Example
curl -X POST "https://api.mandal-variety.com/auth/logout.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json"
Flutter Dio Example
final dio = Dio(); final data = null; try { final response = await dio.post( 'https://api.mandal-variety.com/auth/logout.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Get logged in user profile.

https://api.mandal-variety.com/auth/profile.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": { "id": 1, "name": "Sribash" } }
cURL Example
curl -X GET "https://api.mandal-variety.com/auth/profile.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/auth/profile.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Reviews

2 endpoint(s)

Get reviews for a product or user.

https://api.mandal-variety.com/reviews/list.php
GET API
Query Parameters
{ "product_id": 1 }
Request Body
No body required
Sample Response
{ "success": true, "data": [ { "id": 1, "rating": 5, "comment": "Great!" } ] }
cURL Example
curl -X GET "https://api.mandal-variety.com/reviews/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/reviews/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Submit a new review.

https://api.mandal-variety.com/reviews/add.php
Query Parameters
{ "user_id": 1 }
Request Body
{ "product_id": 1, "rating": 5, "title": "Awesome", "comment": "Great product!" }
Sample Response
{ "success": true, "message": "Review submitted successfully and is pending approval" }
cURL Example
curl -X POST "https://api.mandal-variety.com/reviews/add.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "product_id": 1, "rating": 5, "title": "Awesome", "comment": "Great product!" }'
Flutter Dio Example
final dio = Dio(); final data = { "product_id": 1, "rating": 5, "title": "Awesome", "comment": "Great product!" }; try { final response = await dio.post( 'https://api.mandal-variety.com/reviews/add.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Coupons

2 endpoint(s)

Get all coupons

https://api.mandal-variety.com/coupons/list.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/coupons/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/coupons/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Create/Update/Delete coupons

https://api.mandal-variety.com/coupons/manage.php
Query Parameters
[]
Request Body
{ "code": "DISCOUNT10", "discount": 10 }
Sample Response
{ "success": true, "message": "Coupon created successfully" }
cURL Example
curl -X POST|PUT|DELETE "https://api.mandal-variety.com/coupons/manage.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); final data = { "code": "DISCOUNT10", "discount": 10 }; try { final response = await dio.post( 'https://api.mandal-variety.com/coupons/manage.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Offers

2 endpoint(s)

Get all offers

https://api.mandal-variety.com/offers/list.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/offers/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/offers/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Create/Update/Delete offers

https://api.mandal-variety.com/offers/manage.php
Query Parameters
[]
Request Body
{ "offer_name": "Summer Sale", "offer_value": 20 }
Sample Response
{ "success": true, "message": "Offer created successfully" }
cURL Example
curl -X POST|PUT|DELETE "https://api.mandal-variety.com/offers/manage.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); final data = { "offer_name": "Summer Sale", "offer_value": 20 }; try { final response = await dio.post( 'https://api.mandal-variety.com/offers/manage.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Settings

2 endpoint(s)

Get all settings

https://api.mandal-variety.com/settings/get.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": { "site_name": "Store" } }
cURL Example
curl -X GET "https://api.mandal-variety.com/settings/get.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/settings/get.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Update site settings

https://api.mandal-variety.com/settings/update.php
Query Parameters
[]
Request Body
{ "site_name": "My New Store" }
Sample Response
{ "success": true, "message": "Settings updated successfully" }
cURL Example
curl -X POST "https://api.mandal-variety.com/settings/update.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "site_name": "My New Store" }'
Flutter Dio Example
final dio = Dio(); final data = { "site_name": "My New Store" }; try { final response = await dio.post( 'https://api.mandal-variety.com/settings/update.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Policies

3 endpoint(s)

Get all policies

https://api.mandal-variety.com/policies/list.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/policies/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/policies/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Get single policy

https://api.mandal-variety.com/policies/detail.php?slug=privacy-policy
GET API
Query Parameters
{ "slug": "privacy-policy" }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/policies/detail.php?slug=privacy-policy" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/policies/detail.php?slug=privacy-policy', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Create/Update/Delete policies

https://api.mandal-variety.com/policies/manage.php
Query Parameters
[]
Request Body
{ "title": "Privacy", "content": "Data..." }
Sample Response
{ "success": true, "message": "Policy created successfully" }
cURL Example
curl -X POST|PUT|DELETE "https://api.mandal-variety.com/policies/manage.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); final data = { "title": "Privacy", "content": "Data..." }; try { final response = await dio.post( 'https://api.mandal-variety.com/policies/manage.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Age Verifications

2 endpoint(s)

Get verifications

https://api.mandal-variety.com/age_verifications/list.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/age_verifications/list.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/age_verifications/list.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Submit/Review verifications

https://api.mandal-variety.com/age_verifications/manage
Query Parameters
[]
Request Body
{ "user_id": 1, "full_name": "John Doe" }
Sample Response
{ "success": true, "message": "Verification submitted successfully" }
cURL Example
curl -X POST|PUT "https://api.mandal-variety.com/age_verifications/manage" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); final data = { "user_id": 1, "full_name": "John Doe" }; try { final response = await dio.post( 'https://api.mandal-variety.com/age_verifications/manage', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Advanced Search

7 endpoint(s)

Search across products and categories with typo handling

https://api.mandal-variety.com/search/global.php
GET API
Query Parameters
{ "q": "milk" }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/search/global.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/search/global.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Search only products

https://api.mandal-variety.com/search/products.php
GET API
Query Parameters
{ "q": "milk" }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/search/products.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/search/products.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Search only categories

https://api.mandal-variety.com/search/categories.php
GET API
Query Parameters
{ "q": "milk" }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/search/categories.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/search/categories.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Get autocomplete suggestions

https://api.mandal-variety.com/search/suggestions.php
GET API
Query Parameters
{ "q": "sh" }
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/search/suggestions.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/search/suggestions.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Fallback related products

https://api.mandal-variety.com/search/related.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/search/related.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/search/related.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Get popular search terms

https://api.mandal-variety.com/search/popular.php
GET API
Query Parameters
[]
Request Body
No body required
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X GET "https://api.mandal-variety.com/search/popular.php" \ -H "Accept: application/json"
Flutter Dio Example
final dio = Dio(); try { final response = await dio.get( 'https://api.mandal-variety.com/search/popular.php', options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI

Process voice query

https://api.mandal-variety.com/search/voice.php
Query Parameters
[]
Request Body
{ "query": "milk shake" }
Sample Response
{ "success": true, "data": [] }
cURL Example
curl -X POST "https://api.mandal-variety.com/search/voice.php" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "query": "milk shake" }'
Flutter Dio Example
final dio = Dio(); final data = { "query": "milk shake" }; try { final response = await dio.post( 'https://api.mandal-variety.com/search/voice.php', data: data, options: Options(headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }), ); print(response.data); } catch (e) { print(e); }
Flutter Flow
1. Add dio package in pubspec.yaml 2. Set your baseUrl = "https://api.mandal-variety.com/" 3. Create Dio instance in ApiService 4. Call endpoint using GET/POST/PUT/DELETE 5. Parse response.data in model 6. Show success/error message in Flutter UI