# ps.module.SessionApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiVersionSessionPost**](SessionApi.md#apiVersionSessionPost) | **POST** /api/{version}/session | [AllowAnonymous] Create session for checkout

<a name="apiVersionSessionPost"></a>
# **apiVersionSessionPost**
> apiVersionSessionPost(version)

[AllowAnonymous] Create session for checkout

### Example
```javascript
import ps.module from 'phonespeakv2_api';

let apiInstance = new ps.module.SessionApi();
let version = "version_example"; // String | 

apiInstance.apiVersionSessionPost(version, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **version** | **String**|  | 
 **body** | [**PhoneSpeakServiceCoreSessionsCreateSessionQuery**](PhoneSpeakServiceCoreSessionsCreateSessionQuery.md)| create session model | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: audio/x-wav, text/plain, application/octet-stream, application/json-patch+json, application/json, text/json, application/_*+json, application/xml, text/xml, application/_*+xml
 - **Accept**: Not defined

