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.
Properties
Section titled “Properties”barcode?
Section titled “barcode?”
optionalbarcode?:string
Defined in: sdks/hepsiburada/src/types/order.ts:107
Product barcode.
cargoCompany?
Section titled “cargoCompany?”
optionalcargoCompany?:string
Defined in: sdks/hepsiburada/src/types/order.ts:113
Cargo company name.
createdDate?
Section titled “createdDate?”
optionalcreatedDate?: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.
customerId?
Section titled “customerId?”
optionalcustomerId?:string
Defined in: sdks/hepsiburada/src/types/order.ts:93
Hepsiburada customer id.
customerName?
Section titled “customerName?”
optionalcustomerName?: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.
dueDate?
Section titled “dueDate?”
optionaldueDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:99
ISO 8601 date-time by which the line must ship (wire dueDate).
externalOrderNumber?
Section titled “externalOrderNumber?”
optionalexternalOrderNumber?:string
Defined in: sdks/hepsiburada/src/types/order.ts:132
optionalid?:string
Defined in: sdks/hepsiburada/src/types/order.ts:82
Order line (line item) id — the id the line-item actions take (wire id).
lastStatusUpdateDate?
Section titled “lastStatusUpdateDate?”
optionallastStatusUpdateDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:97
ISO 8601 date-time of the line’s last status change (wire lastStatusUpdateDate).
merchantSku?
Section titled “merchantSku?”
optionalmerchantSku?:string
Defined in: sdks/hepsiburada/src/types/order.ts:105
Merchant SKU (wire merchantSKU, upper-case SKU).
modifiedDate?
Section titled “modifiedDate?”
optionalmodifiedDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:138
optionalname?:string
Defined in: sdks/hepsiburada/src/types/order.ts:109
Product name of the line.
orderDate?
Section titled “orderDate?”
optionalorderDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:95
ISO 8601 order date-time (wire orderDate).
orderId?
Section titled “orderId?”
optionalorderId?:string
Defined in: sdks/hepsiburada/src/types/order.ts:80
Hepsiburada order id (wire orderId).
orderNumber?
Section titled “orderNumber?”
optionalorderNumber?:string
Defined in: sdks/hepsiburada/src/types/order.ts:78
packageNumber?
Section titled “packageNumber?”
optionalpackageNumber?:string
Defined in: sdks/hepsiburada/src/types/order.ts:101
Package number once the line is packed.
quantity?
Section titled “quantity?”
optionalquantity?: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.
optionalsku?:string
Defined in: sdks/hepsiburada/src/types/order.ts:103
Hepsiburada SKU.
status?
Section titled “status?”
optionalstatus?:string
Defined in: sdks/hepsiburada/src/types/order.ts:84
Line status (Open, Unpacked, …).
total?
Section titled “total?”
optionaltotal?:string|number
Defined in: sdks/hepsiburada/src/types/order.ts:145
totalPrice?
Section titled “totalPrice?”
optionaltotalPrice?:OrderPrice
Defined in: sdks/hepsiburada/src/types/order.ts:117
Line total (unitPrice × quantity after discounts) — not the order total.
unitPrice?
Section titled “unitPrice?”
optionalunitPrice?:OrderPrice
Defined in: sdks/hepsiburada/src/types/order.ts:115
Unit price.
optionalvat?:number
Defined in: sdks/hepsiburada/src/types/order.ts:119
VAT amount.
vatRate?
Section titled “vatRate?”
optionalvatRate?: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.