# Interface Conversion

#### Description

Methods related to performing a conversion with SheerID.

interface Conversion {
convert(conversionRequest): void;
convertByTrackingId(accountId, trackingId, conversionRequest): Promise<ConversionResponse>;
convertByVerificationId(verificationId, conversionRequest): Promise<ConversionResponse>;
listenForVerificationId(): void;
}

- Defined in src/lib/types/types.ts:2806

#####
Index

### Methods

convert
convertByTrackingId
convertByVerificationId
listenForVerificationId

## Methods

### convert

- convert(conversionRequest): void

- #### Parameters

  - conversionRequest: ConversionRequest

  #### Returns void

  #### Description

  Attempt to record a conversion using a verificationId retrieved from cookies Use as step 2 of 2, in combination with listenForVerificationId

  - Defined in src/lib/types/types.ts:2834

### convertByTrackingId

- convertByTrackingId(accountId, trackingId, conversionRequest): Promise<ConversionResponse>

- #### Parameters

  - accountId: string
  - trackingId: string
  - conversionRequest: ConversionRequest

  #### Returns Promise<ConversionResponse>

  #### Description

  Record a conversion to the REST API using a previously-supplied trackingId

  - Defined in src/lib/types/types.ts:2818

### convertByVerificationId

- convertByVerificationId(verificationId, conversionRequest): Promise<ConversionResponse>

- #### Parameters

  - verificationId: string
  - conversionRequest: ConversionRequest

  #### Returns Promise<ConversionResponse>

  #### Description

  Record a conversion to the REST API using verificationId

  - Defined in src/lib/types/types.ts:2810

### listenForVerificationId

- listenForVerificationId(): void

- #### Returns void

  #### Description

  Listen to a SheerID iFrame form and store verificationId as a cookie. Use as step 1 of 2, in combination with convert()

  - Defined in src/lib/types/types.ts:2828