Skip to content

Order

Defined in: sdks/hepsiburada/src/types/order.ts:77

One order row.

orders.list() rows are order lines (items[] of GET /orders/merchantid/{merchantId}: one row per line item, so an order with two lines appears twice with the same orderNumber). The line fields below mirror that object (spec oms-external.json, confirmed on the prod wire 2026-10). orders.getByOrderNumber() maps the order-detail root onto the same type; it carries orderNumber, orderId, orderDate, createdDate and a nested customer, the line fields stay on raw.items. Every field is optional and only set when the wire value has the documented JSON type.

optional barcode?: string

Defined in: sdks/hepsiburada/src/types/order.ts:107

Product barcode.


optional cargoCompany?: string

Defined in: sdks/hepsiburada/src/types/order.ts:113

Cargo company name.


optional createdDate?: string

Defined in: sdks/hepsiburada/src/types/order.ts:127

ISO 8601 creation date-time. Documented only on the order-detail root (orders.getByOrderNumber()); orders.list() rows carry orderDate instead and leave this unset.


optional customerId?: string

Defined in: sdks/hepsiburada/src/types/order.ts:93

Hepsiburada customer id.


optional customerName?: string | null

Defined in: sdks/hepsiburada/src/types/order.ts:91

Customer display name, surfaced from the raw row’s candidate fields (customerName, customer.name, customer.firstName/lastName, recipientName). null when Hepsiburada omits all of them — so callers stop guessing from raw.


optional dueDate?: string

Defined in: sdks/hepsiburada/src/types/order.ts:99

ISO 8601 date-time by which the line must ship (wire dueDate).


optional externalOrderNumber?: string

Defined in: sdks/hepsiburada/src/types/order.ts:132


optional id?: string

Defined in: sdks/hepsiburada/src/types/order.ts:82

Order line (line item) id — the id the line-item actions take (wire id).


optional lastStatusUpdateDate?: string

Defined in: sdks/hepsiburada/src/types/order.ts:97

ISO 8601 date-time of the line’s last status change (wire lastStatusUpdateDate).


optional merchantSku?: string

Defined in: sdks/hepsiburada/src/types/order.ts:105

Merchant SKU (wire merchantSKU, upper-case SKU).


optional modifiedDate?: string

Defined in: sdks/hepsiburada/src/types/order.ts:138


optional name?: string

Defined in: sdks/hepsiburada/src/types/order.ts:109

Product name of the line.


optional orderDate?: string

Defined in: sdks/hepsiburada/src/types/order.ts:95

ISO 8601 order date-time (wire orderDate).


optional orderId?: string

Defined in: sdks/hepsiburada/src/types/order.ts:80

Hepsiburada order id (wire orderId).


optional orderNumber?: string

Defined in: sdks/hepsiburada/src/types/order.ts:78


optional packageNumber?: string

Defined in: sdks/hepsiburada/src/types/order.ts:101

Package number once the line is packed.


optional quantity?: number

Defined in: sdks/hepsiburada/src/types/order.ts:111

Quantity on the line.


raw: Record<string, unknown>

Defined in: sdks/hepsiburada/src/types/order.ts:147

Untouched raw row.


optional sku?: string

Defined in: sdks/hepsiburada/src/types/order.ts:103

Hepsiburada SKU.


optional status?: string

Defined in: sdks/hepsiburada/src/types/order.ts:84

Line status (Open, Unpacked, …).


optional total?: string | number

Defined in: sdks/hepsiburada/src/types/order.ts:145


optional totalPrice?: OrderPrice

Defined in: sdks/hepsiburada/src/types/order.ts:117

Line total (unitPrice × quantity after discounts) — not the order total.


optional unitPrice?: OrderPrice

Defined in: sdks/hepsiburada/src/types/order.ts:115

Unit price.


optional vat?: number

Defined in: sdks/hepsiburada/src/types/order.ts:119

VAT amount.


optional vatRate?: number

Defined in: sdks/hepsiburada/src/types/order.ts:121

VAT rate (percent).

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.