Skip to content

Download GDPR Data Export

EndpointMethod
/api/admin/customers/{customerId}/gdpr-download-dataPOST

Wider than the storefront GDPR PDF

The storefront pdfView only exports orders + addresses. The admin API extends this to addresses + orders + reviews + wishlist + notes — full GDPR-style export. password and remember_token are stripped from the customer block.

Each sub-query is wrapped in try/catch so a missing optional table (e.g. wishlist on a non-storefront install) returns [] rather than 500ing.

Permission: customers.gdpr_requests.view.

Released under the MIT License.