Daftra API
All Endpoints
Daftra Partners
All Endpoints
Daftra Partners
  1. Unit Templates
  • Welcome
  • Getting Started
  • Authorization
  • Validation Errors
  • API v1 Endpoints
    • Auth
      • Generate Access Token
    • Invoices
      • GET All Invoices
      • GET Single Invoice
      • Edit Invoices
      • Delete Invoices
      • Add New Invoice
    • Estimates
      • GET All Estimates
      • GET Single Estimate
      • Edit Estimates
      • Delete Estimates
      • Add New Estimate
    • Credit Notes
      • GET All Credit Notes
      • GET Single Credit Note
      • Edit Credit Notes
      • Delete Credit Notes
      • Add New Credit Note
    • Refund Receipts
      • GET All Refund Receipts
      • GET Single Refund Receipt
      • Edit Refund Receipts
      • Delete Refund Receipts
      • Add New Refund Receipt
    • Clients
      • GET All Clients
      • GET Single Client
      • Edit Clients
      • Delete Clients
      • Add New Client
    • Suppliers
      • GET All Suppliers
      • GET Single Supplier
      • Edit Suppliers
      • Delete Suppliers
      • Add New Supplier
    • Work Orders
      • GET Single Work Order
      • Edit Work Orders
      • Delete Work Orders
      • GET All Work Orders
      • Add New Work Order
    • Client Appointments
      • GET All Client Appointments
      • GET Single Client Appointment
      • Edit Client Appointments
      • Delete Client Appointments
      • Add New Client Appointment
    • Invoice Appointments
      • GET All Invoice Appointments
      • GET Single Invoice Appointment
      • Edit Invoice Appointments
      • Delete Invoice Appointments
      • Add New Invoice Appointment
    • Estimate Appointments
      • GET All Estimate Appointments
      • GET Single Estimate Appointment
      • Edit Estimate Appointments
      • Delete Estimate Appointments
      • Add New Estimate Appointment
    • Work Order Appointments
      • GET All Work Order Appointments
      • GET Single Work Order Appointment
      • Edit Work Order Appointments
      • Delete Work Order Appointments
      • Add New Work Order Appointment
    • Notes
      • GET All Notes
      • GET Single Note
      • Edit Notes
      • Delete Notes
      • Add New Note
    • Time Tracking
      • GET All Time Tracking
      • GET Single Time Tracking
      • Edit Time Tracking
      • Delete Time Tracking
      • Add New Time Tracking
    • Invoice Payments
      • GET All Invoice Payments
      • GET Single Invoice Payment
      • Edit Invoice Payments
      • Delete Invoice Payments
      • Add New Invoice Payment
    • Client Payments
      • GET All Client Payments
      • GET Single Client Payment
      • Edit Client Payments
      • Delete Client Payments
      • Add New Client Payment
    • Products
      • GET All Products
      • GET Single Product
      • Edit Products
      • Delete Products
      • Add New Product
    • Journals
      • GET All Journals
      • GET Single Journal
      • Edit Journals
      • Delete Journals
      • Add New Journal
    • Journal Accounts
      • GET All Journal Accounts
      • GET Single Journal Account
      • Edit Journal Accounts
      • Delete Journal Accounts
      • Add New Journal Account
    • Journal Cats
      • GET All Journal Cats
      • GET Single Journal Cat
      • Edit Journal Cats
      • Delete Journal Cats
      • Add New Journal Cat
    • Expenses
      • GET All Expenses
      • GET Single Expens
      • Edit Expenses
      • Delete Expenses
      • Add New Expens
    • Incomes
      • GET All Incomes
      • GET Single Income
      • Edit Incomes
      • Delete Incomes
      • Add New Income
    • Taxes
      • GET All Taxes
      • GET Single Taxe
      • Edit Taxes
      • Delete Taxes
      • Add New Taxe
    • Purchase Invoices
      • GET All Purchase Invoices
      • GET Single Purchase Invoice
      • Edit Purchase Invoices
      • Delete Purchase Invoices
      • Add New Purchase Invoice
    • Purchase Refunds
      • GET All Purchase Refunds
      • GET Single Purchase Refund
      • Edit Purchase Refunds
      • Delete Purchase Refunds
      • Add New Purchase Refund
    • Stock Transactions
      • GET All Stock Transactions
      • GET Single Stock Transaction
      • Edit Stock Transactions
      • Delete Stock Transactions
      • Add New Stock Transaction
    • Stores
      • GET All Stores
      • GET Single Store
      • Edit Stores
      • Delete Stores
      • Add New Store
    • Treasuries
      • GET All Treasuries
      • GET Single Treasury
      • Edit Treasuries
      • Delete Treasuries
      • Add New Treasury
    • 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
      • Edit Requisitions
      • Delete Requisitions
      • Add New Requisition
    • Booking
      • Add new Booking
      • Change Booking Status
      • Convert booking to Invoice
      • Get All Bookings
      • Get Single Booking
      • Delete booking
    • Advance Payment Invoices
      • GET All Advance payment
      • GET Single Advance payment
      • Add Advance Payment
  • API v2 Endpoints
    • What's new
    • Filtering
    • Using API v2
      • Endpoints Structure
      • Data Fetching — Filtered
    • Leave Application
      • Get All Leave Applications
      • Get Single Leave Applications
      • Edit Leave Application
      • Add Leave Application
    • Purchase Debit Note
      • Purchase Debit Note
      • Purchase Debit Note
    • Branches
      • Get All Branches
    • Product Bundles
      • Add Product bundle
    • Follow Up Statuses
      • GET All Follow Up Statuses
      • GET Single Follow Up Status
      • Delete Follow Up Status
    • Follow Up Actions
      • GET All Follow Up Actions
      • GET Single Follow Up Action
      • Delete Follow Up Action
    • Attendance Logs
      • Get All Attendance Logs
      • Get Single Attendance Log
      • Add Attendance Log
    • Cost Centers
      • GET All Cost Centers
      • GET Single Cost Center
      • Edit Cost Center
      • Add New 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
    • Brand
      • Get All Brands
      • Get Single Brand
      • Add New Brand
      • Update brand
    • Unit Templates
      • Get All Unit Templates
        GET
      • Get Single Unit Template
        GET
      • Add unit template
        POST
      • Update unit template
        PUT
    • Site
      • GET Site Info
  1. Unit Templates

