Daftra API
All Endpoints
Daftra Partners
All Endpoints
Daftra Partners
  1. All Endpoints
  • Welcome
  • Getting Started
  • Validation Errors
  • Authorization
    • How To Authorize
    • Generate Access Token
      POST
  • Endpoints v1
    • Site
      • GET Site Info
    • Invoices
      • GET All Invoices
      • GET Single Invoice
      • Add New Invoice
      • Bulk Add Invoices
      • Edit Invoices
      • Delete Invoices
    • Estimates
      • GET All Estimates
      • GET Single Estimate
      • Add New Estimate
      • Edit Estimates
      • Delete Estimates
    • Credit Notes
      • GET All Credit Notes
      • GET Single Credit Note
      • Add New Credit Note
      • Edit Credit Notes
      • Delete Credit Notes
    • Refund Receipts
      • GET All Refund Receipts
      • GET Single Refund Receipt
      • Add New Refund Receipt
      • Edit Refund Receipts
      • Delete Refund Receipts
    • Clients
      • GET All Clients
      • GET Single Client
      • Add New Client
      • Edit Clients
      • Delete Clients
    • Suppliers
      • GET All Suppliers
      • GET Single Supplier
      • Add New Supplier
      • Edit Suppliers
      • Delete Suppliers
    • Work Orders
      • GET All Work Orders
      • GET Single Work Order
      • Add New Work Order
      • Edit Work Orders
      • Delete Work Orders
    • Client Appointments
      • GET All Client Appointments
      • GET Single Client Appointment
      • Add New Client Appointment
      • Edit Client Appointments
      • Delete Client Appointments
    • Invoice Appointments
      • GET All Invoice Appointments
      • GET Single Invoice Appointment
      • Add New Invoice Appointment
      • Edit Invoice Appointments
      • Delete Invoice Appointments
    • Estimate Appointments
      • GET All Estimate Appointments
      • GET Single Estimate Appointment
      • Add New Estimate Appointment
      • Edit Estimate Appointments
      • Delete Estimate Appointments
    • Work Order Appointments
      • GET All Work Order Appointments
      • GET Single Work Order Appointment
      • Add New Work Order Appointment
      • Edit Work Order Appointments
      • Delete Work Order Appointments
    • Notes
      • GET All Notes
      • GET Single Note
      • Add New Note
      • Edit Notes
      • Delete Notes
    • Time Tracking
      • GET All Time Tracking
      • GET Single Time Tracking
      • Add New Time Tracking
      • Edit Time Tracking
      • Delete Time Tracking
    • Invoice Payments
      • GET All Invoice Payments
      • GET Single Invoice Payment
      • Add New Invoice Payment
      • Edit Invoice Payments
      • Delete Invoice Payments
    • Client Payments
      • GET All Client Payments
      • GET Single Client Payment
      • Add New Client Payment
      • Edit Client Payments
      • Delete Client Payments
    • Products
      • GET All Products
      • GET Single Product
      • Add New Product
      • Edit Products
      • Delete Products
    • Journals
      • GET All Journals
      • GET Single Journal
      • Edit Journals
      • Delete Journals
      • Add New Journal
    • Journal Accounts
      • GET All Journal Accounts
      • GET Single Journal Account
      • Add New Journal Account
      • Edit Journal Accounts
      • Delete Journal Accounts
    • Journal Cats
      • GET All Journal Cats
      • GET Single Journal Cat
      • Add New Journal Cat
      • Edit Journal Cats
      • Delete Journal Cats
    • Expenses
      • GET All Expenses
      • GET Single Expens
      • Add New Expens
      • Edit Expenses
      • Delete Expenses
    • Incomes
      • GET All Incomes
      • GET Single Income
      • Add New Income
      • Edit Incomes
      • Delete Incomes
    • Taxes
      • GET All Taxes
      • GET Single Taxe
      • Add New Taxe
      • Edit Taxes
      • Delete Taxes
    • Purchase Invoices
      • GET All Purchase Invoices
      • GET Single Purchase Invoice
      • Add New Purchase Invoice
      • Edit Purchase Invoices
      • Delete Purchase Invoices
    • Purchase Refunds
      • GET All Purchase Refunds
      • GET Single Purchase Refund
      • Add New Purchase Refund
      • Edit Purchase Refunds
      • Delete Purchase Refunds
    • Stock Transactions
      • GET All Stock Transactions
      • GET Single Stock Transaction
      • Add New Stock Transaction
      • Edit Stock Transactions
      • Delete Stock Transactions
    • Stores
      • GET All Stores
      • GET Single Store
      • Add New Store
      • Edit Stores
      • Delete Stores
    • Treasuries
      • GET All Treasuries
      • GET Single Treasury
      • Add New Treasury
      • Edit Treasuries
      • Delete Treasuries
    • Product Categories
      • GET All Product Categories
      • GET Single Product Category
    • Staff
      • GET Single Staff
      • GET All Staff
    • Client-attendance-log
      • Add New Client-attendance-log
    • General Listing
      • GET General Listing
    • Requsitions
      • GET All Requisitions
      • GET single Requisition
      • Add New Requisition
      • Edit Requisitions
      • Delete Requisitions
    • Booking
      • Get All Bookings
      • Get Single Booking
      • Add new Booking
      • Change Booking Status
      • Convert booking to Invoice
      • Delete booking
    • Advance Payment Invoices
      • GET All Advance payment
      • GET Single Advance payment
      • Add Advance Payment
  • Endpoints v2
    • What's New
      • API Improvements
      • Filtering
      • Using API v2
        • Endpoints Structure
        • Data Fetching — Filtered
    • HR
      • Leave Application
        • Get All Leave Applications
        • Get Single Leave Applications
        • Add Leave Application
        • Edit Leave Application
      • Attendance Logs
        • Get All Attendance Logs
        • Get Single Attendance Log
        • Add Attendance Log
    • Purchase Debit Note
      • Purchase Debit Note
      • Purchase Debit Note
    • Branches
      • Get All Branches
    • Product Bundles
      • Add Product bundle
    • Brands
      • Get All Brands
      • Get Single Brand
      • Add New Brand
      • Edit brand
    • Unit Templates
      • Get All Unit Templates
      • Get Single Unit Template
      • Add Unit Template
      • Edit Unit Template
    • Follow-Up Status
      • Get All Follow-Up Statuses
      • Get Single Follow-Up Status
      • Add New Follow-Up Status
      • Delete Follow-Up Status
    • Follow-Up Actions
      • Get All Follow-Up Actions
      • Get Single Follow-Up Action
      • Delete Follow-Up Action
    • Cost Centers
      • Get All Cost Centers
      • Get Single Cost Center
      • Add New Cost Center
      • Edit Cost Center
    • Payment Gateways
      • Get All Payment Methods
      • Get Single Payment Method
      • Add Payment Method
    • Points & Credits
      • Credit Usage
        • Get All Credit Usage
        • Get Single Credit Usage
        • Add New Credit Usage
        • Add Credit Usage Amount
        • Edit Credit Usage
        • Edit Credit Usage Amount
        • Get All Credit Usage Amount
        • Get Single Credit Usage Amount
      • Credit Types
        • Get All Credit types
        • Get Single Credit type
        • Add New Credit type
        • Edit Credit type
      • Credit Charges
        • Get All Credit Charges
        • Get Single Credit Charge
        • Add New Credit Charge
        • Edit Credit Charge
      • Packages
        • Get All Packages
        • Get Single Package
        • Add New Package
        • Edit Package
      • Packages Credit Types
        • Get All Package Credit Types
        • Get Single Package Credit Type
        • Add Package Credit Type
        • Edit Package Credit Type
    • Workflow
      • Get All Records
      • Get Single Record
      • Add New Record
      • Edit Record
    • Multity entity request
      • Overview
      • Multy Entity Request
  • Developers Portal
    • Introduction & Getting Started
    • Dashboard, Earnings & Withdrawals
    • Creating a New App
    • App Configuration
    • Managing Your App
    • Entities: Modeling Your Data
    • The Entity Builder
    • Buttons & Page Scripts
    • Integrations: Webhooks
    • Invitations, Publishing & Reviews
    • Check App Status
  1. All Endpoints

