You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[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)
[[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)
Copy file name to clipboardExpand all lines: docs/Api/CreateNewWebhooksApi.md
+2-94Lines changed: 2 additions & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,107 +4,15 @@ All URIs are relative to *https://apitest.cybersource.com*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
-
[**createWebhookSubscription**](CreateNewWebhooksApi.md#createWebhookSubscription) | **POST** /notification-subscriptions/v1/webhooks | Create a Webhook
8
-
[**findProductsToSubscribe**](CreateNewWebhooksApi.md#findProductsToSubscribe) | **GET** /notification-subscriptions/v1/products/{organizationId} | Find Products You Can Subscribe To
Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
18
-
19
-
### Example
20
-
```php
21
-
<?php
22
-
require_once(__DIR__ . '/vendor/autoload.php');
23
-
24
-
$api_instance = new CyberSource\Api\CreateNewWebhooksApi();
25
-
$createWebhookRequest = new \CyberSource\Model\CreateWebhookRequest(); // \CyberSource\Model\CreateWebhookRequest | The webhook payload
[[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)
Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
63
-
64
-
### Example
65
-
```php
66
-
<?php
67
-
require_once(__DIR__ . '/vendor/autoload.php');
68
-
69
-
$api_instance = new CyberSource\Api\CreateNewWebhooksApi();
70
-
$organizationId = "organizationId_example"; // string | The Organization Identifier.
[[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)
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. Remeber to save the key in the API response, so that you can use it to validate messages later.
15
+
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.
108
16
109
17
### Example
110
18
```php
@@ -146,7 +54,7 @@ No authorization required
146
54
### HTTP request headers
147
55
148
56
-**Content-Type**: application/json;charset=utf-8
149
-
-**Accept**: application/json;charset=utf-8
57
+
-**Accept**: application/hal+json;charset=utf-8
150
58
151
59
[[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)
@@ -4,124 +4,30 @@ All URIs are relative to *https://apitest.cybersource.com*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
-
[**deleteWebhookSubscription**](ManageWebhooksApi.md#deleteWebhookSubscription) | **DELETE** /notification-subscriptions/v1/webhooks/{webhookId} | Delete a Webhook Subscription
8
-
[**getWebhookSubscriptionById**](ManageWebhooksApi.md#getWebhookSubscriptionById) | **GET** /notification-subscriptions/v1/webhooks/{webhookId} | Get Details On a Single Webhook
9
-
[**getWebhookSubscriptionsByOrg**](ManageWebhooksApi.md#getWebhookSubscriptionsByOrg) | **GET** /notification-subscriptions/v1/webhooks | Get Details On All Created Webhooks
7
+
[**notificationSubscriptionsV1WebhooksWebhookIdPost**](ManageWebhooksApi.md#notificationSubscriptionsV1WebhooksWebhookIdPost) | **POST** /notification-subscriptions/v1/webhooks/{webhookId} | Test a Webhook Configuration
Delete the webhook. Please note that deleting a particular webhook does not delete the history of the webhook notifications.
16
+
Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user's subscription. It will contain sample values for the product & eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
20
17
21
18
### Example
22
19
```php
23
20
<?php
24
21
require_once(__DIR__ . '/vendor/autoload.php');
25
22
26
23
$api_instance = new CyberSource\Api\ManageWebhooksApi();
27
-
$webhookId = "webhookId_example"; // string | The webhook identifier.
**webhookId** | **string**| The webhook identifier. |
42
-
43
-
### Return type
44
-
45
-
void (empty response body)
46
-
47
-
### Authorization
48
-
49
-
No authorization required
50
-
51
-
### HTTP request headers
52
-
53
-
-**Content-Type**: application/json;charset=utf-8
54
-
-**Accept**: application/json;charset=utf-8
55
-
56
-
[[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)
[[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)
[[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)
151
55
@@ -196,53 +100,7 @@ No authorization required
196
100
### HTTP request headers
197
101
198
102
-**Content-Type**: application/json;charset=utf-8
199
-
-**Accept**: application/json;charset=utf-8
200
-
201
-
[[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)
$api_instance = new CyberSource\Api\ManageWebhooksApi();
216
-
$webhookId = "webhookId_example"; // string | The Webhook Identifier.
217
-
$updateWebhookRequest = new \CyberSource\Model\UpdateWebhookRequest(); // \CyberSource\Model\UpdateWebhookRequest | The webhook payload or changes to apply.
**webhookId** | **string**| The Webhook Identifier. |
232
-
**updateWebhookRequest** | [**\CyberSource\Model\UpdateWebhookRequest**](../Model/UpdateWebhookRequest.md)| The webhook payload or changes to apply. | [optional]
233
-
234
-
### Return type
235
-
236
-
void (empty response body)
237
-
238
-
### Authorization
239
-
240
-
No authorization required
241
-
242
-
### HTTP request headers
243
-
244
-
-**Content-Type**: application/json;charset=utf-8
245
-
-**Accept**: application/json;charset=utf-8
103
+
-**Accept**: application/hal+json;charset=utf-8
246
104
247
105
[[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)
0 commit comments