List Usage Record Last Month
GET {{2010-04-01-Accounts-AccountSid-Usage-Records-LastMonth.json-Url}}/2010-04-01/Accounts/:AccountSid/Usage/Records/LastMonth.json?Category=trunking-origination-mobile&StartDate=1976-09-29&EndDate=1976-09-29&IncludeSubaccounts=true&PageSize=16
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
Category | string | The usage category of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | |
StartDate | string | Only include usage that has occurred on or after this date. Specify the date in GMT and format as YYYY-MM-DD . You can also specify offsets from the current date, such as: -30days , which will set the start date to be 30 days before the current date. | |
EndDate | string | Only include usage that occurred on or before this date. Specify the date in GMT and format as YYYY-MM-DD . You can also specify offsets from the current date, such as: +30days , which will set the end date to 30 days from the current date. | |
IncludeSubaccounts | boolean | Whether to include usage from the master account and all its subaccounts. Can be: true (the default) to include usage from the master account and all subaccounts or false to retrieve usage from only the specified account. | |
PageSize | number | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"usage_records":[{"account_sid":"AC2ED9D7D0D7cBFcE10B2acA0e7CcD4dAf","api_version":"officia do exercitation laboris","as_of":"adipisicing","category":"\u003cstring\u003e","count":"mollit consequat non labore","count_unit":"aliqua do","description":"eiusmod in nisi quis","end_date":"2003-02-19","price":92834834.32305464,"price_unit":"ea amet","start_date":"1987-09-11","subresource_uris":{},"uri":"mollit adipisicing fugiat sit","usage":"qui mollit reprehenderit","usage_unit":"adipisicing non ea cillum"},{"account_sid":"ACD590cbcaBe0855251f32a6dCED15AaFC","api_version":"pariatur","as_of":"in ipsum quis amet","category":"\u003cstring\u003e","count":"enim dolor Ut proident ad","count_unit":"magna laborum ad dolore","description":"in ad dolor consectetu","end_date":"2003-03-05","price":77141130.82816172,"price_unit":"ut nisi enim magna","start_date":"2020-11-25","subresource_uris":{},"uri":"aute Lorem culpa nostrud exercitation","usage":"eu dolore","usage_unit":"dolore tempor Excep"}],"end":77998612,"first_page_uri":"https://txVrdsViWk.jsnduBP4BPg4Fhd0Wj4fL3,EWGaS,mo0THTO5p","next_page_uri":"https://G.zkbpWjQGl-griRPEW5cwTQ9hi+g+dku4H.WoTxrIJIo4Sp1qfmYqNzEhsT0ZMry","page":16294461,"page_size":27707249,"previous_page_uri":"https://rh.adsp27qY,cFeK,OxwR2MG6n2tbNwak4Z5sZfxDWPFxVVof3XRRsU","start":-43791066,"uri":"https://AyBvCfbIZ.lycS31+BrDHHoL+Ry61gMt2y7hW1yfb"}