⚙️Retrieve an account funding map

Retrieve the funding map for a specific payment account and list its map lines. Each map line has a key and defines the funding allocation. It can either allocate by percentage or amount.

Endpoints

EnvironmentMethod and URL
StagingGET https://staging-api.vitessepsp.com/api/account/{id}/fundingmap
Production – UK HubGET https://api.vitessepsp.com/api/account/{id}/fundingmap
Production – US HubGET https://api.us.vitesse.io/api/account/{id}/fundingmap

Replace {id} with the payment account ID.

To filter the results, add ?lineType=Percentage or ?lineType=Amount. Omit lineType to return both types. Other values return 400 Bad Request.

For help choosing an environment, see ⚙️Environments.

Access requirements

Configure the following access:

OAuth scopeIdentity client role
APIDynamicRiskSharingConfiguration.Lookup

For more information about scopes, see ⚙️Authentication. For information about the access granted by specific roles, see Identity client roles.

Send the request

This example retrieves all map lines with a lineType of Percentage in Staging:

curl --request GET \
  --url 'https://staging-api.vitessepsp.com/api/account/3761/fundingmap?lineType=Percentage' \
  --header 'Authorization: Bearer <access-token>' \
  --header 'Accept: application/json'

Replace <access-token> with a valid access token that contains the required scope, and any example values with your own details.

Example response

A successful request returns 200 OK and a fundingMapLines array. This example contains one percentage line:

{
  "fundingMapLines": [
    {
      "keyValue": "POL-78421-SEC-A",
      "lineType": "Percentage",
      "splits": [
        {
          "fundingAccountId": 7314,
          "fundingAccountName": "Northstar Syndicate 1986",
          "isLead": true,
          "value": 60.0
        },
        {
          "fundingAccountId": 8426,
          "fundingAccountName": "Harbour Mutual Insurance",
          "isLead": false,
          "value": 40.0
        }
      ]
    }
  ]
}

If the account supports funding maps but has no saved lines, Vitesse returns 200 OK with an empty fundingMapLines array.

If lineType is undefined, the default is Percentage.

To apply a funding split when you make a transaction, send the relevant keyValue as the fundingMapKey.

Troubleshoot requests

If the request fails, use the returned HTTP status code to identify the likely cause and corrective action.

For error response formats, additional HTTP status codes and error-handling guidance, see ⚙️Error responses.

  • 400 Bad Request – check that lineType, if supplied, is Amount or Percentage.
  • 401 Unauthorized – check account access and the required role.
  • 404 Not Found – check the payment account ID and that the account supports funding maps.

Next steps


Related information