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

API



The method of adding content of type "File"

URL and request format https://api.digiseller.com/api/product/content/add/file/{product_id}?token={token}
Method: POST
Request headers: Accept: "text/xml" | "text/json" | "application/json" - Response format Content-Type: multipart/form-data;
Request parameters:
Name Use Comment
product_id Item id Integer
token Access token,
min. permission: [ Content ]: Adding
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <content_id>6403227</content_id> <filename>New Text Document.txt</filename> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": [ { "content_id": 6403229, "filename": "New Text Document.txt" } ] }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Error description String
content Response body If request is invalid, this field will be null
content\content_id New content id Integer
content\filename File name String



The method of adding content of type "File" from ZIP archive (max 200 files)

Files in the ZIP-archive should not be in internal folders. Such files will be ignored

URL and request format https://api.digiseller.com/api/product/content/add/files/{product_id}/{count?}?token={token}
Method: POST
Request headers: Accept: "text/xml" | "text/json" | "application/json" - Response format Content-Type: multipart/form-data;
Request parameters:
Name Use Comment
product_id Item id Integer
count Count of files in ZIP An optional parameter for controlling the added files.
If you specify this parameter, it checks the number of uncompressed files with the specified value.
If there is a discrepancy between the number of files and the value of the transferred parameter, an error will occur.
token Access token,
min. permission: [ Content ]: Adding
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <content_id>6403227</content_id> <filename>New Text Document.txt</filename> </content> <content> <content_id>6403228</content_id> <filename>New Text Document 2.txt</filename> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": [ { "content_id": 6403229, "filename": "New Text Document.txt" }, { "content_id": 6403230, "filename": "New Text Document 2.txt" } ] }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Description of result code String
content Response body If request is invalid, this field will be null
content\content_id New content id Integer
content\filename File name String



The method of adding content of type "Text" and "Url"

URL and request format https://api.digiseller.com/api/product/content/add/text?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
XML request format JSON request format xml json <text_content> <product_id>222</product_id> <content> <serial>test</serial> <value>Test value</value> <id_v>0</id_v> </content> <content> <value>Test value #2</value> <id_v>0</id_v> </content> </text_content> { "product_id":222, "content":[ { "serial":"test", "value":"Test value", "id_v": 0 }, { "value":"Test value #2", "id_v": 0 } ] }
Request parameters:
Name Use Comment
product_id Item id Integer
content Item content Array of strings
content\serial Your tracking content id String. optional field
content\value Item content String. required field
content\id_v Variant id

Variant IDs are displayed on the product parameter settings page, if the "display parameter id and variants in the interface" setting is enabled (the "advanced settings" button).
Relevant if separate content by product parameter variant is set
token Access token,
min. permission: [ Content ]: Adding
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <content_id>51419361</content_id> <serial>test</serial> </content> <content> <content_id>51419362</content_id> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": [ { "content_id": 51419353, "serial": "test" }, { "content_id": 51419354, "serial": null } ] }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Description of result code String
content Response body If request is invalid, this field will be null
content\content_id New content id Integer
content\serial Your tracking content id String



Changing the number of codes generated by Digiseller

URL and request format https://api.digiseller.com/api/product/content/add/code/{product_id}/{count}?token={token}
Method: GET
Request headers: Accept: "text/xml" | "text/json" | "application/json" - Response format
Request parameters:
Name Use Comment
product_id Item id Integer
count Count of generated codes Integer. If you specify -1, the number of generated codes will be unlimited.
token Access token,
min. permission: [ Content ]: Adding
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <status>Success</status> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": { "status": "success" } }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Error description String
content Response body If request is invalid, this field will be null
content\status Response status String


The method of updating content of type "File"

URL and request format https://api.digiseller.com/api/product/content/update/file/v2?contentid={content_id}&updateold={update_old}&token={token}
Method: POST
Request headers: Accept: "text/xml" | "text/json" | "application/json" - Response format Content-Type: multipart/form-data;
Request parameters:
Name Use Comment
content_id Content id Integer
product_id Item id Product_id can be passed instead of content_id for products with universal content. Integer
updateold Update sold content (only for universal files) Boolean. by default: false
token Access token,
min. permission: [ Content ]: Edit
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <content_id>6403227</content_id> <new_content_id>6403227</new_content_id> <filename>New Text Document.txt</filename> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": [ { "content_id": 6403229, "new_content_id": 6403229, "filename": "New Text Document.txt" } ] }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Error description String
content Response body If request is invalid, this field will be null
content\content_id Content id Integer
content\new_content_id New content id Integer
content\filename File name String



