Fee quotes API

Quote a compounded prescription

Calculate the California maximum for a compounded prescription dispensed on or after July 1, 2025.

POSThttps://app.mindbill.org/partner/v2/fee-quotes/pharmacy/compound

Price compounds and eligible single-drug sterile transfers with the documented pharmacist findings.

AuthenticationServer API key or browser session + Origin
Permissions by credentialServer: bills:read · Browser: bills:read
IdempotencyNot required
Organization capabilitytreatmentBilling must be enabled

Use this URL with a server API key or a browser session and its exact allowed Origin. Both credentials use the same request and response contract. See the component API inventory for exact paths and SDK methods.

Request body

FieldTypeDescription
dateOfService / dispenser / route / dosageFormRequired
string

Dispensing facts.

compoundMetricQuantity / containerCountRequired
string / integer

Quantity and containers dispensed.

ingredients[]Required
object[]

At least two actual drug ingredients (one for a sterile transfer): ndcNumber, metricQuantity, billedIngredientCents, ndcStatus, productCategory, noSubstitution.

billedCents / billedCompoundingFeeCents / billedSterilityFeeCentsRequired
integer

Billed amounts.

authorizationStatus / essentialCopyStatus / sterilityTestingRequired
string

Required regulatory findings; not inferred.

preparationKind
"compound" | "sterile_transfer"

Omit for an ordinary compound.

Examples

Server API key
curl 'https://app.mindbill.org/partner/v2/fee-quotes/pharmacy/compound' \
  --header "Authorization: Bearer $MINDBILL_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "dateOfService": "2026-09-16",
  "dispenser": "pharmacy",
  "pharmacyNpi": "1234567893",
  "route": "Oral",
  "dosageForm": "01",
  "compoundMetricQuantity": "30",
  "containerCount": 1,
  "ingredients": [
    {
      "ndcNumber": "00000000001",
      "metricQuantity": "10",
      "billedIngredientCents": 1200,
      "ndcStatus": "valid",
      "productCategory": "drug",
      "noSubstitution": false
    },
    {
      "ndcNumber": "00000000002",
      "metricQuantity": "20",
      "billedIngredientCents": 1800,
      "ndcStatus": "valid",
      "productCategory": "drug",
      "noSubstitution": false
    }
  ],
  "billedCents": 5000,
  "usualCustomaryCents": 5000,
  "billedCompoundingFeeCents": 395,
  "billedSterilityFeeCents": 0,
  "authorizationStatus": "authorized",
  "essentialCopyStatus": "not_essential_copy",
  "sterilityTesting": "not_performed"
}'
Browser session
curl 'https://app.mindbill.org/partner/v2/fee-quotes/pharmacy/compound' \
  --header "Authorization: Bearer $MINDBILL_BROWSER_TOKEN" \
  --header 'Origin: https://your-app.example' \
  --header 'Content-Type: application/json' \
  --data '{
  "dateOfService": "2026-09-16",
  "dispenser": "pharmacy",
  "pharmacyNpi": "1234567893",
  "route": "Oral",
  "dosageForm": "01",
  "compoundMetricQuantity": "30",
  "containerCount": 1,
  "ingredients": [
    {
      "ndcNumber": "00000000001",
      "metricQuantity": "10",
      "billedIngredientCents": 1200,
      "ndcStatus": "valid",
      "productCategory": "drug",
      "noSubstitution": false
    },
    {
      "ndcNumber": "00000000002",
      "metricQuantity": "20",
      "billedIngredientCents": 1800,
      "ndcStatus": "valid",
      "productCategory": "drug",
      "noSubstitution": false
    }
  ],
  "billedCents": 5000,
  "usualCustomaryCents": 5000,
  "billedCompoundingFeeCents": 395,
  "billedSterilityFeeCents": 0,
  "authorizationStatus": "authorized",
  "essentialCopyStatus": "not_essential_copy",
  "sterilityTesting": "not_performed"
}'

Response

200 OK

Response
{
  "data": {
    "status": "requires_review",
    "reason": "source_unavailable",
    "provenance": []
  }
}
FieldTypeDescription
data.statusRequired
"matched" | "requires_review"

Matched maximum with ingredient breakdown, or a review reason.

data.maximumCents / amountCents / scheduleMaximumCents
integer

Maximum after caps, lesser of maximum and billed, and schedule amount.

data.ingredients[]
object[]

Per-ingredient cost breakdown.