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

PropertyTypeRequiredDescription
transferIdstringYesThe 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