Pardomart
  1. Fees
Pardomart
  • auth
    • Register User
      POST
    • Initiate Login
      POST
    • Verify And Login
      POST
    • Resend Verification Code
      POST
    • Get All Time Zones
      GET
  • user
    • Get All Users
      GET
    • Get Verification Codes
      GET
    • Delete user by ID
      DELETE
  • vendor
    • Get All Vendors
      GET
    • Get Vendor By ID
      GET
    • Get vendors by User ID
      GET
    • Create Vendor profile
      POST
    • Update Vendor Profile
      PATCH
    • Delete vendor by Id
      DELETE
  • openingHours
    • Update Opening Hours
      PATCH
  • product
    • Get all Products
      GET
    • Get all vendor products
      GET
    • Create Vendor Product
      POST
    • Get Product By Barcode
      GET
    • Get Vendor Product By Barcode
      GET
    • Delete product by ID
      DELETE
    • Delete Vendor Product By ID
      DELETE
    • Update vendor product
      PATCH
  • category
    • Create Bulk Categories
    • Get All Categories
    • Create One Category
    • Delete One Category
  • tags
    • Create Bulk Tags
    • Get All Tags
    • Create One Tag
    • Update Tag
    • Delete One Tag
  • general search
    • General Search Product
    • General Search Vendors
    • General Search Category
    • Search vendors, categories and products
  • Cart
    • Add to Cart
    • Get cart by userId
    • Delete Cart Item
  • Order
    • Create Order
    • Get order by Id
    • Get Orders By User Id
    • Update Order
    • Update order status
  • Fees
    • Fetch All Fees
      GET
    • Create a fee (For Admin)
      POST
    • Get Fees by type
      GET
    • Update Fee data
      PATCH
    • Calculate Fees
      POST
  • Delivery Address
    • Add New Address
    • Get Delivery Address By Id
    • Get All User Delivery Addresses
    • Get Default Delivery Address
    • Update Delivery Address
    • Delete Delivery Address
  1. Fees

Calculate Fees

Developing
POST
/fees/calculate-fees

Request

Body Params application/json

Example
{
    "vendorId": "b34b8eea-d23a-4b0a-88c7-1c6833cb801f",
    "deliveryAddressId": "117f5b08-57fe-41dc-9534-c79c7389c33e",
    "orderItems": [
    {
        "vendorProductId": "2d3a004c-e978-442c-bd33-15e67f45c5a0",
        "quantity": 2
    },
    {
        "vendorProductId": "3a86efed-b3ec-4b01-9754-cee6b3c8de1d",
        "quantity": 3
    },
    {
        "vendorProductId": "4597bbfa-68ce-408c-8a7d-ef8eb983d4e6",
        "quantity": 1
    }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/fees/calculate-fees' \
--header 'Content-Type: application/json' \
--data-raw '{
    "vendorId": "b34b8eea-d23a-4b0a-88c7-1c6833cb801f",
    "deliveryAddressId": "117f5b08-57fe-41dc-9534-c79c7389c33e",
    "orderItems": [
    {
        "vendorProductId": "2d3a004c-e978-442c-bd33-15e67f45c5a0",
        "quantity": 2
    },
    {
        "vendorProductId": "3a86efed-b3ec-4b01-9754-cee6b3c8de1d",
        "quantity": 3
    },
    {
        "vendorProductId": "4597bbfa-68ce-408c-8a7d-ef8eb983d4e6",
        "quantity": 1
    }
    ]
}'

Responses

🟢200OK
application/json
Body

Example
{
    "subtotal": 0,
    "shoppingFee": 0,
    "deliveryFee": 0,
    "serviceFee": 0,
    "totalEstimatedCost": 0
}
Modified at 2025-06-24 10:37:35
Previous
Update Fee data
Next
Add New Address
Built with