> ## 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.

# Quick Start

> Make your first cryptocurrency payment in minutes

## Get Started in Three Steps

Get up and running with Tender's API and accept your first cryptocurrency payment.

***

### Step 1: Get Your API Credentials

> [accordion] Generate credentials from dashboard
>
> 1. Log in to your [Tender Merchant Dashboard](https://sandbox-merchant.tender.cash) (sandbox) or [merchant.tender.cash](https://merchant.tender.cash) (live)
>
> 2. Navigate to **Settings** → **API Credentials**
>
> 3. Click **Generate New Credentials**
>
> 4. Select **Test Environment** for development
>
> 5. Save your **Access ID** and **Access Secret** securely
>
> > [!TIP]
> >
> > Use the test environment while integrating. It uses testnet cryptocurrencies with no real value.

> [accordion] Store credentials securely
>
> Never hardcode credentials. Use environment variables:
>
> ```bash .env theme={null}
> TENDER_ACCESS_ID=your_access_id_here
> TENDER_ACCESS_SECRET=your_access_secret_here
> TENDER_BASE_URL=https://sandbox-api.tender.cash
> ```

***

### Step 2: Make Your First API Call

Choose your preferred language and make a signed request to create an online outlet (agent):

```javascript Node.js theme={null}
import crypto from 'crypto';
import { v4 as uuidv4 } from 'uuid';

// Your credentials
const accessId = process.env.TENDER_ACCESS_ID;
const accessSecret = process.env.TENDER_ACCESS_SECRET;

// Generate signature
const requestId = uuidv4();
const timeStamp = new Date().toISOString();

const payload = {
  timeStamp,
  requestId,
  accessId
};

const signature = crypto
  .createHmac('sha256', accessSecret)
  .update(JSON.stringify(payload))
  .digest('base64');

// Make API request
const response = await fetch('https://sandbox-api.tender.cash/v1/api/agent/create', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-access-id': accessId,
    'x-request-id': requestId,
    'x-timestamp': timeStamp,
    'authorization': signature
  },
  body: JSON.stringify({
    type: 'online',
    name: 'Lagos Fashion Store',
    email: 'lagosfashion@store.com',
    location: 'Lagos',
    country: 'Nigeria',
    currency: 'NGN',
    outletIntent: 'API integration'
  })
});

const data = await response.json();
console.log('Agent created:', data);
```

```python Python theme={null}
import hmac
import hashlib
import base64
import json
import uuid
from datetime import datetime, timezone
import requests
import os

# Your credentials
access_id = os.getenv('TENDER_ACCESS_ID')
access_secret = os.getenv('TENDER_ACCESS_SECRET')

# Generate signature
request_id = str(uuid.uuid4())
timestamp = datetime.now(timezone.utc).isoformat(timespec='milliseconds').replace('+00:00', 'Z')

payload = {
    "timeStamp": timestamp,
    "requestId": request_id,
    "accessId": access_id
}

# Compact JSON, keys in this order, to match the server's JSON.stringify
message = json.dumps(payload, separators=(',', ':'))
signature = base64.b64encode(
    hmac.new(
        access_secret.encode('utf-8'),
        message.encode('utf-8'),
        hashlib.sha256
    ).digest()
).decode('utf-8')

# Make API request
response = requests.post(
    'https://sandbox-api.tender.cash/v1/api/agent/create',
    headers={
        'Content-Type': 'application/json',
        'x-access-id': access_id,
        'x-request-id': request_id,
        'x-timestamp': timestamp,
        'authorization': signature
    },
    json={
        'type': 'online',
        'name': 'Lagos Fashion Store',
        'email': 'lagosfashion@store.com',
        'location': 'Lagos',
        'country': 'Nigeria',
        'currency': 'NGN',
        'outletIntent': 'API integration'
    }
)

data = response.json()
print('Agent created:', data)
```

```php PHP theme={null}
<?php
// Your credentials
$accessId = getenv('TENDER_ACCESS_ID');
$accessSecret = getenv('TENDER_ACCESS_SECRET');

// Generate signature
$requestId = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
    mt_rand(0, 0xffff), mt_rand(0, 0xffff),
    mt_rand(0, 0xffff),
    mt_rand(0, 0x0fff) | 0x4000,
    mt_rand(0, 0x3fff) | 0x8000,
    mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
);
$timeStamp = gmdate('Y-m-d\TH:i:s.v\Z');

$payload = [
    'timeStamp' => $timeStamp,
    'requestId' => $requestId,
    'accessId' => $accessId
];

$message = json_encode($payload, JSON_UNESCAPED_SLASHES);
$signature = base64_encode(hash_hmac('sha256', $message, $accessSecret, true));

// Make API request
$ch = curl_init('https://sandbox-api.tender.cash/v1/api/agent/create');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'type' => 'online',
    'name' => 'Lagos Fashion Store',
    'email' => 'lagosfashion@store.com',
    'location' => 'Lagos',
    'country' => 'Nigeria',
    'currency' => 'NGN',
    'outletIntent' => 'API integration'
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Content-Type: application/json',
    'x-access-id: ' . $accessId,
    'x-request-id: ' . $requestId,
    'x-timestamp: ' . $timeStamp,
    'authorization: ' . $signature
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);
echo 'Agent created: ' . print_r($data, true);
?>
```

**Expected Response:**

```json theme={null}
{
  "status": "success",
  "message": "success",
  "data": {
    "id": "66f33b1fa9446a6b6b8f32cd",
    "name": "Lagos Fashion Store",
    "email": "lagosfashion@store.com",
    "country": "Nigeria",
    "location": "Lagos",
    "type": "online",
    "active": true,
    "reference": "vbibtucm9ynq3k2x7p",
    "merchantId": "6538e8f9bdec6d1a21978a64",
    "currency": "NGN",
    "totalSales": "0",
    "defaultFiatCurrency": {
      "currency": "NGN",
      "rate": "1500",
      "useSystemRate": true
    },
    "createdAt": "2026-10-15T09:45:53.000Z"
  }
}
```

> [!NOTE]
>
> `outletIntent` is required for `online` and `whatsapp` outlets, and any `phoneNumber` must be in
> E.164 format (for example `+2348012345678`). Point-of-sale outlets are created from the
> dashboard, not the API. See [Create Outlet](https://docs.tender.cash/api-reference/endpoint/agents/create.md).

***

### Step 3: Initiate Your First Payment

Now let's create a cryptocurrency payment. Payment endpoints use [Basic (Access ID) authentication](https://docs.tender.cash/api-reference/authentication.md#basic-access-id-authentication), so only your `x-access-id` header is required — no signature:

```javascript theme={null}
const paymentResponse = await fetch('https://sandbox-api.tender.cash/v1/api/payment/initiate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-access-id': accessId
  },
  body: JSON.stringify({
    amount: "10.00",     // fiat, in your outlet's default currency (USD if none is set)
    chain: "ethereum",
    currency: "usdc",
    reference: "ORDER-1001" // optional, your own order ID
  })
});

const payment = await paymentResponse.json();
console.log('Payment initiated:', payment);
```

**Expected Response:**

```json theme={null}
{
  "status": "success",
  "message": "success",
  "data": {
    "txId": "66aec7de809b7f45c42a49f9",
    "type": "receive",
    "chain": "ethereum",
    "walletAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "requestedAmount": "10.00",
    "amount": "10.1",
    "usdAmount": "10.10",
    "fee": 0.1,
    "feeUSD": 0.1,
    "referenceId": "ORDER-1001",
    "agentId": "6538eaaebdec6d1a21978e6a"
  }
}
```

The response is abridged; see [Initiate Payment](https://docs.tender.cash/api-reference/endpoint/initiate-payment.md) for every
field. `amount` is the all-in crypto total (your price plus fees) the customer must send. A new
payment always starts as `pending`.

> [!TIP]
>
> The `walletAddress` is where your customer should send exactly `amount` of the cryptocurrency. Track the payment with [webhooks](https://docs.tender.cash/get-started/webhooks.md) or [Validate Payment](https://docs.tender.cash/api-reference/endpoint/validate-payment.md), which returns HTTP 406 `Payment Not made yet` until funds arrive.

***

## Next Steps

Now that you've made your first requests, explore more features:

> [card] [Authentication](https://docs.tender.cash/api-reference/authentication.md)
>
> Deep dive into HMAC signature authentication

> [card] [Payment APIs](https://docs.tender.cash/api-reference/endpoint/initiate-payment.md)
>
> Explore all payment endpoints and options

> [card] [Configure Webhooks](https://docs.tender.cash/get-started/webhooks.md)
>
> Set up real-time event notifications

> [card] [Supported Chains](https://docs.tender.cash/api-reference/endpoint/fetch-chains.md)
>
> View all supported blockchains and currencies

***

## Testing Your Integration

Before going to production:

**1. Test all payment flows**

Test with different blockchains and currencies in the test environment

**2. Set up webhooks**

Configure and test webhook delivery for transaction events

**3. Handle errors**

Implement proper error handling for failed transactions

**4. Security review**

Ensure API credentials are stored securely and never exposed

**5. Go live**

Switch to production credentials and base URL

***

## Need Help?

> [card] Contact Support
>
> * **Email**: [support@tender.cash](mailto:support@tender.cash)
> * **Documentation**: [docs.tender.cash](https://docs.tender.cash/index.md)
> * **API Reference**: Browse complete API documentation


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