The API allows developers to integrate their applications into the Capitalist system for automated downloading payments into the system.
All financial operations performed via the API are labeled using a "security certificate", so the "Certificate" option should be activated for your account. This option can be activated in the Security Settings page in the Profile section.
The data required for using the API
- Username (not the e-mail)
- Certificate file
- The password to the certificate file if it is encrypted
- The batch payments data in a special format
The address for queries
An API query is a regular HTTP 1.1 POST query with the necessary parameters passed in its body.
The content type may be application/x-www-form-urlencoded or multipart/form-data.
Required query parameters
The query should be sent in UTF-8 encoding.
Dot "." shall be used as the decimal separator for amounts.
|Operation name. For exapmle, get_token.
Access with Plain password
You can use plain password with API (Operation get_token will not required in this case).
Use plain_password parameter instead of token and encrypted_password ones where is authorization is needed.
Currently, the API supports the following operations:
|Obtaining encryption attributes.
|Uploading a batch payment into the system with a possibility to choose the verification method.
|Batch payment confirmation.
|Getting detailed information about the loaded batch payment.
|Calculating the commission fee based on document parameters.
|(DEPRECATED) Obtaining operations history.
|Obtaining operations history.
|Search by payment number from your system.
|Sending a payment notification to the recipient.
|Checking whether the account holder is verified.
|Working with your accounts
|Obtaining a list of your accounts (wallets).
|Getting details for account replenishing.
|Obtaining of a currency rates.
Format of the reply
By default, the reply is sent in CSV format (separated by semicolons and line wraps) in UTF-8 encoding.
Choosing the response format
To get the reply in a more convenient format, the query should contain the 'x-response-format' HTTP header, e.g.
|A full-fledged JSON with named parameters
|CSV is selected by default
The HTTP headers of the response return the homonym header 'x-response-format' that contains a real format of the response. They coincide in all cases.
By default (i.e. for the CSV format) the first parameter in the first line of the reply is always an integer (hereinafter referred to as "Error Code" for convenience). If the error code is zero, the operation was successful. Otherwise, the second parameter in the first line is the text of the error. For reply formats json, the code and the error text are passed in the code and message attributes.
|Operation was successful
|Run-time error (error text should be analyzed)
|User not found (wrong username passed)
|Error attempting to decrypt the password
|The number of login attempts exceeded. Try 30 minutes later
|Invalid authentication token
|Information queries in batch downloads with over 1,000 entries is forbidden without page-by-page breakdown
|Signature verification error
|The transfer data contains invalid characters
|112 Exceeded number of records in a single batch payment
|Uploaded file cannot be parsed
|Account not found
|At least one source account required
|Batch is empty
|Insufficient finds for operations
|A non-POST query received
|API unavailable for the user
|Errors associated with registering a new user (the register_invitee operation)
|A user with this login already exists
|A user with this email address already exists
|Incorrect login format (the login should be 3 to 16 characters long, Latin characters or numbers)
|Incorrect format of the email address
|Incorrect format of the nickname (nickname should be 3 to 50 Latin characters, numbers, hyphens or underscores)
|Error in the phone number (optional; it should consist of minimum 7 digits, including the international country code and the area code)
|Error creating the wallet
|Unknown confirmation method
|The chosen confirmation method is inactive
|Digital signature missing
|Error importing a batch payment. The payment amount is equal to zero. The 2nd line is "payment id" (see the import_batch_advanced operation)
|Error importing a batch payment. Contact Support for details.
Error importing mass payment due to temporary unavailability of one of the types of payments.
Second line contains zero-based number of record in batch file.
|This error similar to error 185. Used for single-record masspayments. Error text contains declination comment.
|get_document_fee operation errors
|Unknown document type
|Unknown service provider code
|Unknown payment urgency (wire)
|Recipient not specified
|You should be the owner of the beneficiary account
|You should be the owner of the debit account
|Transfer amount should be greater than zero
|Failure sending confirmation code
|Invalid verification code
|Account does not exist
|Wrong request params
If you failed to find the Error Code description, please refer to customer service.