Walgreens Refills API

Prescription refill operations

Operations 2

POST /api/util/mweb5url Obtain Refill URL #
POST /api/rx/refill Submit Prescription Refill #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/walgreens-refills-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

walgreens-refills-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Walgreens Prescription Refill Appointments Refills API
  description: Enables medication management application developers to process prescription refills and transfers at any Walgreens pharmacy location. Supports barcode scanning for refill initiation and image-based prescription transfers from other pharmacies. Processes prescriptions from 8,200+ Walgreens pharmacies with mobile-optimized WebView checkout flows.
  version: 1.0.0
  contact:
    url: https://developer.walgreens.com
  termsOfService: https://developer.walgreens.com/terms
servers:
- url: https://services.walgreens.com
  description: Production
- url: https://services-qa.walgreens.com
  description: Sandbox
security:
- apiKey: []
tags:
- name: Refills
  description: Prescription refill operations
paths:
  /api/util/mweb5url:
    post:
      operationId: obtainRefillUrl
      summary: Obtain Refill URL
      description: Obtains a secure landing URL and token for initiating a prescription refill flow. The returned URL is used in the subsequent Open Refill call to load the Walgreens prescription checkout experience.
      tags:
      - Refills
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObtainUrlRequest'
            example:
              apiKey: YOUR_API_KEY
              affId: YOUR_AFFILIATE_ID
              transaction: refillByScan
              act: mweb5Url
              view: mweb5UrlJSON
      responses:
        '200':
          description: Landing URL and token for refill flow
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ObtainUrlResponse'
        '400':
          description: Malformed request body
        '403':
          description: Invalid API key
        '500':
          description: Internal server error
  /api/rx/refill:
    post:
      operationId: submitRefill
      summary: Submit Prescription Refill
      description: Submits a prescription refill request using the prescription number obtained via barcode scan. Requires the token from the Obtain Refill URL step and loads a WebView-based checkout for the patient to complete the refill.
      tags:
      - Refills
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefillRequest'
            example:
              affId: YOUR_AFFILIATE_ID
              token: secure_token_from_obtain_step
              rxNo: '1234567'
              appID: refillByScan
              act: chkExpRx
      responses:
        '200':
          description: HTML WebView markup for prescription checkout
          content:
            text/html:
              schema:
                type: string
        '400':
          description: Invalid prescription number or parameters
        '403':
          description: Unauthorized - invalid token or affiliate
components:
  schemas:
    RefillRequest:
      type: object
      required:
      - affId
      - token
      - rxNo
      - appID
      - act
      properties:
        affId:
          type: string
          description: Your affiliate identifier
        token:
          type: string
          description: Secure token from the Obtain URL response
        rxNo:
          type: string
          description: Prescription number obtained from barcode scan
        appID:
          type: string
          enum:
          - refillByScan
          description: Application identifier
        act:
          type: string
          enum:
          - chkExpRx
          description: Action type
        lat:
          type: number
          format: double
          description: Patient latitude for nearest pharmacy lookup
        lng:
          type: number
          format: double
          description: Patient longitude for nearest pharmacy lookup
        trackingId:
          type: string
          description: Optional tracking identifier for analytics
        appVer:
          type: string
          description: Application version
        devInf:
          type: string
          description: Device information
    ObtainUrlRequest:
      type: object
      required:
      - apiKey
      - affId
      - transaction
      - act
      - view
      properties:
        apiKey:
          type: string
          description: Your Walgreens API key
        affId:
          type: string
          description: Your affiliate identifier
        transaction:
          type: string
          enum:
          - refillByScan
          - transferByScan
          description: Transaction type - refill or transfer
        act:
          type: string
          enum:
          - mweb5Url
          description: Action type
        view:
          type: string
          enum:
          - mweb5UrlJSON
          description: Response format
        appVer:
          type: string
          description: Application version
        devInf:
          type: string
          description: Device information (e.g. iPhone,13.0)
    ObtainUrlResponse:
      type: object
      properties:
        landingUrl:
          type: string
          description: Secure URL for initiating the checkout flow
        template:
          type: string
          description: UI template identifier
        token:
          type: string
          description: Secure token for the next step in the flow
        err:
          type: string
          description: Error code if applicable
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: apiKey
      description: API key obtained from Walgreens Developer Portal