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


ParamRequiredDescriptionExample
start_datefalseStart date of the Invoice date2025-01-01
end_datefalseEnd date of the Invoice date2025-02-10
entity_idfalse340B ID of the covered entity that placed the PurchaseDSH12345
pagefalsePagination support3



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


FieldDefinition
package_idunique identifier assigned to a Package
invoice_numberthe Invoice number assigned by the wholesaler for the Purchase made by the 340B Covered Entity
package_numberthe number assigned to the individual package
invoice_datethe date on which the Invoice for the Purchase was issued by the wholesaler to the 340B Covered Entity
statusstate of Package accumulation (NOT FILLED, FILLED, REVERSED)
unitsClaim units accumulated to the Package
entity_id340B ID of Covered Entity
filled_datedate Package was filled
ndcthe national drug code

Did this page help you?