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.
Properties
Section titled “Properties”barcode?
Section titled “barcode?”
optionalbarcode?:string
Defined in: sdks/hepsiburada/src/types/order.ts:114
Product barcode.
cargoCompany?
Section titled “cargoCompany?”
optionalcargoCompany?:string
Defined in: sdks/hepsiburada/src/types/order.ts:120
Cargo company name.
createdDate?
Section titled “createdDate?”
optionalcreatedDate?: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.
customerId?
Section titled “customerId?”
optionalcustomerId?:string
Defined in: sdks/hepsiburada/src/types/order.ts:100
Hepsiburada customer id.
customerName?
Section titled “customerName?”
optionalcustomerName?: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.
optionaldeci?: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).
dueDate?
Section titled “dueDate?”
optionaldueDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:106
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:152
hasInvoice?
Section titled “hasInvoice?”
optionalhasInvoice?: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).
optionalid?:string
Defined in: sdks/hepsiburada/src/types/order.ts:89
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:104
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:112
Merchant SKU (wire merchantSKU, upper-case SKU).
modifiedDate?
Section titled “modifiedDate?”
optionalmodifiedDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:158
optionalname?:string
Defined in: sdks/hepsiburada/src/types/order.ts:116
Product name of the line.
orderDate?
Section titled “orderDate?”
optionalorderDate?:string
Defined in: sdks/hepsiburada/src/types/order.ts:102
ISO 8601 order date-time (wire orderDate).
orderId?
Section titled “orderId?”
optionalorderId?:string
Defined in: sdks/hepsiburada/src/types/order.ts:87
Hepsiburada order id (wire orderId).
orderNumber?
Section titled “orderNumber?”
optionalorderNumber?:string
Defined in: sdks/hepsiburada/src/types/order.ts:85
packageNumber?
Section titled “packageNumber?”
optionalpackageNumber?:string
Defined in: sdks/hepsiburada/src/types/order.ts:108
Package number once the line is packed.
quantity?
Section titled “quantity?”
optionalquantity?: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.
optionalsku?:string
Defined in: sdks/hepsiburada/src/types/order.ts:110
Hepsiburada SKU.
status?
Section titled “status?”
optionalstatus?:string
Defined in: sdks/hepsiburada/src/types/order.ts:91
Line status (Open, Unpacked, …).
total?
Section titled “total?”
optionaltotal?:string|number
Defined in: sdks/hepsiburada/src/types/order.ts:165
totalDeci?
Section titled “totalDeci?”
optionaltotalDeci?:number
Defined in: sdks/hepsiburada/src/types/order.ts:135
Volumetric weight of the whole line: deci × quantity (wire totalDeci).
totalPrice?
Section titled “totalPrice?”
optionaltotalPrice?:OrderPrice
Defined in: sdks/hepsiburada/src/types/order.ts:124
Line total (unitPrice × quantity after discounts) — not the order total.
unitPrice?
Section titled “unitPrice?”
optionalunitPrice?:OrderPrice
Defined in: sdks/hepsiburada/src/types/order.ts:122
Unit price.
optionalvat?:number
Defined in: sdks/hepsiburada/src/types/order.ts:126
VAT amount.
vatRate?
Section titled “vatRate?”
optionalvatRate?: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.