Skip to content

Order

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

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:114

Product barcode.


optional cargoCompany?: string

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

Cargo company name.


optional createdDate?: string

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

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:100

Hepsiburada customer id.


optional customerName?: string | null

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

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 deci?: number

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

Volumetric weight (desi) of one unit of the line (wire deci; not in the spec, seen on prod and SIT 2026-10-27).


optional dueDate?: string

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

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


optional externalOrderNumber?: string

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


optional hasInvoice?: boolean

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

Whether the line’s package has an invoice: true once an invoice link was sent with orders.sendInvoiceLink() (wire hasInvoice; not in the spec, seen on prod and SIT 2026-10-27).


optional id?: string

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

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:104

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


optional merchantSku?: string

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

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


optional modifiedDate?: string

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


optional name?: string

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

Product name of the line.


optional orderDate?: string

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

ISO 8601 order date-time (wire orderDate).


optional orderId?: string

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

Hepsiburada order id (wire orderId).


optional orderNumber?: string

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


optional packageNumber?: string

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

Package number once the line is packed.


optional quantity?: number

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

Quantity on the line.


raw: Record<string, unknown>

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

Untouched raw row.


optional sku?: string

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

Hepsiburada SKU.


optional status?: string

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

Line status (Open, Unpacked, …).


optional total?: string | number

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


optional totalDeci?: number

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

Volumetric weight of the whole line: deci × quantity (wire totalDeci).


optional totalPrice?: OrderPrice

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

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


optional unitPrice?: OrderPrice

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

Unit price.


optional vat?: number

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

VAT amount.


optional vatRate?: number

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

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.