Sync outlet (upsert)

View as MarkdownOpen in Claude

Upsert an outlet by externalId. If an outlet with the given external ID exists, it is updated; otherwise a new outlet is created. Provider is validated via X-Provider header against tenant settings.

Idempotent: calling with the same payload again produces the same result.

Authentication

X-Api-Keystring
API Key authentication via header

Headers

X-Tenant-IDstringOptional
Tenant identifier
X-ProviderstringOptional

POS provider name (validated against tenant settings)

Request

This endpoint expects an object.
externalIdstringRequired
namestringRequired
channelLinkIdstringRequired
addressobjectRequired
contactobjectRequired
timezonestringRequired

Response

OK
actionstring
outletobject

Errors

400
Bad Request Error
403
Forbidden Error