Skip to content

List GDPR Requests ​

About ​

The gdprRequests query returns a paginated list of the authenticated customer's own GDPR data requests. Requests are always scoped to the logged-in customer — you can never see another customer's requests. Results are ordered newest first by default.

Authentication ​

This query requires an authenticated customer — send the storefront key and a customer Bearer token. See the Authentication page.

GDPR must be enabled ​

If GDPR data requests are disabled in the store's admin configuration, the query fails with the message "GDPR data requests are disabled. Please enable GDPR from the admin configuration." in errors[]. The feature has been turned off on the admin side.

Arguments ​

ArgumentTypeRequiredDescription
firstInt❌ NoNumber of items to return (forward pagination). Default: 30
afterString❌ NoCursor for forward pagination. Use endCursor from a previous response.
lastInt❌ NoNumber of items for backward pagination. Default: 30
beforeString❌ NoCursor for backward pagination. Use startCursor from a previous response.
sortString❌ NoSort column: id or created_at. Default id.
orderString❌ NoSort direction: asc or desc. Default desc.

Possible Returns ​

FieldTypeDescription
edges[GdprRequestEdge]Array of request edges with cursor and node.
edges.cursorString!Cursor for this edge, used in pagination.
edges.nodeGdprRequestThe GDPR request object.
edges.node._idInt!Numeric request ID.
edges.node.typeString!Request type: delete or update.
edges.node.statusString!Request status: pending, processing, declined, approved, revoked.
edges.node.messageString!The customer's message describing the request.
edges.node.emailString!Email address tied to the request.
edges.node.revokedAtStringTimestamp when the request was revoked, or null.
edges.node.createdAtStringRequest creation timestamp.
edges.node.updatedAtStringRequest last update timestamp.
edges.node.successMessageStringConfirmation text. Populated only on create, revoke, and delete results — null when listing.
edges.node.customerCustomerThe customer who owns the request.
edges.node.customer._idInt!Numeric customer ID of the owner.
pageInfoGdprRequestPageInfo!Pagination metadata.
pageInfo.startCursorStringCursor for the first item in the page.
pageInfo.endCursorStringCursor for the last item in the page.
pageInfo.hasNextPageBoolean!Whether more pages exist forward.
pageInfo.hasPreviousPageBoolean!Whether more pages exist backward.
totalCountInt!Total number of the customer's requests.

Released under the MIT License.