getWebhookMetadata

get

/ccadmin/v1/metadata-catalog/webhook

Get Webhook Metadata. Returns webhoook metadata catalog. Returns metadata catalog. Returns Swagger webhook metadata catalog when 'Accept' request header is specified as 'application/swagger+json' else will return json hyper schema docs. The **JSON hyper schema** being served is **deprecated**. Use Swagger.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getWebhookMetadata_response
Type: object
Show Source
Nested Schema : definitions
Type: object
Show Source
Nested Schema : info
Type: object
Show Source
Nested Schema : paths
Type: object
Show Source
Nested Schema : schemes
Type: array
Show Source
Nested Schema : tags
Type: array
Show Source
Nested Schema : EntityDefinition
Type: object
Show Source
Nested Schema : /path1/path2
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/swagger+json)
{
    "basePath":"/ccadmin/v1/webhook",
    "paths":{
        "/idleCart":{
            "post":{
                "summary":"idleCart",
                "produces":[
                    "application/json"
                ],
                "operationId":"idleCart",
                "description":"The details of idle cart in the Oracle Commerce Cloud",
                "responses":{
                    "200":{
                        "schema":{
                            "ref":"#/definitions/emptyResponse"
                        },
                        "description":"No response is returned as this is an event webhook"
                    }
                },
                "parameters":[
                    {
                        "schema":{
                            "ref":"#/definitions/idleCart_request"
                        },
                        "in":"body",
                        "name":"idleCart"
                    }
                ],
                "tags":[
                    "Idle Cart"
                ]
            }
        }
    },
    "host":"localhost:9080",
    "schemes":[
        "http"
    ],
    "definitions":{
        "idleCart_request":{
            "description":"The details of the idle cart",
            "properties":{
                "taxPriceInfo":{
                    "description":"The shipping address details.",
                    "type":"object",
                    "properties":{
                        "cityTax":{
                            "description":"City Tax",
                            "type":"number"
                        },
                        "districtTax":{
                            "description":"District Tax.",
                            "type":"number"
                        }
                    }
                }
            }
        }
    },
    "swagger":"2.0",
    "tags":[
        {
            "name":"Idle Cart",
            "description":"The details of idle cart in the Oracle Commerce Cloud"
        }
    ],
    "info":{
        "description":"The Webhook details of the Oracle Commerce Cloud.",
        "title":"Oracle Commerce Cloud Webhooks",
        "version":"1.0"
    }
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |13101|METADATA INTERNAL ERROR|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top