# PaycometRestApi.TokenApi

All URIs are relative to *https://rest.paycomet.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addToken**](TokenApi.md#addToken) | **POST** /v1/token | Tokenizes an APM.

<a name="addToken"></a>
# **addToken**
> InlineResponse20037 addToken(opts)

Tokenizes an APM.

This method supposes the registration of the APM in PAYCOMET for subsequent charges.

### Example
```javascript
import {PaycometRestApi} from 'paycomet_rest_api';

let apiInstance = new PaycometRestApi.TokenApi();
let opts = { 
  'body': new PaycometRestApi.V1TokenBody(), // V1TokenBody | 
  'PAYCOMET_API_TOKEN': "PAYCOMET_API_TOKEN_example" // String | PAYCOMET API key (Token actions privilege required)
};
apiInstance.addToken(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**V1TokenBody**](V1TokenBody.md)|  | [optional] 
 **PAYCOMET_API_TOKEN** | **String**| PAYCOMET API key (Token actions privilege required) | [optional] 

### Return type

[**InlineResponse20037**](InlineResponse20037.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

