> ## 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.

# Replace a merchant's store credentials

> Replace a connection's store credentials, for example when it shows `action_required: replace_credentials`. The credentials must reach the same store; the connection keeps its ID, catalog and orders. Requires dashboard sign-in as an active member of the merchant, with recent sign-in verification; Sandbox only.

### 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. Set Content-Length to the byte length of the final encoded body after replacing placeholders, including multipart delimiters and line endings.

```http
PUT /v1/portal/merchant-onboarding/{merchant_id}/connections/{connection_id}/credentials HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <CustomerOIDC-credential>
Content-Type: application/json
Content-Length: <body-length-in-bytes>

{
  "credentials": {
    "REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
  }
}
```

### 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: PUT
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/portal/merchant-onboarding/{merchant_id}/connections/{connection_id}/credentials
authorization: Bearer <CustomerOIDC-credential>
content-type: application/json

{
  "credentials": {
    "REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
  }
}
```



## OpenAPI

````yaml /api-reference.json put /v1/portal/merchant-onboarding/{merchant_id}/connections/{connection_id}/credentials
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/portal/merchant-onboarding/{merchant_id}/connections/{connection_id}/credentials:
    put:
      tags:
        - connectivity
      summary: Replace a merchant's store credentials
      description: >-
        Replace a connection's store credentials, for example when it shows
        `action_required: replace_credentials`. The credentials must reach the
        same store; the connection keeps its ID, catalog and orders. Requires
        dashboard sign-in as an active member of the merchant, with recent
        sign-in verification; Sandbox only.


        ### 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. Set Content-Length to the byte length of the final encoded body
        after replacing placeholders, including multipart delimiters and line
        endings.


        ```http

        PUT
        /v1/portal/merchant-onboarding/{merchant_id}/connections/{connection_id}/credentials
        HTTP/1.1

        Host: sandbox.ignite-checkout.ai

        Authorization: Bearer <CustomerOIDC-credential>

        Content-Type: application/json

        Content-Length: <body-length-in-bytes>


        {
          "credentials": {
            "REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
          }
        }

        ```


        ### 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: PUT

        :scheme: https

        :authority: sandbox.ignite-checkout.ai

        :path:
        /v1/portal/merchant-onboarding/{merchant_id}/connections/{connection_id}/credentials

        authorization: Bearer <CustomerOIDC-credential>

        content-type: application/json


        {
          "credentials": {
            "REPLACE_WITH_CREDENTIAL_NAME": "REPLACE_WITH_VALID_VALUE"
          }
        }

        ```
      operationId: >-
        replace_credentials_v1_portal_merchant_onboarding__merchant_id__connections__connection_id__credentials_put
      parameters:
        - in: path
          name: merchant_id
          required: true
          schema:
            title: Merchant Id
            type: string
        - in: path
          name: connection_id
          required: true
          schema:
            title: Connection Id
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectionCredentialsIn'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionView'
          description: Successful Response
        '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: >-
            `portal_email_code_required` or `portal_mfa_required` (sign in again
            to verify). Platforms that enforce credential-shape validation also
            return `forbidden` for undocumented credential keys or invalid
            values.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: The merchant or connection is unavailable to this member.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IgniteErrorEnvelope'
          description: >-
            `connection_store_mismatch` (credentials reach a different store),
            `connection_not_reauthorizable` (already disabled when the request
            arrives), `connection_changed` (changed while the store was checked;
            reload and retry) or `connection_sync_in_progress` (a catalog sync
            holds the connection's lease; retry in a moment).
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CredentialReplacementError'
          description: >-
            `store_currency_mismatch` or `store_display_currency_mismatch`
            (check the currency settings), `shopify_domain_invalid` (use the
            store's myshopify.com address), `store_permissions_missing` (grant
            `details.missing_store_scopes` to the installed Shopify app),
            `store_connection_unavailable` (the store did not return a usable
            response), or `authorization_failed` (check the store address,
            credentials and permissions). `webhook_secret_required` can also
            occur when the connection has registered Shopify webhooks and the
            replacement carries neither `client_secret` nor `webhook_secret`.
            Invalid fields also return 422.
        '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:
        - CustomerOIDC: []
components:
  schemas:
    ConnectionCredentialsIn:
      properties:
        credentials:
          additionalProperties:
            type: string
          example:
            REPLACE_WITH_CREDENTIAL_NAME: REPLACE_WITH_VALID_VALUE
          maxProperties: 6
          minProperties: 1
          title: Credentials
          type: object
      required:
        - credentials
      title: ConnectionCredentialsIn
      type: object
    ConnectionView:
      properties:
        action_required:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            `replace_credentials` when the store refused the stored credentials
            (status `reauth_required`); null otherwise.
          title: Action Required
        gates:
          additionalProperties:
            type: boolean
          title: Gates
          type: object
        id:
          title: Id
          type: string
        import_in_progress:
          default: false
          description: >-
            Ignyt is still importing this store's catalog in batches and
            continues on its own.
          title: Import In Progress
          type: boolean
        last_sync_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Sync At
        last_sync_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Sync Status
        platform:
          title: Platform
          type: string
        revision:
          default: 0
          description: Connection revision; send it as `expected_revision` to disconnect.
          title: Revision
          type: integer
        status:
          title: Status
          type: string
        store_id:
          title: Store Id
          type: string
      required:
        - id
        - store_id
        - platform
        - status
        - gates
        - last_sync_at
        - last_sync_status
      title: ConnectionView
      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
    CredentialReplacementError:
      properties:
        error:
          $ref: '#/components/schemas/CredentialReplacementErrorDetail'
      required:
        - error
      title: CredentialReplacementError
      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
    CredentialReplacementErrorDetail:
      properties:
        code:
          title: Code
          type: string
        details:
          anyOf:
            - $ref: '#/components/schemas/StoreAuthorizationDetails'
            - items:
                $ref: '#/components/schemas/CredentialValidationIssue'
              type: array
          title: Details
        message:
          title: Message
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      required:
        - code
        - message
        - details
        - request_id
      title: CredentialReplacementErrorDetail
      type: object
    StoreAuthorizationDetails:
      additionalProperties: true
      description: Provider-specific fields may accompany a failed authorization.
      properties:
        actual_currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Actual Currency
        expected_currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Expected Currency
        missing_store_scopes:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Missing Store Scopes
      title: StoreAuthorizationDetails
      type: object
    CredentialValidationIssue:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Loc
          type: array
        msg:
          title: Msg
          type: string
        type:
          title: Type
          type: string
      required:
        - type
        - loc
        - msg
      title: CredentialValidationIssue
      type: object
  securitySchemes:
    CustomerOIDC:
      bearerFormat: JWT
      description: >-
        Customer access token; current membership, role and app selection are
        enforced. Protected actions use recent email-code verification in the
        configured Sandbox or recent authenticator verification in legacy
        password mode. Available when customer authentication is enabled.
      scheme: bearer
      type: http

````

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