> ## Documentation Index
> Fetch the complete documentation index at: https://808-labs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync a merchant store connection

> Run a catalog import for one of the merchant's connections: `delta` (default), `full` or `active_cart`. The response reports the run's result; a failed store call still returns `200` with the failure recorded. Returns `403` for another merchant's connection and `409` when a sync is already running, backing off, or the credentials need replacing. Authenticate with the `X-Ignite-Merchant-Token` header.

### Raw HTTP template

Replace path, credential and schema placeholders using valid resources. The planned host requires activation; use your assigned API URL meanwhile. Preserve a write's original idempotency key when its contract supports retry. If sending raw HTTP/1.1, use CRLF for request and header lines.

```http
POST /v1/merchant/connections/{connection_id}/sync HTTP/1.1
Host: sandbox.ignite-checkout.ai
X-Ignite-Merchant-Token: <MerchantToken-credential>
```

### HTTP/2 header equivalent

Logical headers over negotiated HTTPS HTTP/2, not a wire-format message. The endpoint, JSON and idempotency rules are unchanged. See [HTTP and transport](/http-and-transports).

```text
:method: POST
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/merchant/connections/{connection_id}/sync
x-ignite-merchant-token: <MerchantToken-credential>
```



## OpenAPI

````yaml /api-reference.json post /v1/merchant/connections/{connection_id}/sync
openapi: 3.1.0
info:
  description: >-
    Multi-merchant checkout infrastructure (808labs). UAE/AED first on Stripe;
    Saudi/SAR follows separate certification. OpenAPI is canonical; customers
    can integrate without an SDK. Customer dashboard authentication uses
    verified OIDC; workspace access requires an invitation or explicitly enabled
    Sandbox self-registration; machine integrations use scoped API keys. Plans
    and usage are defined in the developer guide. Internal operator and provider
    callback contracts are excluded.
  title: Ignyt
  version: 0.1.0
servers:
  - url: https://sandbox.ignite-checkout.ai
    description: 'Planned Sandbox host: use assigned deployment URL until activated'
  - url: https://api.ignite-checkout.ai
    description: 'Planned Production host: separate approval and Live credentials required'
