Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
merchant | string | Yes | Merchant slug (e.g. doordash). |
pending_id | string | Yes | The pending_id returned by buy_connect. |
Returns
One of four states with a message spelling out the next step:linking (still in progress, wait a few seconds and call again), linked (success, the merchant is ready to shop), expired (the session ended before the user finished, start a new buy_connect), or error (the login failed, try buy_connect again). The merchant slug is included when linked.