---
title: "Download a GDPR data export for a customer"
method: POST
path: "/customers/{customerId}/gdpr-download-data"
tags: ["Admin Customer GDPR"]
---

# Download a GDPR data export for a customer

`POST /customers/{customerId}/gdpr-download-data`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/customers/{customerId}/gdpr-download-data`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/customers/:customerId/gdpr-download-data/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns a JSON dump of every table referencing the customer's id (orders, addresses, reviews, wishlists, notes). No request body — the customer is identified by the path.

## Path parameters

- `customerId` integer, required

## Response `200`

GDPR data export for the customer.

## Other responses

- `400`: Invalid input
- `422`: Validation Error

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
