---
title: "Dart SDK"
description: "Install and use the official server-side Inttegro SDK for Dart."
canonical: "https://studio.inttegro.com/sdks/dart"
format: inttegro-machine-docs/v1
language: "Java"
sdk_version: "v8.3.0"
reader_profile: optional
reader_manifest: "https://studio.inttegro.com/machine/java/readers/index.json"
reader_identification: "Optional: declare your client only if known and your current-session capabilities; use reader_manifest for supplemental recommendations."
preamble_estimated_tokens: 569
model_token_report: "https://studio.inttegro.com/machine/token-report.json"
preamble_questions: 5
preamble_source: "general"
recommended_mcp_tools: ["get_integration_guide","check_integration_readiness"]
estimated_tokens: 1160
token_estimate_method: "utf8_bytes_divided_by_4"
---

## Machine preamble

**Summary:** Install and use the official server-side Inttegro SDK for Dart. This Java representation uses the selected SDK's native names wherever Studio has a verified mapping.

### Five questions

#### Q1. When should the reader use Dart SDK?

Use this SDK guide when the selected runtime or framework matches the application being built.

#### Q2. What is authoritative on this page?

Use this page for orientation; follow its canonical SDK, guide, API, or MCP links for exact contracts.

#### Q3. What page-specific constraint matters most?

Use the current documented SDK version and native public API; do not invent members from JSON names or another language.

#### Q4. Can Inttegro MCP materially help with this task?

Yes, when the reader has an authenticated MCP connection and the task needs live context, guided planning, or a supported operation. The strongest matches are `get_integration_guide`, `check_integration_readiness`; their exact roles and boundaries are listed below.

#### Q5. How should the reader verify the answer and continue?

Install the documented version, compile or type-check the smallest example, run it against a disposable application, and verify the resulting resource through its canonical lookup. Continue with [Choose an API resource](https://studio.inttegro.com/machine/java/api.md) and [Use the Flutter payment sheet instead](https://studio.inttegro.com/machine/java/mobile/flutter.md) when those concerns enter scope.

### Recommended MCP assistance

Use these through an authenticated Inttegro MCP connection. This document remains the contract source.

- [`get_integration_guide`](https://studio.inttegro.com/machine/java/inttegro-mcp/tools.md#get_integration_guide) — read-only integration guidance. Returns a focused implementation sequence and canonical Studio links for authentication, checkout, orders, catalog, messaging, idempotency, or testing.
- [`check_integration_readiness`](https://studio.inttegro.com/machine/java/inttegro-mcp/tools.md#check_integration_readiness) — read-only integration guidance. Audits platform secret storage, server-runtime compatibility, idempotency, errors, state verification, checkout returns, and messaging consent without receiving source code or credentials.

## Document content

# Inttegro Dart SDK

The Inttegro Dart SDK is the official typed client for server-side Dart
applications. It does not depend on Flutter and must not be used to place a
secret API key in a mobile or browser application.

## Install

```yaml
dependencies:
  inttegro: ^0.7.0
```

## Create a client

```dart
import 'dart:io';
import 'package:inttegro/inttegro.dart';

final client = Client(
  apiKey: Platform.environment['INTTEGRO_API_KEY']!,
);

final order = await client.orders.lookup(
  const LookupOrderRequest(orderId: 'order_...'),
);

print(order.id);
client.close();
```

Resource methods return typed domain objects; wire response envelopes stay
private.

## Observability and error reporting

Pass application-owned `Telemetry` and `ErrorReporter` implementations when
creating the client:

```dart
final client = Client(
  apiKey: apiKey,
  telemetry: telemetry,
  errorReporter: errorReporter,
);
```

The callbacks receive safe lifecycle metadata without API keys, bodies,
resource identifiers, or raw error messages. No error report is prepared when
`errorReporter` is omitted.

## Continue

- [Browse the generated API reference](https://pub.dev/documentation/inttegro/0.7.0/)
- [Browse the typed API source](https://github.com/inttegro/inttegro-sdk-dart/tree/master/lib)
- [Browse the repository](https://github.com/inttegro/inttegro-sdk-dart)
- [Use the Flutter payment sheet instead](https://studio.inttegro.com/machine/java/mobile/flutter.md)
- [Choose an API resource](https://studio.inttegro.com/machine/java/api.md)
