Sandbox
Help

Types reference

TypeScript type definitions exported by the @revolut/checkout package.

Common types

Shared type definitions used across multiple SDK methods:

  • Locale - Language codes for widget localisation (22 supported languages)

  • Address - Customer billing and shipping address structure with country codes

  • CustomerDetails - Complete customer information including name, email, phone, and addresses

Error types

Importing types

All types are exported from the @revolut/checkout package and can be imported using TypeScript's import type syntax:

import type {
  // Common types
  Locale,
  Address,
  CountryCode,
  CustomerDetails,

  // Error types
  RevolutCheckoutError,
  ValidationError,
} from '@revolut/checkout'

See also

Rate this page