Affiliate Program API

Enter

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 [email protected]

Invoice creating

Request format

Request URL

Method:

Request data:

https://shop.digiseller.ru/xml/create_invoice.asp POST
<digiseller.request>
  <id_good>2142729</id_good>
  <wm_id>612197088190</wm_id>
  <email>[email protected]</email>
  <id_partner></id_partner>
  <curr>WMR</curr>
  <id_po>0</id_po>
  <lang>ru-RU</lang>
</digiseller.request>

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
id_po Unique ID of the selected set of values
Only for products with mandatory parameters, the value previously obtained by API method
lang Buyer`s language ru-RU | en-US

Response format

<digiseller.response>
  <retval>0</retval>
  <retdesc/>
  <inv>
    <id>48330696</id>
    <name><![CDATA[ World of Warcraft Legion (RUS) ]]></name>
    <type_good>2</type_good>
    <wm_id>612197088190</wm_id>
    <link>https://www.oplata.info/info/buy.asp?id_i=48330696&uid=8723Y790EHFE411DB2651F8EDC05F442</link>
    <wm_inv>630666050</wm_inv>
    <wm_purse>R781352104789</wm_purse>
    <uid>8723Y790EHFE411DB2651F8EDC05F442</uid>
  </inv>
</digiseller.response>

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 Digiseller order number
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 invoice number in the WebMoney
inv\uid UID for receiving the purchase (refer to para.3.3)

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.

Getting your purchases

Request format

Request URL

https://shop.digiseller.com/xml/purchase.asp?id_i={order ID}&uid={UID}

Request parameters

  • {order ID} — Digiseller order number, received in step 3.1
  • UID — UID for receiving the purchasereceived in step 3.1

Response format

<digiseller.response>
  <retval>0</retval>
  <retdesc></retdesc>
  <typegood>G2</typegood>
  <file>
    <name_in>40402174305503.djvu</name_in>
    <link>
      http://www.oplata.info/download/3667866_l2884y392n3641k329a72093h1421o5173.djvu
    </link>
    <link2>
      http://www.oplata.info/info/download.asp?filename=3667866_l2884y392n3641k329a72093h1421o5173.djvu
    </link2>
    <size>5147775</size>
  </file>
  <text></text>
</digiseller.response>

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 file link
file\link2 alternative link to download the file
file\size file sizebytes
text text content

Enter