ReadyRemit Transfer Response
Transfer submission response structure
Overview
The ReadyRemitTransferResponse interface defines the structure of a successful transfer response. This response should be returned by your verifyFundsAndCreateTransfer callback after successfully processing a transfer request.
Definition
export interface ReadyRemitTransferResponse {
transferId: string;
}Properties
| Property | Type | Required | Description |
|---|---|---|---|
| transferId | string | Yes | The unique identifier for the created transfer. This ID can be used to track and reference the transfer in subsequent operations. |
Sample Usage
import type {
ReadyRemitTransferRequest,
ReadyRemitTransferResponse
} from 'react-native-ready-remit-sdk';
const verifyFundsAndCreateTransfer = async (
request: ReadyRemitTransferRequest
): Promise<ReadyRemitTransferResponse> => {
const response = await fetch('https://your-api.com/transfers', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(request),
});
const data = await response.json();
return {
transferId: data.id,
};
};Example Response
{
"transferId": "TXN-2026-0204-ABC123"
}Related
- Verify Funds and Create Transfer - Callback that returns this response
- ReadyRemitTransferRequest - The request structure sent to your callback
- ReadyRemitError - Error response structure when transfer fails
Updated 4 days ago
