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

# Cancel a merchant request

> Cancel an open merchant onboarding request and revoke its unaccepted invitation; existing merchant accounts, enrollments and orders are unaffected. Send the current `expected_revision` (`409 merchant_request_revision_changed` if stale; `409 merchant_request_closed` if already closed). Requires dashboard sign-in as a workspace owner, admin or developer with recent sign-in verification.

### 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
POST /v1/portal/workspaces/{tenant_id}/apps/{app_id}/merchant-requests/{request_id}/cancel HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <CustomerOIDC-credential>
Content-Type: application/json
Content-Length: <body-length-in-bytes>

{
  "expected_revision": 1,
  "note": "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: POST
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/portal/workspaces/{tenant_id}/apps/{app_id}/merchant-requests/{request_id}/cancel
authorization: Bearer <CustomerOIDC-credential>
content-type: application/json

{
  "expected_revision": 1,
  "note": "REPLACE_WITH_VALID_VALUE"
}
```



## OpenAPI

````yaml /api-reference.json post /v1/portal/workspaces/{tenant_id}/apps/{app_id}/merchant-requests/{request_id}/cancel
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/workspaces/{tenant_id}/apps/{app_id}/merchant-requests/{request_id}/cancel:
    post:
      tags:
        - connectivity
      summary: Cancel a merchant request
      description: >-
        Cancel an open merchant onboarding request and revoke its unaccepted
        invitation; existing merchant accounts, enrollments and orders are
        unaffected. Send the current `expected_revision` (`409
        merchant_request_revision_changed` if stale; `409
        merchant_request_closed` if already closed). Requires dashboard sign-in
        as a workspace owner, admin or developer with recent sign-in
        verification.


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

        POST
        /v1/portal/workspaces/{tenant_id}/apps/{app_id}/merchant-requests/{request_id}/cancel
        HTTP/1.1

        Host: sandbox.ignite-checkout.ai

        Authorization: Bearer <CustomerOIDC-credential>

        Content-Type: application/json

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


        {
          "expected_revision": 1,
          "note": "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: POST

        :scheme: https

        :authority: sandbox.ignite-checkout.ai

        :path:
        /v1/portal/workspaces/{tenant_id}/apps/{app_id}/merchant-requests/{request_id}/cancel

        authorization: Bearer <CustomerOIDC-credential>

        content-type: application/json


        {
          "expected_revision": 1,
          "note": "REPLACE_WITH_VALID_VALUE"
        }

        ```
      operationId: >-
        cancel_v1_portal_workspaces__tenant_id__apps__app_id__merchant_requests__request_id__cancel_post
      parameters:
        - in: path
          name: request_id
          required: true
          schema:
            title: Request Id
            type: string
        - in: path
          name: tenant_id
          required: true
          schema:
            title: Tenant Id
            type: string
        - in: path
          name: app_id
          required: true
          schema:
            title: App 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/MerchantRequestRevisionIn'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MerchantRequestView'
          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: >-
            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: >-
            The request conflicts with the resource's current state, repeats an
            idempotency key with a different body, or is not available here
            (`conflict`, `unsupported_operation` or a more specific code). Read
            the resource again before deciding how to proceed.
        '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:
        - CustomerOIDC: []
components:
  schemas:
    MerchantRequestRevisionIn:
      additionalProperties: false
      properties:
        expected_revision:
          minimum: 1
          title: Expected Revision
          type: integer
        note:
          maxLength: 500
          minLength: 10
          title: Note
          type: string
      required:
        - expected_revision
        - note
      title: MerchantRequestRevisionIn
      type: object
    MerchantRequestView:
      properties:
        app_id:
          title: App Id
          type: string
        connection_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Connection Id
        created_at:
          title: Created At
          type: string
        enrollment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Enrollment Id
        enrollment_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Enrollment Status
        environment:
          enum:
            - sandbox
            - live
          title: Environment
          type: string
        gates:
          items:
            $ref: '#/components/schemas/MerchantRequestGate'
          title: Gates
          type: array
        id:
          title: Id
          type: string
        invitation_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Invitation Status
        legal_name:
          title: Legal Name
          type: string
        merchant_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Merchant Id
        note:
          title: Note
          type: string
        platform:
          title: Platform
          type: string
        ready:
          title: Ready
          type: boolean
        revision:
          title: Revision
          type: integer
        stage:
          title: Stage
          type: string
        status:
          enum:
            - open
            - needs_information
            - onboarding
            - rejected
            - cancelled
          title: Status
          type: string
        store_url:
          title: Store Url
          type: string
        tenant_id:
          title: Tenant Id
          type: string
        updated_at:
          title: Updated At
          type: string
      required:
        - id
        - tenant_id
        - app_id
        - environment
        - legal_name
        - store_url
        - platform
        - status
        - note
        - revision
        - created_at
        - updated_at
        - merchant_id
        - connection_id
        - invitation_status
        - stage
        - ready
        - gates
        - enrollment_id
        - enrollment_status
      title: MerchantRequestView
      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
    MerchantRequestGate:
      properties:
        key:
          title: Key
          type: string
        message:
          title: Message
          type: string
        passed:
          title: Passed
          type: boolean
      required:
        - key
        - passed
        - message
      title: MerchantRequestGate
      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:
    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.