Get All Unit Templates

Production
https://{{subdomain}}.daftra.com/v2/api/entity
Production
https://{{subdomain}}.daftra.com/v2/api/entity
GET
https://{{subdomain}}.daftra.com/v2/api/entity
/unit_template/list/{{format}}

Request

Header Params

Responses

🟢200Success
application/json
Bodyapplication/json

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff 'https://.daftra.com/v2/api/entity/unit_template/list/{{format}}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example 1
{
    "current_page": 1,
    "data": [
        {
            "id": 3,
            "template_name": "api template edited",
            "active": 1,
            "main_unit_name": "جرام",
            "unit_small_name": "جم",
            "created": null,
            "modified": null,
            "branch_id": 1,
            "staff_id": 1,
            "branch": {
                "id": 1,
                "name": "Main Branch",
                "status": 1,
                "created": "2025-05-20 06:42:26",
                "modified": "2025-05-20 06:42:26"
            },
            "staff": {
                "id": 1,
                "added_by": 1,
                "role_id": -1,
                "name": "Marwan",
                "middle_name": "",
                "last_name": "",
                "photo": null,
                "can_access_system": 1,
                "home_phone": "",
                "business_Phone": null,
                "mobile": "",
                "fax": null,
                "country_code": "EG",
                "address1": "",
                "address2": "",
                "city": "",
                "state": "",
                "postal_code": "4345678",
                "note": null,
                "email_address": "",
                "last_login": "2026-05-19 02:00:08",
                "active": 1,
                "created": "2025-05-19 12:58:18",
                "hourly_rate": null,
                "hourly_rate_currency_code": null,
                "default_store_id": 1,
                "default_treasury_id": 1,
                "maximum_general_discount": 10,
                "language_code": 7,
                "branch_id": 1,
                "full_name": "Marwan",
                "attendance_restriction_id": null,
                "type": "user",
                "default_account_id": null,
                "citizenship_status": "citizen",
                "residence_expiry_date": null,
                "nationality": null,
                "code": "000001",
                "official_id": null,
                "staff_info": {
                    "staff_id": 1,
                    "department_id": null,
                    "employment_level_id": null,
                    "employment_type_id": null,
                    "designation_id": null,
                    "birth_date": null,
                    "gender": null,
                    "personal_email": null,
                    "permanent_address1": null,
                    "permanent_address2": null,
                    "permanent_city": null,
                    "permanent_state": null,
                    "permanent_postal_code": null,
                    "created": "2025-05-26 09:05:20",
                    "modified": "2025-05-28 15:44:19",
                    "attendance_shift_id": null,
                    "leave_policy_id": null,
                    "has_secondary_shift": 0,
                    "secondary_shift_id": null,
                    "direct_manager_id": null
                },
                "staff_job": {
                    "staff_id": 1,
                    "join_date": null,
                    "probation_end_date": null,
                    "contract_duration": 0,
                    "contract_duration_period": null,
                    "exit_date": null,
                    "exit_reason": null,
                    "fiscal_type": null,
                    "fiscal_day": "1",
                    "fiscal_month": "1",
                    "created": "2025-05-26 09:05:20",
                    "modified": "2025-05-28 15:44:19"
                },
                "staff_custom_data": {
                    "id": null,
                    "allow_printing": null,
                    "reference_id": null,
                    "time": null
                }
            },
            "unit_templates_unit_factors": []
        }
    ],
    "first_page_url": "https:\/\/{{subdomain}}.daftra.com\/v2\/api\/entity\/unit_template\/list\/1?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https:\/\/{{subdomain}}.daftra.com\/v2\/api\/entity\/unit_template\/list\/1?page=1",
    "links": [
        {
            "url": null,
            "label": "pagination.previous",
            "page": null,
            "active": false
        },
        {
            "url": "https:\/\/{{subdomain}}.daftra.com\/v2\/api\/entity\/unit_template\/list\/1?page=1",
            "label": "1",
            "page": 1,
            "active": true
        },
        {
            "url": null,
            "label": "pagination.next",
            "page": null,
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https:\/\/{{subdomain}}.daftra.com\/v2\/api\/entity\/unit_template\/list\/1",
    "per_page": 20,
    "prev_page_url": null,
    "to": 3,
    "total": 3
}
Previous
Update brand
Next
Get Single Unit Template