---
updatedAt: 2026-02-16T08:46:36.000Z
agentTools:
  projectIndex: https://docs.myfatoorah.com/llms.txt
---

# UpdateSession

# **Introduction**

You will be using this endpoint to add a token to a SessionID created using the InitiateSession endpoint.

The endpoint on Swagger is [Payment UpdateSession](https://apitest.myfatoorah.com/swagger/ui/index#!/Payment/Payment_UpdateSession)

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Input Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **SessionID**
      </td>

      <td>
        string
      </td>

      <td>
        The SessionId received from InitiateSession
      </td>
    </tr>

    <tr>
      <td>
        **Token**
      </td>

      <td>
        string
      </td>

      <td>
        The token for the payment
      </td>
    </tr>

    <tr>
      <td>
        **TokenType**
      </td>

      <td>
        string
      </td>

      <td>
        Specifies the type of the token used  

        * \*mftoken\*\*: Tokenized Embedded Payment  
        * \*applepay\*\*: Token for Apple Pay  
        * \*googlepay\*\*: Token for Google Pay  
        * \*samsungpay\*\*: Token for Samsung Pay
      </td>
    </tr>

    <tr>
      <td>
        **SecurityCode**
      </td>

      <td>
        string
      </td>

      <td>
        The security code of the tokenized card
      </td>
    </tr>
  </tbody>
</Table>

## **Tokenized Embedded Payment**

```json UpdateSession "mftoken" Request
{
  "SessionId": "5d4d46de-b23c-4717-9457-6bea5d60e476",
  "Token": "Token0505121801530150",
  "TokenType": "mftoken",
  "SecurityCode": "321"
}
```
```json UpdateSession "mftoken" Response
{
  "IsSuccess": true,
  "Message": null,
  "ValidationErrors": null,
  "Data": {
    "SessionId": "5d4d46de-b23c-4717-9457-6bea5d60e476",
    "CountryCode": "KWT"
  }
}
```