The offer object
| Field | Type | Description |
|---|---|---|
sku | string | The code you put on an order line. |
name | string | The product name, for example Semaglutide 0.25 mg. |
family | string | The product family offers are grouped by. |
kind | string | 503A, 503B or kit. |
pharmacy | string | The name of the pharmacy that fills it. |
price | number | The pharmacy price in US dollars. |
stock | string | in, 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
| Name | Type | Description |
|---|---|---|
page, limit | integer | Paging. See Requests and responses. |
q | string | Searches name, SKU, pharmacy and family. |
kind | string | 503A, 503B or kit. |
pharmacy | string | The exact pharmacy name. |
stock | string | in, low or out. |
inStock | string | true to leave out offers that are out of stock (ignored when stock is given). |
sort | string | family (default), name, price-asc or price-desc. |
Response
200 A page of offers with paging and counts in meta.
{
"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
| Status | Code | When it happens |
|---|---|---|
| 400 | validation | page or limit is out of range. |
Examples
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.
{ "data": {
"sku": "FIZY-278DYJ",
"name": "B12 injection 4 mL",
"family": "Cyanocobalamin (B12)",
"kind": "503A",
"pharmacy": "Kaduceus",
"price": 80,
"stock": "in"
} }Errors
| Status | Code | When it happens |
|---|---|---|
| 404 | notFound | No offer has this SKU. |
Examples
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.
{ "data": { "offers": 12, "families": 6, "pharmacies": 5, "inStockPct": 92, "outOfStock": 1, "avgPrice": 87.5 } }Examples
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
| Name | Type | Description |
|---|---|---|
q | string | Searches name, code, city and tags. |
status | string | Active, Watch, New or Coming soon. |
tag | string | Keeps 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.
{
"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 -b cookies.txt "https://app-api.homelyrx.com/v1/pharmacies?status=Active"