GET api/headquarterpharmacylocationdeltas?lastModifiedAfter={lastModifiedAfter}&initialHeadquarterPharmacyLocationsDeltaID={initialHeadquarterPharmacyLocationsDeltaID}&page={page}&pagesize={pagesize}
Retrieves a paginated list of historical change records from the pharmacy headquarter location delta table. This endpoint allows filtering the records based on their last modification date or a specific initial sequence number. The initialHeadquarterPharmacyLocationsDeltaID, if provided, takes precedence over the lastModifiedAfter parameter. This method was created to allow synchronizing or tracking changes to pharmacy headquarter locations. Once a change record is retrieved, the application can use the sequence number to retrieve the details of the changed record on the HeadquarterPharmacyLocations endpoint, using the PharmacyLocationSeqNo as the ID parameter
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lastModifiedAfter |
Optional. Filters the results to include only records modified after this date. This parameter is ignored if initialHeadquarterPharmacyLocationsDeltaID is provided. |
date |
None. |
initialHeadquarterPharmacyLocationsDeltaID |
Optional. Prioritized parameter. The initial sequence number from which to start listing historical changes. When provided, lastModifiedAfter is ignored. |
integer |
None. |
page |
The page number for pagination, starting from 1. Defaults to 1 if not specified. |
integer |
Default value is 1 |
pagesize |
The number of records per page for pagination. Defaults to 100 and is capped at 1000 for performance reasons. |
integer |
Default value is 100 |
Body Parameters
None.
Response Information
Resource Description
An IHttpActionResult containing a paginated list of historical change records. Returns BadRequest if neither lastModifiedAfter nor initialHeadquarterPharmacyLocationsDeltaID is provided, NotFound if no matching records are found, or InternalServerError in case of an unexpected exception.
PagedResultModelOfHeadquarterPharmacyLocationDeltaModelName | Description | Type | Additional information |
---|---|---|---|
PageNumber | integer |
None. |
|
PageCount | integer |
None. |
|
PageSize | integer |
None. |
|
Items | Collection of HeadquarterPharmacyLocationDeltaModel |
None. |
|
TotalRecordCount | integer |
None. |
Response Formats
application/json, text/json, application/json-patch+json
{ "pageNumber": 1, "pageCount": 2, "pageSize": 3, "items": [ { "url": "sample string 2", "id": 3, "pharmacyLocationNo": 1, "auditDate": "2025-05-30T14:58:38.4042799-05:00", "transactionType": "sample string 1", "oldPharmacyHeadquarterNo": 1, "newPharmacyHeadquarterNo": 1 }, { "url": "sample string 2", "id": 3, "pharmacyLocationNo": 1, "auditDate": "2025-05-30T14:58:38.4042799-05:00", "transactionType": "sample string 1", "oldPharmacyHeadquarterNo": 1, "newPharmacyHeadquarterNo": 1 } ], "totalRecordCount": 4 }