API Integration
The RxScale External Pharmacy API lets you automate your order processing workflow. Instead of manually managing orders through the Pharmacy Portal, you can connect your existing pharmacy systems directly to RxScale.Overview
The External Pharmacy API allows you to:- Receive orders automatically — Get notified in real time when new orders are assigned to your pharmacy.
- Update order statuses — Programmatically move orders through processing stages.
- Manage stock levels — Keep your inventory in sync between your pharmacy system and RxScale.
- Track shipments — Update shipping information through the API.
Setting Up API Keys
To use the API, you need an API key. You can manage your API keys from the API Access section of the Pharmacy Portal.Create an API key
Generate a new API key. Give it a descriptive name so you can identify it later (for example, “Pharmacy Management System Integration”).
Registering Webhooks
Webhooks let RxScale notify your system automatically when something happens, such as a new order being assigned to your pharmacy or an order being cancelled. To set up webhooks:- Navigate to the API Access section of the Pharmacy Portal.
- Add a webhook endpoint URL — this is a URL on your server where RxScale will send notifications.
- Select the event types you want to receive (for example, new orders, status changes).
- Save your webhook configuration.
Make sure your webhook endpoint is publicly accessible and responds with a 200 status code to acknowledge receipt. See the Webhooks documentation for details on payload formats and security.
Automating Order Processing
With the API and webhooks in place, you can build an automated workflow:- Receive a webhook notification when a new order is assigned to your pharmacy.
- Fetch the order details using the API to get the full order information.
- Process the order in your pharmacy system (check stock, prepare medication).
- Update the order status through the API as you move through each processing step.
- Add shipping information once the order is shipped.
Full API Reference
For complete API documentation, including all available endpoints, request formats, and response schemas, see the External Pharmacy API Reference.Related Topics
- External Pharmacy API Overview — Full API documentation.
- Webhooks Overview — How webhooks work, including security and payload details.
- Webhook Events — All available event types.
- Pharmacy Integration Guide — Step-by-step integration guide.