مرجع الواجهات البرمجية
كل نقاط النهاية في واجهات المخزون وإدارة العملاء والموارد البشرية ونقاط البيع في تيلنزا.
المصادقة
أنشئ مفتاحاً في مساحة عملك واختر صلاحياته، ثم أرسله في ترويسة Authorization. يظهر المفتاح مرة واحدة. الاستجابات بصيغة JSON، والأخطاء بصيغة application/problem+json.
curl https://app.tilenza.com/api/inventory/v1/items \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json"واجهة المخزون
https://app.tilenza.com/api/inventory/v1 · inventory:read · inventory:write · stock:write
POST/adjustmentsPost a stock adjustment: warehouse_id or warehouse_code, reason_code, note, lines of item_id or sku with quantity and unit_coststock:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/batchesLots with their expiry date, filtered by item_id or expiring_beforeinventory:read
item_id (query, string) One itemexpiring_before (query, string) Lots that expire before this daycursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)GET/itemsItems, filtered by sku, barcode, category, q or updated_sinceinventory:read
sku (query, string) Exact item codebarcode (query, string) Exact barcodecategory (query, string) Exact categoryq (query, string) Part of the name, Arabic name or codeupdated_since (query, string) Only items changed at or after this timecursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)POST/itemsCreate an item: sku, name, name_ar, category, unit, unit_price, reorder_level, barcodesinventory:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/items/{id}One item with its barcodesinventory:read
id (path, integer, required) PATCH/items/{id}Change the name, Arabic name, category, unit price or reorder level of an iteminventory:write
id (path, integer, required) JSON request body
GET/movementsStock movements, filtered by item_id, warehouse_id, type, from and toinventory:read
item_id (query, string) One itemwarehouse_id (query, string) One warehousetype (query, string) Movement typefrom (query, string) First dayto (query, string) Last daycursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)GET/openapi.jsonThis API as an OpenAPI 3.1 document
GET/stock-levelsQuantity on hand, reserved and available per item and warehouse, filtered by item_id, sku or warehouse_idinventory:read
item_id (query, string) One itemsku (query, string) One item by its codewarehouse_id (query, string) One warehouseupdated_since (query, string) Only levels changed at or after this timecursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)GET/transfersStock transfers between warehouses, filtered by statusinventory:read
status (query, string) draft, in_transit, received or cancelledcursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)POST/transfersOpen a stock transfer: from and to warehouse by id or code, note, lines of item_id or sku with quantity; ship it at once unless ship is falsestock:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/transfers/{id}One stock transfer with its linesinventory:read
id (path, integer, required) POST/transfers/{id}/receiveReceive an in-transit transfer in full, or lines of line_id with received and a shortfall_reasonstock:write
id (path, integer, required) Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/warehousesWarehousesinventory:read
cursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)واجهة إدارة العملاء
https://app.tilenza.com/api/crm/v1 · crm:read · crm:write
GET/accountsThe customers the token's user may see, filtered by q, email or updated_sincecrm:read
q (query, string) Part of the name, the number or the e-mailemail (query, string) Exact e-mailupdated_since (query, string) Only records changed at or after this timecursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)POST/accountsAdd one of the customers; the duplicate rules of the workspace applycrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
POST/accounts/bulkAdd or change up to 500 rows in the background; a row with an id, a number or a known e-mail is changed, any other is addedcrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/accounts/{id}One of the customerscrm:read
id (path, integer, required) PATCH/accounts/{id}Change one of the customerscrm:write
id (path, integer, required) JSON request body
GET/activitiesActivities, filtered by status, account_id, lead_id or opportunity_idcrm:read
cursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)GET/bulk/{id}The state and the result of a bulk requestcrm:read
id (path, integer, required) GET/leadsThe leads the token's user may see, filtered by q, email or updated_sincecrm:read
q (query, string) Part of the name, the number or the e-mailemail (query, string) Exact e-mailupdated_since (query, string) Only records changed at or after this timecursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)POST/leadsAdd one of the leads; the duplicate rules of the workspace applycrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
POST/leads/bulkAdd or change up to 500 rows in the background; a row with an id, a number or a known e-mail is changed, any other is addedcrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/leads/{id}One of the leadscrm:read
id (path, integer, required) PATCH/leads/{id}Change one of the leadscrm:write
id (path, integer, required) JSON request body
POST/leads/{id}/convertConvert a lead into a customer and a personcrm:write
id (path, integer, required) Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/notesThe notes of one record: account_id, contact_id or lead_idcrm:read
POST/notesAdd a note to a customer, a person or a leadcrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/openapi.jsonThis API as an OpenAPI 3.1 document
GET/opportunitiesDeals, filtered by status, pipeline_id, stage_id, account_id or updated_sincecrm:read
cursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)POST/opportunitiesAdd a deal: name, account_id, amount, currency, pipeline_id, stage_id, expected_close_oncrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/opportunities/{id}One dealcrm:read
id (path, integer, required) GET/peopleThe people the token's user may see, filtered by q, email or updated_sincecrm:read
q (query, string) Part of the name, the number or the e-mailemail (query, string) Exact e-mailupdated_since (query, string) Only records changed at or after this timecursor (query, string) Opaque cursor from meta.next or meta.previousper_page (query, string) Rows per page (default 20, at most 100)$top (query, string) Alias of per_page, for OData-style clientssort (query, string) Sort column (see the endpoint); ties break on iddir (query, string) asc or desc (default desc)POST/peopleAdd one of the people; the duplicate rules of the workspace applycrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
POST/people/bulkAdd or change up to 500 rows in the background; a row with an id, a number or a known e-mail is changed, any other is addedcrm:write
Idempotency-Key (header, string) Replays the stored response for 24 hours; a different payload with the same key is refused with 409.JSON request body
GET/people/{id}One of the peoplecrm:read
id (path, integer, required) PATCH/people/{id}Change one of the peoplecrm:write
id (path, integer, required) JSON request body
GET/pipelinesPipelinescrm:read
GET/searchCustomers, people and leads that match qcrm:read
q (query, string) What to look forGET/stagesStages, filtered by pipeline_idcrm:read
GET/tagsTagscrm:read
واجهة الموارد البشرية
https://app.tilenza.com/api/hr/v1 · hr:read · hr:write
GET/employeesEmployeeshr:read
GET/employees/{id}One employeehr:read
GET/departmentsDepartmentshr:read
GET/positionsPositionshr:read
GET/attendanceAttendance recordshr:read
GET/leavesLeave requestshr:read
GET/pay-runsPay runshr:read
POST/punchesRecord a check-in or check-out from a devicehr:write
JSON request body
POST/leavesRequest leave for an employeehr:write
JSON request body
واجهة نقاط البيع للقراءة فقط، مع إشعارات آلية.
https://app.tilenza.com/api/pos/v1 · pos_sales:read · pos_shifts:read · pos_customers:read · pos_catalogue:read
GET/salesSalespos_sales:read
GET/sales/{id}One salepos_sales:read
GET/refundsRefunds and returnspos_sales:read
GET/shiftsTill shiftspos_shifts:read
GET/shifts/{id}One shiftpos_shifts:read
GET/customersPoint of sale customerspos_customers:read
GET/customers/{id}One customerpos_customers:read
GET/catalogueProducts and prices on the tillspos_catalogue:read
GET/registersRegisters (tills)pos_catalogue:read
GET/branchesBranchespos_catalogue:read
تنشر واجهتا المخزون وإدارة العملاء وصف OpenAPI على /openapi.json.