SoftLayer - How to resolve ResourceTableIds from recently ordered services -


starting account service , calling getnextinvoicetoplevelbillingitems, can fetch active billing items, including ordered in current billing cycle.

tacking on object mask contains invoiceitems[createdate,hostname,domainname,resourcetableid,notes] allow fetch associated invoice items, including invoice line ordered within cycle. let object id can pull virtual guest or bare metal details (among other things).

however, resourcetableid blank (null) newly created services. other fields filled out properly, id of system or service missing. else created outside billing cycle have resourcetableid returned.

is there alternative way resolve resourcetableid billing items returned getnextinvoicetoplevelbillingitems?

unfortunately, there no exists alternative way resolve "resourcetableid", because item invoice has null value generated new order, in moment resources have yet determined or assigned (hardwareid) item invoice.

updated

1:  { "allowcancellationflag": 1 "cancellationdate": null "categorycode": "server" "createdate": "2016-04-05t12:48:12-03:00" "cyclestartdate": "2016-04-05t12:48:12-03:00" "description": "single intel xeon e3-1250 v2 (4 cores, 3.60 ghz)" "domainname": "example.com" "hostname": "test" "id": 90120222 "laborfee": "0" "laborfeetaxrate": "0" "lastbilldate": "2016-04-05t12:48:12-03:00" "modifydate": "2016-04-05t15:21:30-03:00" "nextbilldate": "2016-05-04t02:00:00-03:00" "onetimefee": "0" "onetimefeetaxrate": "0" "orderitemid": 114652123 "parentid": null "recurringfee": "0" "recurringfeetaxrate": "0" "recurringmonths": 1 "serviceproviderid": 1 "setupfee": "0" "setupfeetaxrate": "0" "invoiceitems": [1] 0:  { "createdate": "2016-04-05t12:48:12-03:00" "domainname": "example.com" "hostname": "test" "resourcetableid": null "invoice": { "typecode": "new" }- }- - "resourcetableid": 123123 } 

i got this: "resourcetableid": 123123


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -