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

# Mark Sandbox Settlement processed

> This API is used to mark settlement as processed in sandbox environment



## OpenAPI

````yaml put /import/settlements/emulate
openapi: 3.0.3
info:
  title: LRS
  version: '4'
servers:
  - url: https://sandbox.cashfree.com/
    description: Sandbox server
  - url: https://api.cashfree.com/
    description: Production server
security:
  - {}
paths:
  /import/settlements/emulate:
    put:
      summary: Mark Sandbox Settlement processed
      description: This API is used to mark settlement as processed in sandbox environment
      operationId: mark-sandbox-settlement-processed
      parameters:
        - name: x-client-id
          in: header
          description: Client ID generated from the merchant dashboard.
          required: true
          schema:
            type: string
        - name: x-client-secret
          in: header
          description: Client secret generated from the merchant dashboard.
          required: true
          schema:
            type: string
        - name: x-api-version
          in: header
          description: API version to be used. Format is in YYYY-MM-DD.
          required: true
          schema:
            type: string
            default: '2025-01-01'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - cf_ica_settlement_id
                - status
              properties:
                cf_ica_settlement_id:
                  type: string
                  description: Unique Identifier of the settlement
                  example: '10050'
                status:
                  type: string
                  description: ''
                  enum:
                    - PROCESSED
                  example: PROCESSED
      responses:
        '200':
          description: Success response for marking the sandbox settlement as processed.
          content:
            application/json:
              examples:
                Result:
                  value:
                    cf_ica_settlement_id: 10050
                    status: SETTLED
                    collection_amount_inr: 1000
                    service_charge_inr: 19
                    service_tax_inr: 3.42
                    adjustment_amount_inr: 0
                    settlement_charges_inr: 105.38
                    settlement_tax_inr: 18.97
                    settlement_amount_inr: 853.23
                    settlement_foreign_currency_details:
                      settlement_currency: AED
                      settlement_forex_rate: 23.4066
                      settlement_amount: 36.4527
                    payment_from: '2025-04-14T13:54:37+05:30'
                    payment_till: '2025-04-14T13:54:37+05:30'
                    settlement_utr: 60f05f9b-4d83-43cd-80e6-9deaf619de7f
                    initiated_on: '2025-04-14T13:56:24+05:30'
                    settled_on: '2025-04-14T13:56:24+05:30'
              schema:
                type: object
                properties:
                  cf_ica_settlement_id:
                    type: number
                    example: 10050
                    description: Unique ID of the settlement
                  status:
                    type: string
                    example: SETTLED
                    description: Current status of the settlement
                  collection_amount_inr:
                    type: number
                    example: 1000
                    description: Total collected amount in INR
                  service_charge_inr:
                    type: number
                    description: Service charge in INR, if applicable
                    example: 19
                  service_tax_inr:
                    type: number
                    example: 294.73
                    description: Service tax in INR
                  adjustment_amount_inr:
                    type: number
                    example: -18743.89
                    description: Adjustment amount in INR
                  settlement_charges_inr:
                    type: number
                    example: 0
                    description: Charges related to the settlement in INR
                  settlement_tax_inr:
                    type: number
                    example: 0
                    description: Tax on settlement in INR
                  settlement_amount_inr:
                    type: number
                    example: 65500.04
                    description: Total settlement amount in INR
                  settlement_foreign_currency_details:
                    type: object
                    properties:
                      settlement_currency:
                        type: string
                        example: USD
                        description: Currency of the settlement amount
                      settlement_forex_rate:
                        type: number
                        example: 83.8788
                        description: >-
                          Exchange rate used for conversion to settlement
                          currency
                      settlement_amount:
                        type: number
                        example: 780.8891
                        description: Amount in the foreign currency after conversion
                  payment_from:
                    type: string
                    example: '2024-08-28T15:36:33'
                    description: Start time of the payment period
                  payment_till:
                    type: string
                    example: '2024-08-28T15:37:49'
                    description: End time of the payment period
                  settlement_utr:
                    type: string
                    example: '123412'
                    description: Unique transaction reference (UTR) for the settlement
                  initiated_on:
                    type: string
                    example: '2024-08-28T17:24:55'
                    description: Date and time when the settlement was initiated
                  settled_on:
                    type: string
                    example: '2024-08-29T16:30:46'
                    description: Date and time when the settlement was completed
        '400':
          description: Invalid request
          content:
            application/json:
              examples:
                test:
                  value:
                    type: invalid_request_error
                    message: status must be PROCESSED
                    code: status_invalid
                  summary: test
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: invalid_request_error
                  message:
                    type: string
                    example: status must be PROCESSED
                  code:
                    type: string
                    example: status_invalid
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    type: authentication_error
                    message: authentication Failed
                    code: request_failed
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: authentication_error
                  message:
                    type: string
                    example: authentication Failed
                  code:
                    type: string
                    example: request_failed
        '409':
          description: Conflict in updating settlement status
          content:
            application/json:
              examples:
                Result:
                  value:
                    type: invalid_request_error
                    message: Cannot update settlement with status SETTLED
                    code: settlement_conflict
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: invalid_request_error
                  message:
                    type: string
                    example: Cannot update settlement with status SETTLED
                  code:
                    type: string
                    example: settlement_conflict
      deprecated: false

````