Skrym LogoPost-payment Optimization

Post-payment Optimization

Post-Payment Optimization API reference

Here you can find information about the post-payment optimization endpoint.

Post-payment

Basic

The post-payment endpoint always checks and validates that the provided order and product data is correct and usable before continuing. If the validation fails, the endpoint returns a 400 for failed product validation or a 500 for any internal error that may have occurred.

Using the product data, Skrym optimizes the packing of the products and splits them into multiple packages if needed.

Warning

You can re-trigger the optimization by using the same ID. This will override the previous result, which may affect some statistics and analytics.

Advanced

Skrym fetches the available transport methods and matches them to the chosen transport method for the calling retailer. Skrym then calculates a route between the given sender and receiver using the available transport terminals, resulting in a route and a transportation distance. If the call fails at this point, Skrym replies with a partially successful result containing just the package recommendation.

The transport distance, optimized package(s), and vehicle selection data are used to calculate the emissions of the given route for each package in the order.

Using the transport agreement, package information, and the chosen transport method, shipping costs—including additional fees and penalty fees—are calculated. The transport method is validated to ensure that delivery is possible through the chosen means.

postapi.skrym.com/core.OptimizePostPayment