---
agentTools:
  projectIndex: https://docs.quidax.io/llms.txt
---

# Initiate Off Ramp Transaction

This endpoints initiates the off ramp transaction

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Ramp Merchant API",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://ramp-be.quidax.io/api/v1/merchants/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "x-private-key",
        "in": "header",
        "x-default": "secret_key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/custodial/off_ramp_transactions/initiate": {
      "post": {
        "summary": "Initiate Off Ramp Transaction",
        "description": "This endpoints initiates the off ramp transaction",
        "operationId": "initiate-off-ramp-transaction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from_currency": {
                    "type": "string",
                    "default": "usdt",
                    "enum": [
                      "usdt",
                      "usdc",
                      "cngn"
                    ]
                  },
                  "to_currency": {
                    "type": "string",
                    "default": "ngn",
                    "enum": [
                      "ngn",
                      "ghs"
                    ]
                  },
                  "from_amount": {
                    "type": "string",
                    "default": "2"
                  },
                  "network": {
                    "type": "string",
                    "description": "Supported networks:",
                    "default": "bep20",
                    "enum": [
                      "celo",
                      "polygon",
                      "erc20",
                      "bep20",
                      "lsk",
                      "solana",
                      "base",
                      "ton",
                      "trc20"
                    ]
                  },
                  "merchant_reference": {
                    "type": "string",
                    "description": "add unique reference"
                  },
                  "customer": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "description": "Note: Please use your company domain for the email extension.",
                        "default": "test@domain.com"
                      },
                      "first_name": {
                        "type": "string",
                        "description": "Please use the customer's first name, as it is the name the system will use for comparison before approving the deposit.",
                        "default": "test"
                      },
                      "last_name": {
                        "type": "string",
                        "description": "Please use the customer's last name, as it is the name the system will use for comparison before approving the deposit.",
                        "default": "user"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"ok\",\n    \"message\": \"Transaction successfully initiated\",\n    \"data\": {\n        \"public_id\": \"7e4a3067-4ac7-485d-96b5-df746181863f\",\n        \"from_currency\": \"usdt\",\n        \"to_currency\": \"ngn\",\n        \"to_amount\": \"3134.49\",\n        \"from_amount\": \"2.0\",\n        \"reference\": \"TRX-S5UHQDMPAL\",\n        \"merchant_reference\": \"new-transaction-99\",\n        \"status\": \"pending\",\n        \"created_at\": \"2025-06-16T16:58:29.572Z\",\n        \"updated_at\": \"2025-06-16T16:58:29.824Z\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "message": {
                      "type": "string",
                      "example": "Transaction successfully initiated"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "public_id": {
                          "type": "string",
                          "example": "7e4a3067-4ac7-485d-96b5-df746181863f"
                        },
                        "from_currency": {
                          "type": "string",
                          "example": "usdt"
                        },
                        "to_currency": {
                          "type": "string",
                          "example": "ngn"
                        },
                        "to_amount": {
                          "type": "string",
                          "example": "3134.49"
                        },
                        "from_amount": {
                          "type": "string",
                          "example": "2.0"
                        },
                        "reference": {
                          "type": "string",
                          "example": "TRX-S5UHQDMPAL"
                        },
                        "merchant_reference": {
                          "type": "string",
                          "example": "new-transaction-99"
                        },
                        "status": {
                          "type": "string",
                          "example": "pending"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2025-06-16T16:58:29.572Z"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2025-06-16T16:58:29.824Z"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid amount": {
                    "value": "{\n  \"status\": \"bad_request\",\n  \"message\": \"Invalid amount\",\n  \"data\": null\n}"
                  },
                  "customer firat name is missing": {
                    "value": "{\n  \"status\": \"bad_request\",\n  \"message\": \"customer first_name is missing\",\n  \"data\": null\n}"
                  },
                  "customer last name is missing": {
                    "value": "{\n  \"status\": \"bad_request\",\n  \"message\": \"customer last_name is missing\",\n  \"data\": null\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Invalid amount",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "bad_request"
                        },
                        "message": {
                          "type": "string",
                          "example": "Invalid amount"
                        },
                        "data": {}
                      }
                    },
                    {
                      "title": "customer firat name is missing",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "bad_request"
                        },
                        "message": {
                          "type": "string",
                          "example": "customer first_name is missing"
                        },
                        "data": {}
                      }
                    },
                    {
                      "title": "customer last name is missing",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "bad_request"
                        },
                        "message": {
                          "type": "string",
                          "example": "customer last_name is missing"
                        },
                        "data": {}
                      }
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid private key": {
                    "value": "{\n  \"status\": \"forbidden\",\n  \"message\": \"Invalid private key\",\n  \"data\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "forbidden"
                    },
                    "message": {
                      "type": "string",
                      "example": "Invalid private key"
                    },
                    "data": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6981ba5faf9470ee082aeecd:6981ba5faf9470ee082aef65"
}
```