---
title: "Close Session"
source_url: https://docs.rapyd.net/en/close-session.html
lang: en
---

# Close Session

Close a session for a Deposit or Withdraw action.

> **Note:**
>
> The base URL for the POS production environment is **https://pos.rapyd.net**. It requires its own access key, which is different from the access key for the Payment API. See [Accounts and Credentials](https://docs.rapyd.net/en/accounts-and-credentials.md "Accounts and Credentials"). To set up a sandbox environment for the POS API, contact **[Rapyd Client Support](https://support.rapyd.net)**.

### Parameters

### Request Header Parameters

- - access_key (string, required)
  - Unique access key provided by Rapyd for each authorized user.

    See [Developers](https://docs.rapyd.net/en/developers.md "Developers").
- - Content-Type (string, required)
  - Indicates that the data appears in JSON format. Set to **application/json**.
- - operation_id (string)
  - Operation ID received from [Open Session](https://docs.rapyd.net/en/open-session.md "Open Session").
- - phone_number (string)
  - Phone number of the Rapyd wallet in E.164 format.
- - token_id (string)
  - Token ID received from [Open Session](https://docs.rapyd.net/en/open-session.md "Open Session").

### Response Parameters

None.

- /v1/pos/logout

- Close Session
- ```curl
  curl -X post
  https://sandboxpos.rapyd.net/v1/pos/logout
  -H 'access_key: your-access-key-here'
  -H 'Content-Type: application/json'
  -H 'idempotency: your-idempotency-parameter-here'
  -H 'salt: your-random-string-here'
  -H 'signature: your-calculated-signature-here'
  -H 'timestamp: your-unix-timestamp-here'
  ```
- ```json
  {
      "status": {
          "error_code": "0",
          "status": "SUCCESS",
          "message": "",
          "operation_id": "a6eaa1cd-63a6-4d11-95ab-8760644131fe"
      }
  }
  ```
