Edara API
  1. Purchase
Edara API
  • Edara API Walk Through
  • Edara Webhooks
  • Accounting
    • Returns a list of Taxs
      GET
    • Returns a list of Accounts
      GET
    • Returns a list of NP Report
      GET
    • Returns a list of NR Report
      GET
    • Return a Tax by ID
      GET
    • Returns a list of Cost Centers
      GET
    • Returns an Account by Id
      GET
    • Return a Currency by ID
      GET
    • Delete an existing Currency
      DELETE
    • Return a Tax by Name
      GET
    • Return a Taxes by Rate
      GET
    • Return a Taxes by Scope
      GET
    • Returns an Cost Center by Id
      GET
    • Return a E-Invoice tax codes by country
      GET
    • Returns a list of Accounts by Account Type
      GET
    • Return a Currency by Code
      GET
    • Returns a list of Account Nodes
      GET
    • Returns a list of Currencies
      GET
    • Update an existing Currency
      PUT
    • Create a new Currency
      POST
    • Return account by description
      GET
    • Return a Journal Entry by Code
      GET
    • Returns an Account
      GET
    • Returns an Account
      GET
    • Returns an Account by ClassificationCode
      GET
    • Returns an Account
      GET
    • Returns Account Balance
      GET
    • UpdateTax
      PUT
    • Create a new Tax
      POST
    • Update an existing Currency
      PUT
    • Update a Journal Entry By Code
      PUT
    • Return a Journal Entry by Code
      POST
    • Create a Cash Out
      POST
    • Create a Journal Entry
      POST
    • Pay Sales Order By Journal Entry
      POST
    • Create a Taxable Sales Invoice
      POST
    • Delete an existing Tax
      DELETE
    • Delete an existing Currency
      DELETE
    • Delete a Journal Entry by Code
      DELETE
  • Common
    • Returns a list of Cities
    • Update an existing City
    • Create a new City
    • Returns a list of Countries
    • Update an existing Country
    • Create a new Country
    • Returns a list of Districts
    • Update an existing District
    • Create a new District
    • Return a City by ID
    • Delete an existing City
    • Return a Country by ID
    • Delete an existing Country
    • Return a District by ID
    • Delete an existing District
    • Find a City by Name
    • Returns a list of Districts by City Id
    • Returns a list of Cities by Country Id
    • Find a Country by Name
    • Find a District by Name
    • Return a Classification by ID
    • Return a Setting by Module and Key
    • Find a Classification by Name
    • Returns a list of Setting
    • Convert money from numeric value to Arabic words
    • Convert money from numeric value to English words
    • Ping
    • Notifications
  • Purchase
    • find supplier by Id
      GET
    • Delete supplier
      DELETE
    • Return a PurchaseOrder by ID
      GET
    • find supplier by name
      GET
    • Returns a list of Suppliers
      GET
    • update supplier
      PUT
    • create supplier
      POST
    • Returns a list of PurchaseOrder
      GET
    • Return a PurchaseOrder by Code
      GET
  • Sales
    • Return a Customer by ID
    • Delete an existing Customer
    • Return a Bundle by ID
    • Delete an existing Bundle
    • Returns a list of Sales Order Print Templates
    • Return a SalesOrder by ID
    • Delete an existing SalesOrder
    • Return a SalesPerson by ID
    • Delete an existing SalesPerson
    • Return a ServiceItem by ID
    • Delete an existing ServiceItem
    • Return a Customer Addresses by Customer ID
    • Return a Customer by Code
    • Return a Customer by Name
    • Return a Customer by Email
    • Find a Customer
    • Return a Customer by ExternalId
    • Return a Customer by Mobile
    • Returns a list of Customers
    • Update an existing Customer
    • Create a new Customer
    • Return a SalesOrder by Code
    • Return a Sales Order Print Template by ID
    • GetCustomerBalance
    • Return a SalesPerson by Code
    • Return a SalesPerson by Name
    • Return a ServiceItem by Code
    • Return a ServiceItem by Name
    • Return a SalesPerson by ExternalId
    • Returns a list of SalesPersons
    • Update an existing SalesPerson
    • Create a new SalesPerson
    • Return a ServiceItem by ExternalId
    • Returns a list of ServiceItems
    • Update an existing ServiceItem
    • Create a new ServiceItem
    • Return Customers by ExternalIds
    • Returns a list of SalesOrder
    • Update an existing SalesOrder
    • Create a new SalesOrder
    • Returns a list of SalesStores
    • Create a new SalesStore
    • Returns a list of Bundles
    • Create a new Bundle
    • Return a list of sales documents by specific criteria
    • Update existing Customers
    • Update the Header an existing SalesOrder
    • Update existing Customers
    • Update existing Customers
    • Deactivate an existing Customer
    • Update an existing Customer
    • Cancel SalesOrder
    • Cancel SalesOrder
    • Update an existing SalesOrder
    • UnIssue SalesOrder
    • Deactivate an existing Customer
    • Update an existing SalesPerson
    • Update an existing ServiceItem
    • Update SalesOrder Status
    • Create a new SalesReturn
    • Create sales order and related IO/SI and return created SO code
    • Create cash-in for specified SO and update it with discount value and return created cash-in code
    • Create new Customers
    • Returns a list of SalesOrder Header
    • Delete an existing Customer
    • Delete an existing SalesPerson
    • Delete an existing ServiceItem
  • Warehouse
    • Return a Brand by ID
    • Returns a list of standard units of measure
    • Returns a list of StockItems Tree by User ID
    • Return a StockItem by ID
    • Deactivate an existing StockItem
    • Delete an existing StockItem
    • Return a Warehouse by ID
    • Delete an existing warehouse
    • Return a WorkOrder by ID
    • Return a StockItem by SKU
    • Returns a list of StockItem Classifications
    • Create a new stockitem classification
    • Return StockItems by IDs
    • Return a StockItem balance by ID
    • Return a Warehouse balance by Warehouse ID
    • Return a Brand by Name
    • Returns a list of Warehouse Tree by User ID
    • GetStockItemGlobalBalanceBySKU
    • Returns a list of Brands
    • Create a new Brand
    • Return StockItems by Codes
    • Return a StockItem by Code
    • GetStockItemGlobalBalanceByCode
    • Return a Warehouse by Code
    • Return a Warehouse by Name
    • Return a WorkOrder by Code
    • Return stock item global balance object by id
    • Return a StockItem by Code or SKU
    • Returns a list of StockItems
    • Update an existing StockItem
    • Create a new StockItem
    • Returns a list of Warehouses
    • Update an existing Warehouse
    • Create a new Warehouse
    • Returns a list of DynamicProperty Tree by User ID
    • Get stock item cost (by id) on specific date
    • Search for StockItems
    • Returns a list of RMA Warehouses
    • Get bulk stock items cost (by SKUs) on specific date
    • Return a StockItem balance for a specific Warehouse
    • Return a StockItem by Part Number
    • Return a StockItem by Code
    • Return StockItems by External IDs
    • Return StockItems by Part Numbers
    • Get bulk stock items cost (by part numbers) on specific date
    • Validate Item Serial is Returned
    • Validate Item Serial for Returns
    • Return a all StockItems balances
    • Get stockitems balance by warehous
    • Update existing StockItems
    • Update existing StockItems
    • Update Stock Item External Id
    • Update existing StockItems
    • Update Supplies Request
    • Update an existing StockItem
    • Update an existing Warehouse
    • Deactivate an existing StockItem
    • Update an existing issue offering
    • Update an existing receive supplies
    • Create a new Unit Of Measure
    • Create StockItems
    • Create a new issue offering
    • Create a new receive supplies
    • Delete an existing StockItem
    • Delete an existing warehouse
    • Delete an issue offering by code
    • Delete an issue offering by code
  1. Purchase