security: []
paths:
  /v1/merchant/connections/{connection_id}/sync:
    post:
      tags:
        - connectivity
      summary: Sync a merchant store connection
      description: >-
        Run a catalog import for one of the merchant's connections: `delta`
        (default), `full` or `active_cart`. The response reports the run's
        result; a failed store call still returns `200` with the failure
        recorded. Returns `403` for another merchant's connection and `409` when
        a sync is already running, backing off, or the credentials need
        replacing. Authenticate with the `X-Ignite-Merchant-Token` header.


        ### Raw HTTP template


        Replace path, credential and schema placeholders using valid resources.
        The planned host requires activation; use your assigned API URL
        meanwhile. Preserve a write's original idempotency key when its contract
        supports retry. If sending raw HTTP/1.1, use CRLF for request and header
        lines.


        ```http

        POST /v1/merchant/connections/{connection_id}/sync HTTP/1.1

        Host: sandbox.ignite-checkout.ai

        X-Ignite-Merchant-Token: <MerchantToken-credential>

        ```


        ### HTTP/2 header equivalent


        Logical headers over negotiated HTTPS HTTP/2, not a wire-format message.
        The endpoint, JSON and idempotency rules are unchanged. See [HTTP and
        transport](/http-and-transports).


        ```text

        :method: POST

        :scheme: https

        :authority: sandbox.ignite-checkout.ai

        :path: /v1/merchant/connections/{connection_id}/sync

        x-ignite-merchant-token: <MerchantToken-credential>

        ```
      operationId: merchant_sync_v1_merchant_connections__connection_id__sync_post
      parameters:
        - in: path
          name: connection_id
          required: true
          schema:
            title: Connection Id
            type: string
        - in: query
          name: kind
          required: false
          schema:
            default: delta
            enum:
              - delta
              - full
              - active_cart
            title: Kind
            type: string
        - in: header
          name: x-ignite-merchant-token
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ignite-Merchant-Token
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncResult'
          description: The run's result; a failed store call is still `200`.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: Missing, expired or invalid credentials (`unauthorized`).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The credential is valid but lacks the required scope, role,
            environment or ownership for this resource (`forbidden` or a more
            specific code).
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            The resource does not exist or is not visible to this credential
            (`not_found`).
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            `connection_reauthorization_required` (the store refused this
            connection's credentials; replace them),
            `connection_sync_unavailable` (a sync is leased, backing off after
            failures, or the connection is disabled),
            `connection_sync_lease_lost` (this run's lease expired before
            publication; its provider response was discarded) or
            `connection_sync_superseded` (a newer sync or a credential
            replacement superseded this run; its results were discarded), or
            `catalog_scan_restart_required` (the saved continuation was reset;
            retry to start a fresh full import).
        '422':
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                      details:
                        anyOf:
                          - items:
                              properties:
                                loc:
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: integer
                                  type: array
                                msg:
                                  type: string
                                type:
                                  type: string
                              required:
                                - type
                                - loc
                                - msg
                              type: object
                            type: array
                          - type: object
                      message:
                        type: string
                      request_id:
                        type: string
                    required:
                      - code
                      - message
                      - details
                      - request_id
                    type: object
                required:
                  - error
                type: object
          description: Validation Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            A plan allowance, rate limit or resource limit was reached. For
            `rate_limited` (a per-second ceiling) or the monthly API allowance
            (`plan_quota_exceeded`), wait for the `Retry-After` interval before
            retrying. A specific `*_rate_limited` code, such as
            `invitation_email_rate_limited`, is an hourly limit sent without
            `Retry-After`: retry later with bounded backoff. A resource limit
            described by the operation, such as active merchant requests or
            uploads, does not clear by waiting: complete or withdraw existing
            items first. Monthly allowance and cost limits never block servicing
            of accepted orders; per-second ceilings still apply to servicing
            routes.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying, sent only when the monthly API
                allowance is exhausted (`plan_quota_exceeded`) or a per-second
                rate limit (`rate_limited`) is reached; specific
                `*_rate_limited` codes omit it.
              schema:
                type: integer
      security:
        - MerchantToken: []
components:
  schemas:
    SyncResult:
      description: >-
        Documents one sync run's response; each field appears only when it
        applies to that run.
      properties:
        changes:
          anyOf:
            - type: integer
            - type: 'null'
          description: Catalog changes recorded.
          title: Changes
        complete:
          anyOf:
            - type: boolean
            - type: 'null'
          description: '`false` while more catalog pages follow.'
          title: Complete
        kind:
          description: The kind that actually ran.
          enum:
            - delta
            - full
            - active_cart
          title: Kind
          type: string
        message:
          anyOf:
            - type: string
            - type: 'null'
          description: Why the run failed.
          title: Message
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: Continuation cursor while `complete` is `false`.
          title: Next Cursor
        products:
          anyOf:
            - type: integer
            - type: 'null'
          description: Products observed on this page.
          title: Products
        reauthorization_required:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            On a failed run: the store refused the stored credentials and the
            connection is now `reauth_required`.
          title: Reauthorization Required
        stale_credentials:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            On a failed run: the store refused credentials that were already
            replaced while this run was in flight. The catalog and the
            connection's health are unchanged; nothing to do.
          title: Stale Credentials
        status:
          anyOf:
            - enum:
                - ok
                - failed
              type: string
            - type: 'null'
          description: '`failed` when the store call failed. Absent for active-cart runs.'
          title: Status
        variants:
          anyOf:
            - type: integer
            - type: 'null'
          description: Variants observed.
          title: Variants
      required:
        - kind
      title: SyncResult
      type: object
    IgniteErrorEnvelope:
      description: Document the existing error handler without changing its serialization.
      properties:
        error:
          $ref: '#/components/schemas/IgniteErrorDetail'
      required:
        - error
      title: IgniteErrorEnvelope
      type: object
    IgniteErrorDetail:
      description: Stable error fields; details remain open to each domain's JSON evidence.
      properties:
        code:
          title: Code
          type: string
        details:
          title: Details
        message:
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - code
        - message
        - details
        - request_id
      title: IgniteErrorDetail
      type: object
  securitySchemes:
    MerchantToken:
      in: header
      name: X-Ignite-Merchant-Token
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.