Payout API built for developers
We built our platform to make integration easy for developers.
- Modern REST API based on REST principles
- SDKs in curl, JavaScript, Ruby, PHP, Python and C#
- Full API documentation


The Global Payment Platform
It's never been easier to grow your business internationally. Get access to Trolley’s next generation payments infrastructure and global banking network to send funds to suppliers and contractors around the world.
const paymentrails = require('paymentrails');
const client = paymentrails.connect({
key: "YOUR-API-KEY",
secret: "YOUR-API-SECRET",
environment: "production",
});
// Async/Await version
async function main() {
const recipient = await client.recipient.find("R-G7SXXpm6cs4aTUd9YhmgWC");
console.log(recipient.id);
}
main();
// Promise version
client.recipient.find("R-G7SXXpm6cs4aTUd9YhmgWC").then(recipient => {
console.log(recipient.id);
}).catch(err => {
console.log("ERROR", err);
});
from paymentrails.configuration import Configuration
from paymentrails.recipients import Recipients
client = Configuration.gateway("YOUR-PUBLIC-API","YOUR-PRIVATE-API","production")
response = client.recipient.find("R-WJniNq7PUXyboAJetimmJ4")
print(response.id)
require 'payment_rails'
payments = [
{recipient: 1, amount: 100, currency: "USD"},
{recipient: 2, amount: 200, currency: "CAD"}
]
client = PaymentRails.connect(api_key: "")
client.batches.create(recipient)
// This line is for the Composer autoloader
require_once 'vendor/autoload.php';
// Or use this if installed via git clone
// require_once 'php-sdk/lib/autoload.php';
use PaymentRails;
// Configure API key authorization: merchantKey
PaymentRails\Configuration::environment('production');
PaymentRails\Configuration::publicKey(YOUR_PUBLIC_KEY);
PaymentRails\Configuration::privateKey(YOUR_PRIVATE_KEY);
try {
$recipients = PaymentRails\Recipient::all();
foreach ($recipients as $rcpt) {
print_r($rcpt->id . "\n");
}
} catch (Exception $e) {
echo 'Exception when calling PaymentRails\\Recipient::all ', $e->getMessage(), PHP_EOL;
}
using paymentrails.Types;
using paymentrails;
class Program
{
static void Main(string[] args)
{
// set your API key
var client = new PaymentRails_Gateway("YOUR-API-KEY", "YOUR-SECRET-KEY", "production");
Recipient response = client.recipient.find("R-4q7zxMa26hpZhx7ULApBGw");
Console.WriteLine(response.id);
Console.Read();
}
}


International Payment Technology Built for Scale
From global mass payouts, to real-time currency conversions, our APIs can help you create a tailored solution that meets your unique payment needs. We’ve designed our APIs using RESTful architecture making it an easy and frictionless experience.
With our robust Payout API, you can be up and running within minutes and paying the world.
Easy Integration
With our robust Payout API, you can be up and running within minutes and paying the world.
- Payout API
- JS Widget
- Web Dashboard


Power Your Platform
It has never been easier to grow your business internationally. Get access to Trolley’s next-generation payments infrastructure and global banking network.
Automate Your FX
Expand Your Payment Capabilities
Global Reach
Payment Automation
Webhooks & Slack
Developer Sandbox
Ready to get started?
Integrate, onboard, schedule, pay, communicate, and comply—all from the Trolley platform & API—with little effort required.

