|
| 1 | +# CyberSource\DeviceDeAssociationApi |
| 2 | + |
| 3 | +All URIs are relative to *https://apitest.cybersource.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**deleteTerminalAssociation**](DeviceDeAssociationApi.md#deleteTerminalAssociation) | **PATCH** /dms/v2/devices/deassociate | De-associate a device from merchant or account V2 |
| 8 | +[**postDeAssociateV3Terminal**](DeviceDeAssociationApi.md#postDeAssociateV3Terminal) | **POST** /dms/v3/devices/deassociate | De-associate a device from merchant to account or reseller and from account to reseller |
| 9 | + |
| 10 | + |
| 11 | +# **deleteTerminalAssociation** |
| 12 | +> deleteTerminalAssociation($deAssociationRequestBody) |
| 13 | +
|
| 14 | +De-associate a device from merchant or account V2 |
| 15 | + |
| 16 | +The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic |
| 17 | + |
| 18 | +### Example |
| 19 | +```php |
| 20 | +<?php |
| 21 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 22 | + |
| 23 | +$api_instance = new CyberSource\Api\DeviceDeAssociationApi(); |
| 24 | +$deAssociationRequestBody = new \CyberSource\Model\DeAssociationRequestBody(); // \CyberSource\Model\DeAssociationRequestBody | de association of the deviceId in the request body. |
| 25 | + |
| 26 | +try { |
| 27 | + $api_instance->deleteTerminalAssociation($deAssociationRequestBody); |
| 28 | +} catch (Exception $e) { |
| 29 | + echo 'Exception when calling DeviceDeAssociationApi->deleteTerminalAssociation: ', $e->getMessage(), PHP_EOL; |
| 30 | +} |
| 31 | +?> |
| 32 | +``` |
| 33 | + |
| 34 | +### Parameters |
| 35 | + |
| 36 | +Name | Type | Description | Notes |
| 37 | +------------- | ------------- | ------------- | ------------- |
| 38 | + **deAssociationRequestBody** | [**\CyberSource\Model\DeAssociationRequestBody**](../Model/DeAssociationRequestBody.md)| de association of the deviceId in the request body. | |
| 39 | + |
| 40 | +### Return type |
| 41 | + |
| 42 | +void (empty response body) |
| 43 | + |
| 44 | +### Authorization |
| 45 | + |
| 46 | +No authorization required |
| 47 | + |
| 48 | +### HTTP request headers |
| 49 | + |
| 50 | + - **Content-Type**: application/json;charset=UTF-8 |
| 51 | + - **Accept**: application/hal+json;charset=utf-8 |
| 52 | + |
| 53 | +[[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) |
| 54 | + |
| 55 | +# **postDeAssociateV3Terminal** |
| 56 | +> \CyberSource\Model\InlineResponse2006[] postDeAssociateV3Terminal($deviceDeAssociateV3Request) |
| 57 | +
|
| 58 | +De-associate a device from merchant to account or reseller and from account to reseller |
| 59 | + |
| 60 | +A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. |
| 61 | + |
| 62 | +### Example |
| 63 | +```php |
| 64 | +<?php |
| 65 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 66 | + |
| 67 | +$api_instance = new CyberSource\Api\DeviceDeAssociationApi(); |
| 68 | +$deviceDeAssociateV3Request = array(new \CyberSource\Model\DeviceDeAssociateV3Request()); // \CyberSource\Model\DeviceDeAssociateV3Request[] | deviceId that has to be de-associated to the destination organizationId. |
| 69 | + |
| 70 | +try { |
| 71 | + $result = $api_instance->postDeAssociateV3Terminal($deviceDeAssociateV3Request); |
| 72 | + print_r($result); |
| 73 | +} catch (Exception $e) { |
| 74 | + echo 'Exception when calling DeviceDeAssociationApi->postDeAssociateV3Terminal: ', $e->getMessage(), PHP_EOL; |
| 75 | +} |
| 76 | +?> |
| 77 | +``` |
| 78 | + |
| 79 | +### Parameters |
| 80 | + |
| 81 | +Name | Type | Description | Notes |
| 82 | +------------- | ------------- | ------------- | ------------- |
| 83 | + **deviceDeAssociateV3Request** | [**\CyberSource\Model\DeviceDeAssociateV3Request[]**](../Model/DeviceDeAssociateV3Request.md)| deviceId that has to be de-associated to the destination organizationId. | |
| 84 | + |
| 85 | +### Return type |
| 86 | + |
| 87 | +[**\CyberSource\Model\InlineResponse2006[]**](../Model/InlineResponse2006.md) |
| 88 | + |
| 89 | +### Authorization |
| 90 | + |
| 91 | +No authorization required |
| 92 | + |
| 93 | +### HTTP request headers |
| 94 | + |
| 95 | + - **Content-Type**: application/json;charset=UTF-8 |
| 96 | + - **Accept**: application/json;charset=UTF-8 |
| 97 | + |
| 98 | +[[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) |
| 99 | + |
0 commit comments