---
updatedAt: 2026-07-26T18:09:44.000Z
agentTools:
  projectIndex: https://developers.dtone.com/llms.txt
---

# Transactions

This API facilitates "transactions" to deliver value to beneficiaries, such as mobile airtime top-ups and data bundles. A transaction progresses through distinct status stages, as illustrated in the following diagram

<Accordion title="Final Statuses for Transactions" icon="fa-info-circle">
  A final status is a status after which there are no further statuses. Note that **<span style={{ border: "3px solid #1D8DF0", padding: "2px" }}>SUBMITTED 5</span>** and **<span style={{ border: "3px solid #1D8DF0", padding: "2px" }}>CONFIRMED 2</span>** are **NOT** final statuses.

  <Columns>
    <Column>
      ### <span style={{ border: "3px solid #90ee90", color: "#000", padding: "2px", fontSize: "0.8em" }}>COMPLETED 7</span>

      The digital value service has been delivered. In rare cases, a successfully completed transaction can be reversed and assigned a **<span style={{ border: "3px solid black", padding: "2px", fontSize: "0.8em", color: "#000" }}>REVERSED 8</span>** status (so the definition for "Final Status" is applicable almost always).
    </Column>

    <Column>
      ### <span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>REJECTED 3</span>

      The transaction was unsuccessful on DT One’s side.
    </Column>

    <Column>
      ### <span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>CANCELLED 4</span>

      The transaction was canceled by the initiator before confirmation.
    </Column>

    <Column>
      ### <span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>DECLINED 9</span>

      The transaction was unsuccessful on the provider’s side.
    </Column>
  </Columns>
</Accordion>

<br />

```mermaid
---
config:
  theme: neutral
  fontSize: 16
  look: neo
  layout: fixed
---
flowchart LR
    B@{ label: "<b>CREATED</b><br><span style=\"font-size: 2em;\">1</span>" } -- "<span style=color:>POST<br>/transactions<br>/[id]<br>/confirm</span>" --> C@{ label: "<b>CONFIRMED</b><br><span style=\"font-size: 2em;\">2</span>" }
    C -- "<span style=color:>Sent to<br>receiving<br>partner</span>" --> D@{ label: "<b>SUBMITTED</b><br><span style=\"font-size: 2em;\">5</span>" }
    D --> E@{ label: "<b>COMPLETED</b><br><span style=\"font-size: 2em;\">7</span>" }
    E -- "<span style=color:>Callback</span>" --> F@{ label: "<b>REVERSED</b><br><span style=\"font-size: 2em;\">8</span>" }
    B -- "<span style=color:>Callback</span>" --> G@{ label: "<b>REJECTED</b><br><span style=\"font-size: 2em;\">3</span>" }
    B -- "<span style=color:>Callback<br>POST<br>/transactions<br>/[id]<br>/cancel</span>" --> H@{ label: "<b>CANCELLED</b><br><span style=\"font-size: 2em;\">4</span>" }
    D -- "<span style=color:>Callback</span>" --> I@{ label: "<b>DECLINED</b><br><span style=\"font-size: 2em;\">9</span>" }
    B@{ shape: rounded}
    C@{ shape: rounded}
    D@{ shape: rounded}
    E@{ shape: rounded}
    F@{ shape: rounded}
    G@{ shape: rounded}
    H@{ shape: rounded}
    I@{ shape: rounded}
    style B fill:#FFFFFF,stroke:#1D8DF0,stroke-width:3px
    style C fill:#FFFFFF,stroke:#1D8DF0,stroke-width:3px
    style D fill:#FFFFFF,stroke:#1D8DF0,stroke-width:3px
    style E fill:#FFFFFF,color:#000,stroke:#90ee90,stroke-width:3px
    style F fill:#FFFFFF,stroke:black,stroke-width:3px
    style G fill:#FFFFFF,stroke:#f08080,stroke-width:3px
    style H fill:#FFFFFF,stroke:#f08080,stroke-width:3px
    style I fill:#FFFFFF,stroke:#f08080,stroke-width:3px

```

<br />

