Order Lifecycle
Every order in RxScale moves through a series of statuses as it progresses from creation to completion. Understanding these statuses is essential for building a reliable integration.Status Flow
Status Descriptions
| Status | Description | Who sets it |
|---|---|---|
created | Order has been created in the system but is not yet assigned to a pharmacy | System |
open | Order is assigned to a pharmacy and ready to be processed | System |
processing | Pharmacy has acknowledged the order and started preparation | Pharmacy (via API) |
shipped | Order has been shipped to the patient | Pharmacy (via API) |
completed | Order has been delivered and finalized (includes stock reduction) | System |
cancelled | Order was cancelled before completion | System or Pharmacy |
Transitions
Open to Processing
When your pharmacy receives a new order (status:open), acknowledge it by updating the status to processing:
Processing to Shipped
Once the order has been packed and handed to the shipping carrier, update the status toshipped:
Shipped to Completed
The transition fromshipped to completed is handled automatically by the RxScale system. This step includes stock reduction and order finalization.
Cancellation
An order can be cancelled from theopen or processing state:
Webhook Notifications
You will receive webhook notifications for status changes if you have subscribed to thepharmacy_order_updated event type. Each notification includes the full order data with the new status.
See Webhook Events for payload details.
Best Practices
Process orders promptly
Process orders promptly
Move orders from
open to processing as soon as your team begins working on them. This provides visibility to all stakeholders.Update status at each step
Update status at each step
Keep the status current. Accurate status tracking helps with customer communication, reporting, and issue resolution.
Handle cancellations gracefully
Handle cancellations gracefully
Listen for
pharmacy_order_updated webhooks with cancelled status. If a cancellation arrives while you are preparing an order, stop processing and update your internal systems accordingly.Do not skip statuses
Do not skip statuses
Always follow the order:
open to processing to shipped. Do not jump directly from open to shipped.