1. send shipment for vendor
collection
  • LFL
    • locations
      • locations for vendor
    • currency
      • currency index
    • send shipment for vendor
      • send list shipment for vendor
        POST
      • calculate shipping rate
        POST
    • addresses for vendor
      • all addresses for vendor
      • add address for vendor
      • update address for vendor
      • delete address for vendor
      • show address for vendor
    • vendor credentials
      • token generate
      • shipping rates
  1. send shipment for vendor

calculate shipping rate

Developing
POST
https://lfl.lfl-express.com/api/vendor/v1/list/estimateShippingCost

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://lfl.lfl-express.com/api/vendor/v1/list/estimateShippingCost' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "receiver_governorate_id": 51,
      "currency_id": 2,
    "shipments": [
        {
            "address_id": "c5c07886-9b4d-4ebf-97cd-14d16cef71fe",
            "weight": 4,
            "who_pays_shipping": "sender",
            "package_type": "box",
            "cod_amount": 50000
        },
        {
            "address_id": "8a6c3b92-12f0-4fd6-bb84-0050d001a045",
            "weight": 7.5,
            "who_pays_shipping": "recipient",
            "package_type": "bag",  
            "cod_amount": 100000
        },
          {
            "address_id": "4904c5ba-995d-4b60-a0a9-a785a59c452c",
           // "weight": 7.5,
            "who_pays_shipping": "recipient",
            "package_type": "document",  
            "cod_amount": 100000
        }
    ]
}'
Response Response Example
calculate shipping
{
    "status": true,
    "message": "تم حساب أجور الشحن بنجاح.",
    "data": {
        "discount_percentage": 20,
        "summary": {
            "total_shipments": 2,
            "total_cod_amount": 150000,
            "total_cod_commission": 1500,
            "total_original_shipping": 1100,
            "total_discount_amount": 220,
            "total_net_shipping": 880,
            "total_due_from_sender": 900,
            "total_due_from_receiver": 151480
        },
        "shipments": [
            {
                "item_index": 1,
                "address_id": "c5c07886-9b4d-4ebf-97cd-14d16cef71fe",
                "sender_governorate_id": 39,
                "is_same_governorate": false,
                "package_type": "box",
                "weight": 4,
                "who_pays_shipping": "sender",
                "cod_amount": 50000,
                "original_shipping_price": "500.00",
                "discount_amount": 100,
                "shipping_price": 400,
                "cod_commission": 500,
                "amount_from_sender": 900,
                "amount_from_receiver": 50000
            },
            {
                "item_index": 2,
                "address_id": "4904c5ba-995d-4b60-a0a9-a785a59c452c",
                "sender_governorate_id": 39,
                "is_same_governorate": false,
                "package_type": "bag",
                "weight": 7.5,
                "who_pays_shipping": "recipient",
                "cod_amount": 100000,
                "original_shipping_price": "600.00",
                "discount_amount": 120,
                "shipping_price": 480,
                "cod_commission": 1000,
                "amount_from_sender": 0,
                "amount_from_receiver": 101480
            }
        ]
    }
}
Modified at 2026-10-12 11:45:35
Previous
send list shipment for vendor
Next
all addresses for vendor
Built with