CreditAccount not returning customer name for all entries

Jake_McJake_Mc Member Posts: 3

CODE:

# Get all credit accounts 

url = 'https://api.lightspeedapp.com/API/Account/219120/'

query = "CreditAccount.json"

params = {'load_relations': '["Contact"]'}

link = url + query

r = requests.get(link, headers=headers, params=params)

r.json()


EXAMPLE OUTPUT:


{'creditAccountID': '6',
   'name': 'Customer Credit Account',
   'code': '',
   'creditLimit': '1000',
   'description': '',
   'giftCard': 'false',
   'archived': 'false',
   'timeStamp': '2020-07-14T13:38:03+00:00',
   'customerID': '625'

DISCUSSION:


As you see the customers name has not come through, I can get this with a separate GET request to /Customer/{customerID}, but wondering why it won't come through with CreditAccount when others have.

Sign In or Register to comment.