Создать кошельки для оплаты плательщику
GET
/v1/external/wallet
Создать кошельки для оплаты плательщику
권한 부여
XApiKey
Store API key
유형API Key (header: X-Api-Key)
파라미터
헤더 파라미터
X-Api-Key*
Store API key
유형string
필수쿼리 파라미터
amount
유형number
currency
유형string
email
유형string
format
email
ip
유형string
format
ipv4
store_external_id*
유형string
필수format
uuid
응답들
OK
application/json
JSON
{
"code": 0,
"data": {...},
"message": "string"
}
GET
/v1/external/wallet
Server
샘플
cURL
curl -X GET \
'/api/v1/external/wallet' \
-H "Content-Type: application/json"
JavaScript
fetch('/api/v1/external/wallet', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
PHP
<?php
$url = '/api/v1/external/wallet';
$method = 'GET';
$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 = '/api/v1/external/wallet'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())