Actions12
Overview
The "Calculate Price" operation of the Shipentegra node calculates the shipping price for a package based on various input parameters such as destination country, carrier, package weight or volume (desi), and whether the shipment is for Amazon. This node is useful in logistics and e-commerce workflows where automated price calculation for shipments is required before creating orders or labels.
Typical use cases include:
- E-commerce platforms calculating shipping costs dynamically during order processing.
- Logistics companies integrating multiple carriers and needing to compare prices.
- Automated workflows that prepare shipping documentation and need pricing info upfront.
Properties
| Name | Meaning |
|---|---|
| Country | Destination country ISO code. Select from a comprehensive list of countries and territories. |
| Carrier Code | Carrier code string identifying the shipping carrier. Must be one of the valid carrier codes. |
| Package Weight/Desi (Kg) | Numeric value representing the package's weight or volumetric weight (desi) in kilograms. |
| Amazon Shipment | Boolean flag indicating if the shipment is for Amazon (true/false). |
| Order ID | Optional numeric order identifier associated with the shipment. |
Output
The node outputs JSON data containing the calculated shipping price details. The exact structure depends on the API response but typically includes fields such as total price, currency, breakdown by service components, and possibly estimated delivery times.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authenticating with the Shipentegra public API.
- The base URL for requests is
https://publicapi.shipentegra.com/v1. - The node expects JSON responses and sends JSON requests.
- Proper carrier codes must be used, which can be retrieved via the node’s "list carriers" operation.
Troubleshooting
- Invalid Carrier Code: If the carrier code is not recognized, the API will likely return an error. Ensure the carrier code matches one from the listCarriers operation.
- Missing Required Fields: The country, carrier code, and package weight/desi are mandatory. Omitting these will cause errors.
- API Authentication Errors: Verify that the API key credential is correctly configured and has necessary permissions.
- Invalid Country Code: Use only valid ISO codes from the provided list; otherwise, the API may reject the request.
- Weight/Desi Out of Range: The package weight/desi must be between 0 and 100000 kg. Values outside this range will cause validation errors.
Links and References
- Shipentegra API Documentation (assumed base URL)
- ISO Country Codes Reference: https://www.iso.org/iso-3166-country-codes.html
This summary is based solely on static analysis of the provided source and property definitions.