Flow Unified API
API ReferenceRetail POS

Customer · customer

Cross-system customer contract for the POS vertical. firstName and lastName stay optional for read portability, but Square, Lightspeed R-Series, and Clover write targets require them when creating customers.

Entity type: customer · Methods: GET · POST

Cross-system customer contract for the POS vertical. firstName and lastName stay optional for read portability, but Square, Lightspeed R-Series, and Clover write targets require them when creating customers.

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 write targets such as Square, Lightspeed R-Series, and Clover.
lastNamestringFamily name. Required by some write targets such as Square and Lightspeed R-Series.
emailstring · emailPrimary email address.
phonestringPrimary phone number.
companyNamestringBusiness or company name.
notesstringCustomer note or internal note.
addressobjectPrimary mailing or billing address.
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.

Example object

{
  "externalId": "cus_00417",
  "name": "Samir Haddad",
  "firstName": "Samir",
  "lastName": "Haddad",
  "email": "samir@driftretail.com",
  "phone": "+1 212 555 0177",
  "address": {
    "line1": "88 Prince St",
    "city": "New York",
    "state": "NY",
    "postalCode": "10012",
    "country": "US"
  }
}

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_00417","name":"Samir Haddad","firstName":"Samir","lastName":"Haddad","email":"samir@driftretail.com","phone":"+1 212 555 0177","address":{"line1":"88 Prince St","city":"New York","state":"NY","postalCode":"10012","country":"US"}}'

Supported systems

SystemReadWriteAuthRate limit
ShopifyYesYesOAuth 2.01 req / s
Lightspeed X-SeriesYesYesOAuth 2.010 req / s · 100 req / min
Lightspeed R-SeriesYesYesOAuth 2.01 req / 10s
SquareYesYesOAuth 2.05 req / s
Clover (Asia Pacific)YesYesAPI token5 req / 6s

On this page