# IdoServiceResponse

**`Interface`**

**`Description`**

The interface for the Journey step response object. Including Journey end with either error, rejection and success.

## Properties

### type

• `Readonly` **type**: [`IdoServiceResponseType`](/sdk-ref/idosdk/enums/idoserviceresponsetype)

**`Deprecated`**

**`Description`**

Deprecated attribute. Use [IdoJourneyActionType](/sdk-ref/idosdk/enums/idojourneyactiontype) instead.

### data

• `Optional` `Readonly` **data**: `any`

**`Description`**

Optional data object returned from the server for any of the journey steps.

### errorData

• `Optional` `Readonly` **errorData**: [`IdoSdkError`](/sdk-ref/idosdk/interfaces/idosdkerror)

**`Description`**

Additional error data returned from the server for any of the journey steps.

### journeyStepId

• `Optional` `Readonly` **journeyStepId**: `string`

**`Description`**

Contains the Journey step ID, allowing the client side to choose the correct handler and UI.
This will be either a form ID for the "Collect information" and "Login Form" journey steps,
or one of [IdoJourneyActionType](/sdk-ref/idosdk/enums/idojourneyactiontype) for other actions.

### clientResponseOptions

• `Optional` `Readonly` **clientResponseOptions**: `Record`<`string`, [`ClientResponseOption`](/sdk-ref/idosdk/interfaces/clientresponseoption)>

**`Description`**

The Journey client response options if the response type is [ClientInputRequired](/sdk-ref/idosdk/enums/idoserviceresponsetype#clientinputrequired)
or [ClientInputUpdateRequired](/sdk-ref/idosdk/enums/idoserviceresponsetype#clientinputupdaterequired).

### token

• `Optional` **token**: `string`

**`Description`**

A proof of journey completion is provided upon successful completion of the journey,
indicated by the [Success](/sdk-ref/idosdk/enums/idojourneyactiontype#success) step ID.

### redirectUrl

• `Optional` **redirectUrl**: `string`

**`Description`**

If a browser-redirection is required (for example at the end of an SSO journey) - the server will provide the redirect URL here.
The client should redirect the browser to this URL, i.e. by issuing a `window.location.href = response.redirectUrl;`