Truepill Prescriptions API

Prescription details and routing.

Operations 28

GET /api/v1/auto-refill Get a list of all prescriptions currently subscribed to auto-refill #
GET /api/v1/auto-refill/patient/{patient_token} Get a list of all prescriptions currently subscribed to auto-refill for a given patient #
GET /api/v1/auto-refill/{prescription_token} GET auto refill subscription #
POST /api/v1/auto-refill/{prescription_token} Create auto refill subscription for prescription #
DELETE /api/v1/auto-refill/{prescription_token} Cancel an auto-refill subscription #
POST /api/v1/auto-refill/{prescription_token}/early-refill Schedule a one-time order from the auto-refill prescription #
DELETE /api/v1/auto-refill/{prescription_token}/skip-refill Skip a scheduled fill request #
POST /api/v1/prescription/discontinue/{prescription_token} Discontinue a Prescription by token #
GET /api/v1/prescription/{prescription_token}/escript Get Prescription escript by token #
POST /api/v1/prescription/{prescription_token}/external_transfer Create an external transfer request for a prescription #
GET /api/v1/prescription/{prescription_token}/fill/{fill_number}/claims Get Claim information #
POST /api/v1/prescription/{prescription_token}/transfer_out TransferOut a Prescription by token #
GET /api/v1/prescription/{token} Get Prescription by token #
POST /api/v1/prescriptions/{prescription_token}/external_transfer Create an external transfer request for a prescription #
GET /v1/auto-refill Get a list of all prescriptions currently subscribed to auto-refill #
GET /v1/auto-refill/patient/{patient_token} Get a list of all prescriptions currently subscribed to auto-refill for a given patient #
GET /v1/auto-refill/{prescription_token} GET auto refill subscription #
POST /v1/auto-refill/{prescription_token} Create auto refill subscription for prescription #
DELETE /v1/auto-refill/{prescription_token} Cancel an auto-refill subscription #
POST /v1/auto-refill/{prescription_token}/early-refill Schedule a one-time order from the auto-refill prescription #
DELETE /v1/auto-refill/{prescription_token}/skip-refill Skip a scheduled fill request #
POST /v1/prescription/discontinue/{prescription_token} Discontinue a Prescription by token #
GET /v1/prescription/{prescription_token}/escript Get Prescription escript by token #
POST /v1/prescription/{prescription_token}/external_transfer Create an external transfer request for a prescription #
GET /v1/prescription/{prescription_token}/fill/{fill_number}/claims Get Claim information #
POST /v1/prescription/{prescription_token}/transfer_out TransferOut a Prescription by token #
GET /v1/prescription/{token} Get Prescription by token #
POST /v1/prescriptions/{prescription_token}/external_transfer Create an external transfer request for a prescription #

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/truepill-prescriptions-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

truepill-prescriptions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Truepill Prescriptions API
  description: 'Prescription retrieval, e-script documents, claims per fill, discontinuation, and auto-refill enrollment/skip/early-refill.


    Harvested verbatim from the live Truepill (FuzeRx) Swagger 2.0 contract published at https://rxapi.fuzehealth.com/swagger.json and split by resource domain. Operation summaries, descriptions, parameters, schemas and response codes are the provider''s own; only the Swagger 2.0 -> OpenAPI 3.0.3 conversion and the domain split are ours.'
  version: 0.0.1
  contact:
    name: FuzeRx Support
    url: https://rxdocs.fuzehealth.com
servers:
- url: https://rxapi.fuzehealth.com
  description: Production
security:
- apiKey: []
tags:
- name: prescriptions
  description: Prescription retrieval, e-script documents, claims per fill, discontinuation, and auto-refill enrollment/skip/early-refill.
