API Commands
[All Commands]

Command: Upload_Document


Upload document to your account, for use as identification document, registration request etc.

Input parameters:

string ssid Token from Login
string name Filename of the document, including extension (.pdf, .jpg, ...)
string document base64 encoded document
string type Type of the document (optional)
string filetype MIME type of the file (optional)

Output data:

string status ok | error
array data
 
int id Document ID

PHP example:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'name' => 'my_passport.pdf',
    
'document' => 'JVBERi0xLj...QKJeLjz9MK',
    
'type' => 'identity_document',
  ),
);

$response $client->__call("Upload_Document",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [name] => my_passport.pdf [document] => JVBERi0xLj...QKJeLjz9MK [type] => identity_document ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [id] => 6473 ) )

API Manual - version from 2023-05-12 12:15:50