Reference Transactions
PayPal does not allow ad hoc Credentials on File (COF) type repeat or recurring transactions using the xref of a reference transaction unless that transaction has specifically started a PayPal Billing Agreement.
If you want to be able to make future repeat or recurring transactions, then the initial transaction must include the billingType and billingAgreementDescription options in the checkoutOptions so as to identify this transaction as the start of a recurring billing sequence.
This will cause the Gateway to request PayPal to set up a Billing Agreement between you and the Customer. In this case, the PayPal Billing Agreement ID will be returned as part of checkoutdetails and displayed on the Merchant Management System (MMS) as part of the payment details, so that you can easily see which PayPal transactions can be used for recurring billing.