---
updatedAt: 2025-12-24T10:13:36.000Z
agentTools:
  projectIndex: https://transactpay.readme.io/llms.txt
---

# Tokenize Charge

Use the **Tokenize Charge API** to process a transaction using a saved card token. This enables secure and seamless repeat payments for returning customers without collecting card details again.

***

## 👍 Good to Know

To initiate a tokenize charge:

* Include your **secret API key** in the `api-key` header
* Ensure the `cardToken` is obtained from the [Save Card API](https://transactpay.readme.io/reference/save-card-after-charge)

***

## 🛠️ Endpoint Details

| Method | URL                                                               |
| ------ | ----------------------------------------------------------------- |
| `POST` | `https://payment-api-service.transactpay.ai/payment/tokenize/pay` |

### Headers

```http
api-key: YOUR_SECRET_API_KEY
Content-Type: application/json
```

***

## 📦 Sample Payload

```json
{
  "customer": {
    "firstname": "ideos",
    "lastname": "pay",
    "mobile": "+23481582333444",
    "country": "NG",
    "email": "email@ideos.dev"
  },
  "order": {
    "amount": 2,
    "reference": "{{reference}}",
    "description": "Pay",
    "currency": "NGN"
  },
  "payment": {
    "RedirectUrl": "https://www.hi.com"
  },
  "authorization": {
    "cardToken": "TKNMDU4MzU4NzUwNTk0Mjg5NzQwMzgwNDA0NzQ1ODkz2173"
  }
}
```

***

## 📌 Important Notes

> ⚠️ **Security Tip**
>
> Never expose your secret API key in frontend or public code repositories.

<Callout icon="🧾" theme="default">
  ### **Reference Best Practice**

  Always generate a **unique`reference`** per transaction to prevent duplicates and ensure proper tracking.
</Callout>

***

## ✅ Next Steps

1. **Get the card token** using the [Save Card API](https://transactpay.readme.io/reference/save-card-after-charge)
2. **Initiate the charge** using the token via this API
3. **Verify the result** using the [Verify Order API](https://transactpay.readme.io/reference/verify-order-1)

```json
{
    "customer": {
        "firstname": "ideos",
        "lastname": "pay",
        "mobile": "+23481582333444",
        "country": "NG",
        "email": "email@ideos.dev"
    },
    "order": {
        "amount": 2,
        "reference": "{{reference}}",
        "description": "Pay",
        "currency": "NGN"
    },
    "payment": {
        "RedirectUrl": "https://www.hi.com"
    },
    "authorization": {
        "cardToken": "TKNMDU4MzU4NzUwNTk0Mjg5NzQwMzgwNDA0NzQ1ODkz2173"
    }
}
```