Developer docs

Catalog and pharmacies

The catalog lists what pharmacies offer and at what price. You order by SKU, so this is where you find the SKUs to put on an order line.

The offer object

Fields of an offer
FieldTypeDescription
skustringThe code you put on an order line.
namestringThe product name, for example Semaglutide 0.25 mg.
familystringThe product family offers are grouped by.
kindstring503A, 503B or kit.
pharmacystringThe name of the pharmacy that fills it.
pricenumberThe pharmacy price in US dollars.
stockstringin, low or out.

The catalog is shared: every clinic sees the same offers, in sandbox and in production.

Search offers

GET/v1/catalog/offers

Returns a page of offers. meta.counts gives the number of matches for each type (503A, 503B, kit) after every filter except kind, so tab counts stay meaningful.

Who can call it

Any signed-in role.

Query parameters

NameTypeDescription
page, limitintegerPaging. See Requests and responses.
qstringSearches name, SKU, pharmacy and family.
kindstring503A, 503B or kit.
pharmacystringThe exact pharmacy name.
stockstringin, low or out.
inStockstringtrue to leave out offers that are out of stock (ignored when stock is given).
sortstringfamily (default), name, price-asc or price-desc.

Response

200 A page of offers with paging and counts in meta.

Example response
{
  "data": [
    { "sku": "FIZY-SEM025", "name": "Semaglutide 0.25 mg", "family": "Semaglutide", "kind": "503A", "pharmacy": "PerfectRx", "price": 65.04, "stock": "in" }
  ],
  "meta": { "page": 1, "limit": 2, "total": 8, "counts": { "503A": 8, "503B": 0, "kit": 4 } }
}

Errors

StatusCodeWhen it happens
400validationpage or limit is out of range.

Examples

curl
curl -b cookies.txt "https://app-api.homelyrx.com/v1/catalog/offers?kind=503A&inStock=true&sort=price-asc&limit=5"

Get one offer

GET/v1/catalog/offers/:sku

Returns the offer with this SKU.

Who can call it

Any signed-in role.

Response

200 The offer.

Example response
{ "data": {
    "sku": "FIZY-278DYJ",
    "name": "B12 injection 4 mL",
    "family": "Cyanocobalamin (B12)",
    "kind": "503A",
    "pharmacy": "Kaduceus",
    "price": 80,
    "stock": "in"
  } }

Errors

StatusCodeWhen it happens
404notFoundNo offer has this SKU.

Examples

curl
curl -b cookies.txt "https://app-api.homelyrx.com/v1/catalog/offers/FIZY-278DYJ"

Catalog summary

GET/v1/catalog/summary

Whole-catalog numbers that no filter changes.

Who can call it

Any signed-in role.

Response

200 The numbers: offers, families, pharmacies, the percentage of offers not out of stock, the number out of stock and the average price.

Example response
{ "data": { "offers": 12, "families": 6, "pharmacies": 5, "inStockPct": 92, "outOfStock": 1, "avgPrice": 87.5 } }

Examples

curl
curl -b cookies.txt "https://app-api.homelyrx.com/v1/catalog/summary"

List pharmacies

GET/v1/pharmacies

Returns the partner pharmacies, sorted by name, each with how many catalog offers it has. Not paged.

Who can call it

Any signed-in role.

Query parameters

NameTypeDescription
qstringSearches name, code, city and tags.
statusstringActive, Watch, New or Coming soon.
tagstringKeeps pharmacies with a matching tag, for example 503A or Peptides.

Response

200 A list of pharmacies. onTimePct and processing are left out when not known.

Example response
{
  "data": [
    {
      "id": "6aeb0da3503a52507f605e82",
      "code": "KA",
      "name": "Kaduceus",
      "city": "Austin, TX",
      "tags": ["503A", "Peptides"],
      "onTimePct": 98,
      "processing": "48 h",
      "states": 38,
      "status": "Active",
      "offers": 1
    }
  ]
}

Examples

curl
curl -b cookies.txt "https://app-api.homelyrx.com/v1/pharmacies?status=Active"