Add prescription verification to any ecommerce store in minutes. One script tag, works everywhere.
A drag-and-drop widget on the product page lets customers upload their prescription (PDF, JPG, or PNG). Add-to-cart is blocked until verified.
RxCompliant's AI analyzes the document in under 30 seconds — checking for provider letterhead, valid signature, prescription date, and patient/item details.
The prescribing doctor's NPI number is verified against the federal registry (npiregistry.cms.hhs.gov) to confirm they are authorized to prescribe.
Set a confidence threshold to auto-approve high-confidence prescriptions. Lower-confidence ones go to your dashboard for manual review.
Once approved, the customer can add the product to their cart and complete checkout. Email notifications keep them informed of approval or rejection.
The RxCompliant widget works on any website. Add the script tag and mark products that require prescriptions.
1. Sign up to get your API key. 2. Add the script tag to your site. 3. Add data-requires-rx to prescription products.
<!-- Add to your store's <head> or before </body> -->
<script src="https://rxcompliant.com/widget/rxcompliant.js"
data-api-key="YOUR_API_KEY"
data-color="#DC2626">
</script>
<!-- Add to any product that requires a prescription -->
<div data-requires-rx
data-product-id="PRODUCT_ID"
data-product-title="Product Name"
data-platform="custom">
</div>The widget automatically attaches to any element with data-requires-rx and blocks add-to-cart until a valid prescription is uploaded.
Configure the widget using data-* attributes on the script tag.
| Attribute | Required | Default | Description |
|---|---|---|---|
| data-api-key | Yes | - | Your RxCompliant API key (starts with rxk_) |
| data-color | No | #DC2626 | Primary widget color (hex) |
| data-api-url | No | https://rxcompliant.com | API endpoint URL (for self-hosted) |
| data-btn-text | No | Upload Prescription | Button text label |
| data-max-size | No | 10 | Max file size in MB |
| data-position | No | before | Widget position relative to the target element (before or after) |
| data-selector | No | [data-requires-rx] | CSS selector for prescription product containers |
These attributes go on the div element that marks a product as requiring a prescription.
| Attribute | Required | Description |
|---|---|---|
| data-requires-rx | Yes | Marker attribute (no value needed) that identifies this product as requiring a prescription |
| data-product-id | Recommended | Unique product ID from your store |
| data-product-title | Recommended | Product display name (shown in the widget) |
| data-platform | No | Platform identifier: shopify, woocommerce, bigcommerce, magento, wix, or custom |
Use the REST API for server-side integrations, custom workflows, or to build your own upload UI.
/api/uploadUpload a prescription file for AI verification. Returns a verification token, status, confidence score, and NPI verification result.
curl -X POST https://rxcompliant.com/api/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "prescription=@prescription.pdf" \
-F "product_id=123" \
-F "product_title=CPAP Machine" \
-F "platform=custom" \
-F "store_url=https://yourstore.com"| Field | Type | Required | Description |
|---|---|---|---|
| prescription | File | Yes | The prescription file (PDF, JPG, PNG, HEIC, WebP) |
| product_id | String | Yes | Product identifier |
| product_title | String | Yes | Product display name |
| platform | String | No | Platform: shopify, woocommerce, bigcommerce, magento, wix, custom |
| store_url | String | No | Store origin URL |
| customer_email | String | No | Customer email for notification |
{
"success": true,
"token": "rxc_abc123def456",
"status": "APPROVED", // APPROVED | PENDING | REJECTED
"confidence": 94, // 0-100 AI confidence score
"npiVerified": true, // NPI registry verification
"message": "Prescription verified and approved."
}/api/verify/:tokenCheck the status of a previously uploaded prescription by its token.
curl -X GET https://rxcompliant.com/api/verify/rxc_abc123def456 \
-H "Authorization: Bearer YOUR_API_KEY"{
"success": true,
"token": "rxc_abc123def456",
"status": "APPROVED",
"confidence": 94,
"npiVerified": true,
"uploadedAt": "2026-03-15T10:30:00Z",
"productId": "123",
"productTitle": "CPAP Machine",
"customerEmail": "patient@example.com"
}Sign up for free and start verifying prescriptions in minutes.
Create free account