Skip to content

A Node.js client library for integrating with the DIA ERP Web Services (v3). Provides convenient methods to login/logout, manage salons, and perform full reservation CRUD operations (create, update, list, delete) via DIA’s REST/JSON API. DIA Yazilim

License

Notifications You must be signed in to change notification settings

EmreMutlu99/dia-node-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dia-node-client

A Node.js client library for integrating with the DIA ERP Web Services (v3) from Dia Yazilim AS.. Provides convenient methods to login/logout, manage salons, and perform full reservation CRUD operations (create, update, list, delete) via DIA’s REST/JSON API.

Status

Currently supports login/logout and the Restaurant (RST) module (salons & reservations).

Installation

git clone https://github.com/your-repo/dia-node-client.git
cd dia-node-client
npm install

Usage

Run the example:

node example/example.js

Import into another project

If you cloned the repo into, for example, ~/projects/dia-node-client, you can import it like this:

const DiaClient = require("~/projects/dia-node-client/src/dia-node-client");

Configuration

Create a .env file in the project root with your DIA credentials:

DIA_WS_URL=https://diademo.ws.dia.com.tr/api/v3/
DIA_USERNAME=myuser
DIA_PASSWORD=mypassword
DIA_API_KEY=your-api-key-here
DIA_FIRMA_KODU=1
DIA_DONEM_KODU=1

To Do

The DIA Web Service includes many other modules, identified by their three-letter prefixes. These can be implemented next:

ith_* → Import / Customs

efa_* → e-Invoice / e-Delivery

muh_* → Accounting / Finance

rpr_* → Reporting

tsifm_* → Sales & Promotions

scf_* → Supply Chain / Stock / Purchasing

per_* → Personnel / HR

ure_* → Production / Manufacturing

msj_* → Messaging

miy_* → CRM / Opportunities

bcs_* → Bank & Treasury

dmr_* → Fixed Assets (Demirbaş)

krg_* → Cargo / Logistics

gts_* → Task / Workflow

prj_* → Project Management

dag_* → Distribution / Route Planning

sis_* → System / Core Services

web_* → Web Users / Permissions

shy_* → Service & Maintenance

ote_* → Hotel / Tourism (Reservations, Rooms, Deposits)

dia_* → DIA Membership / Users

Support Development by Donating

If this project helps you, consider supporting it:

Donate

About

A Node.js client library for integrating with the DIA ERP Web Services (v3). Provides convenient methods to login/logout, manage salons, and perform full reservation CRUD operations (create, update, list, delete) via DIA’s REST/JSON API. DIA Yazilim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published