Receiving orders
After creation, you can get the list of orders or one by one. For example, for displaying in the user profile.
Kotlin Multiplatform
Getting the list of orders
Usually, users accumulate quite a lot of orders in their history. Therefore, pagination was added to optimize the retrieval and storage of objects.
val result = OrdersService.all(
marker = "delivery",
offset = 0,
limit = 30,
langCode = "en_US"
)
val orders = result.items
Getting an order by its identifier
In some cases, you may need to get information about a single order. Knowing its identifier won't be a problem:
val id: Int = // ...
val order = OrdersService.order(
id = id,
marker = "delivery",
langCode = "en_US"
)
Swift
Getting the list of orders
Usually, users accumulate quite a lot of orders in their history. Therefore, pagination was added to optimize the retrieval and storage of objects.
let result = try await OrdersService.shared.all(
marker: "delivery",
offset: 0,
limit: 30,
langCode: "en_US"
)
let orders = result.items()
Getting an order by its identifier
In some cases, you may need to get information about a single order. Knowing its identifier won't be a problem:
let id: Int = // ...
let order = try await OrdersService.shared.order(
id: id,
marker: "delivery",
langCode: "en_US"
)
Last modified: 01 August 2025