Get order detail
const url = 'https://api.dokanmazad.com/api/v1/orders/cmosor2zy000313ny24hgtfy0';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.dokanmazad.com/api/v1/orders/cmosor2zy000313ny24hgtfy0 \ --header 'X-API-Key: <X-API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Order CUID
Example
cmosor2zy000313ny24hgtfy0Responses
Section titled “Responses”Success
object
object
object
CUID order ID
Human-readable sequential number
Current order status
Valid next statuses the caller may transition to (depends on role)
Order progress 0–100 (-1 for cancelled)
Whether the order can be cancelled from the current status
Whether the order is in a terminal state (no further transitions)
Optimistic-lock version — pass this back when updating status or fields
Customer CUID
Assigned marketer CUID
Tenant CUID
Car snapshot JSON. Also contains customerNotificationsEnabled flag.
object
Total order amount
ISO 4217 currency code
Internal notes
Scheduled inspection date (set when transitioning to InspectionScheduled)
Embedded customer { id, name, email?, mobileNumber? }
object
Embedded marketer { id, name, email?, mobileNumber? }
object
Creation timestamp
Last updated timestamp
Computed financial breakdown — { depositAmount, depositCurrency, remainingAmount, remainingCurrency, totalConfirmed }
object
Most-recent Signed contract snapshot — { id, contractNumber, pdfUrl, signedAt } or null if no signed contract exists
object
Latest linked inspection — { id, status, inspectionDate, pdfReportUrl } or null if none exists
object
Examples
{ "success": true, "data": { "id": "cmosor2zy000313ny24hgtfy0", "orderNumber": 1042, "status": "DepositSubmitted", "allowedStatusTransitions": [ "DepositConfirmed", "Cancelled" ], "progress": 0, "canCancel": true, "isTerminal": false, "version": 1, "customerId": "cmoabcde000001ny11aabbcc0", "marketerId": "cmoabcde000002ny22aabbcc0", "tenantId": "cmoabcde000003ny33aabbcc0", "carDetails": { "makeEn": "BMW", "modelEn": "3 Series", "year": 2023, "price": 25000 }, "totalAmount": 25000, "currency": "USD", "notes": null, "inspectionDate": null, "customer": { "id": "cmoabcde000001ny11aabbcc0", "name": "Ahmed Ali", "email": "ahmed@example.com" }, "marketer": { "id": "cmoabcde000002ny22aabbcc0", "name": "Sales Rep", "email": "sales@example.com" }, "createdAt": "2026-05-01T08:00:00.000Z", "updatedAt": "2026-05-01T08:00:00.000Z", "financialSummary": { "depositAmount": 5000, "depositCurrency": "USD", "remainingAmount": 20000, "remainingCurrency": "USD", "totalConfirmed": 5000 }, "signedContract": { "id": "cmcont00000001ny11aabbcc0", "contractNumber": 201, "pdfUrl": "https://cdn.dokanmazad.com/contracts/contract-201.pdf", "signedAt": "2026-05-03T10:00:00.000Z" }, "inspection": { "id": "clx1insp0001a2b3c4d5e6f", "status": "Completed", "inspectionDate": "2026-05-20T10:00:00.000Z", "pdfReportUrl": "https://cdn.dokanmazad.com/inspections/report-001.pdf" } }}Unauthorized — missing or invalid API key
object
Example
{ "success": false}Forbidden — route not in this key’s allowedRoutes
object
Example
{ "success": false}Rate limit exceeded
object
Example
{ "success": false}Headers
Section titled “Headers”Seconds to wait before retrying
