getFunctionWebHook
get
/ccadmin/v1/functionWebhooks/{id}
Get Function Web Hook. Gets an individual function WebHook by the provided ID.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID corresponding to the required function WebHook.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getFunctionWebHook_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.It 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":"Calculate Shipping - Production",
"serverType":"production",
"name":"calculateShipping",
"id":"production-calculateShipping",
"basicAuthentication":{
"admin":"admin"
},
"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