{"_id":"571dd759edc4a92b00a4cbb0","__v":3,"project":"54eb50e5615ffc1900305a16","category":{"_id":"57a9ce2fac6db30e000d7efd","__v":0,"project":"54eb50e5615ffc1900305a16","version":"54eb63b859b1172100334fae","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-08-09T12:35:59.736Z","from_sync":false,"order":7,"slug":"push-messages","title":"Push messages"},"user":"5683bbad70331a0d00484b27","version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":27,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"parentDoc":null,"editedParams":true,"editedParams2":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-25T08:37:45.695Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"json","code":"GET /push/1/statistics?bulkId=3813836816344707101&applicationCode=15f5e3f8ef4018d73a6822eff5dc38a9-6e65ef9a-837f-44e6-83fe-0cf82253767e HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nContent-Type: application/json\nAccept: application/json"}]},"method":"get","results":{"codes":[{"name":"","status":200,"language":"json","code":"{\n  \"totalSent\": 31569,\n  \"delivered\": 29568,\n  \"seen\": 25632,\n  \"errors\": {\n    \"registration\": 1654,\n    \"expired\": 301,\n    \"cloud\": 46\n  },\n  \"delivery\": {\n    \"rate\": 93.66\n  }\n}"},{"language":"json","status":401,"code":"{\n  \"requestError\": {\n    \"serviceException\": {\n      \"messageId\": \"UNAUTHORIZED\",\n      \"text\": \"Invalid login details\"\n    }\n  }\n}"}]},"settings":"554860d6d2c8410d006c215e","auth":"required","params":[{"_id":"573dd0bc282eb92d0066f4be","ref":"","in":"query","required":true,"desc":"PUSH application code you are using to send messages","default":"","type":"string","name":"applicationCode"},{"_id":"573dd0bc282eb92d0066f4bd","ref":"","in":"query","required":true,"desc":"The ID that uniquely identifies the request that was sent.","default":"","type":"string","name":"bulkId"}],"url":"/push/:version/statistics"},"isReference":true,"order":11,"body":"# Response format\n\nOn success, the response header HTTP status code will be `200 OK` \n\nIf you try to retrieve statistics without authorization, you will receive the `401 Unauthorized` error.\n\n### Response\n\n|Parameter|Type|Description|\n|-|-|-|\n|*totalSent*|int|Total number of sent messages.|\n|*delivered*|int|Total number of delivered messages.|\n|*seen*|int|Total number of seen messages.|\n|*errors*|[Error](#section-errors)|Messages not delivered to users.|\n|*delivery*|[Delivery](#section-delivery)|Delivery information about the bulk sending of messages.|\n\n#### Errors\n\n|Parameter|Type|Description|\n|-|-|-|\n|*registration*|int|Messages not delivered due to errors with non-valid registrations due to user uninstalling the app.|\n|*expired*|int|Messages undelivered due to expired validity period. Indicates users who have disabled notifications on a specific PUSH application.|\n|*cloud*|int|Messages not delivered due to errors on APNS or GCM clouds. Happens due to transient errors on cloud services.|\n\n\n#### Delivery\n\n|Parameter|Type|Description|\n|-|-|-|\n|*rate*|double|Delivery rate. Ratio between total delivered and total sent messages in a specific bulk sending process.|\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Info\",\n  \"body\": \"For detailed Delivery Reports for each message sent in Your bulk request the following method can be used : [Sent PUSH messages reports](doc:push-sent-messages-reports)\"\n}\n[/block]","excerpt":"The following method will enable You to retrieve statistics for sent bulk PUSH messages.","slug":"push-messages-statistics","type":"endpoint","title":"PUSH messages statistics"}

getPUSH messages statistics

The following method will enable You to retrieve statistics for sent bulk PUSH messages.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

applicationCode:
required
string
PUSH application code you are using to send messages
bulkId:
required
string
The ID that uniquely identifies the request that was sent.

Examples


Result Format


Documentation

# Response format On success, the response header HTTP status code will be `200 OK` If you try to retrieve statistics without authorization, you will receive the `401 Unauthorized` error. ### Response |Parameter|Type|Description| |-|-|-| |*totalSent*|int|Total number of sent messages.| |*delivered*|int|Total number of delivered messages.| |*seen*|int|Total number of seen messages.| |*errors*|[Error](#section-errors)|Messages not delivered to users.| |*delivery*|[Delivery](#section-delivery)|Delivery information about the bulk sending of messages.| #### Errors |Parameter|Type|Description| |-|-|-| |*registration*|int|Messages not delivered due to errors with non-valid registrations due to user uninstalling the app.| |*expired*|int|Messages undelivered due to expired validity period. Indicates users who have disabled notifications on a specific PUSH application.| |*cloud*|int|Messages not delivered due to errors on APNS or GCM clouds. Happens due to transient errors on cloud services.| #### Delivery |Parameter|Type|Description| |-|-|-| |*rate*|double|Delivery rate. Ratio between total delivered and total sent messages in a specific bulk sending process.| [block:callout] { "type": "info", "title": "Info", "body": "For detailed Delivery Reports for each message sent in Your bulk request the following method can be used : [Sent PUSH messages reports](doc:push-sent-messages-reports)" } [/block]