Captures the transaction using PaymentId.
When capturing a Split de Pagamento transaction, the master must provide the transaction split rules. If the rules are not provided, Split will assume that the full amount belongs to the master
Total capture
In a total capture of a transaction, the sum of all sellers' participation amounts must equal the total transaction amount sent at the time of authorization.
Request
{
"SplitPayments":[
{
"SubordinateMerchantId": "e5147542-0c0e-45d4-b6a8-a5a7167e6ae7",
"Amount": 6000,
"Fares": {
"Mdr": 5,
"Fee": 30
}
},
{
"SubordinateMerchantId" :"f1531485-adb3-4320-9b14-dbc07eea2b3e",
"Amount":4000,
"Fares":{
"Mdr":4,
"Fee":15
}
}
]
}Response
{
"Status": 2,
"ReasonCode": 0,
"ReasonMessage": "Successful",
"ProviderReturnCode": "6",
"ProviderReturnMessage": "Operation Successful",
"ReturnCode": "6",
"ReturnMessage": "Operation Successful",
"SplitPayments": [
{
"SubordinateMerchantId": "e5147542-0c0e-45d4-b6a8-a5a7167e6ae7",
"Amount": 6000,
"Fares": {
"Mdr": 5,
"Fee": 30
},
"Splits": [
{
"MerchantId": "e5147542-0c0e-45d4-b6a8-a5a7167e6ae7",
"Amount": 5670
},
{
"MerchantId": "4b3f216c-69d7-44cf-a2d1-dbd1439429c3",
"Amount": 330
}
]
},
{
"SubordinateMerchantId": "f1531485-adb3-4320-9b14-dbc07eea2b3e",
"Amount": 4000,
"Fares": {
"Mdr": 4,
"Fee": 15
},
"Splits": [
{
"MerchantId": "f1531485-adb3-4320-9b14-dbc07eea2b3e",
"Amount": 3825
},
{
"MerchantId": "4b3f216c-69d7-44cf-a2d1-dbd1439429c3",
"Amount": 175
}
]
}
],
"Links": [
{
"Method": "GET",
"Rel": "self",
"Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/db14bf98-5ebd-43b5-8ba6-205c30ec1c16"
},
{
"Method": "PUT",
"Rel": "void",
"Href": "https://apisandbox.cieloecommerce.cielo.com.br/1/sales/db14bf98-5ebd-43b5-8ba6-205c30ec1c16/void"
}
]
}Partial capture
In a partial capture of a transaction, the sum of all sellers' participation amounts must equal the total amount to be captured. If no split rules are provided, Split de Pagamento will assume that the full amount belongs to the master.
Request
The example below partially captures the amount of R$80.00 from a transaction originally made for R$100.00, where R$50.00 will be captured from seller A and R$30.00 from seller B.
{
"SplitPayments":[
{
"SubordinateMerchantId": "e5147542-0c0e-45d4-b6a8-a5a7167e6ae7",
"Amount": 5000,
"Fares": {
"Mdr": 5,
"Fee": 30
}
},
{
"SubordinateMerchantId" :"f1531485-adb3-4320-9b14-dbc07eea2b3e",
"Amount":3000,
"Fares":{
"Mdr":4,
"Fee":15
}
}
]
}Response
{
"Status": 2,
"ReasonCode": 0,
"ReasonMessage": "Successful",
"ProviderReturnCode": "6",
"ProviderReturnMessage": "Operation Successful",
"ReturnCode": "6",
"ReturnMessage": "Operation Successful",
"SplitPayments": [
{
"SubordinateMerchantId": "e5147542-0c0e-45d4-b6a8-a5a7167e6ae7",
"Amount": 5000,
"Fares": {
"Mdr": 5,
"Fee": 30
},
"Splits": [
{
"MerchantId": "e5147542-0c0e-45d4-b6a8-a5a7167e6ae7",
"Amount": 4720
},
{
"MerchantId": "4b3f216c-69d7-44cf-a2d1-dbd1439429c3",
"Amount": 280
}
]
},
{
"SubordinateMerchantId": "f1531485-adb3-4320-9b14-dbc07eea2b3e",
"Amount": 3000,
"Fares": {
"Mdr": 4,
"Fee": 15
},
"Splits": [
{
"MerchantId": "f1531485-adb3-4320-9b14-dbc07eea2b3e",
"Amount": 2865
},
{
"MerchantId": "4b3f216c-69d7-44cf-a2d1-dbd1439429c3",
"Amount": 135
}
]
}
],
"Links": [
{
"Method": "GET",
"Rel": "self",
"Href": "https://apiquerysandbox.cieloecommerce.cielo.com.br/1/sales/7bd7fc3a-4385-45cf-8a45-ec0349716b68"
},
{
"Method": "PUT",
"Rel": "void",
"Href": "https://apisandbox.cieloecommerce.cielo.com.br/1/sales/7bd7fc3a-4385-45cf-8a45-ec0349716b68/void"
}
]
}