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

# UpdateSession

`POST /v2/UpdateSession`

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.net/myfatoorah/apis/myfatoorah-api-v3.md) · [All operations](https://skmtc.net/myfatoorah/apis/myfatoorah-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myfatoorah/myfatoorah-api-v3/revisions/994a74287a16/schema)