The method of updating content of type "Text" and "Url"

URL and request format https://api.digiseller.com/api/product/content/update/text?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
XML request format JSON request format xml json <request> <value>sample string 1</value> <serial>sample string 2</serial> <update_old>false</update_old> <content_id>1234567</content_id> </request> { "value": "sample string 1", "serial": "sample string 2", "update_old": false, "content_id": 1234567 }
Request parameters:
Name Use Comment
content_id Content id Integer. required field
product_id Item id Product_id can be passed instead of content_id for products with universal content. Integer
serial Your tracking content id String. optional field
value Item content String. required field
updateold Update sold content (only for universal товаров) Boolean. by default: false
token Access token,
min. permission: [ Content ]: Edit
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <content_id>51419361</content_id> <new_content_id>51419361</new_content_id> <serial>test</serial> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": { "content_id": 1234567, "serial": "test" } }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Description of result code String
content Response body If request is invalid, this field will be null
content\content_id Content id Integer
content\new_content_id New content id Integer
content\serial Your tracking content id String


The method of deleting content of type "text", "url" or "file"

URL and request format https://api.digiseller.com/api/product/content/delete?contentid={content_id}&productid={product_id}&token={token}
Method: GET
Request headers: Content-Type: "text/xml" | "text/json" | "application/json" - Request format
Request parameters:
Name Use Comment
content_id Content id Integer
product_id Item id Integer
token Access token,
min. permission: [ Content ]: Delete
Method for creating access token
Response format: Status code: 200 (No Content)


The method for completely deleting content of type "text", "url" or "file"

URL and request format https://api.digiseller.com/api/product/content/delete/all?productid={product_id}&token={token}
Method: GET
Request headers: Content-Type: "text/xml" | "text/json" | "application/json" - Request format
Request parameters:
Name Use Comment
product_id Item id Integer
token Access token,
min. permission: [ Content ]: Delete
Method for creating access token
XML response format: JSON response format: xml json <result> <retval>0</retval> <retdesc>Return description</retdesc> <content> <deleted_count>500</deleted_count> </content> </result> { "retval": 0, "retdesc": "", "errors": null, "content": { "deleted_count": 500 } }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Description of result code String
content Response body
content\deleted_count Amount of deleted content



The method of creating or updating content of type "form"

URL and request format https://api.digiseller.com/api/product/content/update/form?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
XML request format JSON request format xml json <request> <product_id>1</product_id> <address>sample@email.ru</address> <method>Email</method> <encoding>UTF8</encoding> <options>true</options> <answer>true</answer> <allow_purchase_multiple_items>true</allow_purchase_multiple_items> <url_for_quantity>https://url-for-sending-a-request-with-the-quantity-specified-by-the-buyer.com/</url_for_quantity> </request> { "product_id": 1, "address": "sample@email.ru", "method": "Email", "encoding": "UTF8", "options": true, "answer": true, "allow_purchase_multiple_items": "true", "url_for_quantity": "https://url-for-sending-a-request-with-the-quantity-specified-by-the-buyer.com/" }
Request parameters:
Name Use Comment
product_id Item id Integer
address Address String. required field
method Sending method String. available values: Email, JSON, XML
encoding Encoding String. required field
options Send the parameters Boolean
answer The response from the server contains the goods Boolean
allow_purchase_multiple_items Allow multiple unit purchases Boolean
url_for_quantity Url for sending a request with the quantity specified by the buyer String. optional field
token Access token,
min. permission: [ Content ]: Edit
Method for creating access token
XML response format: JSON response format: xml json <response> <retval>0</retval> <retdesc>Return description</retdesc> <content> <status>Success</status> </content> </response> { "retval": 0, "retdesc": null, "errors": null, "content": { "status": "Success" } }
Response parameters:
Name Use Comment
retval Result code 0 - success, 1 - error. Detailed information in field 'errors'
retdesc Description of result code Detailed information in field 'errors'
errors Result code Null - errors count is 0. if request is invalid, in this field this field will contain an array of errors
errors\code Error code String
errors\message Description of result code String
content Response body If request is invalid, this field will be null
content\status Response status String