Welcome

This is the official developer portal for Daftra’s RESTful API — a powerful interface to connect with Daftra’s cloud-based business management platform. Whether you're creating new applications, integrating existing systems, or automating internal workflows, Daftra provides flexible and secure tools to extend your capabilities.
Through this API, you can programmatically interact with essential business modules such as:
Invoicing and Billing
Client Management (CRM)
Inventory and Products
Accounting and Expenses
Human Resources
Reporting and more

Who Should Use This Documentation?#

This documentation is designed for:
Backend developers looking to integrate Daftra into custom systems
Technology partners building SaaS tools or platform extensions
Businesses automating workflows or syncing data across systems (ERP, e-commerce, etc.)

Key Features of the API#

RESTful and JSON-based: Our API is RESTful and JSON-based, using standard HTTP methods (GET, POST, PUT, DELETE) with predictable JSON response structures throughout.
Secure Authentication: Support for API Key and token-based OAuth2 methods
Modular Architecture: Endpoints are grouped logically by modules (Invoices, Clients, Products, etc.)

What You’ll Learn in This Documentation#

Authentication Methods
How to use Daftra API Key or request access tokens for secure connections
Endpoint Reference
A complete list of available API endpoints grouped by module with all required parameters and expected responses
Use Case Examples
Implementation examples with clear request/response formats and practical context
Code Snippets
Reusable code samples available in cURL, Python, Node.js, PHP, and more
Error Codes and Handling
Understand and manage common response codes including authentication, validation, and server-side errors
Performance Best Practices
Optimize API usage through pagination, batch processing, and rate handling techniques

Documentation Structure#

SectionDescription
AuthenticationHow to authenticate using API Key or token-based method
API EndpointsExplore endpoints grouped by modules such as Clients, Invoices, Products
Error HandlingLearn about error formats and how to resolve issues efficiently
Code SamplesReady-to-use examples in multiple programming languages
Rate LimitsUnderstand daily request limits, throttling, and performance guidelines
Next
Getting Started