# PaycometRestApi.FormApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**form**](FormApi.md#form) | **POST** /v1/form | Create form view for user capture

<a name="form"></a>
# **form**
> InlineResponse20013 form(opts)

Create form view for user capture

Create form for user capture. Set operationType and attach the default request, PAYCOMET will generate a URL for user data capture. If you will use this url in an iframe please set &#x60;sandbox&#x3D;\&quot;allow-top-navigation allow-scripts allow-same-origin allow-forms\&quot;&#x60; iframe option to avoid blocking the redirections required by the payment process in some browsers with security restrictions.

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

let apiInstance = new PaycometRestApi.FormApi();
let opts = { 
  'body': new PaycometRestApi.V1FormBody(), // V1FormBody | 
  'PAYCOMET_API_TOKEN': "PAYCOMET_API_TOKEN_example" // String | PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization)
};
apiInstance.form(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**V1FormBody**](V1FormBody.md)|  | [optional] 
 **PAYCOMET_API_TOKEN** | **String**| PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) | [optional] 

### Return type

[**InlineResponse20013**](InlineResponse20013.md)

### Authorization

No authorization required

### HTTP request headers

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

