Export customer data in structured form
The customer's data export: their own record, each sales order they were party to shaped like the receipt they were given, and each service case they handed in as a summary — with the public entries from its timeline, the case's own totals, and the parts and work the customer was billed for. Orders and service cases are gathered across every store of the tenant.
It deliberately leaves out everything internal or commercial: cost prices, margins and gross profit; staff identities and who created or changed what; internal notes and internal timeline entries; credit limits and balances, price lists, payment terms and customer groups; ledger and accounting numbers; reservation, warehouse, till and payment-terminal internals; the order's warehouse handling state (orderhandlingState and orderhandlings, as against the order, delivery and settle states a receipt shows, which are carried); UI state; the service order's assets, intake form values, secrets and portal token; and integration and extension linkage ids.
JSON is the only format the export comes in: a request whose Accept header is absent, or names application/json or */*, or lists application/json among its types, is served; any other Accept value is refused with a 400. The response is served as a download, with Content-Disposition attachment and a generated .json filename. Serial numbers keep the spelling of the schema they come from — serialnumber on a sales order line, serialNumber on a service order line.
Required permissions: CUSTOMER_EXPORT
Access token recevied after user login with a deviceToken
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Customer.
^[A-Za-z0-9-_]+The customer's data export, served as a download. JSON is the only format it comes in: a request whose Accept header is absent, or names application/json or */*, or lists application/json among its types, is served; any other Accept value is refused with a 400 instead.
The Accept header asked for a format the export does not come in. JSON is the only one.
GET /v2/tenants/{tenantUid}/customers/{customerUid}/export HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"customer": {
"customerUid": "text",
"customerNumber": "text",
"loyaltyId": "text",
"customerType": "COMPANY",
"displayName": "text",
"firstname": "text",
"lastname": "text",
"companyName": "text",
"email": "text",
"mobile": "text",
"address": "text",
"postalCode": "text",
"city": "text",
"countryCode": "text",
"vatNumber": "text",
"origin": "text",
"preferredLanguage": "text",
"defaultStore": {
"name": "text",
"storeUid": "text"
},
"ehf": {
"enabled": true,
"address": "text"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"addresses": [
{
"address": "text",
"city": "text",
"companyName": "text",
"firstname": "text",
"lastname": "text",
"countryCode": "text",
"email": "text",
"phone": "text",
"postalCode": "text",
"type": "DELIVERY_ADDRESS",
"customerAddressUid": "text",
"displayName": "text"
}
],
"contacts": [
{
"customerContactUid": "text",
"firstname": "text",
"lastname": "text",
"displayName": "text",
"email": "text",
"mobile": "text",
"address": "text",
"postalCode": "text",
"city": "text",
"role": "ADMIN",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z"
}
],
"consents": [
{
"consentUid": "text",
"name": "text",
"status": true,
"source": "text",
"createdAt": "2026-01-01T00:00:00.000Z"
}
]
},
"orders": [
{
"orderUid": "text",
"orderNumber": "text",
"voucherNumber": "text",
"type": "OFFER",
"orderDate": "2026-01-01T00:00:00.000Z",
"validUntil": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"settledAt": "2026-01-01T00:00:00.000Z",
"currencyCode": "text",
"orderState": "OPEN",
"deliveryState": "NOT_STARTED",
"settleState": "NOT_STARTED",
"note": "text",
"storeName": "text",
"customerAddress": {
"address": "text",
"city": "text",
"companyName": "text",
"countryCode": "text",
"email": "text",
"firstname": "text",
"lastname": "text",
"mobile": "text",
"postalCode": "text",
"vatNumber": "text",
"displayName": "text"
},
"invoiceAddress": {
"address": "text",
"city": "text",
"companyName": "text",
"countryCode": "text",
"email": "text",
"mobile": "text",
"firstname": "text",
"lastname": "text",
"postalCode": "text",
"displayName": "text",
"customerAddressUid": "text"
},
"totals": {
"subtotal": 1,
"totalDiscount": 1,
"totalVat": 1,
"grandTotal": 1,
"specifiedVat": [
{
"vatAmount": 1,
"vatDescription": "text",
"vatRate": 1
}
]
},
"items": [
{
"name": "text",
"sku": "text",
"note": "text",
"serialnumber": "text",
"quantityOrdered": 1,
"quantityDelivered": 1,
"quantityCredited": 1,
"itemPrice": 1,
"originalItemPrice": 1,
"totalDiscountAmount": 1,
"totalVatAmount": 1,
"totalPrice": 1
}
],
"settlements": [
{
"settlementName": "text",
"amount": 1,
"currency": {
"amount": 1,
"code": "text",
"exchangeRate": 1
},
"state": "NOT_STARTED",
"createdAt": "2026-01-01T00:00:00.000Z",
"settledAt": "2026-01-01T00:00:00.000Z",
"externalPaymentReference": "text",
"receiptText": "text"
}
]
}
],
"services": [
{
"serviceOrderUid": "text",
"serviceNumber": "text",
"externalSalesOrderNumber": "text",
"title": "text",
"description": "text",
"serviceTypeName": "text",
"serviceStatusLabel": "text",
"serviceState": "AWAITING_PRODUCT",
"coverage": "PAYABLE",
"storeName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"lastModifiedAt": "2026-01-01T00:00:00.000Z",
"readyAtEstimate": "2026-01-01T00:00:00.000Z",
"estimatedPrice": 1,
"maxPrice": 1,
"deductible": 1,
"claimNumber": "text",
"totals": {
"grandTotal": 1,
"partsTotal": 1,
"workTotal": 1
},
"items": [
{
"name": "text",
"sku": "text",
"quantity": 1,
"price": 1,
"originalPrice": 1,
"totalPrice": 1,
"serialNumber": "text"
}
],
"events": [
{
"createdAt": "2026-01-01T00:00:00.000Z",
"note": "text"
}
],
"salesOrderUids": [
"text"
]
}
]
}Last updated
Was this helpful?

