Native iOS apps, Apple MDM, and NetSuite SuiteScript — engineered together so your field teams and back office finally speak the same language.
func fetchInventory(itemId: String) async throws -> InventoryItem {
let endpoint = NetSuiteRESTlet.inventory(id: itemId)
let (data, _) = try await URLSession.shared
.data(from: endpoint.url)
return try JSONDecoder().decode(
InventoryItem.self, from: data
)
}
// Field rep sees live stock — no stale exports
let item = try await fetchInventory(itemId: "NS-4821")
print("On hand: \(item.quantityOnHand)")


