post
https://{hostname}/api/consent/v2/receipts
Use this API to retrieve a list of all receipts. Depending on the query or header parameter values passed in the request, the response will return specific details about receipts, including relevant information about collection point interactions, purposes, and the associated purpose preferences and attributes.
Things to Know
- The timespan between the
fromDateandtoDatevalues must be 24 hours or less.- By default, this API retrieves receipts created within the last 90 days. To retrieve receipts stored for more than 90 days, the
includeArchivedparameter must be used.- When retrieving historic receipts, set
includeArchived=trueand provide either thereceiptIdin the request parameters or theidentifierin the request headers. Optional parameters such asincludeDataElements,includeConsentStrings,sort,page, andnextMarkercan also be used.- If
includeArchived=trueis set and additional parameters such asfromDate ortoDate` are included, this API will instead search only receipts stored within the last 90 days.- If the number of records exceeds a single page:
- The response returns a
requestContinuationvalue, which must be included in the next request body to continue pagination.- When retrieving archived receipts,
nextMarkermust also be included in subsequent request bodies to paginate through results.- Purpose descriptions in the API response are returned inside
<p>and</p>HTML tags. These tags can be sanitized based on your formatting needs.