Plastic bags

API reference for endpoints that can handle plastic bags

Last updated 12 Sept 2024

The endpoints on this page can handle a plastic bag package, which we have flagged as slightly special due to the difficulty of handling it.

Optimizing regular and bagable products together

While working with a company involved with pharmaceutical products, we have discovered a need to pack certain products into plastic bags. If you find yourself in similar situation, you can use the following endpoint:

postapi.skrym.com/core.CalculateOptimalPharmacyPackage

This endpoint will perform 2-phased optimization, where it will firstly pack the pharmaceutical (or rxProducts) products into plastic bags, and then pack those plastic bags together with any remaining regularProducts into the most optimal package.

Optimizing only baggable products

In case you only need to pack products into a plastic bag, you can use the following endpoint. Calling core.CalculateOptimalPharmacyPackage will also work, but this endpoint is simpler in the sense that it will not register the call as an order nor will it store the optimization result on our side.

postapi.skrym.com/optimization.SelectPrescriptionBag