---
updatedAt: 2026-09-23T20:15:19.000Z
agentTools:
  projectIndex: https://mediroutes-api.readme.io/llms.txt
---

# Create FundingSource Webhook

Post a webhook to subscribe for trips changed related to funding source

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/webhook/fsChange": {
      "post": {
        "tags": [
          "Webhook"
        ],
        "summary": "Create FundingSource Webhook",
        "description": "Post a webhook to subscribe for trips changed related to funding source",
        "operationId": "post-webhookfschange",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "access token",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/WebhookFundingSourceModel"
        },
        "responses": {
          "200": {
            "description": "Webhooks Subscriber Result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_WebhookResponseModel_"
                }
              }
            }
          },
          "400": {
            "description": "Missing or unaligned data. Error message will be returned with response."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "requestBodies": {
      "WebhookFundingSourceModel": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/WebhookFundingSourceModel"
            }
          },
          "text/json": {
            "schema": {
              "$ref": "#/components/schemas/WebhookFundingSourceModel"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/WebhookFundingSourceModel"
            }
          },
          "text/xml": {
            "schema": {
              "$ref": "#/components/schemas/WebhookFundingSourceModel"
            }
          },
          "application/x-www-form-urlencoded": {
            "schema": {
              "$ref": "#/components/schemas/WebhookFundingSourceModel"
            }
          }
        },
        "required": true
      }
    },
    "schemas": {
      "WebhookResponseModel": {
        "type": "object",
        "properties": {
          "Id": {
            "format": "uuid",
            "type": "string",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "Key": {
            "type": "string"
          },
          "CallbackUrl": {
            "type": "string"
          },
          "SubscriptionAction": {
            "type": "string"
          },
          "Name": {
            "type": "string"
          },
          "Parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "WebhookFundingSourceModel": {
        "type": "object",
        "properties": {
          "FundingSourceId": {
            "format": "int32",
            "type": "integer"
          },
          "CallBackUrl": {
            "type": "string"
          },
          "CallBackUrlHeaders": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "Name": {
            "type": "string"
          },
          "RunId": {
            "format": "int32",
            "type": "integer"
          }
        }
      },
      "ApiResponse_WebhookResponseModel_": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/WebhookResponseModel"
          },
          "StatusCode": {
            "format": "int32",
            "type": "integer"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```