---
title: "UpdateSession"
method: POST
path: "/v2/UpdateSession"
tags: ["Payments (V2)"]
---

# UpdateSession

`POST /v2/UpdateSession`

## Request

- Base URL: `https://apitest.myfatoorah.com`
- URL: `https://apitest.myfatoorah.com/v2/UpdateSession`
- Auth: HTTP bearer

Updates a payment session with payment token information. This endpoint accepts MyFatoorah tokens, and tokens for native wallet integrations.

## Request body

- object
  - `SessionId` string, required: Received from InitiateSession endpoint to update the session with the token.
  - `Token` string, required: Token based on the TokenType.
  - `TokenType` 'mftoken' | 'googlepay' | 'applepay', required: mftoken: for MyFatoorah card token. googlepay: for Google Pay token. applepay: for Apple Pay token.

## Response `200`

Session updated successfully

- object
  - `IsSuccess` boolean: Indicates if the request was successful.
  - `Message` string: Response message associated with the request.
  - `ValidationErrors` object[]: List of validation errors, if any.
    - `Name` string: The name of the field with validation error.
    - `Error` string: The validation error message.
  - `Data` object
    - `SessionId` string: The updated session ID.
    - `CountryCode` string: The country code associated with the session.

---

[API](https://skmtc.dev/myfatoorah/apis/myfatoorah-api-v2.md) - [All operations](https://skmtc.dev/myfatoorah/apis/myfatoorah-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/myfatoorah/apis/myfatoorah-api-v2/revisions/4c0c2a3af558?raw)
