Flow Unified API
API ReferenceRestaurant

Customer · customer

Portable restaurant customer contract. firstName and lastName are optional for read portability, but Square and Clover write targets require a given name.

Entity type: customer · Methods: GET · POST

Portable restaurant customer contract. firstName and lastName are optional for read portability, but Square and Clover write targets require a given name.

Endpoints

GET  /unified/{accountId}/customer   # List normalized customer records
POST /unified/{accountId}/customer   # Create / push one customer

Schema

FieldTypeRequiredDescription
externalIdstringYesStable source customer identifier. Used as the idempotency key on writes.
namestringYesBest available display name for the customer.
firstNamestringGiven name. Required by some target systems such as Square and Clover.
lastNamestringFamily name.
emailstring · emailPrimary email address.
phonestringPrimary phone number.
companyNamestringBusiness or company name when available.
notesstringCustomer note or memo.
addressobjectPrimary address when available.
address.line1stringStreet address, first line.
address.line2stringStreet address, second line.
address.citystringCity or locality.
address.statestringState, province, or region.
address.postalCodestringZIP or postal code.
address.countrystringCountry name or code.
marketingAllowedbooleanWhether the customer permits marketing communications when the source exposes it.

Example object

{
  "externalId": "cus_51b8d02",
  "name": "Priya Natarajan",
  "firstName": "Priya",
  "lastName": "Natarajan",
  "email": "priya@example.com",
  "phone": "+1 646 555 0102",
  "marketingAllowed": true
}

The same shape is used as the POST request body and returned by GET reads — reads from every connected system are normalized to it.

Requests

read customer
curl "https://dev.flow.staging.linktoany.com/api/1.0/standalone-link-engine-service/unified/{accountId}/customer?mappingKey={readKey}&pageSize=50" \
  -H "authorization: Bearer <token>"
write customer
curl -X POST "https://dev.flow.staging.linktoany.com/api/1.0/standalone-link-engine-service/unified/{accountId}/customer?mappingKey={writeKey}" \
  -H "authorization: Bearer <token>" \
  -H "content-type: application/json" \
  -d '{"externalId":"cus_51b8d02","name":"Priya Natarajan","firstName":"Priya","lastName":"Natarajan","email":"priya@example.com","phone":"+1 646 555 0102","marketingAllowed":true}'

Supported systems

SystemReadWriteAuthRate limit
SquareYesYesOAuth 2.05 req / s
Clover (Asia Pacific)YesYesAPI token5 req / 6s
Clover (US)YesYesAPI token10 req / s · 100 req / min

On this page