# /paymentmethods/{paymentMethod}/webhooks-trigger/transaction/{transactionId}

This endpoint can be used to trigger the webhooks for a transaction manually. Calling this endpoint might
cause the webhook to be send multiple times (by the automated system and the manual trigger). 
**Contrary to the normal flow of a webhook where it is scheduled only when there is an update in the status of 
the transaction, this endpoint DOES NOT have any validation on the status of the transaction, meaning that users 
can use this endpoint to trigger the webhooks of a transaction any time.**

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Payments Gateway",
    "description": "Common payments API",
    "version": "1.23.0"
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ],
  "servers": [
    {
      "url": "/api/v1/"
    }
  ],
  "paths": {
    "/paymentmethods/{paymentMethod}/webhooks-trigger/transaction/{transactionId}": {
      "get": {
        "description": "This endpoint can be used to trigger the webhooks for a transaction manually. Calling this endpoint might\ncause the webhook to be send multiple times (by the automated system and the manual trigger). \n**Contrary to the normal flow of a webhook where it is scheduled only when there is an update in the status of \nthe transaction, this endpoint DOES NOT have any validation on the status of the transaction, meaning that users \ncan use this endpoint to trigger the webhooks of a transaction any time.**\n",
        "parameters": [
          {
            "name": "paymentMethod",
            "in": "path",
            "required": true,
            "schema": {
              "description": "Payment method",
              "type": "string",
              "enum": [
                "ideal",
                "idealqr",
                "checkout"
              ],
              "example": "ideal"
            }
          },
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "tags": [
          "webhooks"
        ],
        "responses": {
          "200": {
            "description": "Webhook executed successfully"
          },
          "502": {
            "description": "Something went wrong execution one or all of the webhooks. First error is returned in the JSON body",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "message"
                  ],
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/Uuid"
                    },
                    "message": {
                      "type": "string",
                      "example": "webhook returned statuscode 405"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Uuid": {
        "description": "Unique identifier",
        "type": "string",
        "format": "uuid",
        "minLength": 36,
        "maxLength": 36,
        "example": "8db1e7fa-ba8a-4189-92fd-67a20217443d"
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v1/authorization/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 234,
      "2": 76,
      "3": 191,
      "4": 145,
      "5": 198,
      "6": 48,
      "7": 79,
      "8": 46,
      "9": 249,
      "10": 185,
      "11": 249
    }
  }
}
```