API
Get bounces
This example shows how you can retrieve the bounces of one or more statistics.
Parameters
| Field | Type | Description | Required / Optional |
|---|---|---|---|
statids | string | Comma-separated IDs of statistics. | Required |
listid | int | If you want to retrieve the bounces of a specific list. The statids parameter is ignored here. | Optional |
order_by | string | The order in which the bounces in the array must be sorted (emailaddress, bouncetime). | Optional |
order_dir | string | Whether sorting must be from low to high or the other way around (ASC or DESC). | Optional |
count_only | string | Whether only the count must be returned. Default: false. | Optional |
bouncetype | string | The type of bounce. You can choose from: hard, soft, blocked and any (any status) | Optional |
bouncetype.DateBouncedSearch | The parameter for searching by date. | Required | |
bouncetype.DateBouncedSearch.filter | string | This must be 1 in order to filter | Optional |
bouncetype.DateBouncedSearch.type | string | This can be before, after, exact(ly), between, notbetween and not. | Optional |
bouncetype.DateBouncedSearch.StartDate | string | The unix timestamp of the start date to search on. | Optional |
bouncetype.DateBouncedSearch.EndDate | string | The unix timestamp of the end date to search on. You only specify this if between or notbetween was chosen as the type | Optional |
start | int | Enter the number from which point the result must be returned. Default: 0 (first result). | Optional |
perpage | string | The number of bounces to return per result. Choose 'all' for all bounces. Default: 10 | Optional |
Successful response
| Field | Type | Description |
|---|---|---|
status | string | The value of the status field is returned as “SUCCESS” on a successful response. |
data | array | If the bounces are found, the object is returned. |
Error response
| Field | Type | Description |
|---|---|---|
status | string | The value of the status field will be “FAILED”. |
errormessage | string | A text message explaining why the request failed. |
<xmlrequest>
<username>admin</username>
<usertoken>0123456789abcdef0123456789abcdef01234567</usertoken>
<requesttype>stats</requesttype>
<requestmethod>GetBounces</requestmethod>
<responsetype>xml</responsetype>
<details>
<statids>99</statids>
<order_by>bouncetime</order_by>
<order_dir>desc</order_dir>
<count_only>false</count_only>
<bounce_type>any</bounce_type>
<searchinfo>
<DateBouncedSearch>
<filter>1</filter>
<type>between</type>
<StartDate>1662917256</StartDate>
<EndDate>1726075656</EndDate>
</DateSentSearch>
</searchinfo>
<start>0</start>
<perpage>10</perpage>
</details>
</xmlrequest>