|
| 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 | +<a name="deleteTerminalAssociation"></a> |
| 12 | +# **deleteTerminalAssociation** |
| 13 | +> deleteTerminalAssociation(deAssociationRequestBody) |
| 14 | +
|
| 15 | +De-associate a device from merchant or account V2 |
| 16 | + |
| 17 | +The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic |
| 18 | + |
| 19 | +### Example |
| 20 | +```javascript |
| 21 | +var CyberSource = require('CyberSource'); |
| 22 | + |
| 23 | +var apiInstance = new CyberSource.DeviceDeAssociationApi(); |
| 24 | + |
| 25 | +var deAssociationRequestBody = new CyberSource.DeAssociationRequestBody(); // DeAssociationRequestBody | de association of the deviceId in the request body. |
| 26 | + |
| 27 | + |
| 28 | +var callback = function(error, data, response) { |
| 29 | + if (error) { |
| 30 | + console.error(error); |
| 31 | + } else { |
| 32 | + console.log('API called successfully.'); |
| 33 | + } |
| 34 | +}; |
| 35 | +apiInstance.deleteTerminalAssociation(deAssociationRequestBody, callback); |
| 36 | +``` |
| 37 | + |
| 38 | +### Parameters |
| 39 | + |
| 40 | +Name | Type | Description | Notes |
| 41 | +------------- | ------------- | ------------- | ------------- |
| 42 | + **deAssociationRequestBody** | [**DeAssociationRequestBody**](DeAssociationRequestBody.md)| de association of the deviceId in the request body. | |
| 43 | + |
| 44 | +### Return type |
| 45 | + |
| 46 | +null (empty response body) |
| 47 | + |
| 48 | +### Authorization |
| 49 | + |
| 50 | +No authorization required |
| 51 | + |
| 52 | +### HTTP request headers |
| 53 | + |
| 54 | + - **Content-Type**: application/json;charset=UTF-8 |
| 55 | + - **Accept**: application/hal+json;charset=utf-8 |
| 56 | + |
| 57 | +<a name="postDeAssociateV3Terminal"></a> |
| 58 | +# **postDeAssociateV3Terminal** |
| 59 | +> [InlineResponse2006] postDeAssociateV3Terminal(deviceDeAssociateV3Request) |
| 60 | +
|
| 61 | +De-associate a device from merchant to account or reseller and from account to reseller |
| 62 | + |
| 63 | +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. |
| 64 | + |
| 65 | +### Example |
| 66 | +```javascript |
| 67 | +var CyberSource = require('CyberSource'); |
| 68 | + |
| 69 | +var apiInstance = new CyberSource.DeviceDeAssociationApi(); |
| 70 | + |
| 71 | +var deviceDeAssociateV3Request = [new CyberSource.DeviceDeAssociateV3Request()]; // [DeviceDeAssociateV3Request] | deviceId that has to be de-associated to the destination organizationId. |
| 72 | + |
| 73 | + |
| 74 | +var callback = function(error, data, response) { |
| 75 | + if (error) { |
| 76 | + console.error(error); |
| 77 | + } else { |
| 78 | + console.log('API called successfully. Returned data: ' + data); |
| 79 | + } |
| 80 | +}; |
| 81 | +apiInstance.postDeAssociateV3Terminal(deviceDeAssociateV3Request, callback); |
| 82 | +``` |
| 83 | + |
| 84 | +### Parameters |
| 85 | + |
| 86 | +Name | Type | Description | Notes |
| 87 | +------------- | ------------- | ------------- | ------------- |
| 88 | + **deviceDeAssociateV3Request** | [**[DeviceDeAssociateV3Request]**](DeviceDeAssociateV3Request.md)| deviceId that has to be de-associated to the destination organizationId. | |
| 89 | + |
| 90 | +### Return type |
| 91 | + |
| 92 | +[**[InlineResponse2006]**](InlineResponse2006.md) |
| 93 | + |
| 94 | +### Authorization |
| 95 | + |
| 96 | +No authorization required |
| 97 | + |
| 98 | +### HTTP request headers |
| 99 | + |
| 100 | + - **Content-Type**: application/json;charset=UTF-8 |
| 101 | + - **Accept**: application/json;charset=UTF-8 |
| 102 | + |
0 commit comments