Reputation: 1
I am developing a billing application using Softlayer.
My userID and API Key is from my Brand's Master account, just below Brand, and I have created 3 accounts under my brand. I can retrieve the list of accounts using getAllOwnedAccounts(). However, I need to retrieve additional information for each account, such as invoices (and associated invoice items) and storage (LUNs, NAS, etc.).
How can I retrieve this data using my Master Account? API calls using client['Account'].getInvoices() don't return anything.
Upvotes: 0
Views: 82
Reputation: 4386
the only way to get that information from your accounts, using API, is using their API credentials in your request. Currently when you call the API
client['Account'].getInvoices()
you are getting empty result, becasue you are using the credentials of your Brand's Master account, you need to use the credentials of the accounts that you created.
Upvotes: 0