Skip to content

OrdersResource

Defined in: sdks/hepsiburada/src/resources/orders.ts:44

Hepsiburada Order Management (siparis-olusturma-entegrasyonu + oms-fulfilment-entegrasyonu + muhasebe-entegrasyonu performance feed).

Service base URL: oms-external[-sit].hepsiburada.com.

Covers the full 28-endpoint OMS surface — status-bucketed list queries, single-order / single-package detail, package status transitions (deliver / intransit / undeliver), line-item actions (cancel / cargo / labor cost), and packaging mutations (create / split / unpack).

Most list endpoints return { totalCount, items[] }; the unfiltered /packages list returns a raw array (no envelope) — both are normalized.

new OrdersResource(transport, limiter?): OrdersResource

Defined in: sdks/hepsiburada/src/resources/orders.ts:47

HepsiburadaTransport

TokenBucketRateLimiter

OrdersResource

cancelLineItem(lineId, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:360

Cancel a single line item before it has been packaged.

string

CancelLineItemInput

Promise<MutationResult>


createPackages(input): Promise<PackageReceipt>

Defined in: sdks/hepsiburada/src/resources/orders.ts:270

Package one or more line items into a new shipping package. Hepsiburada’s portal documents the exact body shape under Kalem veya Kalemleri Paketleme.

Resolves to a PackageReceipt — the new packageNumber and its cargo barcode (the spec’s CreateDeliveryResponse); the untouched body stays on raw.

CreatePackagesInput

Promise<PackageReceipt>


getByOrderNumber(orderNumber): Promise<Order>

Defined in: sdks/hepsiburada/src/resources/orders.ts:79

Get full detail for a single order by order number.

string

Promise<Order>

when orderNumber is missing.


getChangeableCargoCompaniesForLineItem(orderLineId): Promise<CargoCompanyOption[]>

Defined in: sdks/hepsiburada/src/resources/orders.ts:200

List cargo firms a line item (still un-packaged) can be moved to.

string

Promise<CargoCompanyOption[]>

when orderLineId is missing.


getChangeableCargoCompaniesForPackage(packageNumber): Promise<CargoCompanyOption[]>

Defined in: sdks/hepsiburada/src/resources/orders.ts:220

List cargo firms a packaged shipment can be moved to.

string

Promise<CargoCompanyOption[]>

when packageNumber is missing.


getPackage(packageNumber): Promise<ShippingPackage>

Defined in: sdks/hepsiburada/src/resources/orders.ts:149

Get cargo detail for a single package by package number.

string

Promise<ShippingPackage>

when packageNumber is missing.


getPackageableLineItems(lineItemId): Promise<unknown[]>

Defined in: sdks/hepsiburada/src/resources/orders.ts:244

List line items that can be packaged together with the given line item.

string

Promise<unknown[]>

when lineItemId is missing.


getPackageLabel(packageNumber, params?): Promise<PackageLabel>

Defined in: sdks/hepsiburada/src/resources/orders.ts:176

Get the shared (“ortak”) cargo label of a package — the spec’s BarcodeData (data, format, hasMerchantMutualBarcode). Pass params.format (zpl, base64zpl, pdf, png, jpg) to choose the output.

Hepsiburada documents shared labels for HepsiJet and Aras only; a package on another cargo company is refused with 400 "Cargo company does not provide mutual barcodes." (ValidationError).

string

GetPackageLabelParams = {}

Promise<PackageLabel>

when packageNumber is missing.


list(params?): Promise<OrdersPage>

Defined in: sdks/hepsiburada/src/resources/orders.ts:57

List orders whose payment is complete (status: order received).

ListOrdersParams = {}

Promise<OrdersPage>


listCancelled(params?): Promise<OrdersPage>

Defined in: sdks/hepsiburada/src/resources/orders.ts:62

List cancelled orders.

ListOrdersParams = {}

Promise<OrdersPage>


listDeliveredPackages(params?): Promise<OrdersPage<ShippingPackage>>

Defined in: sdks/hepsiburada/src/resources/orders.ts:108

List packages already delivered to the buyer.

ListOrdersParams = {}

Promise<OrdersPage<ShippingPackage>>


listMissingInvoicePackages(params?): Promise<OrdersPage<ShippingPackage>>

Defined in: sdks/hepsiburada/src/resources/orders.ts:135

List shipped packages still missing an uploaded invoice.

ListOrdersParams = {}

Promise<OrdersPage<ShippingPackage>>


listPackages(params?): Promise<ShippingPackage[]>

Defined in: sdks/hepsiburada/src/resources/orders.ts:98

List shipping packages for the merchant. Returns a raw array (no totalCount envelope on this specific endpoint).

ListOrdersParams = {}

Promise<ShippingPackage[]>


listPaymentAwaiting(params?): Promise<OrdersPage>

Defined in: sdks/hepsiburada/src/resources/orders.ts:67

List orders awaiting payment.

ListOrdersParams = {}

Promise<OrdersPage>


listShippedPackages(params?): Promise<OrdersPage<ShippingPackage>>

Defined in: sdks/hepsiburada/src/resources/orders.ts:103

List packages already shipped (cargo handover complete).

ListOrdersParams = {}

Promise<OrdersPage<ShippingPackage>>


listUndeliveredPackages(params?): Promise<OrdersPage<ShippingPackage>>

Defined in: sdks/hepsiburada/src/resources/orders.ts:115

List packages that failed delivery.

ListOrdersParams = {}

Promise<OrdersPage<ShippingPackage>>


listUnpackedPackages(params?): Promise<OrdersPage<ShippingPackage>>

Defined in: sdks/hepsiburada/src/resources/orders.ts:125

List packages that were unpacked after being created.

ListOrdersParams = {}

Promise<OrdersPage<ShippingPackage>>


markPackageDelivered(packageNumber, input?): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:336

Mark a package as delivered.

string

PackageStatusInput = {}

Promise<MutationResult>


markPackageInTransit(packageNumber, input?): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:328

Mark a package as in transit (handed to the cargo firm).

string

PackageStatusInput = {}

Promise<MutationResult>


markPackageUndelivered(packageNumber, input?): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:348

Mark a package as undelivered (failed delivery). Needs undeliveredReason ('CustomerUnreachable' is the one value known to be accepted; see UndeliveredReason) and undeliveredDate.

string

PackageStatusInput = {}

Promise<MutationResult>


sendInvoiceLink(packageNumber, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:456

Attach an invoice link to a package: { invoiceLink, serialNumber, rowNumber, arrangementDate }, or an invoices list whose entries each carry their orderNumber.

Hepsiburada downloads the link and accepts it only when the server answers with Content-Type: application/pdf or text/html; any other type, or a link it cannot fetch, is refused with 400 code 2003 (“Url must be pdf or html link”, ValidationError). Setting contentType on an invoices entry does not skip that check. A package takes one invoice; a second is 409 code 1997 (verified on SIT, 2026-10-27).

string

InvoiceLinkInput

Promise<MutationResult>


splitPackage(packageNumber, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:286

Split an existing package into two. Resolves to a MutationResult — the API acknowledges with a bare string, available on raw.

string

SplitPackageInput

Promise<MutationResult>


unpackPackage(packageNumber, input?): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:303

Unpack an existing package (returns its line items to the un-packaged pool).

string

Record<string, unknown> = {}

Promise<MutationResult>


updateLineItemCargoCompany(orderLineId, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:377

Change the cargo company on a line item before it has been packaged.

string

ChangeCargoCompanyInput

Promise<MutationResult>


updateLineItemLaborCost(orderLineId, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:399

Update the labor-cost field on a line item.

string

LaborCostInput

Promise<MutationResult>


updatePackageCargoCompany(packageNumber, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:423

Change the cargo company on a packaged shipment.

string

ChangeCargoCompanyInput

Promise<MutationResult>


updatePackageWarehouse(packageNumber, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:490

Update the source warehouse for a package.

string

WarehouseInput

Promise<MutationResult>


updateParcelInfo(packageNumber, input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/orders.ts:473

Update parcel dimensions / desi info on a package.

string

ParcelInfoInput

Promise<MutationResult>

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.