Purchases
Beacon details and endpoints for Purchase resources
Overview
The Purchases resource provides information about Purchases submitted for a Covered Entity including the unique Beacon ID assigned to the Purchase, the underlying Invoice number, and any issues detected with the Purchase. Partners can provide multiple query parameters to the Purchases endpoint to receive a filtered response. As an example, the entity_ID query parameter will return Purchases for that specific entity ID. The invoice_number will return Purchases associated with a specific Invoice number.
View the Beacon Invoices guide to learn more.
Endpoints
Query params
| Param | Required | Description | Example |
|---|---|---|---|
| start_date | false | Start date of the Purchase date | 2025-01-01 |
| end_date | false | End date of the Purchase date | 2025-02-10 |
| entity_id | false | 340B ID of the Covered Entity that placed the Purchase | DSH123456 |
| invoice_number | false | The Invoice number assigned by the wholesaler for the Purchase made by the 340B Covered Entity | 7449818066 |
| invoice_id | false | The id of the Invoice Submission to Beacon | SUB-1142... |
Purchases
Fetch all Purchases
Request
GET /api/purchases
Response
{
'purchases': [
{
'purchase_id': 'PUR-TzoAVSPQ5VwnOKl7XzPg8nCJSJQPjf7V',
'invoice_number': '7449818066',
'submission_date': '2025-01-10',
'invoice_date': '2025-01-01',
'ndc': '50458057930',
'entity_id': 'DSH123456',
'ship_to': '1386768067',
'verified_qty': 50,
'quantity': 50,
'issues': [],
'wholesaler': 'McKesson'
},
{
'purchase_id': 'PUR-qFHcYLzqAM2kOMJljhbTqAgszvjBzC1S',
'invoice_number': '7449810543',
'submission_date': '2025-01-10',
'invoice_date': '2025-01-01',
'ndc': '50458057930',
'entity_id': 'DSH123456',
'ship_to': '1386768067',
'verified_qty': 40,
'quantity': 50,
'issues': [],
'wholesaler': 'McKesson'
}
]
} {
'type': 'error.list',
'request_id': '494f1f50595e6884ba0f0570e4394bd5',
'errors': [
{
'code': 'not_found',
'message': 'Purchases not found'
}
]
}Purchase
Get a single Purchase given purchase_id
Request
GET /api/purchases/:purchase_id
Response
{
'invoice_number': '7449818066',
'submission_date': '2025-01-10',
'invoice_date': '2025-01-01',
'ndc': '50458057930',
'entity_id': 'DSH123456',
'ship_to': '1386768067',
'verified_qty': 50,
'quantity': 50,
'issues': [],
'wholesaler': 'McKesson'
}{
'type': 'error.list',
'request_id': '494f1f50595e6884ba0f0570e4394bd5',
'errors': [
{
'code': 'not_found',
'message': 'Purchase not found'
}
]
}Response Data Reference
| Field | Definition |
|---|---|
| invoice_number | the Invoice number assigned by the wholesaler for the Purchase made by the 340B Covered Entity |
| date_submitted | date Invoice was submitted to Beacon |
| invoice_date | the date on which the Invoice for the Purchase was issued by the wholesaler to the 340B Covered Entity |
| ndc | 11 digit National Drug Code |
| entity_id | 340B ID of Covered Entity |
| ship_to | unique public NPI for the ship to pharmacy |
| verified_qty | number of Packages of the NDC-11 as validated by Beacon |
| quantity | number of Packages of the NDC-11 purchased by the 340B Covered Entity |
| issues | will return empty array if no issues identified otherwise identifies issues associated with Purchases in the Invoice Submission |
| wholesaler | name of the wholesaler through which the Covered Entity made the Purchase |
Updated about 1 year ago
Did this page help you?