⚙️Create a funding map

Create a funding map by submitting all its allocation lines for a payment account. The initial request creates and publishes the account's first funding map version.

You cannot have multiple funding maps. If a funding map exists for the account, then using this endpoint will replace the complete map with a new version. Ensure that you include every line you want to keep.

Endpoints

EnvironmentMethod and URL
StagingPUT https://staging-api.vitessepsp.com/api/funding-maps/{id}
Production – UK HubPUT https://api.vitessepsp.com/api/funding-maps/{id}
Production – US HubPUT https://api.us.vitesse.io/api/funding-maps/{id}

Replace {id} with the payment account ID.

For help choosing an environment, see ⚙️Environments.

Access requirements

Configure the following access:

OAuth scopeIdentity client role
APIrisk-sharing-management.funding-map.replace ??? out of keeping with others

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

Before you begin

  • Make sure the payment account is enabled for funding maps and has a funding panel. Every funding account in a line must belong to that panel. See ⚙️List account funding panel.
  • Prepare every allocation line you want in the map. Each line needs a unique key, a split type Percentage or Amount), and exactly one lead funding account.

Send the request

This example uses the Staging environment:

curl --request PUT \
  --url 'https://staging-api.vitessepsp.com/api/funding-maps/3761' \
  --header 'Authorization: Bearer <access-token>' \
  --header 'Accept: application/json' \
  --data '{
    "Lines": [
      {
        "KeyValue": "POL-78421-SEC-A",
        "LineType": "Percentage",
        "Splits": [
          { "FundingAccountId": 7314, "Value": 60.000000, "IsLead": true },
          { "FundingAccountId": 8426, "Value": 40.000000, "IsLead": false }
      ]
    },
    {
      "KeyValue": "POL-78421-SEC-B",
      "LineType": "Amount",
      "Splits": [
        { "FundingAccountId": 7314, "Value": 750.00, "IsLead": true },
        { "FundingAccountId": 8426, "Value": 250.00, "IsLead": false }
      ]
    }
  ]
}'

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

Include every line you want in the map in Lines. Each line must contain at least one split, with unique funding account IDs and exactly one lead.

Publishing an empty Lines array will create an empty map with a new version. To add or replace a line in an existing map, use ⚙️Add a funding map line. To delete a funding map line, see ⚙️Delete a funding map line​.

Use letters, numbers, hyphens, underscores or dots in the key. Limit it to 50 characters.

For lineType: "Percentage", enter positive values with no more than six decimal places. The values must total exactly 100.

For lineType: "Amount", enter positive values with no more than two decimal places. Their total sets the transaction's sendValue. Vitesse converts the amounts to percentages for processing.

Example response

A successful request returns 200 OK and a summary of the newly published version:

{
  "PaymentAccountId": 3761,
  "FundingMapVersionId": 12,
  "VersionNumber": 1,
  "Status": "Published",
  "LineCount": 2
}

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 the line keys, split types, funding account IDs, lead designation, and values.
  • 401 Unauthorized – check that the identity client can access the payment account and has the required role.
  • 403 Forbidden – check the required scope, role, and client restriction.
  • 404 Not Found – check the payment account ID and that it has at least one linked funding account.
  • 409 Conflict – a funding map version is pending approval.

Next steps


Related information