Skip to content

Individual Tools

Individual Tools

When you’re authenticated as an individual, you get access to 13 tools for searching, ordering, and tracking medications.

Authentication

Terminal window
# Request OTP
request_patient_otp({ phone: "+2348012345678" })
# Verify OTP
verify_patient_otp({ phone: "+2348012345678", otp: "123456" })
# Create account (if new)
create_patient({ name: "John", phone: "+2348012345678" })
Terminal window
# Find nearby pharmacies
find_nearby_pharmacy({
medication: "Amoxicillin 500mg",
location: "Lagos"
})
# Search medications
search_medications({
query: "diabetes medication"
})
# Get medication details
get_medication_details({
stockId: "MED-123"
})

Ordering

Terminal window
# Place an order
place_order({
pharmacyId: "PH-456",
medicationId: "MED-123",
quantity: 2,
deliveryType: "delivery"
})
# Get checkout link
get_checkout_link({
orderId: "ORD-789"
})

Tracking

Terminal window
# Check order status
check_order_status({
orderId: "ORD-789"
})
# Get order history
get_order_history({
limit: 10
})
# Request refill
request_refill({
orderId: "ORD-789"
})

Tool details

Each tool has its own documentation:

Next steps