Adding TYL payment to new invoices created via API

Hi, we have just started to use TYL payments within freeagent.
All new invoices are created with the Click to pay option, we have modified all recurring invoices so they too have the click to pay link, but invoices that are created from our own system creates invoices without the TYL payment link. Our developers are saying there isn’t an API option to enable this on invoice creation. Is that true, if so, is there any ETA when this will be available?
Many thanks
Dave

Hi Dave,

This is an oversight on our part, thanks for flagging it. Tyl is available as a payment option via the API but the documentation hasn’t been updated to reflect this.

We’ll get it updated shortly, but in the meantime you can let your developers know that they can enable Tyl on invoices generated via the API by including "tyl": true in the payment_methods hash, for example:

"payment_methods": {
  "paypal": false,
  "tyl": true
}

All the best,
Simon

Excellent, thank you Simon. I will pass on to our developers
Thank you!