• Notifications
  • Messages
  • Complaints
  • Offers
  • Chats
  • Logout
  • РУС ENG

API



List of latest sales

The URL for sending a request: https://api.digiseller.ru/api/seller-last-sales
Method: GET
Request headers: Accept: "application/xml" - Response format Accept: "application/json" - Response format
Request parameters:
Name Use Comment
token Access token,
min. permission: [ Statistics ]: Sales statistics
method for creating access token
seller_id seller ID integer
group grouping by product true (default) | false
top number of records integer, optional parameter, default value is 1000
Response format: xml json <digiseller.response> <retval></retval> <retdesc></retdesc> <sales> <sale> <date></date> <invoice_id></invoice_id> <product> <id></id> <name></name> <price_rub></price_rub> <price_usd></price_usd> <price_eur></price_eur> <price_uah></price_uah> </product> </sale> ... </sales> </digiseller.response> { "retval": 0, "retdesc": "" "sales": [ { "date": "2022-09-08 00:00:00", "invoice_id": 182693953, "product": { "id": 0, "name": "", "price_rub": 0.0, "price_usd": 0.0, "price_eur": 0.0, "price_uah": 0.0 } }, ... ] }
Response parameters:
Name Use Comment
retval result code 0 - request completed
retdesc decryption of the request execution code
sales the list of the latest sales
sales\sale\date date of sale
sales\sale\invoice_id order ID
sales\sale\product\id item id
sales\sale\product\name item name
sales\sale\product\price_rub price in RUB
sales\sale\product\price_usd price in USD
sales\sale\product\price_eur price in EUR
sales\sale\product\price_uah price in UAH

Sales statistics

The URL for sending a request https://api.digiseller.ru/api/seller-sells/v2?token={token}
Method: POST
Request headers: Content-Type: "text/xml" | "text/json" | "application/json" Request format Accept: "text/xml" | "text/json" | "application/json" - Response format
Request format: xml json <digiseller.request> <product_ids> <id>1954830</id> <id>2080515</id> </product_ids> <date_start>2017-01-01 00:00:00</date_start> <date_finish>2017-12-04 23:59:59</date_finish> <returned>0</returned> <page>1</page> <rows>10</rows> </digiseller.request> { "product_ids": [1954830,2080515], "date_start": "2017-01-01 00:00:00", "date_finish": "2017-12-04 23:59:59", "returned": 0, "page": 1, "rows": 10 }
Request parameters
Name Use Comment
token Access token,
min. permission: [ Statistics ]: Sales statistics
Method for creating access token
product_ids Items ids Array of integers; if not specified, then returns the statistics for all products
date_start Date start Data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
date_finish Date finish Data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
returned Refunds 0 - Include refunds; 1 - Exclude refunds; 2 - Only refunds
page Page number Integer
rows Count of rows per page Integer (10 by default, 2000 max)
Request encoding: UTF-8
Response format: xml json <digiseller.response> <retval>0</retval> <total_rows>62</total_rows> <pages>7</pages> <page>1</page> <rows cnt="10"> <row> <invoice_id>60056190</invoice_id> <product_id>1954830</product_id> <product_name> <![CDATA[Unique code]]> </product_name> <product_entry_id>41609385</product_entry_id> <product_entry> <![CDATA[****]]> </product_entry> <date_put>2016-11-24 19:29:16</date_put> <date_pay>2017-03-09 13:53:19</date_pay> <email>email@example.com</email> <wmid>000000000000</wmid> <amount_in>9.99</amount_in> <amount_out>9.69</amount_out> <amount_currency>WMR</amount_currency> <method_pay>Merchant</method_pay> <aggregator_pay>WebMoney</aggregator_pay> <ip>127.0.0.1</ip> <partner_id>0</partner_id> <lang>ru-RU</lang> <returned>0</returned> <owner>0</owner> </row> ... </rows> </digiseller.response> { "retval": 0, "retdesc": null, "total_rows": 62, "pages": 7, "page": 1, "rows": [ { "invoice_id": 60056190, "product_id": 1954830, "product_name": "Unique code", "product_entry_id": 41609385, "product_entry": "****", "date_put": "2016-11-24 19:29:16", "date_pay": "2017-03-09 13:53:19", "email": "email@example.com", "wmid": "000000000000", "amount_in": 9.99, "amount_out": 9.69, "amount_currency": "WMR", "method_pay": "Merchant", "aggregator_pay": "WebMoney", "ip": "127.0.0.1", "partner_id": "0", "lang": "ru-RU", "returned": 0, "owner": 0 }, ... ] }
Response parameters:
Name Use Comment
retval result code 0 - success
request validation error codes:
1 - id_seller parameter is invalid
2 - page parameter is invalid
3 - rows parameter is invalid
9 - returned parameter is invalid
10 - sign parameter is invalid
11 - date_start parameter is invalid
12 - date_finish parameter is invalid
retdesc decryption of the request execution code
id_seller seller ID
total_rows total rows
pages total pages num
page page number
rows list of sales cnt - rows count
rows\row sales parameters
rows\row\invoice_id order ID
rows\row\product_id item id
rows\row\product_name item name CDATA
rows\row\product_entry_id item content id
rows\row\product_entry content of the item CDATA;
This parameter is inaccessible by default.
To get the value of the parameter, the token must have the permission
[ Content ]: View.
rows\row\date_put the date the content was added data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
rows\row\date_pay date of sale data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
rows\row\email customer's email
rows\row\wmid buyer's WMID
rows\row\amount_in paid amount
rows\row\amount_out credited amount
rows\row\amount_currency currency of crediting funds from the sale WMZ | WMR | WME | WMU | WMX
rows\row\method_pay payment method
rows\row\aggregator_pay payment integrator
rows\row\ip customer IP address
rows\row\partner_id affiliate partner ID
rows\row\lang buyer's language ru-RU or en-US
rows\row\returned refunded 0|1
rows\row\owner marketplace identifier 0 - own shop
1 - plati.market
1271 - ggesel
9295 - wmcenter.net

