Pharmacy Integration Guide
This guide walks you through the steps to integrate your pharmacy or pharmacy management system with RxScale, from receiving your API key to processing your first order.Step 1: Get Your API Key
Contact your RxScale account manager to receive your API credentials. You will get:- An API key for authentication
- A pharmacy UID (or group-level access if you manage multiple pharmacies)
- Access to the development environment for testing
| Environment | Base URL |
|---|---|
| Development | https://api.rxscale-dev.com |
| Production | https://api.rxscale.com |
Step 2: Sync Your SKUs
Retrieve your pharmacy’s SKU catalog and sync it with your internal product system.- Set your price (in euro cents)
- Update stock levels to reflect your current inventory
- Link an external ID from your pharmacy management system
Step 3: Register Webhooks
Set up webhooks so your system receives real-time notifications when new orders come in or stock levels change.| Event Type | Why |
|---|---|
pharmacy_order_created | Get notified immediately when a new order is assigned to your pharmacy |
pharmacy_order_updated | Track status changes (e.g. cancellations) |
pharmacy_sku_stock_updated | Stay in sync if stock is adjusted externally |
Step 4: Process Orders
When you receive apharmacy_order_created webhook (or poll the orders endpoint), process the order through your pharmacy workflow:
4a. View Order Details
4b. Update Order Status
As you process the order, update its status:Integration Checklist
API key and connectivity
API key and connectivity
- Received API key from RxScale
- Verified connectivity with health check endpoint
- Tested on development environment before production
SKU synchronization
SKU synchronization
- Fetched full SKU catalog
- Mapped external IDs to your pharmacy management system
- Set initial prices and stock levels
- Scheduled regular stock sync (or use webhooks)
Webhook setup
Webhook setup
- Registered webhooks for
pharmacy_order_createdandpharmacy_order_updated - Stored signing secrets securely
- Implemented signature verification
- Endpoint responds with
2xxwithin 5 seconds
Order processing
Order processing
- Handling incoming orders (via webhook or polling)
- Updating order status as you process, ship, and complete orders
- Handling edge cases (cancellations, stock issues)