getFunctionWebHooks
get
/ccadmin/v1/functionWebhooks
Get Function Web Hooks. Gets an array of function WebHooks. Response can be narrowed by a "serverType parameter". Each element of the returned array follows the format of that returned by getWebHook.
Request
Supported Media Types
- application/json
Query Parameters
-
includeSecretKeys(optional): boolean
Whether to include the secret key.
-
serverType(optional): string
Only return WebHooks of the specified filter type.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getFunctionWebHooks_response
Type:
Show Source
object
-
basicAuthentication(optional):
object basicAuthentication
Map of username and password
-
displayName(optional):
string
The display name of the WebHook.
-
headers(optional):
object headers
Map of header names and header values
-
id(optional):
string
WebHook identifier.
-
name(optional):
string
The simple name of the WebHook.
-
secretKey(optional):
string
The base64 encoded secret key of the WebHook. Will be null unless includeSecretKeys query parameter is true. A secret key is currently shared between WebHooks of the same name (like "calculateShipping").
-
serverType(optional):
string
The server type of the WebHook.
-
subEntityTruncationSize(optional):
integer
Threshold at which some of the sub-entities in Webhook payload, like cart items, return items and addresses get truncated when number of records exceeds configured threshold size (allowed range is 100-50000). For more details on which sub-entities get truncated for a Webhook, refer to individual Webhook payload document
-
supportsSynchronousRetry(optional):
boolean
True if synchronous retries are enabled. Read-only.
-
synchronousRetries(optional):
integer
The maximum number of times the WebHook should be retried if it returns an error.
-
url(optional):
string
The target URL for the function WebHook.
-
urlApplicationSuppressionList(optional):
array urlApplicationSuppressionList
Array of URL - Applications suppression. Each object contains a URL to be suppressed and an array of application Ids (using /ccadmin/v1/applicationIds endpoint) for which the URL needs to be suppressed when the application calls OCC endpoint to create or update an entity.
Nested Schema : basicAuthentication
Type:
object
Map of username and password
Show Source
-
password(optional):
string
The password.
-
username(optional):
string
The user name.
Nested Schema : headers
Type:
object
Map of header names and header values
Show Source
-
headerName(optional):
string
The header name.
-
headerValue(optional):
string
The header value.
Nested Schema : urlApplicationSuppressionList
Type:
array
Array of URL - Applications suppression. Each object contains a URL to be suppressed and an array of application Ids (using /ccadmin/v1/applicationIds endpoint) for which the URL needs to be suppressed when the application calls OCC endpoint to create or update an entity.
Show Source
Nested Schema : items
Type:
Show Source
object
-
applications(optional):
array applications
Array of strings representing application Ids, events triggered by which should suppress the URL.
-
url(optional):
string
The URL to be suppressed.
Nested Schema : applications
Type:
array
Array of strings representing application Ids, events triggered by which should suppress the URL.
Show Source
-
Array of:
string
Id of the registered application. Refer to /ccadmin/v1/applicationIds for more details.
Example Response (application/json)
[
{
"headers":{
"header1":"value1"
},
"subEntityTruncationSize":null,
"synchronousRetries":0,
"secretKey":null,
"urlApplicationSuppressionList":[
{
"url":"https://example.com",
"applications":[
"applicationId1"
]
}
],
"supportsSynchronousRetry":false,
"displayName":"atg.service.webhook.Resources->webHookDisplayName_calculateShipping",
"serverType":"production",
"name":"calculateShipping",
"id":"production-calculateShipping",
"basicAuthentication":{
"admin":"admin"
},
"url":null
},
{
"headers":null,
"subEntityTruncationSize":null,
"synchronousRetries":0,
"secretKey":null,
"urlApplicationSuppressionList":[
{
"url":"https://example.com",
"applications":[
"applicationId1"
]
}
],
"supportsSynchronousRetry":false,
"displayName":"Calculate Shipping - Publishing",
"serverType":"publishing",
"name":"calculateShipping",
"id":"publishing-calculateShipping",
"basicAuthentication":null,
"url":null
}
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code