1. Packages
  • Overview
  • Packages
    • Create a shipment
      POST
    • Generate an AWB PDF for one or more packages
      POST
    • Get a package's current status
      GET
    • Get a package's full status history
      GET
    • List the possible package statuses
      GET
    • Cancel a package
      PUT
    • Return a package to sender
      PUT
    • List the company's service types
      GET
    • Calculate a shipment's delivery cost
      POST
    • List the company's vehicle types
      GET
    • List the company's parcel types
      GET
  • Webhooks
    • Package Status Webhook
  • Addresses
    • List the company's address book
      GET
    • List regions
      GET
    • List a region's cities
      GET
    • List a city's villages
      GET
    • List villages
      GET
  • Schemas
    • NoteMessage
    • AddressDto
    • IntegrationPackageRequestDto
    • ParcelType
    • IntegrationAddressDto
    • CitiesTripsTimeSchedule
    • IntegrationShipmentDto
    • CreatingPackageDto
    • MainCitiesTripsTimeSchedule
    • PackageItemsToDeliver
    • PackageIdentifiersWrapper
    • Address
    • LocalizedKeyData
    • CodChangeRequest
    • PackageStatusResponse
    • Customer
    • CustomerPromo
    • GeofenceData
    • CustomersPaymentTypes
    • DeliveryPaymentType
    • Device
    • DriverFailFollowUp
    • LabelConditionDto
    • LabelDto
    • LclSupplier
    • LenDetails
    • Location
    • MandatoryPackageFieldsConfig
    • NamedObject
    • NoteMessageInfo
    • Package
    • PackageApprovalFail
    • PackageApprovalPostpone
    • PackageApprovalReturn
    • PackageContent
    • PackageContentItem
    • PackageDevice
    • PackageFailure
    • PackageItem
    • PackageLocationMessage
    • PackageTrackingNodeMessage
    • PackageTrackingStatusCount
    • PalShipRole
    • PartnerConfigDto
    • PartnerDto
    • PostponePackageMessageInfo
    • Product
    • ProductExpiryBatchLot
    • ProductVariant
    • ProductVariantOption
    • ServiceType
    • SmsGateway
    • SubPackage
    • User
    • UserAttachmentsDto
    • Vehicle
    • VehicleType
    • GetPackageCostMessage
    • JettShippingRate
    • JettShippingRateDetails
    • NameAndIdDto
    • Region
    • City
    • Village
    • ModelTableMessageVillage
    • MoneyInfoDto
  1. Packages

Calculate a shipment's delivery cost

POST
/secure/integration/packages/cost
Returns the delivery cost the company charges this API key's customer for a shipment with the given origin/destination regions, service type and size. Uses the customer's own shipping rates; any customerId in the body is ignored.

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Body Params application/json

Examples

Responses

🟢200OK
*/*
Cost, e.g. {"cost": 25.0}
Body*/*

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://apisv5.logestechs.com/api/secure/integration/packages/cost' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "originRegionId": 0,
    "destinationRegionId": 0,
    "destinationVillageId": 0,
    "parcelTypeId": 0,
    "isDeliverToReceivingPoint": true,
    "customerId": 0,
    "serviceTypeId": 0,
    "vehicleTypeId": 0,
    "packageId": 0,
    "weight": 0,
    "totalDistance": 0,
    "shipmentType": "REGULAR",
    "length": 0,
    "depth": 0,
    "width": 0,
    "cod": 0,
    "isInsured": true,
    "paymentType": "CASH",
    "paymentTypeId": 0,
    "promoId": 0,
    "quantity": 0,
    "subPackages": [
        {
            "createdDate": "2019-08-24T14:15:22.123Z",
            "id": 0,
            "companyId": 0,
            "weight": 0,
            "width": 0,
            "length": 0,
            "height": 0,
            "invoiceNumber": "string",
            "invoiceNumberBarcodeImage": "string",
            "barcode": "string",
            "barcodeImage": "string",
            "packageId": 0,
            "cost": 0
        }
    ],
    "deliverToReceivingPoint": true
}'
Response Response Example
200 - Example 1
{
    "property1": 0,
    "property2": 0
}
Modified at 2026-09-28 08:12:32
Previous
List the company's service types
Next
List the company's vehicle types
Built with