Retrieve a transfer
Retrieve details of a specific transfer using its ID. Returns the transfer object including status, amount, recipient information, and timestamps.
Request Parametersโ
Required - 1 fieldRequired Parameters
`id`STRING(required)
Transfer ID (e.g., trsf_test_...). Provided in the URL path.
Responsesโ
200
Successful transactionTransfer retrieved successfully. Returns complete transfer object with all attributes.
Returned transfer attributes:
object- Always "transfer"id- Transfer identifier (pattern: trsf_test_* or trsf_*)livemode- Boolean indicating live (true) or test (false) modeamount- Transfer amount in smallest currency unitcurrency- Three-letter ISO 4217 currency codefee- Omise transfer fee in smallest currency unittotal_fee- Fee plus VAT in smallest currency unitnet- Amount minus total_fee (actual amount recipient receives)recipient- Recipient object or ID (expandable)bank_account- Destination bank account detailssendable- Boolean indicating if transfer can be sentsent- Boolean indicating if transfer has been sentpaid- Boolean indicating if transfer has been paidfail_fast- Boolean indicating retry behavior on failurefailure_code- Error code if transfer failedfailure_message- Error message if transfer failedmetadata- Custom key-value pairscreated_at- ISO 8601 creation timestampsent_at- ISO 8601 timestamp when transfer was sentpaid_at- ISO 8601 timestamp when transfer was paid
401
UnauthorizedAuthentication failed. Invalid or missing API key.
Common causes:
- Missing Authorization header
- Invalid secret key
- Using public key instead of secret key
- Incorrect HTTP Basic Auth format
404
Not foundTransfer not found.
Common causes:
- Invalid transfer ID
- Transfer does not belong to your account
- Transfer has been deleted
- Mixing test and live mode IDs
5xx
Server errorServer-side error occurred. These are rare but should be handled gracefully.
How to handle:
- Retry the request with exponential backoff
- Check status.omise.co for service incidents
- See Error Handling for detailed guidance
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/transfers/trsf_test_5xuy4w91xqz7d1w9u0t \
-u skey_test_5xuy4w91xqz7d1w9u0t:
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
transfer = Omise::Transfer.retrieve('trsf_test_5xuy4w91xqz7d1w9u0t')
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
transfer = omise.Transfer.retrieve('trsf_test_5xuy4w91xqz7d1w9u0t')
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const transfer = await omise.transfers.retrieve('trsf_test_5xuy4w91xqz7d1w9u0t');
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$transfer = OmiseTransfer::retrieve('trsf_test_5xuy4w91xqz7d1w9u0t');
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
Transfer transfer = client.transfers()
.get("trsf_test_5xuy4w91xqz7d1w9u0t");
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var transfer = await client.Transfers.Get("trsf_test_5xuy4w91xqz7d1w9u0t");
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
transfer, _ := client.Transfers().Get("trsf_test_5xuy4w91xqz7d1w9u0t")
API Credentials
Try it outโ
Required - 1 fields
Your IP:
...Loading...