# PaymentsApi

All URIs are relative to *https://admin-api.connected.dev*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**updatePayment**](#updatepayment) | **PUT** /payments/{paymentId} | Update a payment record|

# **updatePayment**
> GetPayment200Response updatePayment(paymentUpdateInputs)

Updates fields on an existing payment, such as linking or unlinking it to a registration, requires read and update permissions on payments.

### Example

```typescript
import {
    PaymentsApi,
    Configuration,
    PaymentUpdateInputs
} from '@connectedxm/admin-sdk';

const configuration = new Configuration();
const apiInstance = new PaymentsApi(configuration);

let paymentId: string; //The payment identifier (default to undefined)
let paymentUpdateInputs: PaymentUpdateInputs; //

const { status, data } = await apiInstance.updatePayment(
    paymentId,
    paymentUpdateInputs
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **paymentUpdateInputs** | **PaymentUpdateInputs**|  | |
| **paymentId** | [**string**] | The payment identifier | defaults to undefined|


### Return type

**GetPayment200Response**

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Successful response |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

