This method retrieves the posted merchant payout transaction. For payload explanations for both request and response, click here
using OneKhusa.SDK; 
using OneKhusa.SDK.Models.Transactions.SingleDisbursements; 

//code omitted for brevity 

OneKhusaResponse<GetPayoutResponse> response = await client 
    .Transactions 
    .SingleDisbursements 
    .GetPayoutAsync(new GetPayoutRequest 
    { 
        TransactionReferenceNumber = "260219YXF882", 
        MerchantAccountNumber = 12345678 
    }); 

if (response is { IsSuccess: true, Data: not null }) 
{ 
    Console.WriteLine($""" 
    	MerchantAccountNumber: {response.Data.MerchantAccountNumber}; 
    	MerchantAccountName: {response.Data.MerchantAccountName}; 
    	BeneficiaryAccountNumber: {response.Data.BeneficiaryAccountNumber}; 
    	BeneficiaryName: {response.Data.BeneficiaryName}; 
    	ConnectorName: {response.Data.ConnectorName};  
    	CurrencyCode: {response.Data.CurrencyCode}; 
    	TransactionReferenceNumber: {response.Data.TransactionReferenceNumber}; 
    	SourceReferenceNumber: {response.Data.SourceReferenceNumber}; 
    	TransactionAmount: {response.Data.TransactionAmount}; 
    	TransactionFee: {response.Data.TransactionFee}; 
    	TransactionDescription: {response.Data.TransactionDescription}; 
    	TransactionDate: {response.Data.TransactionDate}; 
    	TransactionStatusCode: {response.Data.TransactionStatusCode}; 
    	TransactionStatusName: {response.Data.TransactionStatusName}; 
    	TransactionType: {response.Data.TransactionType}; 
    	ProcessedDate: {response.Data.ProcessedDate}; 
    	ResponseCode: {response.Data.ResponseCode}; 
    	ResponseMessage: {response.Data.ResponseMessage} 
    """); 
    return; 
} 
//it means an error has occurred: RFC7807 compliant error object
Console.WriteLine($"""
        Type: {response.Error?.Type};
        Title: {response.Error?.Title};
        Detail: {response.Error?.Detail};
        ErrorCode: {response.Error?.ErrorCode};
        Status: {response.Error?.Status};
        Instance: {response.Error?.Instance};
        Errors: {string.Join(";", response.Error?.Errors ?? [])}
""");
Console.ReadLine();