cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
65 lines (43 loc) • 2.63 kB
Markdown
All URIs are relative to *https://apitest.cybersource.com*
Method | HTTP request | Description
------------- | ------------- | -------------
[**saveSymEgressKey**](CreateNewWebhooksApi.md
<a name="saveSymEgressKey"></a>
> InlineResponse2013 saveSymEgressKey(vCSenderOrganizationId, vCPermissions, opts)
Create Webhook Security Keys
Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remember to save the key in the API response, so that you can use it to validate messages later.
### Example
```javascript
var CyberSource = require('CyberSource');
var apiInstance = new CyberSource.CreateNewWebhooksApi();
var vCSenderOrganizationId = "vCSenderOrganizationId_example"; // String | Sender organization id
var vCPermissions = "vCPermissions_example"; // String | Encoded user permissions returned by the CGK, for the entity user who initiated the boarding
var opts = {
'vCCorrelationId': "vCCorrelationId_example", // String | A globally unique id associated with your request
'saveSymEgressKey': new CyberSource.SaveSymEgressKey() // SaveSymEgressKey | Provide egress Symmetric key information to save (create or store or refresh)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.saveSymEgressKey(vCSenderOrganizationId, vCPermissions, opts, callback);
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**vCSenderOrganizationId** | **String**| Sender organization id |
**vCPermissions** | **String**| Encoded user permissions returned by the CGK, for the entity user who initiated the boarding |
**vCCorrelationId** | **String**| A globally unique id associated with your request | [optional]
**saveSymEgressKey** | [**SaveSymEgressKey**](SaveSymEgressKey.md)| Provide egress Symmetric key information to save (create or store or refresh) | [optional]
### Return type
[**InlineResponse2013**](InlineResponse2013.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json;charset=utf-8
- **Accept**: application/hal+json;charset=utf-8