The request must be sent by POST on URL http://depcount.com/api/ with two parameters data and signature, where:
data - function result base64_encode( $json_string )
signature - function result base64_encode( sha1( $private_key . $data . $private_key ) )
TRANSFER TO USER
Mailed json data parameters
Translation available by phone number and user_id, if both parameters are transferred priority from the telephone.
- v version of the api, the current 1
- method Transfer
- type 1
- phone recipient's phone number, for example 79031111111
- user_id user id in the system
- amount the amount of transfer, for example 100, 90.5
- space_id Outlet/service ID
- uid a unique id you transfer a maximum of 250 characters
- description transfer description
- language by default en, possible options for the moment en, ru, ua, de, it, es, tr
Answer
If successful
- status success
- transfer_id a unique id you transfer a maximum of 250 characters
On error
- status error
- error_description description of the error
TRANSFER TO UNREGISTERED USER
Mailed json data parameters
- v version of the api, the current 1
- method Transfer
- type 3
- phone recipient's phone number, for example 79031111111
- amount the amount of transfer, for example 100, 90.5
- space_id Outlet/service ID
- uid a unique id you transfer a maximum of 250 characters
- description transfer description
- language by default en, possible options for the moment en, ru, ua, de, it, es, tr
Answer
If successful
- status success
- transfer_id a unique id you transfer a maximum of 250 characters
On error
- status error
- error_description description of the error
TRANSFER FROM THE USER
Translation requires confirmation code of sms to the phone user confirmation occurs by TransferPin.
Mailed json data parameters
Translation available by phone number and user_id, if both parameters are transferred priority from the telephone.
- v version of the api, the current 1
- method Transfer
- type 2
- phone recipient's phone number, for example 79031111111
- user_id user id in the system
- amount the amount of transfer, for example 100, 90.5
- space_id Outlet/service ID
- uid a unique id you transfer a maximum of 250 characters
- description transfer description
- language by default en, possible options for the moment en, ru, ua, de, it, es, tr
Answer
If successful
- status success
- transfer_id a unique id you transfer a maximum of 250 characters
On error
- status error
- error_description description of the error
CONFIRMATION OF FUNDS FROM THE USER
Mailed json data parameters
- v version of the api, the current 1
- method TransferPin
- transfer_id Received transfer_id
- pin Phone code
- language by default en, possible options for the moment en, ru, ua, de, it, es, tr
Answer
If successful
- status success
- transfer_id a unique id you transfer a maximum of 250 characters
On error
- status error
- error_description description of the error