# dhru-com/reseller-api architecture

> Architecture diagram of the GitHub repository dhru-com/reseller-api, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhru-com/reseller-api
- Repository: https://github.com/dhru-com/reseller-api

## Overview

This repository provides PHP and Node.js examples for integrating an application with the Dhru Fusion Pro Reseller API. The documented workflow reads account and product data, submits paid orders, looks up order status, and receives final-state callbacks. The graph preserves both language implementations and the callback receivers; source excerpts were not available, so relationships are limited to those stated by the README.

Main entry points: [`examples/php/examples/get-account-info.php`](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-account-info.php) (Read account), [`examples/php/examples/get-products.php`](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-products.php) (Read products), [`examples/php/examples/place-new-order.php`](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/place-new-order.php) (Place order), [`examples/php/examples/get-order-details.php`](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-order-details.php) (Order details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_php["PHP examples"]
  node_php_account["Read account"]
  node_php_products["Read products<br/>[get-products.php]"]
  node_php_place["Place order"]
  node_php_details["Order details"]
  node_php_feedback["Feedback receiver"]
end

subgraph group_node["Node.js examples"]
  node_node_account["Read account"]
  node_node_products["Read products<br/>[get-products.js]"]
  node_node_place["Place order<br/>[place-new-order.js]"]
  node_node_details["Order details"]
  node_node_feedback["Feedback receiver"]
end

subgraph group_external["External services"]
  node_fusion{{"Fusion Pro API"}}
end

node_merchant(("Integrating application"))

node_merchant -->|"runs example"| node_php_account
node_merchant -->|"runs example"| node_php_products
node_merchant -->|"runs example"| node_php_place
node_merchant -->|"runs example"| node_php_details
node_merchant -->|"runs example"| node_node_account
node_merchant -->|"runs example"| node_node_products
node_merchant -->|"runs example"| node_node_place
node_merchant -->|"runs example"| node_node_details
node_php_account -->|"reads account"| node_fusion
node_php_products -->|"reads products"| node_fusion
node_php_place -->|"creates orders"| node_fusion
node_php_details -->|"reads orders"| node_fusion
node_node_account -->|"reads account"| node_fusion
node_node_products -->|"reads products"| node_fusion
node_node_place -->|"creates orders"| node_fusion
node_node_details -->|"reads orders"| node_fusion
node_fusion -->|"sends feedback"| node_php_feedback
node_fusion -->|"sends feedback"| node_node_feedback

click node_php_account "https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-account-info.php"
click node_php_products "https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-products.php"
click node_php_place "https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/place-new-order.php"
click node_php_details "https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-order-details.php"
click node_php_feedback "https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/receive-order-feedback.php"
click node_node_account "https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/get-account-info.js"
click node_node_products "https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/get-products.js"
click node_node_place "https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/place-new-order.js"
click node_node_details "https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/get-order-details.js"
click node_node_feedback "https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/receive-order-feedback.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_php_account,node_php_products,node_php_place,node_php_details,node_php_feedback toneBlue
class node_node_account,node_node_products,node_node_place,node_node_details,node_node_feedback toneAmber
class node_fusion toneMint
class node_merchant toneIndigo
```

## Components

### PHP examples

- [Read account](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-account-info.php): `examples/php/examples/get-account-info.php`
- [Read products](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-products.php): `examples/php/examples/get-products.php`
- [Place order](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/place-new-order.php): `examples/php/examples/place-new-order.php`
- [Order details](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/get-order-details.php): `examples/php/examples/get-order-details.php`
- [Feedback receiver](https://github.com/dhru-com/reseller-api/blob/main/examples/php/examples/receive-order-feedback.php): `examples/php/examples/receive-order-feedback.php`

### Node.js examples

- [Read account](https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/get-account-info.js): `examples/nodejs/examples/get-account-info.js`
- [Read products](https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/get-products.js): `examples/nodejs/examples/get-products.js`
- [Place order](https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/place-new-order.js): `examples/nodejs/examples/place-new-order.js`
- [Order details](https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/get-order-details.js): `examples/nodejs/examples/get-order-details.js`
- [Feedback receiver](https://github.com/dhru-com/reseller-api/blob/main/examples/nodejs/examples/receive-order-feedback.js): `examples/nodejs/examples/receive-order-feedback.js`

### External services

- **Fusion Pro API**

### Other components

- **Integrating application**

## Connections

- Integrating application → Read account: runs example (evidence: `README.md`)
- Integrating application → Read products: runs example (evidence: `README.md`)
- Integrating application → Place order: runs example (evidence: `README.md`)
- Integrating application → Order details: runs example (evidence: `README.md`)
- Integrating application → Read account: runs example (evidence: `README.md`)
- Integrating application → Read products: runs example (evidence: `README.md`)
- Integrating application → Place order: runs example (evidence: `README.md`)
- Integrating application → Order details: runs example (evidence: `README.md`)
- Read account → Fusion Pro API: reads account (evidence: `README.md`)
- Read products → Fusion Pro API: reads products (evidence: `README.md`)
- Place order → Fusion Pro API: creates orders (evidence: `README.md`)
- Order details → Fusion Pro API: reads orders (evidence: `README.md`)
- Read account → Fusion Pro API: reads account (evidence: `README.md`)
- Read products → Fusion Pro API: reads products (evidence: `README.md`)
- Place order → Fusion Pro API: creates orders (evidence: `README.md`)
- Order details → Fusion Pro API: reads orders (evidence: `README.md`)
- Fusion Pro API → Feedback receiver: sends feedback (evidence: `README.md`)
- Fusion Pro API → Feedback receiver: sends feedback (evidence: `README.md`)
