The account method allows you to read the list of movements on the commission account – credited commissions, bonuses, and payouts.
Endpoint
URL
https://api.wedos.as/partner/account
Note
You can obtain your current account balance using the partner method.
What you get: in the results field, a list of records (movements on the commission account).
Possible types of movement
bonus
– registration or other bonus
affiliate
– commission per order
referralAffiliate
– referral commission per order
entryAffiliate
– remuneration for displaying advertising space (paid clicks)
payout
– payment
Data on movements in the commission account
Explanation of individual data items listed under movement:
- ID – Movement ID
- advertiserId – advertiser ID
- createdDate – date and time of movement
- entryId – Entry ID (click)
- textCampaignId – Text campaign ID
- boardId – Advertising space ID
- customId – user ID
- orderId – commission order ID
- orderNum – order number assigned by the advertiser
- type – type of movement
- amount – amount (in the partner's currency)
- currency – currency
- qty – quantity (used for commissions based on the number of ad impressions)
- billId – billing ID
- billDate – billing date and time
Input parameters (GET)
You can use input parameters to filter and paginate records.
Filtering
- ID
- advertiserId
- textCampaignId
- boardId
- entryId
- customId
- billId
- type
lastID returns only records whose ID is greater than the specified value.
Pagination
- page
- count
Output data
The method returns an array of movement records on the commission account in the results item.
Example answer (abridged)
{
"results": [
{
"ID": 403644,
"advertiserId": 2,
"createdDate": "2017-05-22 11:31:57",
"entryId": 50000271,
"textCampaignId": 300000,
"boardId": null,
"customId": null,
"orderId": 500894,
"orderNum": "8151700025",
"type": "affiliate",
"amount": 1422.4,
"currency": "CZK",
"qty": null,
"billId": null,
"billDate": null
}
],
"page": 1,
"count": 100,
"filteredCount": 159,
"totalCount": 502,
"requestId": "1495648671.7985.13846"
}
Example of requirements
1) All movements (first 100 – default pagination)
https://api.wedos.as/partner/account
2) Only affiliate-type movements (last 10)
https://api.wedos.as/partner/account?type=affiliate&count=10
3) Records with ID greater than 1234
https://api.wedos.as/partner/account?lastID=1234
If you have any questions about the commission system, please write to affiliate@wedos.com.