{"info":{"_postman_id":"c0045626-325d-401e-95c4-2ab6372b60f7","name":"PMPReport API v1.12.0","description":"<html><head></head><body><h1 id=\"change-log\"><strong>Change Log</strong></h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Date</strong></th>\n<th><strong>Version</strong></th>\n<th><strong>Description of Changes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>10/19/21</td>\n<td>0.1</td>\n<td>Initial version</td>\n</tr>\n<tr>\n<td>11/05/21</td>\n<td>0.2</td>\n<td>Added new fields to transaction and patient segments to support alternate person picking up or dropping off prescription.  <br>Added xDEA field for use with some specialty medications</td>\n</tr>\n<tr>\n<td>4/01/23</td>\n<td>0.3</td>\n<td>Updates to Classification details and other clarifications in the Conventions section</td>\n</tr>\n<tr>\n<td>12/09/25</td>\n<td>1.4</td>\n<td>Updates to api fields</td>\n</tr>\n<tr>\n<td>2/10/26</td>\n<td>1.5.1</td>\n<td>Added compound elements</td>\n</tr>\n<tr>\n<td>3/10/26</td>\n<td>1.6.0</td>\n<td>Added support for dspSurescriptsMessageId</td>\n</tr>\n<tr>\n<td>3/19/26</td>\n<td>1.6.1</td>\n<td>Updated NCPDPID from header to transaction</td>\n</tr>\n<tr>\n<td>3/25/26</td>\n<td>1.7.0</td>\n<td>Added a new field for pharmacy state license. You can either configure this setting on the dispenser profile and then leave the field blank in the API or send it in the API call. Sending with the API will always override what’s in the dispenser profile.  <br>Fixed a bug when submitting a patient state with a two letter state code.</td>\n</tr>\n<tr>\n<td>3/27/26</td>\n<td>1.8.0</td>\n<td>Added a new field for pharmacyContactName. You can either send a contact name via this API field, or set the contact name on the dispenser profile. Sending via the API field will override what is on the dispenser profile.</td>\n</tr>\n<tr>\n<td>5/1/26</td>\n<td>1.9.0</td>\n<td>Added a new field for isMailOrder.</td>\n</tr>\n<tr>\n<td>5/1/26</td>\n<td>1.10.0</td>\n<td>Added a new field for prescriberOrderNumber (DSP 21)</td>\n</tr>\n<tr>\n<td>6/27/26</td>\n<td>1.11.0</td>\n<td>Added a new field for pharmacist last name and first name. This is DSP 35 and DSP 36.</td>\n</tr>\n<tr>\n<td>8/12/26</td>\n<td>1.12.0</td>\n<td>Added a note to patientIdJurisdiction making it required when a patient drivers license is submitted.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"abstract\">Abstract</h1>\n<p>The PMPReport API has been developed to reduce the cost of PMP reporting and increase patient safety. The API enables instant feedback about controlled substance usage and prevents potentially harmful scenarios such as too-soon alerts, drug-drug interactions, and dangerous drug combinations. Another important feature of real-time reporting is the ability to correct and resubmit records immediately instead of waiting days or weeks to receive errors.</p>\n<p>Currently, each state runs its own independent PDMP and each state has unique requirements, systems, and policies. Entities that report controlled drug dispenses to multiple states have to deal with the complexities and added costs associated with these fragmented systems. The PMPReport API allows data to be reported consistently and predictably.</p>\n<p>There are two parts to the specification. The first part is the structure of specification which is a high-level description of when calls need to be made and use cases. The second part is the low-level detail of method calls and fields.</p>\n<p>Note: Required fields can vary based on the reporting requirements set by the relevant state authorities.</p>\n<h1 id=\"conventions-used-in-this-specification\">Conventions used in this specification</h1>\n<h2 id=\"dates\">Dates</h2>\n<p><strong>The term \"dispense date\" is not used to avoid confusion between the fill date and when the patient picks up the medication. Each record has three dates listed below. Dates do not include the time (hours, minutes, and seconds) and are in the time zone of the actor.</strong></p>\n<ul>\n<li><p><strong>Prescription written date: This is the date the prescriber orders the medication for the patient in the prescriber’s time zone.</strong></p>\n</li>\n<li><p><strong>Fill date: This is the date the pharmacy prepares the medication in the pharmacy’s time zone. There can be multiple fill dates for a prescription with refills.</strong></p>\n</li>\n<li><p><strong>Sold Date: This is the date the pharmacy gives or sends the medication to the patient in the time zone of the pharmacy.</strong></p>\n</li>\n</ul>\n<p><strong>These dates can be the same if a medication is prescribed, filled, and sold on the same day. In cases where medications are shipped to a patient, the sold date is the shipped date of the medication and does not include the transit time.</strong></p>\n<p><strong>The Date Of Service (NDCPD 401-D1) is used in claim adjudication between pharmacies and PBMs. Date of service is not used in this specification due to its confusion as a fill date, sold date or even the billing date in some cases.</strong></p>\n<h2 id=\"quantities\">Quantities</h2>\n<p><strong>Dispensed quantities can be specified as an integer (30, 60) or as a floating point number (12.1 mL). Integers are converted to their floating point equivalent if no decimal is provided.</strong></p>\n<h2 id=\"drug-classifications\">Drug Classifications</h2>\n<p><strong>Medications are broken down into 5 classifications or \"schedules\" by the DEA at a national level. These levels are from schedule 1 to 5 for controlled substances and schedule 0 (default) for non-controlled medications. Many states require the reporting of medications not on the DEA’s national schedule. These are medications like Gabapentin, Fioricet, and Butalbital. This specification lists these as Drugs of Concern. (DofC). While they are reported and treated as a controlled substance in certain states, they are not federally scheduled medications. In some cases, individual states may also re-classify certain medications into a higher schedule than what they are considered to be by the DEA, which may also impact reporting of specific drugs in certain states.</strong></p>\n<h2 id=\"drug-identification\">Drug Identification</h2>\n<p><strong>This specification uses 11-digit NDC’s (NDC11) for the specification of medications. NDCs are technically only 10 digits, however the use of 11-digit NDCs ensures a greater level of accuracy. This is to avoid confusion between NDC (5-4-1) and NDC (5-3-2) formats when dashes are omitted. The NDC11 is always in 5-4-2 format. This is the same convention used by the NCPDP Claim Adjudication Standard (PBMs) and the NCPDP Script Standard (Surescripts).</strong></p>\n<p><strong>Note: The 2013 Drug Supply Chain Security Act (DSCSA) implementation by GS1 uses a 10-digit NDC as part of the GTIN for the tracking and tracing of medications. (With no dashes)</strong></p>\n<p><strong>There are several published lists of NDCs available in the USA including Medispan, Red Book, FirstDataBank, and the FDA. Maintaining an accurate and complete list of NDCs is an impossible and critical part of implementing this specification. To reduce cost and delays between systems a free-form drug description is sent in addition to the NDC. This reduces the cycle time to add new NDCs.</strong></p>\n<p><strong>Compounds are specified as a list of active ingredients also using NDC11. Only the ingredients which are controlled substances need to be reported.</strong></p>\n<h2 id=\"dea-numbers\"><strong>DEA Numbers</strong></h2>\n<p><strong>This specification specifies the use of 3 DEA numbers. The DEA assigns each number with a Business Activity Code (BAC) identifying whether the DEA number is a business or individual.</strong></p>\n<ul>\n<li><p><strong>Prescriber DEA: (Individual) This is the DEA number of the provider who orders the prescription for the patient. The supervising provider’ DEA number is used in the case of a mid-level practitioner working under the supervision of a supervising provider. This practice will vary depending on laws concerning prescribing in each state.</strong></p>\n</li>\n<li><p><strong>Pharmacy DEA: (Business or Individual) This is the DEA number of the pharmacy filling the medication or practitioner dispensing in-office.</strong></p>\n</li>\n<li><p><strong>Pharmacist DEA: (Individual) This is the provider that authorizes the filling of the prescription at a pharmacy. The supervising pharmacist is used in the case of a pharmacist working in conjunction with the pharmacy technicians.</strong></p>\n</li>\n</ul>\n<p><strong>In the case of physician dispensing the prescriber and pharmacy are the same and there is no pharmacist DEA.</strong></p>\n<p><strong>A National Provider Number (NPI) can be used when a state-specific drug of concern is being reported and there is no requirement for the practitioner to have a registered DEA number.</strong></p>\n<h2 id=\"field-definitions\">Field Definitions</h2>\n<p><strong>This specification uses NCPDP field definitions when available. Pharmacy applications already support these definitions for ePrescribing through Surescripts and claim adjudication through PBMs. Data analysis organizations already process data with these standard field definitions. This specification does not define yet another list of values for existing pharmacy definitions. The NCPDP Field definition code (NNN-AA) will appear when an NCPDP standard field is used.</strong></p>\n<p><strong>For example: NCPDP 307-C7 is defined as the Place of Service. The meaning and values of this field are well-defined and widely used in pharmacy systems.</strong></p>\n<h2 id=\"locations\">Locations</h2>\n<p><strong>To support internationalization all addresses are specified in the following manner without the use of state codes.</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Address</th>\n<th><strong>The house number, street and direction of the location</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Address 2</td>\n<td>The suite, apartment, floor or other area inside the address</td>\n</tr>\n<tr>\n<td>City</td>\n<td>Name of the city or town</td>\n</tr>\n<tr>\n<td>Region</td>\n<td>State name in the United States, province in Canada or region in other countries</td>\n</tr>\n<tr>\n<td>Postal Code</td>\n<td>Zip5 in the United States, otherwise postal code. Can include letters such as postal codes in Canada</td>\n</tr>\n<tr>\n<td>Country Code</td>\n<td>Two-letter ISO-3166 standard maintained by the ISO central office in Geneva. (US, PR, CA)</td>\n</tr>\n</tbody>\n</table>\n</div><p>In the United States addresses are converted to a USPS standard address specification to make address comparisons easier. This converts words such as \"Drive\" to DR, and \"Street\" to ST.</p>\n<h2 id=\"api-url\">API URL</h2>\n<p><strong>The URL for all of the methods is the following. This endpoint supports HTTPS GET and POST.</strong></p>\n<p><a href=\"https://www.dispensepro.com/dis/servlet/dis.Main?n=API\"><b>https://secure.pmpreport.com/pmp/servlet/pmp.Main?n=API</b></a></p>\n<p><strong>Putting just this endpoint into a browser returns a JSON response error for things like missing authentication and a missing body of the message. If you’re experiencing an HTTP 404 error for this URL, it’s most likely due to the country you’re in. We block almost all international traffic based on IP location. Please originate the requests from a US IP address.</strong></p>\n<h2 id=\"methods-transmissions-and-transactions\">Methods, Transmissions, and Transactions</h2>\n<p><strong>These terms are used throughout the specification. A \"method\" is one of the three calls (Add, Void, Check) that are used by data submitters. A \"transmission\" is sending data from a submitter to the server and receiving a response from the server. The request and response are in the same transmission. A transaction is a single record in a transmission. The PMPReport specification permits up to 4 transactions per transmission. That is up to 4 Add, Check, or Void transactions per transmission.</strong></p>\n<h1 id=\"api-methods\">API Methods</h1>\n<p><strong>The PMPReport API has only 3 methods so that it is easier for data submitters to implement and maintain. Records are submitted using the Add method at the time of sale removing the</strong></p>\n<p><strong>need to void medications that are not picked up by the patient. Pharmacies can call the Check method before filling to determine if the medication should be filled. The Check method is identical to the Add method except that the record is not stored. This provides an optional way to pre-determine if there would be any errors or warnings if an Add method was called.</strong></p>\n<p><strong>There are cases where a Check call returns no errors and then subsequently the Add method returns a warning. One example is if the patient picks up medications from multiple pharmacies after the Check method is called.</strong></p>\n<p><strong>The Add and Check methods return errors for any missing fields as well as DUR warnings. Errors can be corrected by calling the Add method again until no errors are returned. The Void method is used only after the pharmacy needs to void a record previously submitted with Add.</strong></p>\n<p><strong>Pharmacies can elect to use these three methods in different ways explained in the Common Use Cases section of this specification. The key highlights are:</strong></p>\n<ul>\n<li><p><strong>Pharmacy can submit data and check on a patient in one transaction.</strong></p>\n</li>\n<li><p><strong>Data is not reported at the time of fill reducing the cost of voiding medications not picked up.</strong></p>\n</li>\n<li><p><strong>The PMPReport API is used solely by pharmacies and dispensers. Prescribers would not use the API through their EMR’s.</strong></p>\n</li>\n</ul>\n<p><strong>Up to 4 transactions can be sent in one transmission. The pharmacy, patient, and method call (Add, Check, Void) must be the same for multi-transaction calls. (The prescriber can be different.) This mimics how claim adjudication transactions are transmitted between pharmacies and PBMs.</strong></p>\n<p><strong>Both the Check and Add methods require a medication and the errors/warnings are based on that medication. There is no method to get a medication profile of a patient. This API combines the submission of data and the querying of patients into one call eliminating the need for a second system to query patients.</strong></p>\n<h2 id=\"add-method\">Add Method</h2>\n<p><strong>The Add method is used to submit a new dispense record as well as to update an existing record. The Add method should be used when the record is ready to be reported, for example when the patient has picked up their medication from the pharmacy. Between one and four medications for a single patient can be added with one Add request. This is a standard number of transactions per request used by the pharmacy claim adjudication system and NCPDP standard.</strong></p>\n<p><strong>The submitted record is accepted if no errors are returned on an Add method call. Warnings provide refill information too soon, duplicate therapy, and other scenarios but the record is still accepted. The submitter would have to void the record to remove it after seeing warnings.</strong></p>\n<p><strong>Records with errors need additional attention. The information can be updated by retransmitting the Add method with additional information, or by logging into the user portal and manually correcting a record.</strong></p>\n<h2 id=\"check-method\">Check Method</h2>\n<p><strong>The Check method is identical to the Add method except the record is not saved. This method can be used to perform a pre-check, for example when the pharmacy is filling a prescription, to make sure all the required information is present and no DUR warnings are returned. Since no information is stored on a Check request, no further action is necessary if the medication is not filled or the patient does not pick up their medication.</strong></p>\n<h2 id=\"void-method\">Void Method</h2>\n<p><strong>The Void method is used to cancel or void a dispense record. Several scenarios may occur that would require the use of the Void method. One of these scenarios is if you need to update a record that was previously added but you receive an error stating that the record is locked. In this case, you’ll need to send a Void request followed by an Add request.</strong></p>\n<h1 id=\"common-use-cases-and-workflows\">Common Use Cases and Workflows</h1>\n<p><strong>This section covers common use cases and demonstrates how the API can be used to improve patient safety.</strong></p>\n<p><strong>The PMPReport API is specifically designed to minimize the number of API calls for typical pharmacy workflows. There are only three methods to make implementation as easy as possible. Two of the methods, \"Add\" and \"Check\" are identical except that the latter does not persist a record allowing for predetermination without committing to report.</strong></p>\n<p><strong>We will outline 3 possible workflows that are supported by the API. The first is the preferred and most efficient method. The remaining two have disadvantages.</strong></p>\n<h2 id=\"1-check-and-add-workflow\">1. Check and Add Workflow</h2>\n<p><strong>In this workflow, a Check method call is done before filling the medication. If an error or warning occurs the pharmacy can elect to not fill the medication. No further action is required. If the Check method produces no errors or warnings the pharmacy fills the prescription.</strong></p>\n<p><strong>When the patient picks up the medication an Add method call is done. If an error or warning occurs the pharmacy can elect to not sell the medication and transmit a Void. Otherwise, no further action is required.</strong></p>\n<p><strong>If the patient does not pick up the medication no further action is needed when medications are returned to inventory.</strong></p>\n<p><strong>The benefit of this workflow is that the pharmacy saves time by not filling medications that will not be sold. In addition, there is no additional time spent on medications that are not picked up by the patient.</strong></p>\n<p><strong>Another benefit to this workflow is that the reported date is the actual date the medications are received by the patient, not when the medications are filled.</strong></p>\n<h2 id=\"2-add-and-void-workflow\">2. Add and Void Workflow</h2>\n<p><strong>In this workflow, there is no Check method and the pharmacy does an Add method call either when the medication is filled or sold. The disadvantage of this workflow is that a Void method call must be done if the pharmacy decides not to fill the medication or the patient does not pick up the medication. Other disadvantages include not seeing the warnings before filling or selling a medication. If the Add method is done when the medications are filled, then there’s the appearance that a patient was sold medications before they were picked up.</strong></p>\n<h2 id=\"3-add-only-workflow\">3. Add Only Workflow</h2>\n<p><strong>In this workflow, the pharmacy does not check for warnings from either a Check or Add method and sells medications indiscriminately. This is in effect the workflow when daily batch reporting using data files is used, which is the current workflow in most states. This is the easiest workflow for the pharmacy but the most dangerous for patients.</strong></p>\n<h1 id=\"api-segments-and-fields\">API Segments and Fields</h1>\n<p><strong>The API transmission is made up of segments which each contain fields. Field names are in lower camel case, also known as dromedary case, where names start with a lowercase letter and subsequent words start with an uppercase letter. (firstName, countryCode)</strong></p>\n<p><strong>Segments and fields can be transmitted in any order and the ordering shown here is solely for readability. This section is intended to list the fields without the burden of the encoding and transmission details (Next chapter). There are no field sizes except in cases where the field definition has a predetermined size. (For example, DEA numbers and SSN.)</strong></p>\n<p><strong>Abbreviations in the Methods column are \"C\" for Check, \"A\" for Add, and \"V\" for Void.</strong></p>\n<h2 id=\"submit-segments\">Submit Segments</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Segment</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Header</td>\n<td>General information for entire transmission</td>\n</tr>\n<tr>\n<td>Patient</td>\n<td>Patient information</td>\n</tr>\n<tr>\n<td>Transaction</td>\n<td>Dispense and prescription information (repeating up to four times)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"header-submit-segment\">Header Submit Segment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Methods</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Sample Values</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>action</td>\n<td>R</td>\n<td>C/A/V</td>\n<td>String</td>\n<td>check, add or void</td>\n<td></td>\n</tr>\n<tr>\n<td>version</td>\n<td>R</td>\n<td>C/A/V</td>\n<td>Integer</td>\n<td>1</td>\n<td>Used for backwards compatibility</td>\n</tr>\n<tr>\n<td>pharmacyDEA</td>\n<td>R</td>\n<td>C/A/V</td>\n<td>String</td>\n<td>AB1234567</td>\n<td>Pharmacy dispensing medications or provider in the case of physician dispensing</td>\n</tr>\n<tr>\n<td>pharmacyNPI</td>\n<td></td>\n<td>C/A/V</td>\n<td>String</td>\n<td>1234567893</td>\n<td>Optional. Pharmacy dispensing medications or provider in the case of physician dispensing</td>\n</tr>\n<tr>\n<td>isTest</td>\n<td></td>\n<td>C/A/V</td>\n<td>Boolean</td>\n<td>true</td>\n<td>Use true to indicate test transaction</td>\n</tr>\n<tr>\n<td>isMailOrder</td>\n<td></td>\n<td>C/A</td>\n<td>Boolean</td>\n<td>true</td>\n<td>Use to set a pharmacy to mail order during the pharmacy profile creation if one hasn't already been created. Otherwise you can manage this setting in your dispenser profile.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"patient-submit-segment\">Patient Submit Segment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Methods</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Sample Values</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>lastName</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>Smith</td>\n<td></td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>John</td>\n<td></td>\n</tr>\n<tr>\n<td>address</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>123 Main St</td>\n<td></td>\n</tr>\n<tr>\n<td>address 2</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>#222</td>\n<td></td>\n</tr>\n<tr>\n<td>city</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>Atlanta</td>\n<td></td>\n</tr>\n<tr>\n<td>region</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>Georgia</td>\n<td>Use state name in US, province in Canada or region otherwise</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>34543</td>\n<td>Zip5 in the US, postal code otherwise</td>\n</tr>\n<tr>\n<td>dob</td>\n<td>R</td>\n<td>C/A</td>\n<td>Integer</td>\n<td>19811231</td>\n<td>YYYYMMDD</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>m</td>\n<td>Biological gender M, F, U (unknown)</td>\n</tr>\n<tr>\n<td>phone</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>4041234555</td>\n<td></td>\n</tr>\n<tr>\n<td>patientIdType</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>drivers license</td>\n<td>Type of patient ID:  <br>- system  <br>- ssn  <br>- passport  <br>- drivers license</td>\n</tr>\n<tr>\n<td>patientId</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>456789</td>\n<td></td>\n</tr>\n<tr>\n<td>patientIdJurisdiction</td>\n<td>Required when a drivers license is submitted</td>\n<td>C/A</td>\n<td>String</td>\n<td>GA</td>\n<td>State issuing patient ID (if applicable)</td>\n</tr>\n<tr>\n<td>patLocationCode</td>\n<td></td>\n<td>C/A</td>\n<td>Integer</td>\n<td>1</td>\n<td>1 - Home  <br>2 - Intermediary  <br>3 - Nursing  <br>4 - Long Term  <br>5 - Rest  <br>6 - Boarding  <br>7 - Skilled Care  <br>8 - Sub Acute  <br>9 - Acute Care  <br>10 - Out Patient  <br>11 - Hospice  <br>98 - Unknown  <br>99 - Other</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"transaction-submit-segment\">Transaction Submit Segment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Methods</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Sample Values</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prescriberDEA</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td>AB1234567</td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberDEASuffix</td>\n<td>Required when a prescriber is not an individual provider. Ex. hospitals and clinics.</td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberNPI</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>1234567893</td>\n<td>Optional. Used when no DEA is available</td>\n</tr>\n<tr>\n<td>prescriberState</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>New York</td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberStateLic</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>NY178267</td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberStateLicJurisdiction</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>New York</td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberPhone</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>555555555</td>\n<td>Prescriber's phone number (required for Nebraska)</td>\n</tr>\n<tr>\n<td>prescriberFirstName</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberLastName</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>pharmacistNPI</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>1003802901</td>\n<td></td>\n</tr>\n<tr>\n<td>writtenDate</td>\n<td>R</td>\n<td>C/A</td>\n<td>Integer</td>\n<td>20250101</td>\n<td>NCPDP 414-DE YYYYMMDD format</td>\n</tr>\n<tr>\n<td>writtenQuantity</td>\n<td>R</td>\n<td>C/A</td>\n<td>Float</td>\n<td>30, 12.1</td>\n<td>NCPDP 460-ET</td>\n</tr>\n<tr>\n<td>refillsAuthorized</td>\n<td>R</td>\n<td>C/A</td>\n<td>Integer</td>\n<td></td>\n<td>NCPDP 415-DF 0: no refills, 1 -&gt; N refills</td>\n</tr>\n<tr>\n<td>refillNumber</td>\n<td>R</td>\n<td>C/A/V</td>\n<td>Integer</td>\n<td></td>\n<td>NCPDP 403-D3 0: initial fill, 1 -&gt; N for refills</td>\n</tr>\n<tr>\n<td>partialFill</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td>soldDate</td>\n<td></td>\n<td>C/A</td>\n<td>Integer</td>\n<td>20250101</td>\n<td>YYYYMMDD</td>\n</tr>\n<tr>\n<td>ndc</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>NCPDP 407-D7 11 digits</td>\n</tr>\n<tr>\n<td>dispenseQuantity</td>\n<td>R</td>\n<td>C/A</td>\n<td>Float</td>\n<td></td>\n<td>NCPDP 442-E7</td>\n</tr>\n<tr>\n<td>dosageCode</td>\n<td>R</td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>Ea, ml, gm. Can be abbreviated or spelled out.</td>\n</tr>\n<tr>\n<td>rxNumber</td>\n<td>R</td>\n<td>C/A/V</td>\n<td>String</td>\n<td>10403</td>\n<td>NCPDP 402-D2</td>\n</tr>\n<tr>\n<td>daysSupply</td>\n<td>R</td>\n<td>A</td>\n<td>Integer</td>\n<td>30</td>\n<td></td>\n</tr>\n<tr>\n<td>paymentType</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>Accepted values:  <br>- cash  <br>- medicaid  <br>-medicare  <br>- insurance  <br>- military  <br>- workers comp  <br>- indian  <br>- other</td>\n</tr>\n<tr>\n<td>rxOrigin</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>Accepted values:  <br>- written  <br>- phone  <br>- emergency  <br>- fax  <br>- electronic  <br>- forwarded  <br>- other</td>\n</tr>\n<tr>\n<td>diagnosisCodes</td>\n<td></td>\n<td>A</td>\n<td>String</td>\n<td></td>\n<td>List of ICD-10's</td>\n</tr>\n<tr>\n<td>surescriptsMessageId</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>prescriberOrderNumber</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>animalName</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>Dino</td>\n<td>Animal name for veterinary, blank otherwise</td>\n</tr>\n<tr>\n<td>animalDOB</td>\n<td></td>\n<td>C/A</td>\n<td>Integer</td>\n<td>20250101</td>\n<td>YYYYMMDD  <br>Animal date of birth</td>\n</tr>\n<tr>\n<td>animalGender</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>m</td>\n<td>Animal gender M, F, U (Unkown)</td>\n</tr>\n<tr>\n<td>rxSerialNumber</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>State issued rx serial number for written prescriptions</td>\n</tr>\n<tr>\n<td>pharmacyAddress</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>123 Main St</td>\n<td></td>\n</tr>\n<tr>\n<td>pharmacyAddress2</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>#222</td>\n<td></td>\n</tr>\n<tr>\n<td>pharmacyCity</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>Miami</td>\n<td></td>\n</tr>\n<tr>\n<td>pharmacyState</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>Florida</td>\n<td></td>\n</tr>\n<tr>\n<td>pharmacyPostalCode</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>33101</td>\n<td></td>\n</tr>\n<tr>\n<td>pharmacyStateLic</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>123456789</td>\n<td>State license number for the dispensing pharmacy</td>\n</tr>\n<tr>\n<td>pharmacyContactName</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>John Smith</td>\n<td></td>\n</tr>\n<tr>\n<td>isCompound</td>\n<td></td>\n<td>C/A</td>\n<td>Boolean</td>\n<td>True</td>\n<td>Wheather this is a compound. If true, it will have the parts properly</td>\n</tr>\n<tr>\n<td>ncpdpId</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td>12345</td>\n<td>National Council for Prescription Drug Programs ID, dive-digit identifier</td>\n</tr>\n<tr>\n<td>Parts</td>\n<td></td>\n<td>A</td>\n<td>Array</td>\n<td>[{  <br>\"ndc\": \"123\",  <br>\"quantity\": 1,  <br>\"unit\": \"ea\"  <br>}, {  <br>\"ndc\": \"456\",  <br>\"quantity\": 2,  <br>\"Unit\":\"ml\"  <br>}]</td>\n<td>Array of compound parts identified by ndc and including unit and quantity. Only used when isCompound is true. Allowed values for unit are:  <br>- ml  <br>- millil  <br>- gram  <br>- gm  <br>- g  <br>- ea  <br>- each</td>\n</tr>\n<tr>\n<td>pharmacistFirstName</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>First name of the pharmacist filling the prescription.</td>\n</tr>\n<tr>\n<td>pharmacistLastName</td>\n<td></td>\n<td>C/A</td>\n<td>String</td>\n<td></td>\n<td>Last name or initials of the pharmacist filling the prescription.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-segments\">Response Segments</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Segment</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Header Response</td>\n<td>General information for entire transmission</td>\n</tr>\n<tr>\n<td>Transaction Responses</td>\n<td>Transaction response. (repeats for each transaction submitted)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"header-response-segment\">Header Response Segment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Sample Values</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>action</td>\n<td>R</td>\n<td>String</td>\n<td>check</td>\n<td></td>\n</tr>\n<tr>\n<td>version</td>\n<td>R</td>\n<td>Integer</td>\n<td>1</td>\n<td>Use the current major release version of the API. 1.5.0 would = 1</td>\n</tr>\n<tr>\n<td>warningMessages</td>\n<td>R</td>\n<td>Array</td>\n<td></td>\n<td>Array of strings of general warning messages</td>\n</tr>\n<tr>\n<td>errorMessages</td>\n<td>R</td>\n<td>Array</td>\n<td></td>\n<td>Array of strings of error messages</td>\n</tr>\n<tr>\n<td>transactions</td>\n<td>R</td>\n<td>Array</td>\n<td></td>\n<td>Array of transaction reponses</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"transaction-response-segment\">Transaction Response Segment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Sample Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>capture</td>\n<td>R</td>\n<td>Boolean</td>\n<td>true</td>\n</tr>\n<tr>\n<td>rxNumber</td>\n<td>R</td>\n<td>Integer</td>\n<td>10004</td>\n</tr>\n<tr>\n<td>refillNumber</td>\n<td>R</td>\n<td>Integer</td>\n<td>0</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"transmission\">Transmission</h1>\n<h2 id=\"authentication\"><strong>Authentication</strong></h2>\n<p>Authentication is a very important part of this API since it involves Patient Health Information (PHI). Each submitter is given an apiKey and secretKey to use for authentication. Two types of authentication are supported: <strong>HMACSHA256</strong> and <strong>Basic</strong>. Both of these authentications involve sending an HTTP Authentication header along with each request.</p>\n<h3 id=\"hmacsha256-authentication\">HMACSHA256 Authentication</h3>\n<p>With this authentication, the submitter uses the secretKey to create a signature that is sent with the request. The string that is assigned includes the current date/time so that requests cannot be copied and replayed at a different time. Two HTTP headers are sent with the request: X-Pmp-Date and Authorization.</p>\n<p>The X-Pmp-Date is UTC time and is sent to handle differences in time between systems. The caller must be within 5 minutes before or after the correct time. The Authorization header contains the algorithm (HMACSHA256), followed by the Credential (apiKey), followed by the Signature. To create the Signature, the query string of the request (part after the ?) is assigned using the secretKey combined with the date. A Java example that performs this task and outputs a curl command that can be used to test the API authentication is below.</p>\n<p>Sample HTTP headers for HMACSHA256 authentication:</p>\n<ul>\n<li><p><strong>X-Pmp-Date:</strong> 20201114T161719Z</p>\n</li>\n<li><p><strong>Authorization</strong>: HMACSHA256 Credential=pmpreportStaging,Signature=eea9bcabc75d9a8b6c587dac269b2e4fb1c16f169d33ab776f6f67f9bcaead26</p>\n</li>\n</ul>\n<p><strong>Example Java code to create signature:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">String url = \"https://secure.pmpreport.com/pmp/servlet/pmp.Main?=API\";\nString apiKey = \"{APIUSERNAME}\";\nString secretKey = \"{APISECRETKEY}\";\nString algorithm = \"HMACSHA256\";\nString jsonStr = \"{action:\\\"authenticate\\\"}\"; \nString queryStr = \"n=API&amp;Message=\"+ URLEncoder.encode(jsonStr,\"ISO-8859-1\"); \nSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd'T'HHmmss'Z'\");\ndateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\nString pmpDate = dateFormat.format(new Date()); Mac mac = Mac.getInstance(algorithm);\nmac.init(new SecretKeySpec((secretKey+pmpDate).getBytes(),algorithm));\nbyte[] signature = mac.doFinal(URLEncoder.encode(jsonStr,\"ISO-8859-1\").getBytes(\"UTF8\"));\nString signatureHex = bytesToHex(signature);\nSystem.out.println(\"curl -d \\\"\"+queryStr+\"\\\" \"\n                   +url\n                   +\" --header 'X-Pmp-Date: \"+pmpDate+\"'\"\n                   +\" --header 'Authorization: \"+algorithm\n                   +\" Credential=\"+apiKey+\",\n                   Signature=\"+signatureHex+\"'\");\n\n</code></pre>\n<h3 id=\"basic-authentication\">Basic Authentication</h3>\n<p>Some will not have the resources to set up HMACSHA256 authentication so we also support Basic authentication from known IP addresses. Basic HTTP authentication is common and simple to implement. The apiKey and secretKey are Base64-encoded into a String that is sent in the Authentication header.</p>\n<p>Basic authentication is only supported with IP restriction. Therefore, applications that are used from unknown IP addresses must use HMACSHA256 authentication.</p>\n<h2 id=\"data-formatting\"><strong>Data Formatting</strong></h2>\n<p><strong>All transmissions and responses contain JSON formatted data. JSON stands for JavaScript Object Notation, and it is a lightweight format commonly used for data interchange systems. The message is made up of JSON objects and arrays, with objects containing one or more key value pairs. The example JSON below shows a Check method with a patient, pharmacy, and transactions segments. This demonstrates the minimum data required for the Check method.</strong></p>\n<h3 id=\"example-check-a-single-transaction\"><strong>Example: Check a single transaction</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": \"check\",\n    \"version\": 1,\n    \"pharmacyDEA\": \"FA1234567\",\n    \"patient\": {\n        \"lastName\": \"Smith\",\n        \"firstName\": \"John\",\n        \"address\": \"123 Main St\",\n        \"city\": \"Davie\",\n        \"region\": \"Florida\",\n        \"postalCode\": \"33324\",\n        \"countryCode\": \"US\",\n        \"dob\": 19660228,\n        \"gender\": \"male\",\n        \"phone\": \"4041234567\",\n        \"patientIdType\": \"drivers license\",\n        \"patientId\": \"456789\",\n        \"patientIdJurisdiction\": \"FL\"\n    },\n    \"transactions\": [{\n        \"transaction\": {\n            \"rxNumber\": 100003,\n            \"refillNumber\": 0,\n            \"prescriberDEA\": \"FA1234567\",\n            \"writtenDate\": 20211018,\n            \"writtenQuantity\": 30,\n            \"refillsAuthorized\": 3\n            \"ndc\": \"00378340172\",\n            \"dispenseQuantity\": 30,\n            \"daysSupply\": 30,\n            \"dosageCode\": \"each\",\n            \"paymentType\": \"cash\"\n        }\n    }]\n}\n\n</code></pre>\n<p><strong>The response to the Check method above is shown below. This response indicates the transaction was accepted, and no errors were found.</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": \"check\",\n    “warningMessages”: [“”],\n    “errorMessages”: [“”],\n    \"transactions\": [\n        \"transaction\": {\n            \"transactionId\": “4jh45Hg7s2”,\n            \"rxNumber\": 100003,\n            \"refillNumber\": 0\n        }\n    ]\n}\n\n</code></pre>\n<p><strong>Example: Adding a single transaction</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": \"add\",\n    \"version\": 1,\n    \"pharmacyDEA\": \"FA1234567\",\n    \"patient\": {\n        \"lastName\": \"Smith\",\n        \"firstName\": \"John\",\n        \"address\": \"123 Main St\",\n        \"city\": \"Davie\",\n        \"region\": \"Florida\",\n        \"postalCode\": \"33324\",\n        \"countryCode\": \"US\",\n        \"dob\": 19660228,\n        \"gender\": \"male\",\n        \"phone\": \"4041234567\",\n        \"patientIdType\": \"drivers license\",\n        \"patientId\": \"456789\",\n        \"patientIdJurisdiction\": \"FL\"\n    },\n    \"transactions\": [{\n        \"transaction\": {\n            \"rxNumber\": 100003,\n            \"refillNumber\": 0,\n            \"prescriberDEA\": \"FA1234567\",\n            \"writtenDate\": 20211018,\n            \"writtenQuantity\": 30,\n            \"refillsAuthorized\": 3,\n            \"ndc\": \"00378340172\",\n            \"dispenseQuantity\": 30,\n            \"daysSupply\": 30,\n            \"dosageCode\": \"each\",\n            \"paymentType\": \"cash\"\n        }\n    }]\n}\n\n</code></pre>\n<p><strong>The response to the Add method above is shown below. This response indicates the transaction was accepted, and no errors were found.</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": \"add\",\n    “warningMessages”: [“”],\n    “errorMessages”: [“”],\n    \"transactions\": [\n        \"transaction\": {\n            \"transactionId\": “4jh45Hg7s2”,\n            \"rxNumber\": 100003,\n            \"refillNumber\": 0,\n        }\n    ]\n}\n\n</code></pre>\n<p><strong>Example: Voiding a transaction</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": \"void\",\n    \"version\": 1,\n    \"pharmacyDEA\": \"FA1234567\",\n    \"transactions\": [{\n        \"transaction\": {\n            \"rxNumber\": 100003,\n            \"refillNumber\": 0\n        }\n    }]\n}\n\n</code></pre>\n<p><strong>The response to the Void method above is shown below. This response indicates the transaction was voided, and no errors were found.</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"action\": \"void\",\n    “warningMessages”: [“”],\n    “errorMessages”: [“”],\n    \"transactions\": [\n        \"transaction\": {\n            \"transactionId\": “4jh45Hg7s2”,\n            \"rxNumber\": 100003,\n            \"refillNumber\": 0,\n        }\n    ]\n}\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Change Log","slug":"change-log"},{"content":"Abstract","slug":"abstract"},{"content":"Conventions used in this specification","slug":"conventions-used-in-this-specification"},{"content":"API Methods","slug":"api-methods"},{"content":"Common Use Cases and Workflows","slug":"common-use-cases-and-workflows"},{"content":"API Segments and Fields","slug":"api-segments-and-fields"},{"content":"Transmission","slug":"transmission"}],"owner":"12120348","collectionId":"c0045626-325d-401e-95c4-2ab6372b60f7","publishedId":"2sB3WyJvus","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-04-07T20:43:25.000Z"},"item":[{"name":"Add","id":"ed5bf057-bd9b-4aff-8a10-eaa7bc36cf72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{apiHost}}/pmp/servlet/pmp.Main?n=API","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>The <code>Add</code> method is used to either submit a new dispense record or update an existing one. This method should be called when the record is ready for reporting, typically after the patient has picked up their medication from the pharmacy. A single <code>Add</code> request can include between one and four medications for the same patient, which aligns with standard transaction limits defined by the pharmacy claim adjudication system and the NCPDP standard.</p>\n<p>A record submitted via the <code>Add</code> method is considered accepted if no errors are returned. While warnings may be issued, such as early refill, duplicate therapy, or other cautionary scenarios—the record is still accepted. If the submitter decides to remove the record after receiving a warning, they must explicitly void it.</p>\n<p>Records containing errors require further action. These can be corrected by resubmitting the <code>Add</code> method with updated information or by manually editing the record through the user portal.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response is in JSON format. The response can be documented as a JSON schema to provide a structured description of the response data.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"warningMessages\": [],\n    \"errorMessages\": [],\n    \"action\": \"add\",\n    \"transactions\": [\n        {\n            \"rxNumber\": 147896,\n            \"captured\": true,\n            \"refillNumber\": 0\n        }\n    ],\n    \"version\": 1\n}\n\n</code></pre>\n<p>Error Message Sample (Missing DOB):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"warningMessages\": [],\n    \"errorMessages\": [\n        \"missingPatientDOB|Missing patient dob\",\n        \"RX 147896 patDOB|Missing Patient DOB\"\n    ],\n    \"action\": \"add\",\n    \"transactions\": [\n        {\n            \"rxNumber\": 147896,\n            \"captured\": true,\n            \"refillNumber\": 0\n        }\n    ],\n    \"version\": 1\n}\n\n</code></pre>\n","urlObject":{"path":["pmp","servlet","pmp.Main"],"host":["{{apiHost}}"],"query":[{"key":"n","value":"API"}],"variable":[]}},"response":[{"id":"2b6cef8d-e666-45d8-b22b-5087daa17c75","name":"Add","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"add\",\n  \"version\": 1,\n  \"pharmacyDEA\": \"AB1234563\",\n  \"patient\": {\n    \"lastName\": \"Smith\",\n    \"firstName\": \"John\",\n    \"dob\": \"19800101\",\n    \"address\": \"123 Main St\",\n    \"address2\": \"\",\n    \"city\": \"Los Angeles\",\n    \"region\": \"CA\",\n    \"postalCode\": \"90210\",\n    \"phone\": \"5551234567\",\n    \"gender\": \"M\",\n    \"patientIdType\": \"system\",\n    \"patientId\": \"JS123\"\n  },\n  \"transactions\": [\n    {\n      \"rxNumber\": 147896,\n      \"soldDate\": \"20240325\",\n      \"writtenDate\": \"20240320\",\n      \"refillNumber\": 0,\n      \"refillsAuthorized\": 1,\n      \"dispenseQuantity\": 30,\n      \"writtenQuantity\": 30,\n      \"daysSupply\": 10,\n      \"ndc\": \"68094070270\",\n      \"dosageCode\": \"TAB\",\n      \"rxOrigin\": \"1\",\n      \"paymentType\": \"1\",\n      \"treatmentType\": \"1\",\n      \"prescriberDEA\": \"AB1234563\"\n    }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/pmp/servlet/pmp.Main?n=API","host":["{{apiHost}}"],"path":["pmp","servlet","pmp.Main"],"query":[{"key":"n","value":"API"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ed5bf057-bd9b-4aff-8a10-eaa7bc36cf72"},{"name":"Check","event":[{"listen":"prerequest","script":{"id":"a2c98db9-0df5-4350-ad35-df2dfdb04c19","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"f5692ef7-4131-4eef-9876-2530bbc5fb0b","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"0e3db6ab-e501-40d2-bc9b-0f766be493d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{apiHost}}/pmp/servlet/pmp.Main?n=API","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>The Check method is identical to the Add method except the record is not saved. This method can be used to perform a pre-check, for example when the pharmacy is filling a prescription, to make sure all the required information is present and no DUR warnings are returned. Since no information is stored on a Check request, no further action is necessary if the medication is not filled or the patient does not pick up their medication.</p>\n<h3 id=\"api-response-json-schema\">API Response JSON Schema</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"warningMessages\": [],\n    \"errorMessages\": [],\n    \"action\": \"check\",\n    \"transactions\": [\n        {\n            \"rxNumber\": 147896,\n            \"captured\": false,\n            \"refillNumber\": 0\n        }\n    ],\n    \"version\": 1\n}\n\n</code></pre>\n","urlObject":{"path":["pmp","servlet","pmp.Main"],"host":["{{apiHost}}"],"query":[{"key":"n","value":"API"}],"variable":[]}},"response":[{"id":"286fdf68-0341-4b1f-ab72-a554eca0f075","name":"Check","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"check\",\n  \"version\": 1,\n  \"pharmacyDEA\": \"AB1234563\",\n  \"patient\": {\n    \"lastName\": \"Smith\",\n    \"firstName\": \"John\",\n    \"dob\": \"19800101\",\n    \"address\": \"123 Main St\",\n    \"address2\": \"\",\n    \"city\": \"Los Angeles\",\n    \"region\": \"CA\",\n    \"postalCode\": \"90210\",\n    \"phone\": \"5551234567\",\n    \"gender\": \"M\",\n    \"patientIdType\": \"system\",\n    \"patientId\": \"JS123\"\n  },\n  \"transactions\": [\n    {\n      \"rxNumber\": 147896,\n      \"soldDate\": \"20240325\",\n      \"writtenDate\": \"20240320\",\n      \"refillNumber\": 0,\n      \"refillsAuthorized\": 1,\n      \"dispenseQuantity\": 30,\n      \"writtenQuantity\": 30,\n      \"daysSupply\": 10,\n      \"ndc\": \"68094070270\",\n      \"dosageCode\": \"TAB\",\n      \"rxOrigin\": \"1\",\n      \"paymentType\": \"1\",\n      \"treatmentType\": \"1\",\n      \"prescriberDEA\": \"AB1234563\"\n    }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/pmp/servlet/pmp.Main?n=API","host":["{{apiHost}}"],"path":["pmp","servlet","pmp.Main"],"query":[{"key":"n","value":"API"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0e3db6ab-e501-40d2-bc9b-0f766be493d0"},{"name":"Void","id":"9622de13-feca-4f22-9a66-c5975244c398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{apiHost}}/pmp/servlet/pmp.Main?n=API","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>The <code>Void</code> method is used to cancel a previously submitted dispense record. This may be necessary in several scenarios—for example, if a record needs to be updated but has already been reported to the state PDMP and is now locked for editing. In such cases, the correct procedure is to first send a <code>Void</code> request to cancel the original record, followed by an <code>Add</code> request to submit the updated information.</p>\n<p>The behavior of the <code>Void</code> method depends on the reporting status of the record:</p>\n<ul>\n<li><p><strong>If the record has not yet been reported to the state PDMP</strong>:</p>\n<p>  → The system will simply delete the record from its internal database.</p>\n</li>\n<li><p><strong>If the record has already been reported</strong>:</p>\n<p>  → A formal <strong>Void transaction</strong> will be generated and submitted to the state PDMP, instructing it to cancel the original dispense.</p>\n</li>\n</ul>\n<h3 id=\"api-response-json-schema\">API Response JSON Schema</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"warningMessages\": [],\n    \"errorMessages\": [],\n    \"action\": \"void\",\n    \"transactions\": [\n        {\n            \"rxNumber\": 147896,\n            \"captured\": false,\n            \"refillNumber\": 0\n        }\n    ],\n    \"version\": 1\n}\n\n</code></pre>\n","urlObject":{"path":["pmp","servlet","pmp.Main"],"host":["{{apiHost}}"],"query":[{"key":"n","value":"API"}],"variable":[]}},"response":[{"id":"79dfa821-51e7-4209-a706-43b69217a62e","name":"Void","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"action\": \"void\",\n  \"version\": 1,\n  \"pharmacyDEA\": \"AB1234563\",\n  \"patient\": {\n    \"lastName\": \"Smith\",\n    \"firstName\": \"John\",\n    \"dob\": \"19800101\",\n    \"address\": \"123 Main St\",\n    \"address2\": \"\",\n    \"city\": \"Los Angeles\",\n    \"region\": \"CA\",\n    \"postalCode\": \"90210\",\n    \"phone\": \"5551234567\",\n    \"gender\": \"M\",\n    \"patientIdType\": \"system\",\n    \"patientId\": \"JS123\"\n  },\n  \"transactions\": [\n    {\n      \"rxNumber\": 147896,\n      \"soldDate\": \"20240325\",\n      \"writtenDate\": \"20240320\",\n      \"refillNumber\": 0,\n      \"refillsAuthorized\": 1,\n      \"dispenseQuantity\": 30,\n      \"writtenQuantity\": 30,\n      \"daysSupply\": 10,\n      \"ndc\": \"68094070270\",\n      \"dosageCode\": \"TAB\",\n      \"rxOrigin\": \"1\",\n      \"paymentType\": \"1\",\n      \"treatmentType\": \"1\",\n      \"prescriberDEA\": \"AB1234563\"\n    }\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/pmp/servlet/pmp.Main?n=API","host":["{{apiHost}}"],"path":["pmp","servlet","pmp.Main"],"query":[{"key":"n","value":"API"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9622de13-feca-4f22-9a66-c5975244c398"}],"event":[{"listen":"prerequest","script":{"id":"ace61699-0c07-4e67-a593-32d50cea6bf8","type":"text/javascript","packages":{},"requests":{},"exec":["const apiKey = pm.environment.get(\"apiKey\");","const apiSecret = pm.environment.get(\"apiSecret\");","","if(pm.environment.get(\"useHmac\") == 'true') {","    const moment = require('moment');","    const CryptoJS = require(\"crypto-js\");","    const now = moment().utc().format(\"yyyyMMDDTHHmmss[Z]\");","    const hash = CryptoJS.HmacSHA256(pm.request.body.raw, apiSecret + now);","","    console.log('Authenticating with password: ' + apiSecret + \" key: \" + apiKey +\" Date: \" + now);","","    pm.request","      .headers","      .add({key:\"X-Pmp-Date\",","            value: now});","    pm.request","      .headers","      .add({key: \"Authorization\",","            value:\"HMACSHA256 Credential=\"+apiKey+\",Signature=\"+hash});","} else {","    // Concatenate username and password with a colon","    const credentials = `${apiKey}:${apiSecret}`;","    // Encode the credentials in Base64","    const encodedCredentials = btoa(credentials);","","    // Set the Authorization header","    pm.request","      .headers","      .add({key: 'Authorization',","            value: `Basic ${encodedCredentials}`});","}"]}},{"listen":"test","script":{"id":"fb531eba-73c2-4297-b51f-34c6569c2f54","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}]}