Integrate PayTransa's robust API. Secure, RESTful, and built for scale.
Use Bearer tokens to authenticate your requests. Never share your secret keys.
GET /v2/accounts HTTP/1.1
Host: api.paytransa.com
Authorization: Bearer sk_test_51MzS...
/v2/transfer/create
| Param | Type | Req | Description |
|---|---|---|---|
| amount | int64 | Yes | Value in cents. |
| dest_acc | string | Yes | Recipient UUID. |
| type | string | No | "internal" or "swift". |
$ch = curl_init('https://api.paytransa.com/v2/transfer/create');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'amount' => 50000,
'dest_acc' => 'USR_9921',
'currency' => 'USD'
]));
$response = curl_exec($ch);
| Code | Status | Meaning |
|---|---|---|
| 200 | OK | The request was successful. |
| 401 | Unauthorized | Invalid API Key. |
| 402 | Failed | Insufficient balance in wallet. |
| 429 | Rate Limit | Too many requests per second. |