paths:
  /api/v1/auto-refill:
    get:
      summary: Get a list of all prescriptions currently subscribed to auto-refill
      operationId: getApiV1Autorefill
      tags:
      - prescriptions
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model15'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /api/v1/auto-refill/patient/{patient_token}:
    get:
      summary: Get a list of all prescriptions currently subscribed to auto-refill for a given patient
      operationId: getApiV1AutorefillPatientPatient_token
      tags:
      - prescriptions
      parameters:
      - name: patient_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model95'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /api/v1/auto-refill/{prescription_token}:
    get:
      summary: GET auto refill subscription
      operationId: getApiV1AutorefillPrescription_token
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model43'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
    post:
      summary: Create auto refill subscription for prescription
      operationId: postApiV1AutorefillPrescription_token
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model209'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
    delete:
      summary: Cancel an auto-refill subscription
      operationId: deleteApiV1AutorefillPrescription_token
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model242'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /api/v1/auto-refill/{prescription_token}/early-refill:
    post:
      summary: Schedule a one-time order from the auto-refill prescription
      operationId: postApiV1AutorefillPrescription_tokenEarlyrefill
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model226'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /api/v1/auto-refill/{prescription_token}/skip-refill:
    delete:
      summary: Skip a scheduled fill request
      operationId: deleteApiV1AutorefillPrescription_tokenSkiprefill
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model248'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /api/v1/prescription/discontinue/{prescription_token}:
    post:
      summary: Discontinue a Prescription by token
      description: Discontinue a particular prescription
      operationId: postApiV1PrescriptionDiscontinuePrescription_token
      tags:
      - prescriptions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model227'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: string
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
  /api/v1/prescription/{prescription_token}/escript:
    get:
      summary: Get Prescription escript by token
      description: Get escript data for a particular prescription
      operationId: getApiV1PrescriptionPrescription_tokenEscript
      tags:
      - prescriptions
      parameters:
      - name: content-type
        in: header
        required: true
        schema:
          type: string
          enum:
          - text/xml
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model106'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model63'
  /api/v1/prescription/{prescription_token}/external_transfer:
    post:
      summary: Create an external transfer request for a prescription
      description: Create an external transfer request for a prescription
      operationId: postApiV1PrescriptionPrescription_tokenExternal_transfer
      tags:
      - prescriptions
      responses:
        default:
          description: Successful
          content:
            application/json:
              schema:
                type: string
  /api/v1/prescription/{prescription_token}/fill/{fill_number}/claims:
    get:
      summary: Get Claim information
      description: Get claim information associated with a prescription and that particular fill<br/><br/>Given a prescription token and a fill number, the claim information associated with a prescription and that particular fill can be retrieved via API<br/><br/>All claim information correlating to a specific fill is made available here, including claim rejections and reversals. Claim information is displayed in array format, with each object representing a claim record<br/><br/>If a claim is rejected, NCPDP codes are also displayed for the particular claim rejection within the `claim_reject_codes` field<br/><br/>Claim records are displayed in chronological order. If no claim information is available for a provided `prescription_token` and `fill_number`, an empty array is returned.
      operationId: getApiV1PrescriptionPrescription_tokenFillFill_numberClaims
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        description: Prescription token associated with prescription
        schema:
          type: string
      - name: fill_number
        in: path
        required: true
        description: Fill number of particular fill
        schema:
          type: number
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model111'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model112'
  /api/v1/prescription/{prescription_token}/transfer_out:
    post:
      summary: TransferOut a Prescription by token
      description: TransferOut a particular prescription
      operationId: postApiV1PrescriptionPrescription_tokenTransfer_out
      tags:
      - prescriptions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model229'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: string
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '409':
          description: Conflict
        '500':
          description: Internal Server Error
  /api/v1/prescription/{token}:
    get:
      summary: Get Prescription by token
      description: 'Once a specific prescription is in the Truepill ecosystem -- either via eRx, Direct Transfer or Transfer -- the prescription information can be retrieved at any time through an API request.<br/><br/>This endpoint requires a prescription_token. You will receive a prescription_token through one of the following scenarios: <br/><br/>A Notify-Rx callback which is sent when a prescription is received by the pharmacy through SureScripts<br/><br/>A Direct Transfer callback which is sent when a Direct Transfer has been successfully processed<br/><br/>A Transfer callback which is sent when a Transfer has been successfully processed'
      operationId: getApiV1PrescriptionToken
      tags:
      - prescriptions
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model62'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model63'
  /api/v1/prescriptions/{prescription_token}/external_transfer:
    post:
      summary: Create an external transfer request for a prescription
      description: Create an external transfer request for a prescription
      operationId: postApiV1PrescriptionsPrescription_tokenExternal_transfer
      tags:
      - prescriptions
      responses:
        default:
          description: Successful
          content:
            application/json:
              schema:
                type: string
  /v1/auto-refill:
    get:
      summary: Get a list of all prescriptions currently subscribed to auto-refill
      operationId: getV1Autorefill
      tags:
      - prescriptions
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model15'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /v1/auto-refill/patient/{patient_token}:
    get:
      summary: Get a list of all prescriptions currently subscribed to auto-refill for a given patient
      operationId: getV1AutorefillPatientPatient_token
      tags:
      - prescriptions
      parameters:
      - name: patient_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model95'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /v1/auto-refill/{prescription_token}:
    get:
      summary: GET auto refill subscription
      operationId: getV1AutorefillPrescription_token
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model43'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
    post:
      summary: Create auto refill subscription for prescription
      operationId: postV1AutorefillPrescription_token
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model209'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
    delete:
      summary: Cancel an auto-refill subscription
      operationId: deleteV1AutorefillPrescription_token
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model242'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /v1/auto-refill/{prescription_token}/early-refill:
    post:
      summary: Schedule a one-time order from the auto-refill prescription
      operationId: postV1AutorefillPrescription_tokenEarlyrefill
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model226'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /v1/auto-refill/{prescription_token}/skip-refill:
    delete:
      summary: Skip a scheduled fill request
      operationId: deleteV1AutorefillPrescription_tokenSkiprefill
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model248'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model18'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model19'
  /v1/prescription/discontinue/{prescription_token}:
    post:
      summary: Discontinue a Prescription by token
      description: Discontinue a particular prescription
      operationId: postV1PrescriptionDiscontinuePrescription_token
      tags:
      - prescriptions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model227'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: string
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
  /v1/prescription/{prescription_token}/escript:
    get:
      summary: Get Prescription escript by token
      description: Get escript data for a particular prescription
      operationId: getV1PrescriptionPrescription_tokenEscript
      tags:
      - prescriptions
      parameters:
      - name: content-type
        in: header
        required: true
        schema:
          type: string
          enum:
          - text/xml
      - name: prescription_token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model106'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model63'
  /v1/prescription/{prescription_token}/external_transfer:
    post:
      summary: Create an external transfer request for a prescription
      description: Create an external transfer request for a prescription
      operationId: postV1PrescriptionPrescription_tokenExternal_transfer
      tags:
      - prescriptions
      responses:
        default:
          description: Successful
          content:
            application/json:
              schema:
                type: string
  /v1/prescription/{prescription_token}/fill/{fill_number}/claims:
    get:
      summary: Get Claim information
      description: Get claim information associated with a prescription and that particular fill<br/><br/>Given a prescription token and a fill number, the claim information associated with a prescription and that particular fill can be retrieved via API<br/><br/>All claim information correlating to a specific fill is made available here, including claim rejections and reversals. Claim information is displayed in array format, with each object representing a claim record<br/><br/>If a claim is rejected, NCPDP codes are also displayed for the particular claim rejection within the `claim_reject_codes` field<br/><br/>Claim records are displayed in chronological order. If no claim information is available for a provided `prescription_token` and `fill_number`, an empty array is returned.
      operationId: getV1PrescriptionPrescription_tokenFillFill_numberClaims
      tags:
      - prescriptions
      parameters:
      - name: prescription_token
        in: path
        required: true
        description: Prescription token associated with prescription
        schema:
          type: string
      - name: fill_number
        in: path
        required: true
        description: Fill number of particular fill
        schema:
          type: number
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model111'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model112'
  /v1/prescription/{prescription_token}/transfer_out:
    post:
      summary: TransferOut a Prescription by token
      description: TransferOut a particular prescription
      operationId: postV1PrescriptionPrescription_tokenTransfer_out
      tags:
      - prescriptions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model229'
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: string
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '409':
          description: Conflict
        '500':
          description: Internal Server Error
  /v1/prescription/{token}:
    get:
      summary: Get Prescription by token
      description: 'Once a specific prescription is in the Truepill ecosystem -- either via eRx, Direct Transfer or Transfer -- the prescription information can be retrieved at any time through an API request.<br/><br/>This endpoint requires a prescription_token. You will receive a prescription_token through one of the following scenarios: <br/><br/>A Notify-Rx callback which is sent when a prescription is received by the pharmacy through SureScripts<br/><br/>A Direct Transfer callback which is sent when a Direct Transfer has been successfully processed<br/><br/>A Transfer callback which is sent when a Transfer has been successfully processed'
      operationId: getV1PrescriptionToken
      tags:
      - prescriptions
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model62'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model63'
  /v1/prescriptions/{prescription_token}/external_transfer:
    post:
      summary: Create an external transfer request for a prescription
      description: Create an external transfer request for a prescription
      operationId: postV1PrescriptionsPrescription_tokenExternal_transfer
      tags:
      - prescriptions
      responses:
        default:
          description: Successful
          content:
            application/json:
              schema:
                type: string
