FundingSource

The client can DELETE, GET, PATCH, or POST funding source information. NOTE: You must have the ability to manage users.

Get Funding Source By ID Endpoint

Gets a single funding source by ID. NOTE: You must have the ability to manage users.

Request

GET{root_url}/v{version}/fundingsources/getFundingSourceById
ParameterTypeDescriptionNotes
api_keystringREQUIRED
funding_source_idintID of the funding sourceREQUIRED
includeInactiveFundingSourcesbooleanInclude removed funding sources
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful; Status code and message returned.
401User management is not allowed for this api_key.
403The API key used does not have access to this resource.

Sample 200 Response Body - Get Funding Sources Endpoint

The following sample response shows what a user would receive back for a request where the user only has a single funding source.

[
  "Data": [
    {
      "name": "000AAA",
      "account": "",
      "phone": "",
      "fax_number": "",
      "email": "",
      "is_payee": false,
      "address": {
        "address1": "123 main st",
        "address2": "",
        "city": "mesa",
        "state": "az",
        "zip": ""
      },
      "contact": {
        "primary_contact": {
          "first_name": "",
          "middle_name": "",
          "last_name": ""
        },
        "alternative_contact": {
          "first_name": "",
          "last_name": ""
        }
      },
      "options": {
        "mileage_charge_calculation_is_routed": true,
        "smartphone_options": {
          "require_passenger_signature_pickup": true,
          "require_passenger_signature_dropoff": false,
          "require_passenger_agreement": "",
          "require_driver_signature_pickup": false,
          "require_driver_signature_dropoff": false,
          "require_odometer": true,
          "display_cost_to_driver": false,
          "disable_display": false,
          "driver_cancel_deletes_charges": false
        },
        "other_options": {
          "copy_client_code_to_auth": false,
          "require_authorization": false
        }
      },
      "isActive": true
    }
]

Deactivate Funding Source By ID Endpoint

Deactivates an existing funding source. NOTE: You must have the ability to manage users.

Request

DELETE{root_url}/v{version}/fundingsources/deactivateFundingSourceById
ParameterTypeDescriptionNotes
api_keystringREQUIRED
funding_source_idintID of the funding sourceREQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful; Status code and message returned.
401User management is not allowed for this api_key.
403The API key used does not have access to this resource.

Sample 200 Response Body - Deactivate Funding Source Endpoint

The following sample response shows what a user would receive back from the deactivate funding source endpoint.

[
  {
    "StatusCode": 200,
    "Message": "Funding Source [Test FS] has been successfully removed."
  }
]

Deactivate FundingSource Endpoint

Deactivates an existing funding source. NOTE: You must have the ability to manage users.

Request

DELETE{root_url}/v{version}/fundingsource
ParameterTypeDescriptionNotes
api_keystringREQUIRED
funding_source_idintName of the funding source to deactivate.REQUIRED
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful; Status code and message returned.
401User management is not allowed for this api_key.
403The API key used does not have access to this resource.

Sample 200 Response Body - Deactivate Funding Source Endpoint

The following sample response shows what a user would receive back from the deactivate funding source endpoint.

[
  {
    "StatusCode": 200,
    "Message": "Funding Source [Test FS] has been successfully removed."
  }
]

Get Funding Sources Endpoint

Request

GET{root_url}/v{version}/fundingsources
ParameterTypeDescriptionNotes
api_keystringREQUIRED
funding_source_namestringFunding source name. Provide to get the funding source with this name.REQUIRED
includeInactiveFundingSourcesbooleanInclude removed funding sources
versionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Expected Response Codes

CodeDescription
200Request was successful; Status code and message returned.
401User management is not allowed for this api_key.
403The API key used does not have access to this resource.

Sample 200 Response Body - Get Funding Sources Endpoint

The following sample response shows what a user would receive back for a request where the user only has a single funding source.

[
  "Data": [
    {
      "name": "000AAA",
      "account": "",
      "phone": "",
      "fax_number": "",
      "email": "",
      "is_payee": false,
      "address": {
        "address1": "123 main st",
        "address2": "",
        "city": "mesa",
        "state": "az",
        "zip": ""
      },
      "contact": {
        "primary_contact": {
          "first_name": "",
          "middle_name": "",
          "last_name": ""
        },
        "alternative_contact": {
          "first_name": "",
          "last_name": ""
        }
      },
      "options": {
        "mileage_charge_calculation_is_routed": true,
        "smartphone_options": {
          "require_passenger_signature_pickup": true,
          "require_passenger_signature_dropoff": false,
          "require_passenger_agreement": "",
          "require_driver_signature_pickup": false,
          "require_driver_signature_dropoff": false,
          "require_odometer": true,
          "display_cost_to_driver": false,
          "disable_display": false,
          "driver_cancel_deletes_charges": false
        },
        "other_options": {
          "copy_client_code_to_auth": false,
          "require_authorization": false
        }
      },
      "isActive": true
    }
]

Update Funding Source Endpoint

Request

PATCH{root_url}/v{version}/fundingsources
ParameterTypeDescriptionNotes
ModelstringSee model definition belowREQUIRED
VersionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Model Definition

ParameterTypeDescriptionNotes
api_keystringREQUIRED
funding_source-
.namestringFunding Source NameREQUIRED
.accountstring
.phonestring
.fax_numberstring
.emailstring
.isPayeebooleanREQUIRED
.address-
..address1string
..address2string
..citystring
..statestring
..zipstring
.contact-
..primary_contact-
...first_namestring
...middle_namestring
...last_namestring
..alternative_contact-
...first_namestring
...middle_namestring
...last_namestring
.options-
..mileage_charge_calculation_is_routedboolean
..smartphone_options-
...require_passenger_signature_pickupboolean
...require_passenger_signature_dropoffboolean
...require_passenger_agreementboolean
...require_driver_signature_pickupboolean
...require_driver_signature_dropoffboolean
...require_odometerboolean
...display_cost_to_driverboolean
...disable_displayboolean
...driver_cancel_deletes_chargesboolean
..other_options-
...copy_client_code_to_authboolean
...require_authorizationboolean
.isActiveboolean

Expected Response Codes

CodeDescription
200Request was successful.
401User management is not allowed for this api_key.
403The API key used does not have access to this resource.

Funding Source Model Sample

{
  "api_key": "56e1015d588fgdpf448384b6b3a345dfgd564",
  "funding_source": {
    "name": "Test Funding Source",
    "account": "",
    "phone": "",
    "fax_number": "",
    "email": "",
    "is_payee": false,
    "address": {
      "address1": "123 Main St",
      "address2": "",
      "city": "Mesa",
      "state": "AZ",
      "zip": ""
    },
    "contact": {
      "primary_contact": {
        "first_name": "",
        "middle_name": "",
        "last_name": ""
      },
      "alternative_contact": {
        "first_name": "",
        "middle_name": "",
        "last_name": ""
      }
    },
    "options": {
      "mileage_charge_calculation_is_routed": true,
      "smartphone_options": {
        "require_passenger_signature_pickup": true,
        "require_passenger_signature_dropoff": true,
        "require_passenger_agreement": "",
        "require_driver_signature_pickup": true,
        "require_driver_signature_dropoff": true,
        "require_odometer": true,
        "display_cost_to_driver": true,
        "disable_display": true,
        "driver_cancel_deletes_charges": true
      },
      "other_options": {
        "copy_client_code_to_auth": true,
        "require_authorization": true
      }
    },
    "isActive": true
  }
}

Create Funding Source Endpoint

Request

POST{root_url}/v{version}/fundingsources
ParameterTypeDescriptionNotes
ModelstringSee model definition belowREQUIRED
VersionintAPI version; currently = "1"REQUIRED
Authorizationstringbearer {access token}REQUIRED

Model Definition

ParameterTypeDescriptionNotes
api_keystringREQUIRED
funding_source-
.namestringFunding Source NameREQUIRED
.accountstring
.phonestring
.fax_numberstring
.emailstring
.isPayeebooleanREQUIRED
.address-
..address1string
..address2string
..citystring
..statestring
..zipstring
.contact-
..primary_contact-
...first_namestring
...middle_namestring
...last_namestring
..alternative_contact-
...first_namestring
...middle_namestring
...last_namestring
.options-
..mileage_charge_calculation_is_routedboolean
..smartphone_options-
...require_passenger_signature_pickupboolean
...require_passenger_signature_dropoffboolean
...require_passenger_agreementboolean
...require_driver_signature_pickupboolean
...require_driver_signature_dropoffboolean
...require_odometerboolean
...display_cost_to_driverboolean
...disable_displayboolean
...driver_cancel_deletes_chargesboolean
..other_options-
...copy_client_code_to_authboolean
...require_authorizationboolean
.isActiveboolean

Expected Response Codes

CodeDescription
200Request was successful.
401User management is not allowed for this api_key.
403The API key used does not have access to this resource.

Funding Source Model Sample

{
  "api_key": "56e1015d588fgdpf448384b6b3a345dfgd564",
  "funding_source": {
    "name": "Test Funding Source",
    "account": "",
    "phone": "",
    "fax_number": "",
    "email": "",
    "is_payee": false,
    "address": {
      "address1": "123 Main St",
      "address2": "",
      "city": "Mesa",
      "state": "AZ",
      "zip": ""
    },
    "contact": {
      "primary_contact": {
        "first_name": "",
        "middle_name": "",
        "last_name": ""
      },
      "alternative_contact": {
        "first_name": "",
        "middle_name": "",
        "last_name": ""
      }
    },
    "options": {
      "mileage_charge_calculation_is_routed": true,
      "smartphone_options": {
        "require_passenger_signature_pickup": true,
        "require_passenger_signature_dropoff": true,
        "require_passenger_agreement": "",
        "require_driver_signature_pickup": true,
        "require_driver_signature_dropoff": true,
        "require_odometer": true,
        "display_cost_to_driver": true,
        "disable_display": true,
        "driver_cancel_deletes_charges": true
      },
      "other_options": {
        "copy_client_code_to_auth": true,
        "require_authorization": true
      }
    },
    "isActive": true
  }
}