<Tabs>
  <Tab title="Initiation" icon="fa-chevron-right">
    * **Two-Step Flow:<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>CREATED 1</span> → <span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>CONFIRMED 2</span>**
      * This approach is used when the initiator needs a short delay (e.g., to collect payment) between creating the transaction and submitting it to DT One.
      * The maximum allowed time between the **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>CREATED 1</span>** and **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>CONFIRMED 2</span>** statuses is 60 minutes.
      * If the transaction is not confirmed within 60 minutes, it will be automatically canceled.
    * **One-Step Flow: Create a Confirmed transaction**
      * This approach is used by DT Shop, where transactions are created and confirmed in a single step.
  </Tab>

  <Tab title="Validation and Submission" icon="fa-chevron-right">
    Before a transaction is sent to the provider, the DT One platform performs several validation checks, including:

    * Availability - sufficient balance in the initiator’s wallet
    * Provider/Operator availability
    * Mobile Number eligibility
      If all checks are successful, the transaction is submitted for processing. The maximum time between **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>CONFIRMED 2</span>** status and **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>SUBMITTED 5</span>** status is 10 seconds. At this step, the API may reject a transaction for various reasons, such as exceeding fraud limits or insufficient balance. If rejected, the transaction moves to the **<span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>REJECTED 3</span>** status. Once the transaction is sent to the provider and undergoes processing, it remains in the **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>SUBMITTED 5</span>** status. Note that **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>SUBMITTED 5</span>** status is not a final status.
  </Tab>

  <Tab title="Effects of Status Changes on Wallet" icon="fa-chevron-right">
    * **Transaction is created (<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>CREATED 1</span> status).**
      * A hold is placed on the initiator’s wallet: the wholesale price and fee are moved from the available balance to holding (authorized).
    * **If Status changes to<span style={{ border: "3px solid #90ee90", color: "#000", padding: "2px", fontSize: "0.8em" }}>COMPLETED 7</span>**
      * The authorized amount in holding is captured — i.e. debited from the wallet.
    * **If Status remains<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>SUBMITTED 5</span>**
      * The balance remains on hold.
    * **If Status changes to<span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>CANCELLED 4</span>, <span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>REJECTED 3</span>, or <span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>DECLINED 9</span>**
      * The hold is voided, and the authorized amount moves back to the available balance.
    * **If Status changes to<span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>REVERSED 8</span>**
      * The debited amount is reversed back into the available balance.
  </Tab>

  <Tab title="Service Provider Processing" icon="fa-chevron-right">
    Once submitted, the transaction is sent to the respective service provider (e.g., mobile operator, gift card provider, etc.). The transaction remains in the **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>SUBMITTED 5</span>** status while the provider processes it. This process typically takes up to 30 seconds, but in rare cases, the provider may delay the response. The maximum time between **<span style={{ border: "3px solid #1D8DF0", padding: "2px", fontSize: "0.8em", color: "#000" }}>SUBMITTED 5</span>** status and **<span style={{ border: "3px solid #90ee90", color: "#000", padding: "2px", fontSize: "0.8em" }}>COMPLETED 7</span>** status is 24 hours. By this time, the transaction will either have a status of **<span style={{ border: "3px solid #90ee90", color: "#000", padding: "2px", fontSize: "0.8em" }}>COMPLETED 7</span>** or **<span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>DECLINED 9</span>**.
  </Tab>

  <Tab title="Finalization" icon="fa-chevron-right">
    When the provider confirms transaction completion, the status changes to **<span style={{ border: "3px solid #90ee90", color: "#000", padding: "2px", fontSize: "0.8em" }}>COMPLETED 7</span>**, indicating that the digital value has been delivered—either as a mobile recharge or a PIN code for redemption. This information is provided immediately in the callback response.

    * **Standard API Integration**
      * **FULL CONTROL**
      * Initiator must handle the callback by listening for updates and processing the response accordingly.
    * **Low Code Solution**
      * **UI SDK - Faster Deployment** Synchronous mode enabled for UI SDK.
    * **No Code Solution**
      * **DT Shop - Self-Service Platform**
      * Callbacks are automatically interpreted, and a human-readable result is presented to the DT Shop user.
        If the provider is unable to complete the transaction, the status changes to **<span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>DECLINED 9</span>**, and an error code is included in the callback response.
        For error handling, refer to the [Status and Errors](https://dvs-api-doc.dtone.com/#section/Overview/Status-and-Errors) section to determine resolution steps.
  </Tab>

  <Tab title="Handling Callbacks" icon="fa-chevron-right">
    Once a transaction reaches its final state, DT One sends a callback notification to the predefined URL (for Standard API integrations and Low Code Solutions) or processes the response internally (for No Code users of DT Shop).

    * **Standard API Integration**
      * The callback must be handled programmatically by listening for updates and processing the response accordingly.

    * **No Code Solution**
      * The platform automatically interprets the callback and presents a human-readable result to the user.
  </Tab>

  <Tab title="Callback Content" icon="fa-chevron-right">
    * **Recharge Products**
      * **Transaction** status
      * Relevant error code (if **<span style={{ border: "3px solid #f08080", padding: "2px", fontSize: "0.8em", color: "#000" }}>DECLINED 9</span>** status)
    * **PIN-Based Products**
      * PIN Code and Serial Number
      * Redemption instructions (if applicable)
        These details should be stored and presented to the end-user through the appropriate channel (e.g., UI, email, or SMS), depending on the initiator's process for product delivery.
  </Tab>
</Tabs>

<br />

<br />

**Transaction Updates and Retrieval:**

<Cards columns={3}>
  <Card title="Real-time Notifications" icon="fa-solid fa-bell">
    When a callback URL is configured, the API sends real-time updates as the transaction status changes.
  </Card>

  <Card title="Transaction Status Queries" icon="fa-solid fa-question-circle">
    You can query the current transaction status using either the `id` returned by the API or your provided `external_id`.
  </Card>

  <Card title="External ID Usage" icon="fa-solid fa-key">
    The `external_id` is essential for retrieving transaction details in exceptional scenarios, such as when an API response is not received.
  </Card>
</Cards>