import Fiatwebservices from 'fiatwebservices';
const client = new Fiatwebservices({
apiKey: process.env['FWS_API_KEY'], // This is the default and can be omitted
});
async function main() {
const rtp = await client.transfer.rtp.create({ message: '<xml/>' });
console.log(rtp.id);
}
main();{
"id": "019545cd-c9d1-797d-b2e8-e704c3109311",
"organizationId": "019545cd-c9d1-797d-b2e8-e704c3109311",
"createdAt": "2025-02-27",
"direction": "credit",
"type": "sepa",
"initiatingPartyId": "019545cd-c9d1-797d-b2e8-e704c3109311",
"messageId": "1234",
"creationDate": "2025-02-27",
"categoryPurposeCode": "1234",
"paymentInformationId": "1234"
}{
"error": "Invalid payment type"
}Post payment transfersrtp
import Fiatwebservices from 'fiatwebservices';
const client = new Fiatwebservices({
apiKey: process.env['FWS_API_KEY'], // This is the default and can be omitted
});
async function main() {
const rtp = await client.transfer.rtp.create({ message: '<xml/>' });
console.log(rtp.id);
}
main();{
"id": "019545cd-c9d1-797d-b2e8-e704c3109311",
"organizationId": "019545cd-c9d1-797d-b2e8-e704c3109311",
"createdAt": "2025-02-27",
"direction": "credit",
"type": "sepa",
"initiatingPartyId": "019545cd-c9d1-797d-b2e8-e704c3109311",
"messageId": "1234",
"creationDate": "2025-02-27",
"categoryPurposeCode": "1234",
"paymentInformationId": "1234"
}{
"error": "Invalid payment type"
}Body
The XML message of the transfer.
"<xml/>"
Response
The payment transfer creation response.
The payment transfer object.
The internal ID of the payment transfer.
"019545cd-c9d1-797d-b2e8-e704c3109311"
The internal ID of the organization.
"019545cd-c9d1-797d-b2e8-e704c3109311"
The date and time when the payment transfer was created
"2025-02-27"
The direction of the payment transfer.
debit, credit "credit"
The payment rail type of the transfer.
swift, sepa, ach, rtp "sepa"
The initiating party of the payment transfer.
"019545cd-c9d1-797d-b2e8-e704c3109311"
The message ID of the payment transfer. Used to identify the message.
"1234"
The date and time when the payment transfer was created
"2025-02-27"
The category purpose code of the payment transfer.
"1234"
The information ID of the payment transfer. Used to identify the entire transfer.
"1234"