> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quentli.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete a sandbox payment

> Submits a pending CASH or TRANSFER payment to the sandbox webhook flow. This endpoint is unavailable in production.



## OpenAPI

````yaml /openapi.yaml post /v1/sandbox/payments/{id}/complete
openapi: 3.0.3
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
security:
  - organizationApiKey: []
tags:
  - name: Auth
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
paths:
  /v1/sandbox/payments/{id}/complete:
    post:
      tags:
        - Sandbox
      summary: Complete a sandbox payment
      description: >-
        Submits a pending CASH or TRANSFER payment to the sandbox webhook flow.
        This endpoint is unavailable in production.
      operationId: sandbox_payments_complete
      parameters:
        - schema:
            type: string
            description: Identifier of the payment.
          required: true
          description: Identifier of the payment.
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompleteSandboxPaymentRequest'
      responses:
        '200':
          description: Sandbox payment submitted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteSandboxPaymentPayload'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '404':
          description: Payment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    CompleteSandboxPaymentRequest:
      type: object
      properties:
        input:
          type: object
          properties:
            outcome:
              type: string
              enum:
                - SUCCEEDED
              description: Successful sandbox outcome.
              example: SUCCEEDED
          required:
            - outcome
          additionalProperties: false
      required:
        - input
      additionalProperties: false
      description: >-
        Request body for completing a pending CASH or TRANSFER payment in
        sandbox.
    CompleteSandboxPaymentPayload:
      type: object
      properties:
        payment:
          type: object
          properties:
            id:
              type: string
              description: Identifier of the payment submitted to the sandbox webhook flow.
            type:
              type: string
              enum:
                - CASH
                - TRANSFER
              description: Payment type completed in sandbox.
          required:
            - id
            - type
          additionalProperties: false
      required:
        - payment
      additionalProperties: false
      description: Payment accepted for completion through the sandbox webhook flow.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'

````