# MedAdvisor Refill Order API

**Canonical:** https://apis.io/apis/medadvisor/medadvisor-refillorder-api/  
**Provider:** MedAdvisor — https://apis.io/providers/medadvisor/  
**Base URL:** https://pharmacy-unified.api.medadvisor.com.au  
**Documentation:** https://pharmacy-unified.api.medadvisor.com.au/swagger/

MedAdvisor Refill Order API is one of 14 APIs that [MedAdvisor](https://apis.io/providers/medadvisor/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include RefillOrder. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, and API documentation.

The RefillOrder API from MedAdvisor — 14 operation(s) for refillorder.

## Operations (15)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/v1/RefillOrder/PendingOrder/{orderId}` | Get full pending order with line items and resolved statuses (Epic 2 — Story 2.1). Returns HTTP 404 when the order does not exist or does not belong to this ... |
| DELETE | `/api/v1/RefillOrder/PendingOrder/{orderId}` | Delete a pending order (Epic 2 — Story 2.5a, FR29). Returns 404 when the order does not exist or does not belong to this pharmacy. |
| GET | `/api/v1/RefillOrder/CompletedOrder/{orderId}` | Get a completed order with read-only details and PIA payment status (Epic 6 — Story 6.1). Returns HTTP 404 when the order does not exist or does not belong t... |
| GET | `/api/v1/RefillOrder/EScriptToken/{orderId}/{tokenId}` | Get full eScript token detail for a line item (Epic 3 — Story 3.2, FR15). Returns 404 when the order does not belong to this pharmacy or the token is not found. |
| PUT | `/api/v1/RefillOrder/Delivery/{orderId}` | Update delivery address fields, shipping method, or delivery status (Story 4.1 — FR18–FR20). Returns 404 when the order does not exist, does not belong to th... |
| POST | `/api/v1/RefillOrder/AddNote` | Add or update a pharmacy note on an order (Epic 5 — Story 5.1, FR24). Returns 404 when the order does not belong to this pharmacy. |
| POST | `/api/v1/RefillOrder/Complete` | Finalise (complete) a pending order (Story 2.5b — FR27). Returns 404 when the order does not exist or does not belong to this pharmacy. Returns 400 when the ... |
| POST | `/api/v1/RefillOrder/ProcessPIA` | Process a Pay-in-Advance charge (Epic 4 — Story 4.3). |
| POST | `/api/v1/RefillOrder/SendEScript` | Send an eScript token to the dispensing system (Epic 3 — Story 3.3, FR16). Always returns HTTP 200; the response body Code field indicates SUCCESS, FALLBACK_... |
| POST | `/api/v1/RefillOrder/LineItem/{orderId}` | Add a custom line item to a pending order (Story 3.5 — FR13). Returns the full updated order so the caller can refresh its list in one round-trip. Returns 40... |
| POST | `/api/v1/RefillOrder/UpdateLineItemStatus` | Update the status of a line item (Epic 3 — Story 3.1, FR6–FR9). Returns 404 when the order or component does not belong to this pharmacy. Returns 400 when ac... |
| POST | `/api/v1/RefillOrder/CompletedOrder/{orderId}/Refund` | Refund the PIA charge for a completed order (Epic 6 — Story 6.4, CRO-5). Returns 404 when the order does not exist or does not belong to this pharmacy. Retur... |
| POST | `/api/v1/RefillOrder/CompletedOrder/{orderId}/Reminder` | Send a reminder message to a patient for a completed order (Epic 6 — Story 6.2, CRO-2). Returns 404 when the order does not exist or does not belong to this ... |
| POST | `/api/v1/RefillOrder/CompletedOrder/{orderId}/ReturnToStock` | Return all items for a completed order to stock (Epic 6 — Story 6.3, CRO-3). Returns 404 when the order does not exist or does not belong to this pharmacy. |
| DELETE | `/api/v1/RefillOrder/LineItem/{orderId}/{lineItemId}` | Delete a custom line item from a pending order (Story 3.5 — FR14). Returns 404 when the order, item, or pharmacy context is not found, or the item is not a c... |

## Machine-readable artifacts (3)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/medadvisor/refs/heads/main/openapi/medadvisor-refillorder-api-openapi.yml
- **APIReference** — https://pharmacy-unified.api.medadvisor.com.au/swagger/
- **Documentation** — https://support.medadvisor.com.au

## Other MedAdvisor APIs (12)

- [MedAdvisor 3rd-Party Integration API](https://apis.io/apis/medadvisor/medadvisor-3rd-party-integration-api/)
- [MedAdvisor Account API](https://apis.io/apis/medadvisor/medadvisor-account-api/)
- [MedAdvisor Booking API](https://apis.io/apis/medadvisor/medadvisor-booking-api/)
- [MedAdvisor Booking Service API](https://apis.io/apis/medadvisor/medadvisor-bookingservice-api/)
- [MedAdvisor Calendar Setting API](https://apis.io/apis/medadvisor/medadvisor-calendarsetting-api/)
- [MedAdvisor Clinic API](https://apis.io/apis/medadvisor/medadvisor-clinic-api/)
- [MedAdvisor Communication API](https://apis.io/apis/medadvisor/medadvisor-communication-api/)
- [MedAdvisor Config API](https://apis.io/apis/medadvisor/medadvisor-config-api/)
- [MedAdvisor Head Office API](https://apis.io/apis/medadvisor/medadvisor-headoffice-api/)
- [MedAdvisor Inbox API](https://apis.io/apis/medadvisor/medadvisor-inbox-api/)
- [MedAdvisor Logging API](https://apis.io/apis/medadvisor/medadvisor-logging-api/)
- [MedAdvisor Pharmacist API](https://apis.io/apis/medadvisor/medadvisor-pharmacist-api/)

## Tags

RefillOrder

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/medadvisor/medadvisor-refillorder-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/medadvisor/.
