Logo
Adyen APIs API Documentation

Update the conditions in split configuration rule

PATCH {{baseUrl}}/merchants/:merchantId/splitConfigurations/:splitConfigurationId/rules/:ruleId

Changes the conditions of the split configuration rule specified in the path. To make this request, your API credential must have the following role: * Management API - SplitConfiguration read and write

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "description": "Your description for the split configuration", "rules": [{ "currency": "ANY", "fundingSource": "ANY", "paymentMethod": "ANY", "ruleId": "SCRL4224P22322585HPCX384JW65VW", "shopperInteraction": "ANY", "splitLogic": { "additionalCommission": { "fixedAmount": 10, "variablePercentage": 50, "balanceAccountId": "BA3227C223222H5HQ2XX77VVH" }, "chargeback": "deductFromLiableAccount", "commission": { "fixedAmount": 10, "variablePercentage": 100 }, "splitLogicId": "SCLG4224P22322585HPCX384JX52M2", "paymentFee": "deductFromLiableAccount", "remainder": "addToOneBalanceAccount", "tip": "addToOneBalanceAccount" } }, { "currency": "EUR", "fundingSource": "ANY", "paymentMethod": "visa", "ruleId": "SCRL4224P22322585HPCX5V4KV6L2R", "shopperInteraction": "ANY", "splitLogic": { "additionalCommission": { "fixedAmount": 10, "variablePercentage": 50, "balanceAccountId": "BA3227C223222H5HQ2XX77VVH" }, "chargeback": "deductFromLiableAccount", "commission": { "fixedAmount": 10, "variablePercentage": 100 }, "splitLogicId": "SCLG4224P22322585HPCX5V4KW26C9", "paymentFee": "deductFromLiableAccount", "remainder": "addToLiableAccount", "tip": "addToOneBalanceAccount" } }], "splitConfigurationId": "SCNF4224P22322585HPCX384JV6JGX" }



Curl
curl -X PATCH 'https://management-test.adyen.com/v3/merchants/:merchantId/splitConfigurations/:splitConfigurationId/rules/:ruleId' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"currency":"EUR","fundingSource":"ANY","paymentMethod":"visa","shopperInteraction":"ANY"}'

ENDPOINTS