1. Public API
Items search
http://www.plati.io/api/search.ashx?query={search_phrase}&pagesize={page size}&pagenum={page number}&response={response format}
- {search_phrase} — at least three characters
- {page size} — 20 by default; less than 500
- {page number} — it is used when the first query returned more than 1 "totalpages"
- {response format} — xml/json, xml by default
Sample: http://www.plati.io/api/search.ashx?query=battlefield 4&response=xml
Offers list of category "Games" in the YML format
Offers list is updated once a day. For each category is given one item, leading to the issuance of the catalogue and the search of Plati
List of the most popular sections
Use section is as:
- http://www.plati.market/asp/list_redirect.asp?id_r=section_id
2. Partner API
Use the XML interfaces we provide to recreate the Plati product catalog with a custom theme on your website.
More information about the Plati partner program is available in Info.
3. Automated purchase via invoice payment in the WebMoney system
In order to access purchase interfaces as well as purchases from a fixed WMID you need to send a request to support@plati.market
3.1 Invoice creating
Request format
Request parameters
Name |
Use |
Comment |
id_good |
item id
|
integer
|
wm_id |
Payer`s WMID (unchanged)
|
|
email |
Buyer`s email for receiving link to product
|
|
id_partner |
Affiliate ID for earnings
|
|
lang |
Buyer`s language
|
ru-RU | en-US
|
Response format
Response parameters
Name |
Use |
Comment |
retval |
result code |
0 — request successfully processed
-3 — access denied
23 — The product is temporarily out of stock or discontinued
27 — This type of product can not be paid via WebMoney
|
retdesc |
description of result code |
|
inv\id |
the invoice number in the Digiseller system |
|
inv\name |
the invoice name |
it mathces with the product name |
inv\type_good |
item content type |
1 — text, 2 — file |
inv\wm_id |
WM id for invoicing |
|
inv\link |
a browser link to the purchase |
|
inv\wm_inv |
the invoice number in the WebMoney system |
|
inv\uid |
UID for receiving the purchase (refer to para.3.3) |
|
3.2 Invoice paying
To pay the invoice you need to use the
X2 interface of the WebMoney system. As the
trans\wminvid parameter, you need to provide the wm_inv value, which you received in step one.
3.3 Getting your purchases
https://shop.digiseller.ru/xml/purchase.asp?id_i={invoice number}&uid={UID}
- invoice number — the invoice number in the Digiseller system, received in step 3.1}
- UID — UID for receiving the purchasereceived in step 3.1
Response format
Response parameters
Name |
Use |
Comment |
retval |
result code |
0 — request successfully processed
1 — invalid parameter is specified
12 — access denied
2 — invoice not found
66 — invoice is not paid
|
retdesc |
description of result code |
|
typegood |
type of item
|
G1 — text
G2 — file
|
file\name_in |
file name |
|
file\link |
link to download the file |
|
file\link2 |
alternative link to download the file |
|
file\size |
file sizebytes
|
|
text |
text content |
|