Returns a list of PurchaseOrder

GET
/v{version}/purchaseOrders
Purchase
Returns a list of PurchaseOrder...

Request

Path Params
version
string 
required
The requested API version
Default:
2.0
Query Params
offset
integer <int32>
required
The number of items to skip before starting to collect the result
limit
integer <int32>
required
The numbers of items to return.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v/purchaseOrders?offset&limit'

Responses

🟢200OK
application/json
OK
Body
status_code
integer <int32>
optional
Gets or sets the status_code.
error_message
string 
optional
Gets or sets the error_message.
result
array[object (PurchaseOrderViewModel) {35}] 
optional
Gets or sets the result.
order_status
string 
optional
Gets or Sets OrderStatus
id
integer <int32>
optional
Gets or Sets Id
document_code
string 
optional
Gets DocumentCode
paper_number
string 
optional
Gets or Sets PaperNumber
run_sheet_id
string 
optional
/// Gets or Sets RunSheetId
supplier_id
integer <int32>
required
Gets or Sets SupplierId
purchasePerson_id
integer <int32>
optional
Gets or Sets PurchasePersonId
warehouse_id
integer <int32>
required
Gets or Sets WarehouseId
shippment_cost
number <double>
optional
Gets or Sets ShippmentCost
document_date
string <date-time>
required
Gets or Sets DocumentDate
shipping_date
string <date-time>
optional
Gets or Sets ShippingDate
gross_total
number <double>
optional
Gets or Sets GrossTotal
sub_total
number <double>
optional
Gets or Sets SubTotal
net_total
number <double>
optional
Gets or Sets NetTotal
total_item_discounts
number <double>
optional
Gets or Sets TotalItemsDiscounts
discount
number <double>
optional
Gets or Sets Discount
discount_rate
number <double>
optional
Gets or Sets Discount rate
taxable
boolean 
optional
Gets or Sets Taxable
tax
number <double>
optional
Gets or Sets Tax
cash_amount
number <double>
optional
Gets or Sets CashAmount
currency_id
integer <int32>
optional
Gets or Sets CurrencyId
exchange_rate
number <double>
optional
Gets or Sets ExchangeRate
channel
string 
optional
Gets or Sets Channel
notes
string 
optional
Gets or Sets Notes
external_id
string 
optional
Gets or Sets External ID
related_workorder_code
string 
optional
Gets or Sets RelatedWorkOrderCode
related_workorder_value
number <double>
optional
Gets or Sets RelatedWorkOrderValue
related_purchasereturn_codes
array[string]
optional
Gets or Sets PurchaseOrderDetails
related_purchaseorder_codes
array[string]
optional
Gets or Sets PurchaseOrderDetails
purchaseOrder_details
array[object (PurchaseOrderItemViewModel) {19}] 
required
Gets or Sets PurchaseOrderDetails
purchaseOrder_installments
array[object (PurchaseOrderInstallmentViewModel) {5}] 
optional
Gets or Sets PurchaseOrderInstallments
insert_user_id
integer <int32>
optional
Gets or Sets InsertUserID
insert_date
string <date-time>
optional
Gets or Sets InsertDate
update_user_id
integer <int32>
optional
Gets or Sets UpdateUserID
update_date
string <date-time>
optional
Gets or Sets UpdateDate
total_count
integer <int32>
optional
Example
{
  "status_code": 0,
  "error_message": "string",
  "result": [
    {
      "order_status": "string",
      "id": 0,
      "document_code": "string",
      "paper_number": "string",
      "run_sheet_id": "string",
      "supplier_id": 0,
      "purchasePerson_id": 0,
      "warehouse_id": 0,
      "shippment_cost": 0,
      "document_date": "2019-08-24T14:15:22Z",
      "shipping_date": "2019-08-24T14:15:22Z",
      "gross_total": 0,
      "sub_total": 0,
      "net_total": 0,
      "total_item_discounts": 0,
      "discount": 0,
      "discount_rate": 0,
      "taxable": true,
      "tax": 0,
      "cash_amount": 0,
      "currency_id": 0,
      "exchange_rate": 0,
      "channel": "string",
      "notes": "string",
      "external_id": "string",
      "related_workorder_code": "string",
      "related_workorder_value": 0,
      "related_purchasereturn_codes": [
        "string"
      ],
      "related_purchaseorder_codes": [
        "string"
      ],
      "purchaseOrder_details": [
        {
          "id": 0,
          "document_id": 0,
          "quantity": 0,
          "Issuedquantity": 0,
          "unit_price": 0,
          "price": 0,
          "tax_id": 0,
          "item_discount": 0,
          "item_discount_type": 0,
          "service_item_id": 0,
          "stock_item_id": 0,
          "stock_item_code": "string",
          "stock_item_description": "string",
          "comments": "string",
          "returned_quantity": 0,
          "insert_user_id": 0,
          "insert_date": "2019-08-24T14:15:22Z",
          "update_user_id": 0,
          "update_date": "2019-08-24T14:15:22Z"
        }
      ],
      "purchaseOrder_installments": [
        {
          "id": 0,
          "document_id": 0,
          "days_limit": 0,
          "amount": 0,
          "due_date": "2019-08-24T14:15:22Z"
        }
      ],
      "insert_user_id": 0,
      "insert_date": "2019-08-24T14:15:22Z",
      "update_user_id": 0,
      "update_date": "2019-08-24T14:15:22Z"
    }
  ],
  "total_count": 0
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Previous
create supplier
Next
Return a PurchaseOrder by Code
Built with