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

# Cancel Deposit

> Cancel a pending Pan-Africa onramp deposit that the customer has not paid. Pass the reference returned when the deposit was created. Parameters are sent as query string values, not as a JSON body.



## OpenAPI

````yaml /reference/link-transaction.json post /transactions/v2/direct_ramp/cancel_deposit
openapi: 3.1.0
info:
  title: link-transaction
  version: '1.0'
servers:
  - url: https://api.linkio.world
security:
  - sec0: []
tags:
  - name: Direct FX
  - name: Pan-Africa Ramp
  - name: BRL Ramp
  - name: IDR Ramp
  - name: B2B
  - name: Customers
  - name: Static Details
  - name: Transactions
  - name: Accounts
  - name: ESPESS
paths:
  /transactions/v2/direct_ramp/cancel_deposit:
    post:
      tags:
        - Pan-Africa Ramp
      summary: Cancel Deposit
      description: >-
        Cancel a pending Pan-Africa onramp deposit that the customer has not
        paid. Pass the reference returned when the deposit was created.
        Parameters are sent as query string values, not as a JSON body.
      operationId: post_direct-ramp-cancel-deposit
      parameters:
        - in: query
          name: trx_type
          schema:
            type: string
            enum:
              - onramp
          required: true
          description: Transaction type. Only onramp deposits can be cancelled.
        - in: query
          name: reference
          schema:
            type: string
          required: true
          description: Reference code returned when the deposit was created.
      responses:
        '200':
          description: Deposit cancelled.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: Success
                  message:
                    type: string
                    example: 'onramp transaction with reference LNK-8F3K2A: Cancelled'
                  date:
                    type: string
                    description: >-
                      Time the cancellation was processed (UTC, YYYY-MM-DD
                      HH:mm).
                    example: 2026-10-09 11:42
                example:
                  status: Success
                  message: 'onramp transaction with reference LNK-8F3K2A: Cancelled'
                  date: 2026-10-09 11:42
        '400':
          description: >-
            trx_type is not onramp, the reference was not found, or the deposit
            can no longer be cancelled.
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: ngnc-sec-key
      x-default: ''

````

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