Statement on the payment application¶
Parameters¶
HTTP method |
Access rights |
URL | Parameters |
Note |
---|---|---|---|---|
GET | payments | https://api.admitad.com/payments/{id}/statement/ |
|
Returns the statement on payment application, where id is the application identifier.* |
* Returns the result in the JSON format.
** Sets skipping and the number of records returned. For example limit=5&offset=2.
*** Type of statement: brief (default) or detailed (information about every action in the application). Allowed values: 0/1 (brief/detailed). For example: detailed=1.
Example of use¶
Example of a request with utility ``curl``:
curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/payments/113/statement/?detailed=1&limit=2
Example of the response from the API server in the JSON format:
{
"results": [
{
"processing_time": "2015-04-16T19:08:46",
"advcampaign": {
"name": "Campaign1",
"id": 15930
},
"id": 169864,
"currency": "RUB",
"datetime": "2014-09-08T11:50:02",
"payment": "200.46"
},
{
"processing_time": "2015-04-16T19:08:46",
"advcampaign": {
"name": "Campaign1",
"id": 15930
},
"id": 169866,
"currency": "RUB",
"datetime": "2014-08-16T11:50:01",
"payment": "175.65"
}
],
"_meta": {
"count": 30,
"limit": 2,
"offset": 0
}
}
Example of a request with utility ``curl``:
curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/payments/113/statement/?limit=2
Example of the response from the API server in the JSON format:
{
"results": [
{
"currency": "RUB",
"advcampaign": {
"name": "Campaign1",
"id": 15930
},
"actions": 29,
"payment": "3223.48"
},
{
"currency": "RUB",
"advcampaign": {
"name": "Campaign2",
"id": 15932
},
"actions": 1,
"payment": "120.48"
}
],
"_meta": {
"count": 2,
"limit": 2,
"offset": 0
}
}
Description of API server response fields for a detailed statement¶
Name |
Description |
---|---|
id | Action ID |
processing_time | Processing time |
datetime | Time of payment |
currency | |
payment | Publisher’s earnings |
advcampaign | Affiliate program |
Description of API server response fields for a brief statement¶
Name |
Description |
---|---|
actions | Number of actions |
currency | |
payment | Publisher’s earnings |
advcampaign | Affiliate program |