API reference for pharmacies to integrate with PHIL.
API reference for pharmacies to integrate with PHIL.
A JSON object containing transfer request information
additional information about the request and response data
Patient details
Code identifying the sex of the individual.:
Use only when needed and AddressLine1 has been used
5-digit or 9-digit postalCode
a licensed healthcare professional who authorized the prescription for the patient
Use only when needed and AddressLine1 has been used
5-digit or 9-digit postalCode
a uniqie 11-digit code that identifies the prescribed medication
a uniqie 11-digit code that identifies the medication to be dispensed. If the same as prescribedNDC, value will be null.
prescription sig to specify how much, how often, and how to take a medication
Prescription quantity that we want dispensed for each order (may be different than what's written)
the number of prescription refills originally written, including first fill
the number of subsequent refills remaining on the prescription
Prescription written date
date the prescription expires
whether or not prescription can be substituted for another
pharamcy details used for sending pharmacy (PHIL) or receiving pharmacy (partner pharmacies)
Use only when needed and AddressLine1 has been used
2-letter code for the state
5-digit or 9-digit postalCode
pharamcy details used for sending pharmacy (PHIL) or receiving pharmacy (partner pharmacies)
Use only when needed and AddressLine1 has been used
2-letter code for the state
5-digit or 9-digit postalCode
curl -i -X POST \
https://docs.partner-api.phil.us/_mock/apis/v1/transfer \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"metadata": {
"requestID": "6a742tg3aof9f94t35270",
"requestTimestamp": "2024-09-11T12:12:00Z",
"patientReferenceID": "9as1tg3aofr5ata5cs84"
},
"patient": {
"name": {
"firstName": "John",
"middleName": null,
"lastName": "Doe",
"prefix": null,
"suffix": "Jr."
},
"dateOfBirth": "1992-03-20",
"gender": "M",
"address": {
"addressLine1": "410 Terry Ave N",
"addressLine2": null,
"city": "Seattle",
"state": "WA",
"postalCode": "74729",
"countryCode": "US"
},
"email": "patient@example.com",
"contactInfo": {
"countryCode": "+1",
"phoneNumber": "3231234532"
},
"allergyDetails": {
"allergiesDescriptor": "KNOWN_ALLERGIES_INCLUDED",
"allergies": [
"Peanuts",
"soybeans",
"crustacean shellfish"
]
}
},
"prescriber": {
"dea": "F91234563",
"npi": "0987654321",
"name": {
"firstName": "Dorothy",
"middleName": "Andrews",
"lastName": "Stevens",
"prefix": "Dr.",
"suffix": null
},
"address": {
"addressLine1": "5372 W Common St",
"addressLine2": "Ste 210",
"city": "Seattle",
"state": "WA",
"postalCode": "74729",
"countryCode": "US"
},
"faxNumber": "7732229999",
"email": "doctor@example.com",
"contactInfo": null
},
"prescription": {
"rxNumber": "rx1234",
"prescribedNDC": "82667090002",
"dispensedNDC": null,
"medicationName": "TYRVAYA® (VARENICLINE SOLUTION) NASAL SPRAY 0.03 MG",
"drugForm": "Nasal spray",
"drugStrength": "0.03 MG",
"daysSupply": 30,
"dawCode": 1,
"icdCode": null,
"sig": "TAKE 1 TABLET DAILY|TOME 1 TABLETA AL DIA",
"faxImageURL": null,
"quantityWritten": 8.4,
"quantityDispensed": 8.4,
"refillsAuthorized": 5,
"refillsRemaining": 3,
"canSubstitute": false,
"firstFilledDate": null,
"lastFilledDate": null,
"writtenDate": "2024-09-11T12:00:00Z",
"expirationDate": "2025-09-11T12:00:00Z"
},
"sendingPharmacy": {
"dea": "1M34URHXA",
"npi": "0987654321",
"name": "PhilRx, LLC",
"address": {
"addressLine1": "1234 Common St",
"addressLine2": null,
"city": "Scottsdale",
"state": "AZ",
"postalCode": "12345",
"countryCode": "US"
},
"pharmacist": {
"firstName": "Kyle",
"middleName": null,
"lastName": "Abrams",
"prefix": null,
"suffix": null
},
"email": "phil-user@phil.us",
"contactInfo": {
"countryCode": "+1",
"phoneNumber": "3433548364"
}
},
"receivingPharmacy": {
"npi": "1234567890",
"name": "ABC Pharmacy",
"dea": "CW1184915",
"address": {
"addressLine1": "123 Turn st",
"addressLine2": null,
"city": "Atlanta",
"state": "GA",
"postalCode": "12346",
"countryCode": "US"
},
"pharmacist": {
"firstName": "Georgina",
"middleName": null,
"lastName": "Kade",
"prefix": null,
"suffix": null
},
"email": "partner-user@partner.com",
"contactInfo": {
"countryCode": "+1",
"phoneNumber": "4347231846"
}
},
"primaryInsurance": {
"planName": "0600CASHPAY",
"cardHolderID": "44444444",
"cardHolderName": {
"firstName": "John",
"middleName": null,
"lastName": "Doe",
"prefix": null,
"suffix": "Jr."
},
"groupNumber": "GROUP1234332",
"bin": "600428",
"pcn": "06000001",
"personCode": null
},
"secondaryInsurance": null
}'Partner has received request or completed transfer.
additional information about the request and response data
Specifies the response types:
This is an ansynchronous response indicating that the transfer request was received but not fully processed and transferred. A callback to confirm that the transfer request has been fully processed is expected.
{ "requestID": "6a742tg3aof9f94t35270", "metadata": { "referenceID": "a83sad719545352gsv721", "responseType": "RECEIVED", "responseID": "ga1t6291sg6310374gs73", "responseTimestamp": "2024-09-11T12:26:00Z" } }