⚙️Add or replace a funding map line
Add a new line to a payment account's funding map or replace an existing line with the same key. The request adds or replaces only that line, while other lines remain in the map. Vitesse publishes the complete updated map as a new version.
Endpoints
| Environment | Method and URL |
|---|---|
| Staging | PUT https://staging-api.vitessepsp.com/api/account/{id}/fundingmap/lines/{keyValue} |
| Production – UK Hub | PUT https://api.vitessepsp.com/api/account/{id}/fundingmap/lines/{keyValue} |
| Production – US Hub | PUT https://api.us.vitesse.io/api/account/{id}/fundingmap/lines/{keyValue} |
Replace {id} with the payment account ID and {keyValue} with the line key. Matching is case-insensitive.
For help choosing an environment, see ⚙️Environments.
Access requirements
Configure the following access:
| OAuth scope | Identity client role |
|---|---|
API | DynamicRiskSharingConfiguration.Update |
For more information about scopes, see ⚙️Authentication. For information about the access granted by specific roles, see Identity client roles.
Before you begin
- The payment account must have a funding map and a funding panel.
- Each funding account in the map line must belong to that payment account's funding panel.
- Include exactly one lead funding account in the map line.
- Decide whether the
linetypeisPercentageorAmount. A map line cannot mix the two. - For an
Amountline, the payment request'ssendValuemust equal the sum of the configured amounts. You cannot use amount lines with requests that usereceiveValue.
Send the request
This example creates or replaces a percentage line in Staging:
curl --request PUT \
--url 'https://staging-api.vitessepsp.com/api/account/3761/fundingmap/lines/POL-78421-SEC-A' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"lineType": "Percentage",
"splits": [
{ "fundingAccountId": 7314, "value": 60.000000, "isLead": true },
{ "fundingAccountId": 8426, "value": 40.000000, "isLead": false }
]
}'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 with a summary of the published funding map version:
{
"paymentAccountId": 3761,
"fundingMapVersionId": 13,
"versionNumber": 5,
"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 key, line type, funding account IDs, lead designation, and split values.
401 Unauthorized– check account access and the required role.404 Not Found– check the payment account and funding map.409 Conflict– a funding map version is pending approval. Resolve that change before trying again.500 Internal Server Error– retry later. Contact Support if the error continues.
Next steps
- Retrieve the funding map to confirm the published line.
- Use the line key as
fundingMapKeywhen making an eligible transaction.
Updated 1 day ago