PaymentInstruction

The base interface for all payment instructions.

interface PaymentInstruction {
  id?: string;
  direction: 'credit' | 'debit';
  amount: number;
  currency: Currency;
  debtor?: Party;
  creditor?: Party;
  remittanceInformation?: string;
}
id
string

Unique identifier for the payment instruction.

direction
string

Indicates whether the payment is a credit or debit.

amount
number

The amount of the payment.

currency
Currency

The currency of the payment.

debtor
Party

The party from which the payment is debited.

creditor
Party

The party to which the payment is credited.

remittanceInformation
string

Additional information about the payment.

SWIFTCreditPaymentInstruction

Extends PaymentInstruction for SWIFT credit payments.

interface SWIFTCreditPaymentInstruction extends PaymentInstruction {
  type: 'swift';
  direction: 'credit';
  creditor: Party;
}
type
string

Specifies that this is a SWIFT payment.

direction
string

Always ‘credit’ for SWIFT payments.

creditor
Party

The party to which the payment is credited (required for SWIFT payments).