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

# Initiate On-ramp

> Start a fiat-to-crypto on-ramp using a valid quote

> [!NOTE]
>
> **Auth method: Signed (HMAC)** — this endpoint requires the full set of signed
> headers: `x-access-id`, `x-request-id`, `x-timestamp`, and an HMAC-SHA256
> `authorization` signature. See [Authentication](https://docs.tender.cash/api-reference/authentication.md#signed-hmac-authentication).

Redeems a quote and creates a virtual bank account for the customer to pay into. Show the
returned `bankTransfer` details to the customer, then poll
[Get On-ramp Status](https://docs.tender.cash/api-reference/endpoint/onramp/status.md) with the `reference`.

* Each quote can be redeemed **once**. The quote is consumed as soon as you call this endpoint,
  even if it has expired; request a new quote after any failure.
* Only the merchant that created the quote can redeem it. A quote from another merchant returns
  `Quote not found or already used`.
* Tender doesn't check `targetAddress` against the chain at this point. Validate the address
  before you call; crypto sent to a wrong address can't be recovered.

This request counts against the on-ramp limit of 10 requests per minute. See
[Rate limits](https://docs.tender.cash/api-reference/rate-limits.md).

## Headers

**authorization** `string` *required*

Base64-encoded HMAC-SHA256 signature of `{"timeStamp":"<x-timestamp>","requestId":"<x-request-id>","accessId":"<x-access-id>"}`, signed with your access secret. The request body is not part of the signature.

**Example:** `"pV3n0o8kq0lK2mJ8bZ1yq3Yt6hR0cXK9u4mVJ2l9sE0="`

**x-timestamp** `string` *required*

ISO 8601 timestamp; must be within 5 minutes of server time

**Example:** `"2026-10-15T09:45:53.000Z"`

**x-request-id** `string` *required*

A unique UUID v4 per request

**Example:** `"550e8400-e29b-41d4-a716-446655440000"`

**x-access-id** `string` *required*

Your API access ID

**Example:** `"your-access-id-here"`

**Content-Type** `string` *required*

**Example:** `"application/json"`

## Body

**quoteId** `string` *required*

The `quoteId` returned by [Get On-ramp Quote](https://docs.tender.cash/api-reference/endpoint/onramp/quote.md). Must be a
UUID.

**Example:** `"b7f2a1c3-9d4e-4b2f-a8c0-1e2d3f4a5b6c"`

**targetAddress** `string` *required*

Wallet address that receives the crypto, on the quote's `targetChain`.

**Example:** `"TQ7xJm4z9..."`

**customer** `object` *required*

The customer making the bank transfer.

**customer properties**

**email** `string` *required*

Customer email address.

**Example:** `"customer@example.com"`

**name** `string` *required*

Customer full name.

**Example:** `"Ada Obi"`

**metadata** `object`

Optional key-value pairs (string or number values). They are passed along with the payment
request but are not returned by [Get On-ramp Status](https://docs.tender.cash/api-reference/endpoint/onramp/status.md), so
keep your own mapping from `reference` to your order.

**Example:** `{ "orderId": "ORD-9821" }`

## Response

**status** `string` *required*

**Example:** `"success"`

**message** `string` *required*

**Example:** `"Onramp initiated"`

**data** `object` *required*

**data properties**

**reference** `string`

Unique reference for this on-ramp. Use it to poll status.

**Example:** `"a3f1c2d4-8e7b-4f0a-9c1d-2e3f4a5b6c7d"`

**status** `string`

Always `pending_payment` at this point.

**Example:** `"pending_payment"`

**bankTransfer** `object`

Virtual bank account the customer must pay into.

**bankTransfer properties**

**accountNumber** `string`

**Example:** `"0123456789"`

**accountName** `string`

**Example:** `"Tender / Ada Obi"`

**bankName** `string`

**Example:** `"Wema Bank"`

**expiresAt** `string`

ISO 8601 timestamp when the virtual account expires (1 hour after initiation).

**Example:** `"2026-10-15T11:00:00.000Z"`

**amount** `object`

**amount properties**

**value** `integer`

Fiat amount the customer must pay, from the quote.

**Example:** `50000`

**currency** `string`

Fiat currency, from the quote.

**Example:** `"NGN"`

**targetChain** `string`

**Example:** `"tron"`

**targetAddress** `string`

**Example:** `"TQ7xJm4z9..."`

**targetCurrency** `string`

**Example:** `"USDT"`

## Error responses

All errors return HTTP `400`.

| Condition | Message |
| - | - |
| Missing or invalid field | Validation message, e.g. `quoteId must be a UUID` |
| Quote unknown, already used, or created by another merchant | `Quote not found or already used` |
| Quote past its `expiresAt` (the quote is still consumed) | `Quote has expired` |

```bash cURL theme={null}
curl -X POST https://sandbox-api.tender.cash/v1/api/onramp/initiate \
  -H "x-access-id: $TENDER_ACCESS_ID" \
  -H "x-request-id: 3d6f0a1b-2c4e-4f8a-9b7c-5e1d2a3b4c5d" \
  -H "x-timestamp: 2026-10-15T10:00:20.000Z" \
  -H "authorization: $SIGNATURE" \
  -H "Content-Type: application/json" \
  -d '{
    "quoteId": "b7f2a1c3-9d4e-4b2f-a8c0-1e2d3f4a5b6c",
    "targetAddress": "TQ7xJm4z9...",
    "customer": { "email": "customer@example.com", "name": "Ada Obi" }
  }'
```

```json 200 theme={null}
{
  "status": "success",
  "message": "Onramp initiated",
  "data": {
    "reference": "a3f1c2d4-8e7b-4f0a-9c1d-2e3f4a5b6c7d",
    "status": "pending_payment",
    "bankTransfer": {
      "accountNumber": "0123456789",
      "accountName": "Tender / Ada Obi",
      "bankName": "Wema Bank"
    },
    "expiresAt": "2026-10-15T11:00:20.000Z",
    "amount": { "value": 50000, "currency": "NGN" },
    "targetChain": "tron",
    "targetAddress": "TQ7xJm4z9...",
    "targetCurrency": "USDT"
  }
}
```

```json 400 theme={null}
{
  "status": "error",
  "message": "Quote not found or already used",
  "data": {}
}
```


## OpenAPI

````yaml POST /v1/api/onramp/initiate
openapi: 3.1.0
info:
  title: Tender API
  description: Tender Developer API for cryptocurrency payments and agent management
  version: 2.0.0
  contact:
    name: Tender Support
    url: https://tender.cash
servers:
  - url: https://secureapi.tender.cash
    description: Production Server
  - url: https://sandbox-api.tender.cash
    description: Sandbox Server
security:
  - SignedAuth: []
tags:
  - name: Agents
    description: Manage agents and sub-businesses
  - name: Transactions
    description: Payment and transaction operations
  - name: System
    description: System information and configuration
  - name: Webhooks
    description: Webhook management and logs
  - name: On-ramp
    description: Fiat-to-crypto on-ramp operations
  - name: Payouts
    description: Send crypto from merchant balance to a wallet address or payout account
  - name: Subwallets
    description: Provision and manage crypto wallet infrastructure for your end-users
  - name: Conversions
    description: Swap crypto between coins and chains, or convert to a payout account
paths:
  /v1/api/onramp/initiate:
    post:
      tags:
        - On-ramp
      summary: Initiate On-ramp
      description: >-
        Redeem a quote and get a virtual bank account for the customer. The
        quote is consumed even if expired.
      operationId: initiateOnramp
      parameters:
        - name: authorization
          in: header
          required: true
          description: >-
            Base64-encoded HMAC-SHA256 signature of
            {"timeStamp":"<x-timestamp>","requestId":"<x-request-id>","accessId":"<x-access-id>"},
            signed with your access secret. The request body is not part of the
            signature.
          schema:
            type: string
          example: pV3n0o8kq0lK2mJ8bZ1yq3Yt6hR0cXK9u4mVJ2l9sE0=
        - name: x-timestamp
          in: header
          required: true
          description: ISO 8601 timestamp; must be within 5 minutes of server time
          schema:
            type: string
            format: date-time
          example: '2026-10-15T09:45:53.000Z'
        - name: x-request-id
          in: header
          required: true
          description: A unique UUID v4 per request
          schema:
            type: string
            format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
        - name: x-access-id
          in: header
          required: true
          schema:
            type: string
          example: your-access-id-here
        - name: Content-Type
          in: header
          required: true
          schema:
            type: string
          example: application/json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InitiateOnrampRequest'
            example:
              quoteId: b7f2a1c3-9d4e-4b2f-a8c0-1e2d3f4a5b6c
              targetAddress: TQ7xJm4z9...
              customer:
                email: customer@example.com
                name: Ada Obi
      responses:
        '200':
          description: On-ramp created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitiateOnrampResponse'
        '400':
          description: >-
            Validation error, or quote unknown/used/expired/owned by another
            merchant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnrampErrorResponse'
              example:
                status: error
                message: Quote not found or already used
                data: {}
        '401':
          description: Missing or invalid signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubwalletErrorResponse'
              example:
                status: error
                message: INVALID_REQUEST_SIGNATURE
                data: null
        '429':
          description: Rate limit exceeded (on-ramp routes share 10 requests per minute)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnrampErrorResponse'
              example:
                status: error
                message: Too many requests. Max 10 per 60s.
                data: {}
      security:
        - SignedAuth: []
components:
  schemas:
    InitiateOnrampRequest:
      type: object
      required:
        - quoteId
        - targetAddress
        - customer
      properties:
        quoteId:
          type: string
          format: uuid
        targetAddress:
          type: string
          maxLength: 500
          example: TQ7xJm4z9...
        customer:
          type: object
          required:
            - email
            - name
          properties:
            email:
              type: string
              format: email
            name:
              type: string
              maxLength: 500
        metadata:
          type: object
          additionalProperties:
            oneOf:
              - type: string
              - type: number
          description: Optional. Not returned by the status endpoint.
    InitiateOnrampResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Onramp initiated
        data:
          type: object
          properties:
            reference:
              type: string
              format: uuid
            status:
              type: string
              enum:
                - pending_payment
            bankTransfer:
              type: object
              properties:
                accountNumber:
                  type: string
                accountName:
                  type: string
                bankName:
                  type: string
            expiresAt:
              type: string
              format: date-time
              description: Virtual account expiry, 1 hour after initiation.
            amount:
              type: object
              properties:
                value:
                  type: integer
                currency:
                  type: string
            targetChain:
              type: string
            targetAddress:
              type: string
            targetCurrency:
              type: string
    OnrampErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
        data:
          type: object
    SubwalletErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          example: error
        message:
          type: string
        data:
          nullable: true
          description: Usually null or an empty object.
  securitySchemes:
    SignedAuth:
      type: apiKey
      in: header
      name: authorization
      description: >-
        Signed (HMAC) authentication. Required headers: x-access-id,
        x-request-id (UUID v4), x-timestamp (ISO 8601, must be within 5 minutes
        of server time), and authorization: the Base64 HMAC-SHA256 of the JSON
        string
        {"timeStamp":"<x-timestamp>","requestId":"<x-request-id>","accessId":"<x-access-id>"}
        (keys in that order, no whitespace) using your access secret. The
        request body, method and path are not signed. The API key must be linked
        to an outlet.

````

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