$echo '{
< "products": [
< {
< "sku": "DEMO-01",
< "salePrice": "40",
< "currency": "USD",
< "saleUnit": "each",
< "targetMarginPct": "35"
< },
< {
< "sku": "DEMO-02",
< "salePrice": "80",
< "currency": "USD",
< "saleUnit": "each"
< }
< ],
< "quotes": [
< {
< "quoteId": "Q-DEMO-01",
< "sku": "DEMO-01",
< "supplier": "Supplier Alpha (fictional)",
< "currency": "USD",
< "purchaseUnit": "each",
< "moq": 12,
< "packSize": 6,
< "validUntil": "2027-12-31",
< "tiers": [
< {
< "minQty": 1,
< "unitPrice": "25"
< },
< {
< "minQty": 24,
< "unitPrice": "22"
< }
< ],
< "costs": {
< "freightTotal": "30",
< "nonRecoverableTaxTotal": "0",
< "otherLandedTotal": "0",
< "salesCommissionPct": "5"
< }
< },
< {
< "quoteId": "Q-DEMO-02",
< "sku": "DEMO-01",
< "supplier": "Supplier Beta (fictional)",
< "currency": "USD",
< "purchaseUnit": "each",
< "moq": 10,
< "packSize": 10,
< "validUntil": "2027-12-31",
< "tiers": [
< {
< "minQty": 1,
< "unitPrice": "24"
< }
< ],
< "costs": {
< "nonRecoverableTaxTotal": "0",
< "otherLandedTotal": "0",
< "salesCommissionPct": "0"
< }
< },
< {
< "quoteId": "Q-DEMO-03",
< "sku": "DEMO-02",
< "supplier": "Supplier Gamma (fictional)",
< "currency": "CNY",
< "purchaseUnit": "case",
< "unitsPerPurchaseUnit": 12,
< "moq": 2,
< "packSize": 1,
< "validUntil": "2027-12-31",
< "tiers": [
< {
< "minQty": 1,
< "unitPrice": "300"
< }
< ],
< "costs": {
< "freightTotal": "0",
< "nonRecoverableTaxTotal": "0",
< "otherLandedTotal": "0",
< "salesCommissionPct": "2"
< }
< },
< {
< "quoteId": "Q-DEMO-04",
< "sku": "DEMO-02",
< "supplier": "Supplier Delta (fictional)",
< "currency": "USD",
< "purchaseUnit": "each",
< "moq": 20,
< "packSize": 5,
< "validUntil": "2026-01-01",
< "tiers": [
< {
< "minQty": 1,
< "unitPrice": "45"
< }
< ],
< "costs": {
< "freightTotal": "20",
< "nonRecoverableTaxTotal": "0",
< "otherLandedTotal": "0",
< "salesCommissionPct": "5"
< }
< }
< ],
< "requestedQuantity": 20,
< "targetMarginPct": 35,
< "targetCurrency": "USD",
< "maxResults": 3
<}' |
<apify call afkdigital/restock-margin-guard --silent --output-dataset