Packages
Beacon details and endpoints for Package resources
Overview
The Packages resource provides information about Packages submitted for a Covered Entity including the unique Beacon ID assigned to the Package, the underlying Invoice number, and details related to the accumulation status of the Package. Partners can provide multiple query parameters to the Packages endpoint to receive a filtered response. As an example, the entity_ID query parameter will return Packages for that specific entity ID. The status query parameter will return all Packages with a specific status.
View the Beacon Invoices guide to learn more.
Endpoints
| Param | Required | Description | Example |
|---|---|---|---|
| start_date | false | Start date of the Invoice date | 2025-01-01 |
| end_date | false | End date of the Invoice date | 2025-02-10 |
| entity_id | false | 340B ID of the covered entity that placed the Purchase | DSH12345 |
| page | false | Pagination support | 3 |
Packages
Fetch all Packages
Request Examples:
GET /api/packages
GET /api/packages/?entity_id="+entity_id+"&page="+page
GET /api/packages/?start_date="+start+"&end_date="+end+"&page="+page
Response
{
'packages': [
{
'package_id': 'PKG-998cb18bb398e529f15a64d90419edcac92dd3726c8752fb75ebd3d930a42a89',
'invoice_number': '811126',
'invoice_date': '2024-10-01',
'entity_id': 'DSH12345',
'status': 'FILLED',
'units': 1.0,
'filled_date': '2024-10-10',
'ndc': '00088216030',
'rebates': [],
'claims': []
},
{
'package_id': 'PKG-a4b7fe4b8509870acb0ca6991837e2d6fe05e4f404cc183afe3bbad0d3347b40',
'invoice_number': '811126',
'invoice_date': '2024-10-01',
'entity_id': 'DSH12345',
'status': 'FILLED',
'units': 1.0,
'filled_date': '2024-10-10',
'ndc': '00088216030',
'rebates': [],
'claims': []
}
]
}{
'type': 'error.list',
'request_id': '494f1f50595e6884ba0f0570e4394bd5',
'errors': [
{
'code': 'not_found',
'message': 'Packages with this credit status not found'
}
]
}Package
Get a single Package given package_id
Request
GET /api/packages/:package_id
Response
{
'package_id': 'PKG-998cb18bb398e529f15a64d90419edcac92dd3726c8752fb75ebd3d930a42a89',
'invoice_number': '811126',
'invoice_date': '2024-10-01',
'entity_id': 'DSH12345',
'status': 'FILLED',
'units': 1.0,
'filled_date': '2024-10-10',
'ndc': '00088216030',
'rebates': [],
'claims': []
}{
'type': 'error.list',
'request_id': '494f1f50595e6884ba0f0570e4394bd5',
'errors': [
{
'code': 'not_found',
'message': 'Package not found'
}
]
}Response Data Reference
| Field | Definition |
|---|---|
| package_id | unique identifier assigned to a Package |
| invoice_number | the Invoice number assigned by the wholesaler for the Purchase made by the 340B Covered Entity |
| package_number | the number assigned to the individual package |
| invoice_date | the date on which the Invoice for the Purchase was issued by the wholesaler to the 340B Covered Entity |
| status | state of Package accumulation (NOT FILLED, FILLED, REVERSED) |
| units | Claim units accumulated to the Package |
| entity_id | 340B ID of Covered Entity |
| filled_date | date Package was filled |
| ndc | the national drug code |
Updated 3 days ago