---
title: "Personal bazaar plan for the verified account of the caller: Active, Investing or both from one budget. Free users get three sampled rows and the number of hidden ones."
method: POST
path: "/api/flip/bazaar/plan"
tags: ["Flip"]
---

# Personal bazaar plan for the verified account of the caller: Active, Investing or both from one budget. Free users get three sampled rows and the number of hidden ones.

`POST /api/flip/bazaar/plan`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/flip/bazaar/plan`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `GoogleToken`

## Request body

- BazaarPlanRequest: Optional overrides of the personal bazaar plan; every field has a smart default.
  - `modes` string[], nullable: Requested modes "active" and/or "investing" (case-insensitive); defaults to active only.
  - `investingHorizonHours` number, double, nullable: Hold horizon for investing in hours, required when investing is requested, greater than 0 and at most 48. Never clamped.
  - `activeHorizonHours` number, double, nullable: Hold horizon of active orders in hours, defaults to 1.
  - `budgetCoins` number, double, nullable: Coins to plan with; defaults to two thirds of the purse of the verified account.
  - `sellTaxRate` number, double, nullable: Attested sell tax as fraction (for example 0.0125); the engine assumes a rate when omitted.

## Response `200`

OK

- BazaarPlanResponse: A personal bazaar plan.
  - `quote` BazaarPlanQuote: Identity and validity of the quote an allocation was computed from.
    - `quoteId` string, nullable: Identifier of the quote.
    - `requestId` string, nullable: Identifier of the request the quote answers.
    - `marketFrameId` string, nullable: Identifier of the market snapshot the plan was computed from.
    - `generatedAt` string, date-time, required: When the plan was computed.
    - `expiresAt` string, date-time, required: Until when the plan may be acted on.
    - `policyId` string, nullable: Identifier of the allocation policy.
    - `policyVersion` integer, required: Version of the allocation policy.
    - `modelVersion` string, nullable: Version of the fill model, null when none was used.
    - `engineVersion` string, nullable: Version of the planning engine.
    - `admissionRule` string, nullable: Rule that decided which orders were admitted.
  - `status` string, nullable: Overall engine status.
  - `investingStatus` string, nullable: Investing status, for example EmptyQualified or Unavailable; null when investing was not requested.
  - `investingReasonCodes` string[], nullable: Reasons for the investing status.
  - `portfolio` BazaarPlanPortfolio: Budget and slot accounting of a plan.
    - `budgetCoins` number, double, required: Budget the engine planned with, after open buy orders were deducted.
    - `spentCoins` number, double, required: Coins committed by the planned orders.
    - `remainingBudgetCoins` number, double, required: Budget that stays unspent.
    - `reserveCoins` number, double, nullable: Coins held back by the caller.
    - `reserveOwner` string, nullable: Who owns the reserve.
    - `freeSlotsBefore` integer, required: Free order slots before the plan.
    - `freeSlotsAfter` integer, required: Free order slots after the plan.
    - `freeInventorySlotsBefore` integer, nullable: Free inventory slots before the plan, null when unknown.
    - `freeInventorySlotsAfter` integer, nullable: Free inventory slots after the plan, null when unknown.
    - `heldExposureCoins` number, double, required: Coins already bound in held items.
    - `suppressedItemTags` string[], nullable: Items left out because they are already held, ordered or pending.
  - `orders` BazaarPlanOrder[], nullable: Planned orders.
    - `itemTag` string, nullable: Tag of the item.
    - `itemName` string, nullable: Display name of the item.
    - `isSell` boolean, required: True for a sell offer.
    - `pricePerUnit` number, double, required: Price per unit of this order.
    - `amount` number, double, required: Amount of this order.
    - `mode` string, nullable: Active or Investing.
    - `originalQuantity` integer, required: Quantity of the complete buy and sell cycle.
    - `entryPrice` number, double, required: Planned buy price per unit.
    - `exitPrice` number, double, nullable: Planned sell price per unit.
    - `sellTaxRate` number, double, required: Sell tax fraction used for the profit.
    - `taxSource` string, nullable: Where the tax rate comes from, AccountAttested or Assumption.
    - `estimatedNetProfit` number, double, required: Estimated profit after tax in coins.
    - `capitalLockHorizonHours` number, double, required: Hours the capital stays locked at most.
    - `deadlineSemantics` string, nullable: Rule that fixes the deadline.
    - `confidence` BazaarPlanConfidence: Confidence that the full original quantity is bought and sold by the deadline.
      - `eventId` string, nullable: Identifier of the evaluated event.
      - `probability` number, double, nullable: Fraction between 0 and 1; null means unknown and is never a sentinel for 0 or 1.
      - `lowerBound` number, double, nullable: Lower confidence bound of the probability as fraction; null when unknown.
      - `confidenceLevel` number, double, required: Confidence level the bound refers to.
      - `supportDomainId` string, nullable: Domain the evidence covers.
      - `qualifyThreshold` number, double, nullable: Probability bar (fraction) the engine used to qualify the order; null when not reported.
      - `evidenceSource` string, nullable: Where the evidence comes from: "simulation" or "prospective"; null when not reported.
      - `modelId` string, nullable: Identifier of the model.
      - `calibrationId` string, nullable: Identifier of the calibration.
      - `status` string, nullable: Qualified, NotQualified, SimulationOnly, InsufficientEvidence, UnsupportedDomain, StaleInputs, Unavailable or NotApplicable.
      - `reasonCodes` string[], nullable: Machine readable reasons for the status.
  - `unqualifiedInvestingCandidates` BazaarPlanOrder[], nullable: Advisory investing candidates that are not part of the plan; empty for free users.
    - `itemTag` string, nullable: Tag of the item.
    - `itemName` string, nullable: Display name of the item.
    - `isSell` boolean, required: True for a sell offer.
    - `pricePerUnit` number, double, required: Price per unit of this order.
    - `amount` number, double, required: Amount of this order.
    - `mode` string, nullable: Active or Investing.
    - `originalQuantity` integer, required: Quantity of the complete buy and sell cycle.
    - `entryPrice` number, double, required: Planned buy price per unit.
    - `exitPrice` number, double, nullable: Planned sell price per unit.
    - `sellTaxRate` number, double, required: Sell tax fraction used for the profit.
    - `taxSource` string, nullable: Where the tax rate comes from, AccountAttested or Assumption.
    - `estimatedNetProfit` number, double, required: Estimated profit after tax in coins.
    - `capitalLockHorizonHours` number, double, required: Hours the capital stays locked at most.
    - `deadlineSemantics` string, nullable: Rule that fixes the deadline.
    - `confidence` BazaarPlanConfidence: Confidence that the full original quantity is bought and sold by the deadline.
      - `eventId` string, nullable: Identifier of the evaluated event.
      - `probability` number, double, nullable: Fraction between 0 and 1; null means unknown and is never a sentinel for 0 or 1.
      - `lowerBound` number, double, nullable: Lower confidence bound of the probability as fraction; null when unknown.
      - `confidenceLevel` number, double, required: Confidence level the bound refers to.
      - `supportDomainId` string, nullable: Domain the evidence covers.
      - `qualifyThreshold` number, double, nullable: Probability bar (fraction) the engine used to qualify the order; null when not reported.
      - `evidenceSource` string, nullable: Where the evidence comes from: "simulation" or "prospective"; null when not reported.
      - `modelId` string, nullable: Identifier of the model.
      - `calibrationId` string, nullable: Identifier of the calibration.
      - `status` string, nullable: Qualified, NotQualified, SimulationOnly, InsufficientEvidence, UnsupportedDomain, StaleInputs, Unavailable or NotApplicable.
      - `reasonCodes` string[], nullable: Machine readable reasons for the status.
  - `modes` string[], nullable: Canonical modes that were planned.
  - `investingHorizonHours` number, double, nullable: Investing horizon that was used.
  - `budgetCoins` number, double, required: Budget before open buy orders were deducted.
  - `budgetSource` string, nullable: "request" or "purse-estimate".
  - `accountState` BazaarPlanAccountState: Account state the plan was computed with.
    - `openOrdersEstimated` boolean, required: True when open orders could not be read or only estimates are known.
    - `openBuyItemTags` string[], nullable: Items with an open buy order.
    - `heldItemTags` string[], nullable: Items held through sell orders or unclaimed buys.
    - `freeOrderSlots` integer, nullable: Free bazaar order slots.
    - `revision` string, nullable: Revision of the account state.
  - `tier` string, nullable: Tier of the user.
  - `hiddenCount` integer, required: Number of orders only visible with Starter Premium.
  - `premiumUrl` string, nullable: Where to get Starter Premium, set when orders are hidden.
  - `warnings` string[], nullable: Non fatal problems such as orders_unavailable.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `503`: Service Unavailable

## Changes

- **2026-10-25** `176be021d530`: 12 info
  - added the optional property `orders/items/confidence/evidenceSource` to the response with the `200` status (media type: text/plain)
  - added the optional property `orders/items/confidence/evidenceSource` to the response with the `200` status (media type: application/json)
  - added the optional property `orders/items/confidence/evidenceSource` to the response with the `200` status (media type: text/json)
  - added the optional property `orders/items/confidence/qualifyThreshold` to the response with the `200` status (media type: text/plain)
  - …8 more
- **2026-10-24** `a9299927f6e1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/flip/bazaar/plan/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
