Webhook

Generate a webhook signing secret for the authenticated merchant

Changed on

Generate a webhook signing secret for the authenticated merchant

post/api/v1/webhooks/secret

Request

Request body

merchant_idstring uuid

Merchant ID. Defaults to the logged-in merchant if not provided. Required for admin tokens.

Example request

{
  "merchant_id": "550e8400-e29b-41d4-a716-446655440000"
}

Response

Success

successboolean required

Indicates if the request was successful

Example response

{
  "success": true,
  "data": {
    "webhook_secret": "whsec_a1b2c3d4e5f6…"
  }
}

Changes

    • breaking

      added required request body

    • breaking

      the / response's property type changed from string to no type for status

    • warning

      removed the optional property / from the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added subschema #1 subschema #2 to the / response property allOf list for the response status

    • info

      endpoint added