{"__v":3,"_id":"544821f38d7af31a00dd41d0","category":{"__v":2,"_id":"544821ae8d7af31a00dd41ce","pages":["544821f38d7af31a00dd41d0","544910693acc37080099e66d"],"project":"542dbe0ecb19820800c1f4d7","version":"542ecc0a6b0eb6080066ca77","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-22T21:29:18.651Z","from_sync":false,"order":5,"slug":"usage","title":"Usage"},"editedParams":true,"editedParams2":true,"is_link":false,"parentDoc":null,"project":"542dbe0ecb19820800c1f4d7","user":"542dc547cb19820800c1f4f1","version":{"__v":31,"_id":"542ecc0a6b0eb6080066ca77","forked_from":"542dbe0fcb19820800c1f4da","project":"542dbe0ecb19820800c1f4d7","createdAt":"2014-10-03T16:17:14.165Z","releaseDate":"2014-10-03T16:17:14.165Z","categories":["542ecc0a6b0eb6080066ca78","542ef44f6b0eb6080066cb24","543bf3e22a30961a00b66eb3","5446952b82bd7e08002768a0","544821ae8d7af31a00dd41ce","544a7885f1aefa08006efc69","544c758e11845f0e001ed8de","544e5565b80812080035be55","544e558dbd51b9080037f8ca","5450b045a66f020800dba73d","5450eb6aa66f020800dba945","5450f39ea66f020800dba989","5450f877a66f020800dba9cf","54510356a66f020800dbaa17","5451274514af501a00b50c99","54513345a66f020800dbab24","54513cc014af501a00b50d24","54515eec14af501a00b50db9","54519b1d14af501a00b50ea9","54519b2aa66f020800dbacb4","54524f9704160008005b1d27","54538d2308d1800800473d95","54538d420c09721000a06a03","54538e5608d1800800473d9a","5453ea9547c30114004fb375","5453eb12b077c31c00067bcb","5453eb27b077c31c00067bcd","5453ed5db077c31c00067bde","548075cbe291c51a00e7e096","5922fa475c48c70f00f21453","59244fd41e32eb190028ad8d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-22T21:30:27.762Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"basic_auth":true,"examples":{"codes":[]},"method":"get","results":{"codes":[{"name":"","code":"{\n  \"sid\" : \"{UsageSid}\",\n  \"product\" : \"Outbound SMS\",\n  \"product_id\": 1, \n  \"month\" : \"9\",\n  \"year\" : \"2012\",\n  \"quantity\" : \"2\",\n  \"average_cost\" : \"0.010000\",\n  \"total_cost\" : \"0.020000\",\n  \"uri\" : \"/v2/Accounts/{AccountSid}/Usages/{UsageSid}.json\"\n} ","language":"json","status":200},{"code":"{\n    \"status\": 404,\n    \"message\": \"The requested resource was not found: /v2/Accounts/bad/bad_response.json\"\n}","language":"json","status":404}]},"settings":"","try":true,"auth":"required","params":[{"_id":"544822828d7af31a00dd41d4","ref":"","in":"path","required":true,"desc":"Account SID.","default":"","type":"string","name":"AccountSid"},{"_id":"544822828d7af31a00dd41d3","ref":"","in":"path","required":true,"desc":"Usage SID.","default":"","type":"string","name":"UsageSid"}],"url":"/v2/Accounts/:AccountSid/Usages/:UsageSid.json"},"isReference":false,"order":0,"body":"# **Response Parameters**\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Parameter\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"sid\",\n    \"1-0\": \"product\",\n    \"2-0\": \"product_id\",\n    \"3-0\": \"day\",\n    \"4-0\": \"month\",\n    \"5-0\": \"year\",\n    \"6-0\": \"quantity\",\n    \"7-0\": \"average_cost\",\n    \"8-0\": \"total_cost\",\n    \"9-0\": \"uri\",\n    \"0-1\": \"An alphanumeric string identifying this resource.\",\n    \"1-1\": \"The product or feature used.\",\n    \"2-1\": \"An integer identifying this product. You can see the full list under List Usage.\",\n    \"3-1\": \"The day of the usage.\",\n    \"4-1\": \"The month of the usage.\",\n    \"5-1\": \"The year of the usage.\",\n    \"6-1\": \"The quantity of the usage.\",\n    \"7-1\": \"The average cost of the usage.\",\n    \"8-1\": \"The total cost of the usage.\",\n    \"9-1\": \"The URL to this resource.\"\n  },\n  \"cols\": 2,\n  \"rows\": 10\n}\n[/block]\n# **Example cURL**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X GET 'https://api.zang.io/v2/Accounts/{AccountSid}/Usage/{UsageSid}.json' -u '{AccountSid}:{AuthToken}'\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]","excerpt":"view the usage of an item returned by List Usages","slug":"testinput","type":"endpoint","title":"View Usage"}

getView Usage

view the usage of an item returned by List Usages

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

AccountSid:
required
string
Account SID.
UsageSid:
required
string
Usage SID.

Result Format


Documentation

# **Response Parameters** [block:parameters] { "data": { "h-0": "Parameter", "h-1": "Description", "0-0": "sid", "1-0": "product", "2-0": "product_id", "3-0": "day", "4-0": "month", "5-0": "year", "6-0": "quantity", "7-0": "average_cost", "8-0": "total_cost", "9-0": "uri", "0-1": "An alphanumeric string identifying this resource.", "1-1": "The product or feature used.", "2-1": "An integer identifying this product. You can see the full list under List Usage.", "3-1": "The day of the usage.", "4-1": "The month of the usage.", "5-1": "The year of the usage.", "6-1": "The quantity of the usage.", "7-1": "The average cost of the usage.", "8-1": "The total cost of the usage.", "9-1": "The URL to this resource." }, "cols": 2, "rows": 10 } [/block] # **Example cURL** [block:code] { "codes": [ { "code": "curl -X GET 'https://api.zang.io/v2/Accounts/{AccountSid}/Usage/{UsageSid}.json' -u '{AccountSid}:{AuthToken}'", "language": "javascript" } ] } [/block]