Sales statistics as an agent

The URL for sending a request https://api.digiseller.ru/api/agent-sales/v2?token={token}
Method: POST
Request headers: Content-Type: "text/xml" | "text/json" | "application/json" Request format Accept: "text/xml" | "text/json" | "application/json" - Response format
Request format: xml json <digiseller.request> <product_ids> <id>1954830</id> <id>2080515</id> </product_ids> <date_start>2017-01-01 00:00:00</date_start> <date_finish>2017-12-04 23:59:59</date_finish> <returned>0</returned> <page>1</page> <rows>10</rows> </digiseller.request> { "product_ids": [1954830,2080515], "date_start": "2017-01-01 00:00:00", "date_finish": "2017-12-04 23:59:59", "returned": 0, "page": 1, "rows": 10, }
Request parameters
Name Use Comment
token Access token,
min. permission: [ Statistics ]: Sales statistics as an agent
Method for creating access token
id_partner Partner ID Integer
product_ids Items ids Array of integers; if not specified, then returns the statistics for all products
date_start Date start Data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
date_finish Date finish Data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
returned Refunds 0 - Include refunds; 1 - Exclude refunds; 2 - Only refunds
page Page number Integer
rows Count of rows per page Integer (10 by default, 2000 max)
Request encoding: UTF-8
Response format: xml json <digiseller.response> <retval>0</retval> <total_rows>62</total_rows> <pages>7</pages> <page>1</page> <rows cnt="10"> <row> <id_seller>12126</id_seller> <invoice_id>60056190</invoice_id> <product_id>1954830</product_id> <product_name> <![CDATA[Unique code]]> </product_name> <product_entry_id>41609385</product_entry_id> <date_pay>2017-03-09 13:53:19</date_pay> <email>email@example.com</email> <wmid>000000000000</wmid> <amount_in>9.99</amount_in> <amount_currency>WMR</amount_currency> <method_pay>Merchant</method_pay> <aggregator_pay>WebMoney</aggregator_pay> <ip>127.0.0.1</ip> <partner_percent>1.50</partner_percent> <partner_amount>0.15</partner_amount> <lang>ru-RU</lang> <returned>0</returned> </row> ... </rows> </digiseller.response> { "retval": 0, "retdesc": null, "total_rows": 62, "pages": 7, "page": 1, "rows": [ { "id_seller": 12126, "invoice_id": 60056190, "product_id": 1954830, "product_name": "Unique code", "product_entry_id": 41609385, "date_pay": "2017-03-09 13:53:19", "email": "email@example.com", "wmid": "000000000000", "amount_in": 9.99, "amount_currency": "WMR", "method_pay": "Merchant", "aggregator_pay": "WebMoney", "ip": "127.0.0.1", "partner_percent": 1.5, "partner_amount": 0.15, "lang": "ru-RU", "returned": 0 }, ... ] }
Response parameters:
Name Use Comment
retval result code 0 - success
request validation error codes:
1 - id_seller parameter is invalid
2 - page parameter is invalid
3 - rows parameter is invalid
9 - returned parameter is invalid
10 - sign parameter is invalid
11 - date_start parameter is invalid
12 - date_finish parameter is invalid
retdesc decryption of the request execution code
id_partner Partner ID
total_rows total rows
pages total pages num
page page number
rows list of sales cnt - rows count
rows\row sales parameters
rows\row\id_seller Seller ID Integer
rows\row\invoice_id order ID
rows\row\product_id item id
rows\row\product_name item name CDATA
rows\row\date_pay date of sale data format: 'yyyy-MM-dd HH:mm:ss'
time zone: Moscow Time UTC+03:00
rows\row\email customer's email
rows\row\wmid buyer's WMID
rows\row\amount_in paid amount
rows\row\amount_currency currency of crediting funds from the sale WMZ | WMR | WME | WMU | WMX
rows\row\method_pay payment method
rows\row\aggregator_pay payment integrator
rows\row\ip customer IP address
rows\row\partner_percent Partner's percentage
rows\row\partner_amount The amount paid to the partner
rows\row\lang buyer's language ru-RU or en-US
rows\row\returned refunded 0|1