Create a split configuration
POST {{baseUrl}}/merchants/:merchantId/splitConfigurations
Creates a split configuration for the merchant account specified in the path. To make this request, your API credential must have the following role: * Management API - SplitConfiguration read and write
Request Body
{"description"=>"Your description for the split configuration", "rules"=>[{"paymentMethod"=>"ANY", "shopperInteraction"=>"ANY", "fundingSource"=>"ANY", "currency"=>"ANY", "splitLogic"=>{"paymentFee"=>"deductFromLiableAccount", "chargeback"=>"deductFromLiableAccount", "tip"=>"addToOneBalanceAccount", "remainder"=>"addToOneBalanceAccount", "commission"=>{"fixedAmount"=>10, "variablePercentage"=>100}, "additionalCommission"=>{"fixedAmount"=>10, "variablePercentage"=>50, "balanceAccountId"=>"BA3227C223222H5HQ2XX77VVH"}}}]}
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"}}],"splitConfigurationId":"SCNF4224P22322585HPCX384JV6JGX"}