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. A dropdown list of countries and territories to select from. |
| Carrier Code | Carrier code string identifying the shipping carrier. Must be one of the valid carrier codes returned by a separate carrier listing operation. |
| Package Weight/Desi (Kg) | Numeric value representing the package's weight or volumetric weight (desi) in kilograms. Must be between 0 and 100000. |
| Amazon Shipment | Boolean flag indicating whether the shipment is for Amazon. |
| 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 is not shown in the provided source, but typically it would include fields such as total price, currency, breakdown of charges, 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 API requests is
https://publicapi.shipentegra.com/v1. - The node expects the user to have carrier codes available, which can be retrieved via a separate "list carriers" operation.
- Proper configuration of language preference in credentials affects the
Accept-Languageheader.
Troubleshooting
- Invalid Carrier Code: If the carrier code provided is not recognized, the API will likely return an error. Ensure the carrier code matches one from the "list carriers" operation.
- Invalid Country Code: Providing an unsupported or incorrect country ISO code may cause errors or no price calculation.
- Weight/Desi Out of Range: Values less than 0 or greater than 100000 for package weight/desi are invalid.
- Missing Required Fields: All required fields must be provided; missing any required property will cause the request to fail.
- API Authentication Errors: Ensure the API key credential is correctly configured and has necessary permissions.
- Amazon Shipment Flag: Incorrectly setting this flag might affect pricing if special rates apply for Amazon shipments.
Links and References
- Shipentegra API Documentation (assumed base URL)
- ISO Country Codes Reference: https://www.iso.org/iso-3166-country-codes.html
- General Shipping and Logistics Pricing Concepts: https://en.wikipedia.org/wiki/Shipping_cost