Daftra API
DocsAll EndpointsDaftra Partners
DocsAll EndpointsDaftra Partners
  1. Purchase Debit Note
  • Auth
    • Generate Access Token
      POST
  • Invoices
    • GET All Invoices
      GET
    • GET Single Invoice
      GET
    • Edit Invoices
      PUT
    • Delete Invoices
      DELETE
    • Add New Invoice
      POST
  • Estimates
    • GET All Estimates
      GET
    • GET Single Estimate
      GET
    • Edit Estimates
      PUT
    • Delete Estimates
      DELETE
    • Add New Estimate
      POST
  • Credit Notes
    • GET All Credit Notes
      GET
    • GET Single Credit Note
      GET
    • Edit Credit Notes
      PUT
    • Delete Credit Notes
      DELETE
    • Add New Credit Note
      POST
  • Refund Receipts
    • GET All Refund Receipts
      GET
    • GET Single Refund Receipt
      GET
    • Edit Refund Receipts
      PUT
    • Delete Refund Receipts
      DELETE
    • Add New Refund Receipt
      POST
  • Clients
    • GET All Clients
      GET
    • GET Single Client
      GET
    • Edit Clients
      PUT
    • Delete Clients
      DELETE
    • Add New Client
      POST
  • 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 All Staff
    • GET Single Staff
  • Client-attendance-log
    • Add New Client-attendance-log
  • Follow Up Actions
    • GET All Follow Up Actions
    • GET Single Follow Up Action
    • Delete Follow Up Action
  • Follow Up Statuses
    • GET All Follow Up Statuses
    • GET Single Follow Up Status
    • Delete Follow Up Status
  • General Listing
    • GET General Listing
  • Site
    • GET Site Info
  • Requsitions
    • GET All Requisitions
    • GET single Requisition
    • Edit Requisitions
    • Delete Requisitions
    • Add New Requisition
  • Purchase Debit Note
    • Purchase Debit Note
      GET
    • Purchase Debit Note
      POST
  • Product Bundles
    • Add Product bundle
  1. Purchase Debit Note

Purchase Debit Note

Developing
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
POST
https://{{subdomain}}.daftra.com/api2
/purchase_debit_note
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://.daftra.com/api2/purchase_debit_note' \
--header 'apikey: 2fd74d2014d6a3ffbc2b91c99693536565e94435' \
--header 'apikey;' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "invoice_layout_id": 8,
    "type": "14",
    "supplier_id": 1,
    "currency_code": "EGP",
    "language_id": 7,
    "supplier_supplier_number": "000001",
    "supplier_business_name": "مورد",
    "supplier_first_name": "مورد",
    "supplier_last_name": "جديد",
    "supplier_address1": "22بب2",
    "supplier_address2": "3ي2",
    "supplier_city": "القرية",
    "supplier_state": "الذكية",
    "supplier_postal_code": "9999999",
    "supplier_phone1": "64646464646",
    "supplier_phone2": "6595959595",
    "supplier_country_code": "EG",
    "supplier_bn1_label": "سجل تجاري",
    "supplier_bn2_label": "بطاقة ضريبية",
    "supplier_default_currency_code": "EGP",
    "date": "23/03/2025",
    "work_order_id": 34,
    "store_id": 2,
    "show_item_stores": "0",
    "shipping_tax_id": null,
    "shipping_amount": null,
    "discount": null,
    "discount_amount": null,
    "adjustment_label": "",
    "adjustment_value": "",
    "html_notes": null,
    "draft": "1",
       "purchase_debit_notes_items": [
        {
 
            "product_id": 2,
            "item": "منتج 1",
            "description": "",
            "col_3": "",
            "col_4": "",
            "col_5": "",
            "unit_price": 100,
            "quantity": 1,
            "discount": 0,
            "discount_type": 1,
            "tax1": null,
            "tax2": null
    }
    ],
    "summary_total": {
        "currency": "EGP"
    },
    "PurchaseOrderCustomField": {
        "0": {
            "label": "الإجمالي",
            "value": "%total%"
        },
        "1": {
            "label": "القيمة المضافة",
            "value": "10"
        },
        "2": {
            "label": "الأجمالى",
            "value": "5"
        },
        "3": {
            "label": "المدفوع",
            "value": "8"
        },
        "4": {
            "label": "الرصيد المستحق",
            "value": "9"
        },
        "5": {
            "label": "PO NO",
            "value": null
        }
    }

}'
Response Response Example
{
    "message": "string",
    "id": 0
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Previous
Purchase Debit Note
Next
Add Product bundle