# PaycometRestApi.LaunchpadApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**launchAuthorization**](LaunchpadApi.md#launchAuthorization) | **POST** /v1/launchpad/authorization | Creates a payment link and sends it to customer
[**launchPreauthorization**](LaunchpadApi.md#launchPreauthorization) | **POST** /v1/launchpad/preauthorization | Executes a preauthorization link and sends it to customer
[**launchSubscription**](LaunchpadApi.md#launchSubscription) | **POST** /v1/launchpad/subscription | Creates a subscription link and sends it to customer

<a name="launchAuthorization"></a>
# **launchAuthorization**
> InlineResponse20024 launchAuthorization(opts)

Creates a payment link and sends it to customer

Generate a authorization link. It will send a challenge URL to the client.

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

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

### Parameters

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

### Return type

[**InlineResponse20024**](InlineResponse20024.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="launchPreauthorization"></a>
# **launchPreauthorization**
> InlineResponse20024 launchPreauthorization(opts)

Executes a preauthorization link and sends it to customer

Generate a preauthorization link. It will send a challenge URL to the client.

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

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

### Parameters

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

### Return type

[**InlineResponse20024**](InlineResponse20024.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="launchSubscription"></a>
# **launchSubscription**
> InlineResponse20024 launchSubscription(opts)

Creates a subscription link and sends it to customer

Generate a subscription link. It will send a challenge URL to the client.

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

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

### Parameters

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

### Return type

[**InlineResponse20024**](InlineResponse20024.md)

### Authorization

No authorization required

### HTTP request headers

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

