0

I am able to add a sort code, account number and name to the batch payments field as can be seen below. But I am not able to update the "Bank account name" or "Details" fields using the API.

Currently I use contact.BankAccountDetails = "678989 12345678 aj" which works as seen.

I have tried setting contact.BatchPayments which has no effect.

The Xero docs are not helpful on this point.

batch payments field on a contact

AJ Dhaliwal
  • 661
  • 1
  • 8
  • 24

1 Answers1

0

You cannot POST or PUT the Contact BatchPayments via the Xero API, you can only GET them.

https://developer.xero.com/documentation/api/contacts

sheavens
  • 685
  • 7
  • 14
  • I am already posting the details above using the API. My question is about posting further information – AJ Dhaliwal Sep 28 '18 at 08:42
  • You are updating a Contact with details that create default values for BatchPayments, not creating a BatchPayment, BatchPayments are not supported via the API. See https://community.xero.com/developer/discussion/38129946 – sheavens Sep 28 '18 at 12:25
  • If you already knew that it wasn't possible, why on earth did you even bother asking the question? – sheavens Oct 02 '18 at 19:18
  • Read the title, I am not asking that question. I'm asking about updating contact information. – AJ Dhaliwal Oct 03 '18 at 03:58
  • According to the documentation, it's not possible. (See the link I posted) – sheavens Oct 03 '18 at 11:04