components:
  schemas:
    Model247:
      type: object
      properties:
        timestamp:
          type: string
          format: date
          example: '2026-08-07T19:45:22.706Z'
        status:
          type: string
          example: successful
    Model16:
      type: object
      properties:
        message:
          type: string
          example: An example error message
    Model63:
      type: object
      properties:
        statusCode:
          type: number
          example: 404
        error:
          type: string
          example: Not Found
        message:
          type: string
          example: Unable to find Prescription.
    auto_refill_medications:
      type: object
      properties:
        auto_refill_id:
          type: number
          example: 1
        auto_refill_date:
          type: string
          format: date
          example: '2026-08-07T19:45:22.708Z'
        auto_reminder:
          type: boolean
          example: true
        refills_remaining:
          type: number
          example: 3
    Model225:
      type: object
      properties:
        sas_id:
          type: string
          example: 985c7f9f-b506-424a-b016-0a47144f46b6
    Model111:
      type: array
      items:
        $ref: '#/components/schemas/Model110'
    Model228:
      type: object
      properties:
        street1:
          type: string
        street2:
          type: string
        city:
          type: string
        state:
          type: string
        zip:
          type: string
      required:
      - street1
      - city
      - state
      - zip
    Model226:
      type: object
      properties:
        code:
          type: number
          example: 200
        err:
          type: boolean
          example: false
        data:
          $ref: '#/components/schemas/Model225'
    Model94:
      type: object
      properties:
        timestamp:
          type: string
          format: date
          example: '2021-05-20T00:00:00.000Z'
        status:
          type: string
          example: successful
        details:
          $ref: '#/components/schemas/Model93'
    Model106:
      type: object
      properties:
        xml:
          type: string
    Model207:
      type: object
      properties:
        auto_refill_medications:
          $ref: '#/components/schemas/Model206'
    transfer_to:
      type: object
      properties:
        pharmacy_name:
          type: string
        pharmacist_name:
          type: string
        npi:
          type: string
          pattern: ^[0-9]+$
          x-constraint:
            length: 10
        phone:
          type: string
          pattern: ^\(?\d{3}\)?[-\s]?\d{3}[-\s]?\d{4}$
        fax:
          type: string
          pattern: ^\(?\d{3}\)?[-\s]?\d{3}[-\s]?\d{4}$
        address:
          $ref: '#/components/schemas/Model228'
      required:
      - pharmacy_name
      - address
    Model206:
      type: object
      properties:
        auto_refill_id:
          type: number
          description: ID of the newly created auto refill subscription.
        auto_refill_date:
          type: string
          format: date
          description: Date the next refill will be filled.
          example: '2021-07-31T00:00:00.000Z'
    Model15:
      type: object
      properties:
        code:
          type: number
          example: 200
        err:
          type: boolean
          example: false
        data:
          $ref: '#/components/schemas/data'
    Model18:
      type: object
      properties:
        code:
          type: number
          example: 400
        err:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Model17'
    data:
      type: object
      properties:
        timestamp:
          type: string
          format: date
          example: '2021-05-20T00:00:00.000Z'
        status:
          type: string
          example: successful
        details:
          $ref: '#/components/schemas/details'
    Model43:
      type: object
      properties:
        code:
          type: number
          example: 200
        err:
          type: boolean
          example: false
        data:
          $ref: '#/components/schemas/Model42'
    Model93:
      type: object
      properties:
        auto_refill_subscriptions:
          $ref: '#/components/schemas/Model92'
        nextPageToken:
          type: string
          example: nextPageTokenString
        total:
          type: number
          example: 1
    Model110:
      type: object
      properties:
        patient_copay_amount:
          type: number
          description: Expected patient copay amount from claim if adjudication is successful
          example: 10
        transaction_code:
          type: string
          description: Adjudication transaction type
          example: B2
        claim_type:
          type: string
          description: Insurance claim type
          example: Reversal
        transmission_date:
          type: string
          format: date
          example: '2021-09-15T03:07:01.000Z'
        insurance:
          $ref: '#/components/schemas/insurance'
        payor:
          type: string
          description: Payor's name
          example: Health Partners
        payor_adjudication_amount:
          type: number
          description: Payor adjudication amount
          example: 0
    Model227:
      type: object
      properties:
        reason:
          type: string
          example: Discontinuation of therapy
      required:
      - reason
    formulary:
      type: object
      description: Formulary details if available
    prescription:
      type: object
      properties:
        prescription_token:
          type: string
          description: Token to reference the prescription
          example: 7af31c1d350d
        fillable:
          type: boolean
          description: Is this prescription fillable
          example: true
        is_refill:
          type: number
          description: Is prescription a refill or new fill
          example: 0
        rx_number:
          type: string
          description: Rx number of prescription
          example: '1111111'
        prescribed_drug_strength:
          type: string
          description: Drug strength prescribed
          example: 20 mg
        prescribed_written_name:
          type: string
          description: Name of medication prescribed as written
          example: Cialis 20 Mg Tablet
        prescribed_quantity:
          type: number
          description: Quantity of prescribed medication
          example: 10
        prescribed_quantity_unit:
          type: string
          description: Unit for the prescribed medication quantity
          example: tablets
        prescribed_ndc:
          type: string
          description: NDC of prescribed medication
          example: '00002446430'
        medication_sig:
          type: string
          description: Instructions for taking medication
          example: Take one tablet by mouth 45-60 minutes prior to sexual activity. Take no more than once per day.
        prescriber:
 

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/truepill/refs/heads/main/openapi/truepill-prescriptions-api-openapi.yml