Add rule to a split configuration

POST {{baseUrl}}/merchants/:merchantId/splitConfigurations/:splitConfigurationId

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

Request Body

{"paymentMethod"=>"visa", "shopperInteraction"=>"POS", "fundingSource"=>"ANY", "currency"=>"USD", "splitLogic"=>{"paymentFee"=>"deductFromLiableAccount", "chargeback"=>"deductFromLiableAccount", "tip"=>"addToOneBalanceAccount", "remainder"=>"addToLiableAccount", "commission"=>{"fixedAmount"=>10, "variablePercentage"=>100}, "additionalCommission"=>{"fixedAmount"=>10, "variablePercentage"=>50, "balanceAccountId"=>"BA3227C223222H5HQ2XX77VVH"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"description":"My first 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":"USD","fundingSource":"ANY","paymentMethod":"visa","ruleId":"SCRL4224P22322585HPCX5V4KV6L2R","shopperInteraction":"POS","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"}