---
title: "Update the Onfido SDK Outcome"
method: PATCH
path: "/v1/accounts/{account_id}/onfido/sdk"
tags: ["KYC"]
---

# Update the Onfido SDK Outcome

`PATCH /v1/accounts/{account_id}/onfido/sdk`

## Request

- Base URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets`
- URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets/v1/accounts/{account_id}/onfido/sdk`
- Auth: HTTP basic

This request allows you to send Alpaca the result of the Onfido SDK flow in your app. A notification of a successful outcome is required for Alpaca to continue the KYC process.

## Request body

- object
  - `outcome` string, required: "NOT_STARTED" The user has not started the SDK flow yet. outcome is set to this default value upon token generation "USER_EXITED" The user exited the SDK flow "SDK_ERROR" An error occurred in the SDK flow "USER_COMPLETED" The user completed the SDK flow
  - `reason` string: Any additional information related to the outcome
  - `token` string, required: The SDK token associated with the SDK flow you are updating the outcome for

## Response `200`

OK

## Other responses

- `404`: Account Not Found
- `422`: Invalid input value for outcome.

---

[API](https://skmtc.dev/alpacahq/apis/broker-api.md) - [All operations](https://skmtc.dev/alpacahq/apis/broker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alpacahq/apis/broker-api/revisions/381b1ecb3ccc?raw)
