Documentation Index
Fetch the complete documentation index at: https://docs.rxscale.com/llms.txt
Use this file to discover all available pages before exploring further.
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 |
|---|---|---|
init | Order has been created in the system but is not yet assigned to a pharmacy | System |
waiting for pharmacy | Order is assigned to a pharmacy and ready to be processed | System |
pending review | Pharmacy is reviewing the order and checking availability | Pharmacy (via API) |
in-progress | Pharmacy has started preparation | Pharmacy (via API) |
ready_for_pickup | Order is packed and ready for pickup or shipping | Pharmacy (via API) |
completed | Order has been delivered and finalized (includes stock reduction) | Pharmacy (via complete endpoint) |
cancelled | Order was cancelled before completion | System or Pharmacy |
Transitions
Waiting for Pharmacy to Pending Review
When your pharmacy receives a new order (status:waiting for pharmacy), acknowledge that review has started:
Pending Review to In Progress
Once stock availability is confirmed and preparation begins, update the status toin-progress:
In Progress to Ready for Pickup
Once the order has been packed and is ready for pickup or shipping, update the status toready_for_pickup:
Ready for Pickup to Completed
When the order has been delivered or otherwise fulfilled, complete it through the dedicated complete order endpoint. This step includes stock reduction and order finalization.Do not set
completed through the generic status endpoint. Use complete_order so RxScale can reduce stock and emit shipment and order update events consistently.Cancellation
An order can be cancelled before completion: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
waiting for pharmacy to pending review as soon as your team begins reviewing 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:
waiting for pharmacy to pending review to in-progress to ready_for_pickup. Use complete_order only when the order is fulfilled.