Skip to content

Создать вывод средств с процессингового кошелька

POST
/v1/external/withdrawal-from-processing
Сервер

Создать вывод средств с процессингового кошелька

Авторизация

XApiKey
ТипAPI Key (header: X-Api-Key)

Тело запроса

JSON
{
"address_to": "string",
"amount": 0,
"currency_id": "string",
"request_id": "string"
}

Ответы

OK
application/json
JSON
{
"code": 0,
"data": {
"address_from": "string",
"address_to": "string",
"amount": "string",
"amount_usd": "string",
"created_at": "string",
"currency_id": "string",
"id": "string",
"store_id": "string",
"transfer_id": "string"
},
"message": "string"
}

Примеры

cURL
curl -X POST \
'https://demo.dv.net/api/v1/external/withdrawal-from-processing' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://demo.dv.net/api/v1/external/withdrawal-from-processing', {method:'POST',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://demo.dv.net/api/v1/external/withdrawal-from-processing';
$method = 'POST';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://demo.dv.net/api/v1/external/withdrawal-from-processing'

headers = {
    'Content-Type': 'application/json'
}

response = requests.post(url, headers=headers)
print(response.json())