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

# Create Funding Source

Creates a new funding source. Note.. You must have the ability to manage users

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "V1",
    "title": "MediroutesAPI V1"
  },
  "paths": {
    "/api/v{version}/fundingsources": {
      "post": {
        "tags": [
          "FundingSource"
        ],
        "summary": "Create Funding Source",
        "description": "Creates a new funding source. Note.. You must have the ability to manage users",
        "operationId": "post-fundingsource",
        "parameters": [
          {
            "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/UpsertFundingSourceModel"
        },
        "responses": {
          "200": {
            "description": "Created Funding Sources",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_FundingSourceModel_"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_FundingSourceModel_"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_FundingSourceModel_"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponse_FundingSourceModel_"
                }
              }
            }
          },
          "401": {
            "description": "User management is not allowed for this api_key."
          },
          "403": {
            "description": "The api key used does not have access to this resource."
          }
        },
        "x-ai-description": "Creates a new funding source for the provider (body: APIKey + FundingSource fields). Requires user-management permission (401 without it).",
        "x-ai-when-to-use": "The user explicitly asks to add a new funding source (payer/program) to their transportation provider. Administrative - confirm intent before calling.",
        "x-ai-side-effects": "creates-funding-source",
        "x-ai-returns": "ApiResponse with the created funding source including its generated funding_source_id.",
        "x-ai-required-permission": "billingAndPayers",
        "x-ai-display": {
          "title": "Created Funding Source",
          "key": "funding_source_id",
          "root": "Data",
          "columns": [
            {
              "field": "name",
              "header": "Name"
            },
            {
              "field": "account",
              "header": "Account"
            },
            {
              "field": "phone",
              "header": "Phone"
            },
            {
              "field": "email",
              "header": "Email"
            },
            {
              "field": "is_payee",
              "header": "Payee"
            },
            {
              "field": "isActive",
              "header": "Active"
            }
          ]
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mediroutes.com"
    }
  ],
  "components": {
    "requestBodies": {
      "UpsertFundingSourceModel": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/UpsertFundingSourceModel"
            }
          },
          "text/json": {
            "schema": {
              "$ref": "#/components/schemas/UpsertFundingSourceModel"
            }
          },
          "application/xml": {
            "schema": {
              "$ref": "#/components/schemas/UpsertFundingSourceModel"
            }
          },
          "text/xml": {
            "schema": {
              "$ref": "#/components/schemas/UpsertFundingSourceModel"
            }
          },
          "application/x-www-form-urlencoded": {
            "schema": {
              "$ref": "#/components/schemas/UpsertFundingSourceModel"
            }
          }
        },
        "description": "[required] Funding Source",
        "required": true
      }
    },
    "schemas": {
      "FundingSourceModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "funding_source_id": {
            "format": "int32",
            "type": "integer"
          },
          "account": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "fax_number": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "is_payee": {
            "type": "boolean"
          },
          "address": {
            "$ref": "#/components/schemas/AddressModel"
          },
          "contact": {
            "$ref": "#/components/schemas/ContactGroupModel"
          },
          "options": {
            "$ref": "#/components/schemas/FundingSourceOptionsModel"
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "AddressModel": {
        "type": "object",
        "properties": {
          "address1": {
            "type": "string"
          },
          "address2": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "zip": {
            "type": "string"
          }
        }
      },
      "ContactGroupModel": {
        "type": "object",
        "properties": {
          "primary_contact": {
            "$ref": "#/components/schemas/ContactModel"
          },
          "alternative_contact": {
            "$ref": "#/components/schemas/ContactModel"
          }
        }
      },
      "FundingSourceOptionsModel": {
        "type": "object",
        "properties": {
          "mileage_charge_calculation_is_routed": {
            "type": "boolean"
          },
          "smartphone_options": {
            "$ref": "#/components/schemas/FundingSourceSmartPhoneOptions"
          },
          "other_options": {
            "$ref": "#/components/schemas/FundingSourceOtherOptions"
          }
        }
      },
      "ContactModel": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string"
          },
          "middle_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          }
        }
      },
      "FundingSourceSmartPhoneOptions": {
        "type": "object",
        "properties": {
          "require_passenger_signature_pickup": {
            "type": "boolean"
          },
          "require_passenger_signature_dropoff": {
            "type": "boolean"
          },
          "require_passenger_agreement": {
            "type": "string"
          },
          "require_driver_signature_pickup": {
            "type": "boolean"
          },
          "require_driver_signature_dropoff": {
            "type": "boolean"
          },
          "require_odometer": {
            "type": "boolean"
          },
          "display_cost_to_driver": {
            "type": "boolean"
          },
          "disable_display": {
            "type": "boolean"
          },
          "driver_cancel_deletes_charges": {
            "type": "boolean"
          }
        }
      },
      "FundingSourceOtherOptions": {
        "type": "object",
        "properties": {
          "copy_client_code_to_auth": {
            "type": "boolean"
          },
          "require_authorization": {
            "type": "boolean"
          }
        }
      },
      "UpsertFundingSourceModel": {
        "type": "object",
        "properties": {
          "api_key": {
            "type": "string"
          },
          "funding_source": {
            "$ref": "#/components/schemas/FundingSourceModel"
          }
        }
      },
      "ApiResponse_FundingSourceModel_": {
        "type": "object",
        "properties": {
          "Data": {
            "$ref": "#/components/schemas/FundingSourceModel"
          },
          "StatusCode": {
            "format": "int32",
            "type": "integer"
          },
          "Message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```