Get List of 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

Usage Guidelines

  • Date & Time Range:
    • The timespan between the fromDate and toDate values must be 24 hours or less.
    • To ensure accurate and complete data retrieval across the intended date range, include full timestamps (e.g., fromDate=2026-03-24T00:00:00 and toDate=2026-03-25T23:59:59). Omitting the time may result in partial or unexpected data results.
    • The fromDate and toDate are evaluated against the consent creation date (i.e. when the receipt was sent), not when the receipt was saved. The saved date may occur slightly later due to processing delays. As a result, short time windows may temporarily show different totals across the OneTrust Platform, APIs, and dashboards.
  • Data Scope & includeArchived Behavior:
    • By default, only receipts created within the last 90 days are returned. To retrieve receipts stored for more than 90 days, the includeArchived parameter must be used. Setting the includeArchived parameter to true or false returns all receipts. The pagination behavior differs based on this value.
      • When includeArchived=true: Page size is customizable. When retrieving historic receipts, you can provide either the receiptId in the request parameters or the identifier in the request headers. Optional parameters such as includeDataElements, includeConsentStrings, page, and nextMarker can also be used. If includeArchived=true is set and additional parameters such as fromDate or toDate are included, this API will instead search only receipts stored within the last 90 days.
      • When includeArchived=false: Page size is fixed at 20 records per page. For refined results, use the purpose and collection point filters.
  • Filtering:
    • You must choose one querying approach and cannot use both simultaneously to ensure predictable results. You can either:
      • Search by identifier, which disables all other filters
      • OR use the purpose and collection point filters.
  • Pagination:
    • If the number of records exceeds a single page:
      • The response returns a requestContinuation value, which must be included in the next request body to continue pagination.
      • When retrieving archived receipts, nextMarker must also be included in subsequent request bodies to paginate through results.
  • Additional Information:
    • Purpose descriptions in the API response are returned inside <p> and </p> HTML tags. These tags can be sanitized based on your formatting needs.
Query Params
uuid

UUID of the Collection Point.

uuid

UUID of the receipt.

uuid

UUID of the Purpose. purposeGuid can be obtained using the Get A Paged List Of Purposes endpoint.

uuid

UUID of the Organization. organizationId can be obtained using the Retrieve Organization Structure endpoint.

date-time

Date from which to return records. Formats accepted are yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss.

date-time

To date to return records. Formats accepted are yyyy-MM-dd or yyyy-MM-ddTHH:mm:ss.

boolean
Defaults to false

When set to true will include data subject data elements on the receipt payload.

boolean
Defaults to false

This parameter will fetch up to 1000 historical receipts per API call that are not yet stored in the Azure Cosmos DB or those that have reached their time-to-live (TTL) expiration of 90 days.

boolean
deprecated

The isAnonymous parameter will be ignored. Anonymous receipts can only be returned by using the identifier or receiptId parameter.

boolean
Defaults to false

This parameter will return consent strings stored in receipts. Note that it must be used in conjunction with an identifier or receiptId filter.

int32
≥ 0
Defaults to 0

Results page to be retrieved (0..N).

int32
1 to 50
Defaults to 20

Number of records per page (1..50).

string
enum
Defaults to consentCreationDate,desc

Sorting criteria in the format: property,direction (where direction is asc or desc). Supported properties: consentCreationDate, interactionDate, id.

Allowed:
Body Params
string

Request continuation token used to paginate. If the number of records in the response is more than a page, it returns a requestContinuation token in the response. This requestContinuation token should be passed to the next request's body to paginate.

string

Request continuation token used to paginate over historical receipts

Headers
string

Data Subject Identifier filter. identifier can be obtained using the Get list of datasubjects endpoint.

string

Filter receipts by data element name. Note that this request header must be used in conjunction with dataElementValue.

string

Filter receipts by data element value. Note that this request header must be used in conjunction with dataElementName.

Responses

400

Bad Request

500

Internal Server Error

Language
Credentials
OAuth2
Missing 1 required scope
URL
LoadingLoading…
Response
Choose an example:
application/json
*/*