# Get Started with DOKU API

### 🚀  Unlock the Power of Seamless Transactions with DOKU API: Your Gateway to Smarter Commerce 🚀

Welcome, savvy merchants, to the future of frictionless transactions! If you're ready to elevate your business game, then DOKU's API is your golden ticket. 🌐✨

### 🔗 Dive into the World of DOKU: <https://www.doku.com/>&#x20;

In the dynamic landscape of modern commerce, mastering the art of seamless transactions is non-negotiable. That's where DOKU steps in, revolutionizing the way you handle payments and transactions. To ensure you harness the full potential of our offerings, we present to you the key to unlocking a world of possibilities: our API reference.

### 💡**Explore the DOKU API Reference:**

Ready to take the plunge? Our comprehensive API reference is your go-to guide for navigating the intricacies of DOKU's offerings. Gain insights into authentication, endpoints, and data formats, ensuring a smooth integration that aligns perfectly with your business requirements.

### 🚀**Top Tips for Developers:**

{% hint style="info" %}
**Dive into Documentation:** Familiarize yourself with our API documentation, offering detailed insights into every aspect of integration.
{% endhint %}

{% hint style="info" %}
**Test in Sandbox:** Utilize our sandbox environment to test your integration before going live. It's the perfect playground to ensure everything runs like clockwork.
{% endhint %}

{% hint style="info" %}
**Stay Updated:** Subscribe to our updates to stay in the loop about the latest features, enhancements, and best practices for optimizing your integration.
{% endhint %}

## Ready to transform the way you transact? Let's make it happen with DOKU's API!&#x20;

#### Try your first request  🚀🌐💼

To make your first request, choose any payment channels on this Demo Site <https://sandbox.doku.com/demo/>

<figure><img src="https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2FMlXuuR24Ep16cUrIcb97%2Fezgif.com-video-to-gif%20(3).gif?alt=media&#x26;token=b0beeb66-a5e5-4b86-8acd-60582fe7b4c6" alt=""><figcaption><p>Demo Site</p></figcaption></figure>

Take a look at how you might call this method using our official demosite.&#x20;

{% tabs %}
{% tab title="Virtual Account" %}

```json
{
    "order": {
        "invoice_number": "INV-20210124-0001",
        "amount": 150000
    },
    "virtual_account_info": {
        "billing_type": "FIX_BILL",
        "expired_time": 60,
        "reusable_status": false,
        "info1": "Merchant Demo Store",
        "info2": "Thank you for shopping",
        "info3": "on our store"
    },
    "customer": {
        "name": "Jessica Tessalonika",
        "email": "jessica@example.com"
    }
}
```

{% endtab %}

{% tab title="Credit Card" %}

```json
{
    "order": {
        "invoice_number": "INV-20210118-0001",
        "amount": 90000,
        "line_items": [
            {
                "name": "T-Shirt Red",
                "price": 30000,
                "quantity": 2
            },
            {
                "name": "Polo Navy",
                "price": 30000,
                "quantity": 1
            }
        ],
        "callback_url": "https://merchant.com/success-url",
        "failed_url": "https://merchant.com/failed-url",
        "auto_redirect": false
    },
    "card": {
        "token": "a55b8d8df709607d2a343778898f41d0",
        "save": false
    },
    "customer": {
        "id": "CUST-0001",
        "name": "Jessica Tessalonika",
        "email": "jessica@example.com"
        "phone": "6285694566147",
        "address": "Sianjur Mula-Mula",
        "country": "ID"
    },
    "payment": {
        "type": "INSTALLMENT",
        "acquirer":"BRI",
        "tenor": 3
    },
    "override_configuration": {
        "themes": {
            "language": "EN",
            "background_color": "F5F8FB",
            "font_color": "1A1A1A",
            "button_background_color": "E1251B",
            "button_font_color": "FFFFFF"
        },
        "promo": [
            {
                "bin": "142498",
                "discount_amount": 20000
            },
            {
                "bin": "314498",
                "discount_amount": 20000
            },
            {
                "bin": "091234",
                "discount_amount": 10000
            },
            {
                "bin": "091234",
                "discount_amount": 10000
            }
        ],
        "allow_bin": ["461700","410505","557338"],
        "allow_tenor": [0,3,6]
    },
    "additional_info": {
    "override_notification_url": "https://google.com",
    "disclaimer" : {
            "id" : "Testing",
            "en" : "testing englis"
        }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.doku.com/get-started-with-doku-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
