Manage your Payment Distribution Transactions

Use these methods to modify or remove your distribution transactions.

In this article, you will learn how to manage your distribution transactions. The methods we offer allow you to modify the total value or to remove a distribution transaction that has not yet been cashed.

Modify your Transactions

If you need to modify the value of a transaction, you have to do it before the user withdraws the money.

To modify the value of a transaction, you have to find the ticket number. This ticket number must be submitted as a path parameter in the modification endpoint. Also, you must specify, in the body of the request, the new value of the transaction.

  • Javascript
  • Python
  • PHP
var request = require('request');
var options = {
'method': 'PATCH',
'url': 'https://api-uat.kushkipagos.com/payouts/cash/v1/charges/ticket-number', // Test environment, replace with your the ticket number
'headers': {
'Private-Merchant-Id': '', // Replace with your Private Key
'Content-Type': 'application/json'
},
body: JSON.stringify({
"totalAmount":99.99 // Replace with the new value
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
// Submit your code when receive the response
});
import requests
url = "https://api-uat.kushkipagos.com/payouts/cash/v1/charges/ticket number" // Test environment, replace with your the ticket number
payload = "{\n \"totalAmount\": 99.99\n}" // Replace with the new value
headers = {
'Private-Merchant-Id': '', // Replace with your Private Key
'Content-Type': 'application/json'
}
response = requests.request("PATCH", url, headers=headers, data = payload)
print(response.text)
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://api-uat.kushkipagos.com/payouts/cash/v1/charges/ticket number'); // Test environment, replace with your the ticket number
$request->setRequestMethod('PATCH');
$body = new http\Message\Body;
$body->append('{
"totalAmount": 99.99 // Replace with the new value
}');
$request->setBody($body);
$request->setOptions(array());
$request->setHeaders(array(
'Private-Merchant-Id' => '', // Replace with your Private Key
'Content-Type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();

Remove your Transactions

If you need to remove a transaction, you should do it before the user withdraws the money.

To remove a transaction, you have to find the ticket number. This ticket number must be submitted as a path parameter in the removal endpoint.

  • Javascript
  • Python
  • PHP
var request = require('request');
var options = {
'method': 'DELETE',
'url': 'https://api-uat.kushkipagos.com/payouts/cash/v1/charges/ticket number', // Test environment, replace with your the ticket number
'headers': {
'Private-Merchant-Id': '' // Replace with your Private Key
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
import requests
url = "https://api-uat.kushkipagos.com/payouts/cash/v1/charges/ticket number" // Test environment, replace with your the ticket number
payload = {}
headers = {
'Private-Merchant-Id': '' // Replace with your Private Key
}
response = requests.request("DELETE", url, headers=headers, data = payload)
print(response.text)
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://api-uat.kushkipagos.com/payouts/cash/v1/charges/ticket number'); // Test environment, replace with your the ticket number
$request->setRequestMethod('DELETE');
$request->setOptions(array());
$request->setHeaders(array(
'Private-Merchant-Id' => '' // Replace with your Private Key
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();

Accept Webhooks

Manage correctly post-payment events.

Distribute payments through wire transfers

Distribute payments safely by wire transfers.