# Pricing using LineItemSuggestions
Here at Zaikio, we want to support you in easily finding the optimal SKU combination and prices for your needs. As such we built the so called Line Item Suggester
that you can access using the LineItemSuggestions Endpoint (opens new window)
Using a few parameters it will automatically calculate the optimal SKU/Price combination for any Variant
and desired amount, determine prices and return the full result to you.
Currently the optimisation only supports finding results based on the cheapest total price. In the future we will also support other optimisation methods like fastest delivery.
# Usage
# Example Request
GET /suppliers/a362331b-e105-5ead-a691-e767ce70dd11/line_item_suggestions
Request Body
{
"line_item_suggestions": {
"delivery_date": "2021-04-06",
"site_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"variants": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amount": 20000,
"exact_amount": true,
"environmental_certification": "FSC 30%",
"unit": "sheet"
}
]
}
}
# Example Response
{
"cheapest_total_net_price": "178.8",
"cheapest_total_net_currency": "EUR",
"exclusive_sales_group_id": null,
"line_item_suggestions": [
{
"variant_id": "a31c505e-93df-54d1-889d-7cbdb569829a",
"options": [
{
"description": "cheapest",
"net_total_price": "178.8",
"unit": "sheet",
"total_amount_in_requested_unit": "10000.0",
"skus": [
{
"net_price_per_sku": "0.01788",
"net_total_price": "178.8",
"required_quantity": 10000,
"sku": {
"id": "0c9af85b-1cab-590a-905e-038acd9bdfe3",
"amount": 1,
"amount_in_base_unit": 1,
"availability_in_days": null,
"dimension_unit": "mm",
"environmental_certification": null,
"gross_weight": "68.77",
"height": "0.123",
"length": "650.0",
"net_weight": "68.77",
"order_number": "MAGVOL|115|92.0|65.0|0250|000000||S|SH||v1",
"unit": "sheet",
"weight_unit": "g",
"width": "920.0",
"variant_id": "a31c505e-93df-54d1-889d-7cbdb569829a",
"variant": {
"id": "a31c505e-93df-54d1-889d-7cbdb569829a",
"type": "SubstrateVariant",
"links": [
{
"rel": "self",
"href": "/consumers/api/v1/variants/a31c505e-93df-54d1-889d-7cbdb569829a"
}
]
},
"created_at": "2021-02-04T12:14:27.874Z",
"updated_at": "2021-02-04T12:14:27.874Z"
}
}
]
}
]
}
]
}