# PaycometRestApi.DccApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**dccPurchaseConfirm**](DccApi.md#dccPurchaseConfirm) | **POST** /v1/payments/{order}/dcc/confirm | Confirm previous DCC payment
[**dccPurchaseCreate**](DccApi.md#dccPurchaseCreate) | **POST** /v1/payments/dcc | Create an DCC payment

<a name="dccPurchaseConfirm"></a>
# **dccPurchaseConfirm**
> InlineResponse20026 dccPurchaseConfirm(order, PAYCOMET_API_TOKEN, opts)

Confirm previous DCC payment

confirm_purchase_dcc

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

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

### Parameters

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

### Return type

[**InlineResponse20026**](InlineResponse20026.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="dccPurchaseCreate"></a>
# **dccPurchaseCreate**
> InlineResponse20025 dccPurchaseCreate(PAYCOMET_API_TOKEN, opts)

Create an DCC payment

execute_purchase_dcc

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

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

### Parameters

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

### Return type

[**InlineResponse20025**](InlineResponse20025.md)

### Authorization

No authorization required

### HTTP request headers

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

