Skip to main content
square.onDeviceCodePaired subscribes to device.code.paired for the selected seller. It requires DEVICE_CREDENTIAL_MANAGEMENT.

Example

automations/square-on-device-code-paired.automation.ts

Event

A Square Terminal has been paired with a Terminal API client and the device_id of the paired Square Terminal is available. The signal resolves to the official Square.DeviceCodePairedEvent payload with type narrowed to device.code.paired.